Interface AutnTxnRepository
-
- All Superinterfaces:
io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<AutnTxn,Integer>,org.springframework.data.repository.CrudRepository<AutnTxn,Integer>,org.springframework.data.jpa.repository.JpaRepository<AutnTxn,Integer>,org.springframework.data.repository.PagingAndSortingRepository<AutnTxn,Integer>,org.springframework.data.repository.query.QueryByExampleExecutor<AutnTxn>,org.springframework.data.repository.Repository<AutnTxn,Integer>
@Repository public interface AutnTxnRepository extends io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<AutnTxn,Integer>
This is a repository class for entityAutnTxn.- Author:
- Rakesh Roshan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LongcountByEntityIdAndRequestDTtimesAfter(String entityId, LocalDateTime afterRequestTime)LongcountByRefIdAndRequestDTtimesAfter(String refId, LocalDateTime afterRequestTime)intcountRequestDTime(LocalDateTime otpRequestDTime, LocalDateTime oneMinuteBeforeTime, String token)Obtain the number of count of request_dTtimes for particular UIN(uniqueId) with within the otpRequestDTime and oneMinuteBeforeTime.List<AutnTxn>findByToken(String token, org.springframework.data.domain.Pageable pagaeable)List<AutnTxn>findByTxnId(String txnId, org.springframework.data.domain.Pageable pagaeable, String authtypecode)Obtain all Authentication Transaction for particular TxnId and UIN.-
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
-
-
-
-
Method Detail
-
findByTxnId
@Query("Select new AutnTxn(token, refIdType, entityId) from AutnTxn where requestTrnId=:txnId AND authTypeCode=:authtypecode ORDER BY cr_dtimes DESC") List<AutnTxn> findByTxnId(@Param("txnId") String txnId, org.springframework.data.domain.Pageable pagaeable, @Param("authtypecode") String authtypecode)Obtain all Authentication Transaction for particular TxnId and UIN.- Parameters:
txnId- the txn idpagaeable- the pagaeableauthtypecode- the authtypecode- Returns:
- the list
-
findByToken
@Query("Select new AutnTxn( requestTrnId, requestDTtimes, authTypeCode, statusCode, statusComment, refId, refIdType, entityName, requestSignature, responseSignature ) from AutnTxn where token=:token ORDER BY crDTimes DESC") List<AutnTxn> findByToken(@Param("token") String token, org.springframework.data.domain.Pageable pagaeable)
-
countRequestDTime
@Query("Select count(1) from AutnTxn where requestDTtimes <= :otpRequestDTime and requestDTtimes >= :oneMinuteBeforeTime and token=:token") int countRequestDTime(@Param("otpRequestDTime") LocalDateTime otpRequestDTime, @Param("oneMinuteBeforeTime") LocalDateTime oneMinuteBeforeTime, @Param("token") String token)Obtain the number of count of request_dTtimes for particular UIN(uniqueId) with within the otpRequestDTime and oneMinuteBeforeTime.- Parameters:
otpRequestDTime- the otp request D timeoneMinuteBeforeTime- the one minute before timerefId- the ref id- Returns:
- the int
-
countByRefIdAndRequestDTtimesAfter
Long countByRefIdAndRequestDTtimesAfter(String refId, LocalDateTime afterRequestTime)
-
countByEntityIdAndRequestDTtimesAfter
Long countByEntityIdAndRequestDTtimesAfter(String entityId, LocalDateTime afterRequestTime)
-
-