接口 BaseDao<T extends BaseEntity>
-
- 类型参数:
T- 实体类
- 所有已知实现类:
BaseDaoImpl
public interface BaseDao<T extends BaseEntity>Dao层基础接口- 作者:
- shixin
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Tcreate(T t)创建对象List<T>createAll(List<T> list)批量创建对象voiddelete(T t)根据对象删除对象 默认逻辑删除voiddeleteById(Integer id)根据id删除对象 默认逻辑删除List<T>findAll()根据查询对象查找对象List<T>findAll(T t)根据查询对象查找对象TfindById(Integer id)根据id查找对象TfindOne(T t)根据查询对象查找对象org.springframework.data.domain.Page<T>pageQuery(T t, org.springframework.data.domain.Pageable pageable)分页查询Tupdate(T t)根据id更新对象,默认忽略Null值更新TupdateWithNull(T t)根据id更新对象,可以设置Null值是否更新
-