Interface GalleryRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<GalleryEntity,Long>, DomainIdRepository<GalleryEntity,Long>, org.springframework.data.jpa.repository.JpaRepository<GalleryEntity,Long>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<GalleryEntity>, org.springframework.data.repository.PagingAndSortingRepository<GalleryEntity,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<GalleryEntity>, org.springframework.data.repository.Repository<GalleryEntity,Long>

@Repository public interface GalleryRepository extends DomainIdRepository<GalleryEntity,Long>
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<GalleryEntity>
    findAllByPerexGroupIsNotNull(org.springframework.data.domain.Pageable pageable)
     
    findByImagePathAndImageNameAndDomainId(String imagePath, String imageName, int domainId)
     
    findIdByImagePathAndImageNameAndDomainId(String imagePath, String imageName, int domainId)
     

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface sk.iway.iwcm.system.datatable.spring.DomainIdRepository

    findAllByDomainId, findAllByDomainId, findFirstByIdAndDomainId

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    count, findAll, findAll, findAll, findOne

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByImagePathAndImageNameAndDomainId

      GalleryEntity findByImagePathAndImageNameAndDomainId(String imagePath, String imageName, int domainId)
    • findIdByImagePathAndImageNameAndDomainId

      @Query("SELECT ge.id FROM GalleryEntity ge WHERE ge.imagePath = :imagePath AND ge.imageName = :imageName AND ge.domainId = :domainId") Optional<Long> findIdByImagePathAndImageNameAndDomainId(@Param("imagePath") String imagePath, @Param("imageName") String imageName, @Param("domainId") int domainId)
    • findAllByPerexGroupIsNotNull

      org.springframework.data.domain.Page<GalleryEntity> findAllByPerexGroupIsNotNull(org.springframework.data.domain.Pageable pageable)