Interface ReplicaRegistryRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ReplicaRegistry,
,Long> org.springframework.data.jpa.repository.JpaRepository<ReplicaRegistry,
,Long> org.springframework.data.repository.ListCrudRepository<ReplicaRegistry,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ReplicaRegistry,
,Long> org.springframework.data.repository.PagingAndSortingRepository<ReplicaRegistry,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ReplicaRegistry>
,org.springframework.data.repository.Repository<ReplicaRegistry,
Long>
public interface ReplicaRegistryRepository
extends org.springframework.data.jpa.repository.JpaRepository<ReplicaRegistry,Long>
A ReplicaRegistryRepository.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existActiveOnes
(EntityType entityType) findActiveOnes
(EntityType entityType) 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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
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
-
existActiveOnes
@Query("select count(rr) > 0 from ReplicaRegistry rr where rr.state = \'REGISTERED\' and rr.entityType = :entityType") boolean existActiveOnes(@Param("entityType") EntityType entityType) -
findActiveOnes
@Query("select rr from ReplicaRegistry rr where rr.state = \'REGISTERED\' and rr.entityType = :entityType order by rr.registeredAt,rr.lastModifiedDt") List<ReplicaRegistry> findActiveOnes(@Param("entityType") EntityType entityType)
-