xufenglei
2017-11-27 5bb340081d5b584000e4a932a959233077293b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.moral.mapper;
 
import java.io.Serializable;
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
 
public interface BaseMapper<Entity, Example, PK extends Serializable> extends Serializable {
    int insert(Entity record) throws DataAccessException;
 
    int insertSelective(Entity record) throws DataAccessException;
 
    int deleteByPrimaryKey(PK PK) throws DataAccessException;
 
    int deleteByExample(Example example) throws DataAccessException;
 
    int updateByPrimaryKeySelective(Entity record) throws DataAccessException;
 
    int updateByPrimaryKey(Entity record) throws DataAccessException;
 
    int updateByExampleSelective(@Param("record") Entity record, @Param("example") Example example)throws DataAccessException;
 
    int updateByExample(@Param("record") Entity record, @Param("example") Example example) throws DataAccessException;
 
    int countByExample(Example example) throws DataAccessException;
 
    Entity selectByPrimaryKey(PK pk) throws DataAccessException;
 
    List<Entity> selectByExample(Example example) throws DataAccessException;
}