zoukankan      html  css  js  c++  java
  • ssm使用全注解实现增删改查案例——IDeptService

     /**  
    * @Title: IDeptService.java
    * @Package org.service
    * @Description: TODO该方法的主要作用:
    * @author A18ccms A18ccms_gmail_com  
    * @date 2018-3-12 上午10:45:56
    * @version V1.0  
    */
    package org.service;
    
    import java.util.List;
    
    import org.entity.Dept;
    
     /**   
     *    
     * 项目名称:test_springmvc_16qn2   
     * 类名称:IDeptService   
     * 类描述:   部门表的Service
     * 创建人:Mu Xiongxiong  
     * 创建时间:2018-3-12 上午10:45:56   
     * 修改人:Mu Xiongxiong   
     * 修改时间:2018-3-12 上午10:45:56   
     * 修改备注:   
     * @version    
     *    
     */
    public interface IDeptService {
        /**
         * 
        * @Description: 该方法的主要作用:删除
        * @Title: deleteByPrimaryKey
        * @param  @param id
        * @param  @return 设定文件  
        * @return  返回类型:int   
        * @throws
         */
        int deleteByPrimaryKey(Integer id);
    
        /**
         * 
        * @Description: 该方法的主要作用:添加
        * @Title: insert
        * @param  @param record
        * @param  @return 设定文件  
        * @return  返回类型:int   
        * @throws
         */
    
        int insert(Dept record);
    
        /**
         * 
        * @Description: 该方法的主要作用:根据编号删除
        * @Title: selectByPrimaryKey
        * @param  @param id
        * @param  @return 设定文件  
        * @return  返回类型:Dept   
        * @throws
         */
        Dept selectByPrimaryKey(Integer id);
    
        /**
         * 
        * @Description: 该方法的主要作用:根据编号修改
        * @Title: updateByPrimaryKey
        * @param  @param record
        * @param  @return 设定文件  
        * @return  返回类型:int   
        * @throws
         */
        int updateByPrimaryKey(Dept record);
    
        /**
         * 
        * @Description: 该方法的主要作用:查询全部部门
        * @Title: findDeptAll
        * @param  @return 设定文件  
        * @return  返回类型:List<Dept>   
        * @throws
         */
        List<Dept> findDeptAll();
    }
    
  • 相关阅读:
    C
    A
    hdu 三部曲1 Popular Cows tarjan算法&&缩点&&拓扑排序
    hdu 三部曲 Going Home 最小费用最大流 EK算法
    hdu 三部曲 1Minimum Cost 最小费用最大流EK算法
    hdu 三部曲1 Is the Information Reliable? 差分约束 bellman_ford算法
    hdu 三部曲1 Intervals 差分约束问题 spfa算法
    hdu 三部曲 Crashing Robots
    hdu 三部曲2 Rebuilding Roads
    Codeforces 1277C As Simple as One and Two
  • 原文地址:https://www.cnblogs.com/a1111/p/12816057.html
Copyright © 2011-2022 走看看