public interface AbstractMapper<T,K>
Description:
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
countByCondition(Where condition)
通过条件查总数
|
int |
deleteByCondition(Where condition)
通过条件删除
|
int |
deleteByPrimaryKey(K key)
通过主键删除
|
T |
entityByCondition(Where condition)
通过条件查实体
|
T |
entityByPrimaryKey(K key)
通过主键查实体
|
int |
insert(T entity)
全量插入
|
int |
insertBatch(List<T> entities)
批量插入
|
int |
insertSelective(T entity)
插入不是空的字段
|
List<T> |
selectByCondition(Where condition)
通过条件查列表
|
int |
updateByCondition(T entity,
Where condition)
通过条件修改
|
int |
updateByConditionSelective(T entity,
Where condition)
通过条件修改不为空的字段
|
int |
updateByPrimaryKey(T entity)
通过主键修改
|
int |
updateByPrimaryKeySelective(T entity)
通过主键修改不为空的字段
|
int insert(T entity)
entity - 插入的数据实体int insertSelective(T entity)
entity - 插入的数据实体int deleteByPrimaryKey(K key)
key - 主键int deleteByCondition(@Param(value="condition")
Where condition)
condition - 条件 Conditionint updateByPrimaryKey(T entity)
entity - 实体int updateByPrimaryKeySelective(T entity)
entity - 实体int updateByCondition(@Param(value="entity")
T entity,
@Param(value="condition")
Where condition)
condition - 条件 Conditionentity - 对象int updateByConditionSelective(@Param(value="entity")
T entity,
@Param(value="condition")
Where condition)
condition - 条件 Conditionentity - 实例T entityByCondition(@Param(value="condition") Where condition)
condition - 条件 ConditionList<T> selectByCondition(@Param(value="condition") Where condition)
condition - 条件 ConditionCopyright © 2019. All rights reserved.