Package org.appng.core.repository
Interface SiteRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<SiteImpl,Integer>
,org.springframework.data.jpa.repository.JpaRepository<SiteImpl,Integer>
,org.springframework.data.jpa.repository.JpaSpecificationExecutor<SiteImpl>
,org.springframework.data.repository.PagingAndSortingRepository<SiteImpl,Integer>
,org.springframework.data.repository.query.QueryByExampleExecutor<SiteImpl>
,org.springframework.data.repository.Repository<SiteImpl,Integer>
,SearchRepository<SiteImpl,Integer>
public interface SiteRepository extends SearchRepository<SiteImpl,Integer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SiteImpl
findByDomain(String domain)
SiteImpl
findByHost(String host)
SiteImpl
findByName(String name)
List<SiteImpl>
findByNameIn(Iterable<String> siteNames)
List<SiteImpl>
findSites()
List<SiteImpl>
findSitesForApplication(Integer applicationId)
List<SiteImpl>
findSitesForApplication(Integer applicationId, boolean active)
List<Integer>
getSiteIds()
-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, exists, 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
-
Methods inherited from interface org.appng.persistence.repository.SearchRepository
createSearchQuery, detach, getHistory, getOne, getRevision, getRevisionNumber, isUnique, isUnique, search, search, search, search
-
-
-
-
Method Detail
-
findSitesForApplication
@Query("select s from SiteImpl s join s.siteApplications p where p.application.id= ?1") List<SiteImpl> findSitesForApplication(Integer applicationId)
-
findSitesForApplication
@Query("select s from SiteImpl s join s.siteApplications p where p.application.id= ?1 and s.active=?2") List<SiteImpl> findSitesForApplication(Integer applicationId, boolean active)
-
-