Interface EntityDatatableChecksRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EntityDatatableChecks,,Long> org.springframework.data.jpa.repository.JpaRepository<EntityDatatableChecks,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<EntityDatatableChecks>,org.springframework.data.repository.ListCrudRepository<EntityDatatableChecks,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<EntityDatatableChecks,,Long> org.springframework.data.repository.PagingAndSortingRepository<EntityDatatableChecks,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<EntityDatatableChecks>,org.springframework.data.repository.Repository<EntityDatatableChecks,Long>
public interface EntityDatatableChecksRepository
extends org.springframework.data.jpa.repository.JpaRepository<EntityDatatableChecks,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<EntityDatatableChecks>
-
Method Summary
Modifier and TypeMethodDescriptionfindByEntityAndStatus(String entityName, Integer status) findByEntityAndStatusAndSubtype(String entity, Integer status, String subtype) findByEntityStatusAndDatatableIdAndNoProduct(String entityName, Integer status, String datatableName) findByEntityStatusAndDatatableIdAndProductId(String entityName, Integer status, String datatableName, Long productId) findByEntityStatusAndNoProduct(String entity, Integer status) findByEntityStatusAndProduct(String entity, Integer status, Long productId) 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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, delete, exists, findAll, findAll, findAll, findBy, findOneMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods 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
-
findByEntityAndStatus
-
findByEntityAndStatusAndSubtype
@Query(" SELECT dt\n FROM EntityDatatableChecks dt\n INNER JOIN RegisteredDatatable rdt ON rdt.datatableName = dt.datatableName\n WHERE dt.entity = :entity\n AND dt.status = :status\n AND rdt.subtype = :subtype\n") List<EntityDatatableChecks> findByEntityAndStatusAndSubtype(@Param("entity") String entity, @Param("status") Integer status, @Param("subtype") String subtype) -
findByEntityStatusAndProduct
@Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.productId = :productId ") List<EntityDatatableChecks> findByEntityStatusAndProduct(@Param("entity") String entity, @Param("status") Integer status, @Param("productId") Long productId) -
findByEntityStatusAndNoProduct
@Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.productId IS NULL ") List<EntityDatatableChecks> findByEntityStatusAndNoProduct(@Param("entity") String entity, @Param("status") Integer status) -
findByEntityStatusAndDatatableIdAndProductId
@Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.datatableName = :datatableName AND t.productId = :productId") List<EntityDatatableChecks> findByEntityStatusAndDatatableIdAndProductId(@Param("entity") String entityName, @Param("status") Integer status, @Param("datatableName") String datatableName, @Param("productId") Long productId) -
findByEntityStatusAndDatatableIdAndNoProduct
@Query("select t from EntityDatatableChecks t WHERE t.status =:status and t.entity=:entity and t.datatableName = :datatableName AND t.productId IS NULL") List<EntityDatatableChecks> findByEntityStatusAndDatatableIdAndNoProduct(@Param("entity") String entityName, @Param("status") Integer status, @Param("datatableName") String datatableName)
-