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 Type
    Method
    Description
     
    findByApplicationName(String applicationName)
     

    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

    • findByApplicationName

      Optional<ReplicaRegistry> findByApplicationName(String applicationName)
    • findActiveOnes

      @Query("select rr from ReplicaRegistry rr where rr.state = \'REGISTERED\' order by rr.registeredAt,rr.lastModifiedDt") List<ReplicaRegistry> findActiveOnes()