Interface HotlistCacheRepository

  • All Superinterfaces:
    io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<HotlistCache,​String>, org.springframework.data.repository.CrudRepository<HotlistCache,​String>, org.springframework.data.jpa.repository.JpaRepository<HotlistCache,​String>, org.springframework.data.repository.PagingAndSortingRepository<HotlistCache,​String>, org.springframework.data.repository.query.QueryByExampleExecutor<HotlistCache>, org.springframework.data.repository.Repository<HotlistCache,​String>

    @Repository
    public interface HotlistCacheRepository
    extends io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<HotlistCache,​String>
    The Interface HotlistCacheRepository.
    Author:
    Manoj SP
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<HotlistCache> findByExpiryDTimesLessThanAndStatus​(LocalDateTime currentTimestamp, String status)
      Find by expiry timestamp less than current timestamp.
      Optional<HotlistCache> findByIdHashAndIdType​(String idHash, String idType)  
      List<HotlistCache> findByStatusAndExpiryDTimes​(String status, LocalDateTime expiryDTimes)
      Find by status.
      • Methods inherited from interface io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository

        create, createNamedQuerySelect, createNamedQueryUpdateOrDelete, createQuerySelect, createQuerySelect, createQueryUpdateOrDelete, delete, findAll, findById, update
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

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

        count, exists, findAll, findOne
    • Method Detail

      • findByStatusAndExpiryDTimes

        List<HotlistCache> findByStatusAndExpiryDTimes​(String status,
                                                       LocalDateTime expiryDTimes)
        Find by status.
        Parameters:
        status - the status
        isDeleted - the is deleted
        Returns:
        the list
      • findByExpiryDTimesLessThanAndStatus

        List<HotlistCache> findByExpiryDTimesLessThanAndStatus​(LocalDateTime currentTimestamp,
                                                               String status)
        Find by expiry timestamp less than current timestamp.
        Parameters:
        currentTimestamp - the current timestamp
        isDeleted - the is deleted
        Returns:
        the list