com.github.abel533.mapper
接口 Mapper<T>
- 类型参数:
T - 不能为空
public interface Mapper<T>
通用Mapper接口,其他接口继承该接口即可
这是一个例子,自己扩展时可以参考
项目地址 : https://github.com/abel533/Mapper
- 作者:
- liuzh
select
List<T> select(T record)
selectCount
int selectCount(T record)
selectByPrimaryKey
T selectByPrimaryKey(Object key)
insert
int insert(T record)
insertSelective
int insertSelective(T record)
delete
int delete(T key)
deleteByPrimaryKey
int deleteByPrimaryKey(Object key)
updateByPrimaryKey
int updateByPrimaryKey(T record)
updateByPrimaryKeySelective
int updateByPrimaryKeySelective(T record)
Copyright © 2014. All rights reserved.