Package com.avoka.fc.core.dao
Class PaymentLogDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.PaymentLogDao
Provides a DAO for the PaymentLog entity.
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetByPaymentLogKey
(String paymentLogKey) Return the payment log for the specified payment log keygetLatestCompletedPayment
(Submission submission) Return latest completed payment log for a submissiongetLatestCompletedPaymentId
(String submissionId) Return the OID of the most recent completed payment log for a submissiongetLatestCreatedPaymentId
(String submissionId) Return the OID of the most recent created payment log for a submissiongetLatestPaymentId
(String submissionId) Return the OID of the most recent payment log for a submissiongetLatestPaymentLog
(Submission submission) Return the latest PaymentLog for the given submissiongetOutstandingTransactions
(int timeout, String serviceDefinitionCode) Return all payment log entries that have not received a response, where the request is older than a specified number of minutesReturn the payment log with the specified OIDgetPaymentLogList
(String clientId, String paymentIdentifier, String formReceiptNo, Object drTransactionNo, String serviceCode, Integer paymentAmountMinCents, Integer paymentAmountMaxCents, Date startDate, Date endDate) Return the list of payment log records for the specified search criteriagetTransactionsByBatchNo
(String batchNo, Client client, String serviceDefinitionCode) Return payment log entries for the specified batch, client and payment serviceMethods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
Constructor Details
-
PaymentLogDao
public PaymentLogDao()
-
-
Method Details
-
getPaymentLogById
Return the payment log with the specified OID- Parameters:
id
- the OID- Returns:
- the matching payment log, or null if not found
-
getByPaymentLogKey
Return the payment log for the specified payment log key- Parameters:
paymentLogKey
- the payment log key- Returns:
- the payment log entity
- Since:
- 4.0.0
-
getLatestPaymentId
Return the OID of the most recent payment log for a submission- Parameters:
submissionId
- the valid OID of a submission- Returns:
- the OID of the most recent payment log for the submission
-
getLatestPaymentLog
Return the latest PaymentLog for the given submission- Parameters:
submission
- the submission record (required)- Returns:
- the latest PaymentLog for the given submission
- Since:
- 4.0.0
-
getLatestCreatedPaymentId
Return the OID of the most recent created payment log for a submission- Parameters:
submissionId
- the valid OID of a submission- Returns:
- the OID of the most recently created payment log for the submission
-
getLatestCompletedPaymentId
Return the OID of the most recent completed payment log for a submission- Parameters:
submissionId
- the valid OID of a submission- Returns:
- the OID of the most recently created payment log for the submission
-
getLatestCompletedPayment
Return latest completed payment log for a submission- Parameters:
submission
- the submission record (required)- Returns:
- latest completed payment log for a submission
- Since:
- 5.0.0
-
getPaymentLogList
public List<PaymentLog> getPaymentLogList(String clientId, String paymentIdentifier, String formReceiptNo, Object drTransactionNo, String serviceCode, Integer paymentAmountMinCents, Integer paymentAmountMaxCents, Date startDate, Date endDate) Return the list of payment log records for the specified search criteria- Parameters:
clientId
- the OID of the client associated with the payment log (optional)paymentIdentifier
- the OID of the payment log or the payment key (optional)formReceiptNo
- the receipt number of the submission (optional)drTransactionNo
- the transaction number or receipt number returned by the payment gateway (optional)serviceCode
- the payment service code (optional)paymentAmountMinCents
- the minimum payment amount in cents (optional)paymentAmountMaxCents
- the maximum payment amount in cents (optional)startDate
- the lower bound on the digital order timestamp (optional)endDate
- the upper bound on the digital order timestamp (optional)- Returns:
- the list of matching payment logs
-
getOutstandingTransactions
Return all payment log entries that have not received a response, where the request is older than a specified number of minutes- Parameters:
timeout
- the maximum request age in minutes, above which payment logs are considered outstandingserviceDefinitionCode
- the payment service code to search for (optional)- Returns:
- the list of matching payment logs
-
getTransactionsByBatchNo
public List<PaymentLog> getTransactionsByBatchNo(String batchNo, Client client, String serviceDefinitionCode) Return payment log entries for the specified batch, client and payment service- Parameters:
batchNo
- the batch number to search forserviceDefinitionCode
- the payment service code to search for (optional)client
- the Client to restrict the search to (optional)- Returns:
- the list of matching payment logs
- Since:
- 4.0.0
-