Class JpaCustomizedPaymentTransactionRepository<D extends JpaPaymentTransaction>
java.lang.Object
com.broadleafcommerce.paymenttransaction.provider.jpa.repository.JpaCustomizedPaymentTransactionRepository<D>
- All Implemented Interfaces:
 CustomizedPaymentTransactionRepository<D>,org.springframework.beans.factory.InitializingBean
public class JpaCustomizedPaymentTransactionRepository<D extends JpaPaymentTransaction>
extends Object
implements CustomizedPaymentTransactionRepository<D>, org.springframework.beans.factory.InitializingBean
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedPaymentTransactionRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.data.domain.Page<D>findAllByDateRecordedBeforeAndManagementStateIsNotIn(@NonNull Instant date, @NonNull List<String> transactionManagementStates, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Returns the transactions recorded before the the specified time, excluding those with the specified management statesorg.springframework.data.domain.Page<D>findTransactionsToReverse(Duration reversalCandidateTtl, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Returns the payment transactions that are eligible for reverse.protected com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowingHelperprotected PaymentTransactionRepository<D>voidsetRepository(PaymentTransactionRepository<D> repository)  
- 
Field Details
- 
DATE_RECORDED_FLD
- See Also:
 
 - 
MANAGEMENT_STATE_FLD
- See Also:
 
 - 
REVERSAL_CANDIDATE_TTL
- See Also:
 
 
 - 
 - 
Constructor Details
- 
JpaCustomizedPaymentTransactionRepository
public JpaCustomizedPaymentTransactionRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager typeManager)  
 - 
 - 
Method Details
- 
findAllByDateRecordedBeforeAndManagementStateIsNotIn
public org.springframework.data.domain.Page<D> findAllByDateRecordedBeforeAndManagementStateIsNotIn(@NonNull @NonNull Instant date, @NonNull @NonNull List<String> transactionManagementStates, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:CustomizedPaymentTransactionRepositoryReturns the transactions recorded before the the specified time, excluding those with the specified management states- Specified by:
 findAllByDateRecordedBeforeAndManagementStateIsNotInin interfaceCustomizedPaymentTransactionRepository<D extends JpaPaymentTransaction>- Parameters:
 date- the date until which the transaction was recordedtransactionManagementStates- the excluded management states for the transactionspageable- The requested page of results from the database.context- Request context information around sandbox and multitenant state- Returns:
 - the transactions excluding those with the specified management states
 
 - 
findTransactionsToReverse
public org.springframework.data.domain.Page<D> findTransactionsToReverse(Duration reversalCandidateTtl, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:CustomizedPaymentTransactionRepositoryReturns the payment transactions that are eligible for reverse. By default this method returns the transaction withDefaultTransactionStatuses.SUCCESSstatus,DefaultTransactionManagementStates.REVERSAL_CANDIDATEmanagement state and that have not been updated within a specified duration.If the transaction management state is
DefaultTransactionManagementStates.REQUIRES_REVERSALthe update time is not considered.- Specified by:
 findTransactionsToReversein interfaceCustomizedPaymentTransactionRepository<D extends JpaPaymentTransaction>- Parameters:
 reversalCandidateTtl- the amount of time the payment transactions have not been updated and can be reversedpage- The requested page of results from the databasecontext- context information related to multitenancy- Returns:
 - the payment transactions that are eligible for reversal
 - See Also:
 
 - 
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
 - 
setRepository
 - 
getRepository
 - 
getNarrowingHelper
protected com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowingHelper getNarrowingHelper() 
 -