Package io.mybatis.service
Interface BaseService<T,I extends Serializable>
-
- Type Parameters:
T- 实体类类型I- 主键类型
- All Superinterfaces:
EntityService<T,I>,ExampleService<T,I>
- All Known Implementing Classes:
AbstractService
public interface BaseService<T,I extends Serializable> extends EntityService<T,I>, ExampleService<T,I>
基础接口,包含实体类基本接口和 Example 接口自己的接口不一定要实现这个接口,直接继承会暴露过多的接口, 可以直接在实现类中继承 AbstractService 实现,对外暴露的接口在自己接口中定义, 自己定义的接口和 AbstractService 实现方法的定义一样时,不需要提供实现方法
- Author:
- liuzh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExampleWrapper<T,I>wrapper()-
Methods inherited from interface io.mybatis.service.EntityService
count, delete, deleteByFieldList, deleteById, findAll, findByFieldList, findById, findList, findOne, pkHasValue, save, saveOrUpdate, saveOrUpdateSelective, saveSelective, update, update, updateSelective, updateSelective
-
Methods inherited from interface io.mybatis.service.ExampleService
count, delete, example, findList, findOne, update, updateSelective
-
-
-
-
Method Detail
-
wrapper
ExampleWrapper<T,I> wrapper()
-
-