Interface OtpTxnRepository

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Optional<OtpTransaction> findFirstByRefIdAndStatusCodeInAndGeneratedDtimesNotNullOrderByGeneratedDtimesDesc​(String refIdHash, List<String> statusCodes)
      Find first element by ref_id ordered by generated_dtimes in descending order and for the given status codes.
      • 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

      • findFirstByRefIdAndStatusCodeInAndGeneratedDtimesNotNullOrderByGeneratedDtimesDesc

        Optional<OtpTransaction> findFirstByRefIdAndStatusCodeInAndGeneratedDtimesNotNullOrderByGeneratedDtimesDesc​(String refIdHash,
                                                                                                                    List<String> statusCodes)
        Find first element by ref_id ordered by generated_dtimes in descending order and for the given status codes.
        Parameters:
        refIdHash - the ref id hash
        Returns:
        the optional