类 MybatisBaseServiceImpl<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
- java.lang.Object
-
- cn.t.common.mybatis.MybatisBaseServiceImpl<T,E,PK,M>
-
- 所有已实现的接口:
MybatisBaseService<T,E,PK,M>
public abstract class MybatisBaseServiceImpl<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>> extends Object implements MybatisBaseService<T,E,PK,M>
- 从以下版本开始:
- 2021-03-17 10:32
- 版本:
- V1.0
- 作者:
- 研发部-杨建
-
-
字段概要
字段 修饰符和类型 字段 说明 protected MbaseMapper
-
构造器概要
构造器 构造器 说明 MybatisBaseServiceImpl(M baseMapper)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 longcountByExample(E e)MgetMapper()voidmodifyByPrimaryKey(T t)voidmodifyByPrimaryKeySelective(T t)List<T>queryAll()List<T>queryByExample(E e)TqueryByPrimaryKey(PK id)com.github.pagehelper.Page<T>queryPageByExample(E e)voidremoveByPrimaryKey(PK id)voidsave(T t)voidsaveSelective(T t)
-
-
-
字段详细资料
-
baseMapper
protected final M extends BaseMapper<T,E,PK> baseMapper
-
-
构造器详细资料
-
MybatisBaseServiceImpl
public MybatisBaseServiceImpl(M baseMapper)
-
-
方法详细资料
-
queryByPrimaryKey
public T queryByPrimaryKey(PK id)
- 指定者:
queryByPrimaryKey在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
queryByExample
public List<T> queryByExample(E e)
- 指定者:
queryByExample在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
queryPageByExample
public com.github.pagehelper.Page<T> queryPageByExample(E e)
- 指定者:
queryPageByExample在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
queryAll
public List<T> queryAll()
- 指定者:
queryAll在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
countByExample
public long countByExample(E e)
-
removeByPrimaryKey
public void removeByPrimaryKey(PK id)
- 指定者:
removeByPrimaryKey在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
save
public void save(T t)
- 指定者:
save在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
saveSelective
public void saveSelective(T t)
- 指定者:
saveSelective在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
modifyByPrimaryKey
public void modifyByPrimaryKey(T t)
- 指定者:
modifyByPrimaryKey在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
modifyByPrimaryKeySelective
public void modifyByPrimaryKeySelective(T t)
- 指定者:
modifyByPrimaryKeySelective在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
getMapper
public M getMapper()
- 指定者:
getMapper在接口中MybatisBaseService<T extends BaseEntity<PK>,E,PK extends Serializable,M extends BaseMapper<T,E,PK>>
-
-