Interface EntityDao<T,ID extends Serializable>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<T,,ID> org.springframework.data.jpa.repository.JpaRepository<T,,ID> org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>,org.springframework.data.repository.PagingAndSortingRepository<T,,ID> org.springframework.data.repository.query.QueryByExampleExecutor<T>,org.springframework.data.repository.Repository<T,ID>
- All Known Subinterfaces:
DefaultEntityDao<T,ID>
- All Known Implementing Classes:
EntityDaoImpl
public interface EntityDao<T,ID extends Serializable>
extends org.springframework.data.jpa.repository.JpaRepository<T,ID>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<T>
-
Method Summary
Modifier and TypeMethodDescriptionintdeleteByWhere(String where, Object... params) <C> CgetColumnValueByWhere(String columnName, Class<C> cClass, String where, Object... params) getModelByWhere(String where, Object... params) intincrementalColumn(String columnName, Object delta, String where, Object... params) 递增 递减字段<C> org.springframework.data.domain.Page<C> pageColumnValueByWhere(org.springframework.data.domain.Pageable pageable, String columnName, Class<C> cClass, String where, Object... params) org.springframework.data.domain.Page<T> pageModelByWhere(org.springframework.data.domain.Pageable pageable, String where, Object... params) <C> List<C> queryColumnValueByWhere(String columnName, Class<C> cClass, String where, Object... params) queryModelByWhere(String where, Object... params) intudpateColumn(String columnName, Object value, String where, Object... params) 更新一个字段intudpateColumns(T t, boolean exclude, String[] columns, String where, Object... params) 更新字段Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, findAll, findAll, findAll, findOneMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
insert
-
udpate
-
udpateColumns
-
udpateColumn
-
incrementalColumn
-
deleteByWhere
-
getColumnValueByWhere
-
getModelByWhere
-
queryColumnValueByWhere
-
queryModelByWhere
-
pageColumnValueByWhere
-
pageModelByWhere
-
getTableName
String getTableName() -
getEntityClass
-