Interface TransactionRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository, org.springframework.data.repository.Repository<D,String>, com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
All Known Subinterfaces:
JpaTransactionRepository<D>

@NoRepositoryBean public interface TransactionRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Author:
Dima Myroniuk (dmyroniuk)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByCreditAccountContextId(String creditAccountContextId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions for the specified credit account id.
    findAllByCreditAccountContextIdAndAmountRemainingGreaterThanOrderByExpirationDate(String creditAccountContextId, BigDecimal amount, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions for the provided credit account id, with the amount remaining greater than the specified amount
    findAllByCreditAccountContextIdAndExpirationDateLessThanEqualAndAmountRemainingGreaterThan(String creditAccountContextId, Instant timestamp, BigDecimal amount, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions for the provided credit account id, with the expiration date less than or equal to the provided timestamp, and the amount remaining greater than the specified amount
    org.springframework.data.domain.Page<D>
    findAllByExpirationDateLessThanEqualAndAmountRemainingGreaterThanOrderByCreditAccountContextId(Instant timestamp, BigDecimal amount, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads the transactions with the expiration date less than or equal to the provided timestamp, and the amount remaining greater than the specified amount

    Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository

    findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository

    archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

    exists, findAll, findAll, findAll, findAll
  • Method Details

    • findAllByCreditAccountContextId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByCreditAccountContextId(String creditAccountContextId, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions for the specified credit account id.
      Parameters:
      creditAccountContextId - the credit account id
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the page of transactions for the specified credit account id
    • findAllByExpirationDateLessThanEqualAndAmountRemainingGreaterThanOrderByCreditAccountContextId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByExpirationDateLessThanEqualAndAmountRemainingGreaterThanOrderByCreditAccountContextId(Instant timestamp, BigDecimal amount, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions with the expiration date less than or equal to the provided timestamp, and the amount remaining greater than the specified amount
      Parameters:
      timestamp - search the transactions whose expiration date is before or equal to this date
      amount - the minimum transaction remaining amount to search
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the page of transactions for the specified parameters
    • findAllByCreditAccountContextIdAndExpirationDateLessThanEqualAndAmountRemainingGreaterThan

      @Policy(operationTypes=READ) List<D> findAllByCreditAccountContextIdAndExpirationDateLessThanEqualAndAmountRemainingGreaterThan(String creditAccountContextId, Instant timestamp, BigDecimal amount, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions for the provided credit account id, with the expiration date less than or equal to the provided timestamp, and the amount remaining greater than the specified amount
      Parameters:
      creditAccountContextId - the credit account id
      timestamp - search the transactions whose expiration date is before or equal to this date
      amount - the minimum transaction remaining amount to search
      contextInfo - context information related to multitenancy
      Returns:
      the all transactions for the specified parameters
    • findAllByCreditAccountContextIdAndAmountRemainingGreaterThanOrderByExpirationDate

      @Policy(operationTypes=READ) List<D> findAllByCreditAccountContextIdAndAmountRemainingGreaterThanOrderByExpirationDate(String creditAccountContextId, BigDecimal amount, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads the transactions for the provided credit account id, with the amount remaining greater than the specified amount
      Parameters:
      creditAccountContextId - the credit account id
      amount - the minimum transaction remaining amount to search
      contextInfo - context information related to multitenancy
      Returns:
      the all transactions for the specified parameters