#region Copyright

/*
 * Copyright 2005-2008 the Seasar Foundation and the Others.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

#endregion

using Seasar.Quill.Attrs;
using S2FormExample.Logics.Page;
using S2FormExample.Logics.Service.Impl;

namespace S2FormExample.Logics.Service
{
    /// <summary>
    /// 幮堳搊榐梡僒乕價僗梡僀儞僞乕僼僃僀僗
    /// </summary>
    [Implementation(typeof (EmployeeEditServiceImpl))]
    public interface IEmployeeEditService : IBaseService
    {
        /// <summary>
        /// 幮堳僨乕僞傪庢摼偡傞
        /// </summary>
        /// <param name="id">幮堳ID</param>
        /// <returns>幮堳僨乕僞</returns>
        EmployeeEditPage GetData(int id);

        /// <summary>
        /// 幮堳僨乕僞傪搊榐偡傞
        /// </summary>
        /// <param name="data">搊榐幮堳僨乕僞</param>
        /// <returns>搊榐審悢</returns>
        [Transaction]
        int ExecUpdate(EmployeeEditPage data);

        /// <summary>
        /// 幮堳僨乕僞傪嶍彍偡傞
        /// </summary>
        /// <param name="id">嶍彍幮堳ID</param>
        /// <returns>嶍彍審悢</returns>
        [Transaction]
        int ExecDelete(int id);
    }
}