Class JpaCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
java.lang.Object
com.broadleafcommerce.billing.provider.jpa.repository.JpaCustomizedBillingEventPaymentRepository<D>
- All Implemented Interfaces:
CustomizedBillingEventPaymentRepository<D>,org.springframework.beans.factory.InitializingBean
public class JpaCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
extends Object
implements CustomizedBillingEventPaymentRepository<D>, org.springframework.beans.factory.InitializingBean
-
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedBillingEventPaymentRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidfindByBillingEventId(String billingEventId, String paymentStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventPaymententities byJpaBillingEventIdfindByBillingEventIds(List<String> billingEventIds, String paymentStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findByPaymentStatusAndDateRange(PaymentStatusEnum status, Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findByPaymentStatusAndProcessTypeAndDateRange(PaymentStatusEnum status, String paymentProcessType, Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findByPaymentStatusAndRetryDateRange(PaymentStatusEnum status, Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventPaymentwhose Retry Date falls between startDate and endDatefindBySubscriptionRef(String subscriptionRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventPaymententities byJpaSubscriptionIdprotected jakarta.persistence.EntityManagerprotected com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowingHelpervoidsetRepository(BillingEventPaymentRepository<D> repository) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.billing.repository.CustomizedBillingEventPaymentRepository
findAllPaymentsByEventId, findAllPaymentsByStatusAndDatesRange, findAllPaymentsByStatusAndRetryDateRange, findAllPaymentsBySubscriptionRef
-
Constructor Details
-
JpaCustomizedBillingEventPaymentRepository
public JpaCustomizedBillingEventPaymentRepository(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
setRepository
-
findByBillingEventId
public List<D> findByBillingEventId(String billingEventId, @Nullable String paymentStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedBillingEventPaymentRepositoryFind all theJpaBillingEventPaymententities byJpaBillingEventId- Specified by:
findByBillingEventIdin interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
findByBillingEventIds
public List<D> findByBillingEventIds(List<String> billingEventIds, @Nullable String paymentStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
findByBillingEventIdsin interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
findBySubscriptionRef
public List<D> findBySubscriptionRef(String subscriptionRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedBillingEventPaymentRepositoryFind all theJpaBillingEventPaymententities byJpaSubscriptionId- Specified by:
findBySubscriptionRefin interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
findByPaymentStatusAndDateRange
public List<D> findByPaymentStatusAndDateRange(PaymentStatusEnum status, @Nullable Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
findByPaymentStatusAndDateRangein interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
findByPaymentStatusAndProcessTypeAndDateRange
public List<D> findByPaymentStatusAndProcessTypeAndDateRange(PaymentStatusEnum status, String paymentProcessType, @Nullable Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
findByPaymentStatusAndProcessTypeAndDateRangein interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
findByPaymentStatusAndRetryDateRange
public List<D> findByPaymentStatusAndRetryDateRange(PaymentStatusEnum status, @Nullable Date startDate, Date endDate, org.springframework.data.domain.Pageable resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedBillingEventPaymentRepositoryFind all theJpaBillingEventPaymentwhose Retry Date falls between startDate and endDate- Specified by:
findByPaymentStatusAndRetryDateRangein interfaceCustomizedBillingEventPaymentRepository<D extends JpaBillingEventPayment>
-
getNarrowingHelper
protected com.broadleafcommerce.data.tracking.jpa.filtering.narrow.JpaNarrowingHelper getNarrowingHelper() -
getEntityManager
protected jakarta.persistence.EntityManager getEntityManager()
-