Interface EnumerationTypeRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<EnumerationTypeBean,,Long> org.springframework.data.jpa.repository.JpaRepository<EnumerationTypeBean,,Long> org.springframework.data.jpa.repository.JpaSpecificationExecutor<EnumerationTypeBean>,org.springframework.data.repository.ListCrudRepository<EnumerationTypeBean,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<EnumerationTypeBean,,Long> org.springframework.data.repository.PagingAndSortingRepository<EnumerationTypeBean,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<EnumerationTypeBean>,org.springframework.data.repository.Repository<EnumerationTypeBean,Long>
@Repository
public interface EnumerationTypeRepository
extends org.springframework.data.jpa.repository.JpaRepository<EnumerationTypeBean,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<EnumerationTypeBean>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteEnumTypeById(Integer enumerationTypeId, boolean hidden) org.springframework.data.domain.Page<EnumerationTypeBean>findAllByHiddenFalse(org.springframework.data.domain.Pageable pagebale) findFirstByHiddenOrderById(boolean hidden) getAllNonHiddenOrderedById(boolean hidden) getByEnumId(Integer enumerationTypeId) getChildEnumTypeId(Integer enumerationTypeId) getHiddenByEnumTypeId(Integer enumerationTypeId) getIdByTypeName(String typeName) getNonHiddenByEnumId(Integer enumerationTypeId, boolean hidden) isAllowChildEnumerationType(Long enumerationTypeId) isAllowParentEnumerationData(Long enumerationTypeId) 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, count, delete, delete, exists, exists, findAll, findAll, findAll, findAll, findAll, findBy, findBy, findOne, findOne, updateMethods 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
-
getNonHiddenByEnumId
@Query(value="SELECT * FROM enumeration_type WHERE enumeration_type_id = ?1 AND hidden = ?2", nativeQuery=true) EnumerationTypeBean getNonHiddenByEnumId(Integer enumerationTypeId, boolean hidden) -
getByEnumId
@Query(value="SELECT * FROM enumeration_type WHERE enumeration_type_id = ?1", nativeQuery=true) EnumerationTypeBean getByEnumId(Integer enumerationTypeId) -
getAllNonHiddenOrderedById
@Query(value="SELECT * FROM enumeration_type WHERE hidden = ?1 ORDER BY enumeration_type_id", nativeQuery=true) List<EnumerationTypeBean> getAllNonHiddenOrderedById(boolean hidden) -
findFirstByHiddenOrderById
-
deleteEnumTypeById
@Transactional @Modifying @Query("UPDATE EnumerationTypeBean SET hidden = :hidden WHERE enumerationTypeId = :enumerationTypeId") void deleteEnumTypeById(@Param("enumerationTypeId") Integer enumerationTypeId, @Param("hidden") boolean hidden) -
findAllByHiddenFalse
org.springframework.data.domain.Page<EnumerationTypeBean> findAllByHiddenFalse(org.springframework.data.domain.Pageable pagebale) -
getHiddenByEnumTypeId
-
getChildEnumTypeId
-
isAllowChildEnumerationType
-
isAllowParentEnumerationData
-
getIdByTypeName
-