@Repository public interface AutnTxnRepository extends io.mosip.kernel.core.dataaccess.spi.repository.BaseRepository<AutnTxn,Integer>
AutnTxn.| Modifier and Type | Method and Description |
|---|---|
int |
countRequestDTime(java.time.LocalDateTime otpRequestDTime,
java.time.LocalDateTime oneMinuteBeforeTime,
String refId)
Obtain the number of count of request_dTtimes for particular UIN(uniqueId)
with within the otpRequestDTime and oneMinuteBeforeTime.
|
List<AutnTxn> |
findByTxnId(String txnId,
org.springframework.data.domain.Pageable pagaeable,
String authtypecode)
Obtain all Authentication Transaction for particular TxnId and UIN.
|
List<AutnTxn> |
findByUin(String uinHash,
org.springframework.data.domain.Pageable pagaeable) |
create, createNamedQuerySelect, createNamedQueryUpdateOrDelete, createQuerySelect, createQuerySelect, createQueryUpdateOrDelete, delete, findAll, findById, updatedeleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlushfindAll@Query(value="Select * from ida.auth_transaction where request_trn_id=:txnId AND auth_type_code=:authtypecode ORDER BY cr_dtimes DESC",
nativeQuery=true)
List<AutnTxn> findByTxnId(@Param(value="txnId")
String txnId,
org.springframework.data.domain.Pageable pagaeable,
@Param(value="authtypecode")
String authtypecode)
txnId - the txn idpagaeable - the pagaeableauthtypecode - the authtypecode@Query(value="Select * from ida.auth_transaction where uin_hash=:uinHash ORDER BY cr_dtimes DESC",
nativeQuery=true)
List<AutnTxn> findByUin(@Param(value="uinHash")
String uinHash,
org.springframework.data.domain.Pageable pagaeable)
@Query(value="Select count(requestDTtimes) from AutnTxn where request_dtimes <= :otpRequestDTime and request_dtimes >= :oneMinuteBeforeTime and refId=:refId")
int countRequestDTime(@Param(value="otpRequestDTime")
java.time.LocalDateTime otpRequestDTime,
@Param(value="oneMinuteBeforeTime")
java.time.LocalDateTime oneMinuteBeforeTime,
@Param(value="refId")
String refId)
otpRequestDTime - the otp request D timeoneMinuteBeforeTime - the one minute before timerefId - the ref idCopyright © 2020. All rights reserved.