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

All Superinterfaces:
CustomizedCreditAccountRepository<D>, 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:
JpaCreditAccountRepository<D>

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

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findAllByAccountNumberIn(List<String> accountNumbers, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit accounts for the specified account numbers
    org.springframework.data.domain.Page<D>
    findAllByOwningUserTypeAndOwningUserRefAndType(String owningUserType, String owningUserRef, String creditAccountType, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit account for the specified owning user type, user reference (customer id, account id, email etc) and credit account type.
    org.springframework.data.domain.Page<D>
    findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberIn(String owningUserType, String owningUserRef, String creditAccountType, List<String> accountNumbers, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit accounts for the specified owning user type, user reference (customer id, account id, email etc), credit account type, and account numbers
    org.springframework.data.domain.Page<D>
    findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberInAndCurrency(String owningUserType, String owningUserRef, String creditAccountType, List<String> accountNumbers, javax.money.CurrencyUnit currency, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit accounts for the specified owning user type, user reference (customer id, account id, email etc), credit account type, account numbers and currency.
    org.springframework.data.domain.Page<D>
    findAllByOwningUserTypeAndOwningUserRefAndTypeAndCurrency(String owningUserType, String owningUserRef, String creditAccountType, javax.money.CurrencyUnit currency, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit account for the specified owning user type, user reference (customer id, account id, email etc), credit account type and currency.
    org.springframework.data.domain.Page<D>
    findAllByOwningUserTypeAndType(String owningUserType, String creditAccountType, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Reads all credit account for the specified owning user type and credit account type.
    findByAccountNumber(String accountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Searches the credit account for the specified account number.
    findByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumber(String owningUserType, String owningUserRef, String creditAccountType, String accountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Searches the credit account for the specified owning user type, owning user reference (customer id, account id, email etc), credit account type and account number.
    findByOwningUserTypeAndTypeAndAccountNumber(String owningUserType, String creditAccountType, String accountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Searches the credit account for the specified owning user type, credit account type and account number.
    findByTypeAndAccountNumber(String creditAccountType, String accountNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Searches the credit account for the specified type and account number.

    Methods inherited from interface com.broadleafcommerce.creditaccount.provider.jpa.repository.CustomizedCreditAccountRepository

    findAllByContextIdAndMatchingTenant

    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

    • findByAccountNumber

      @Policy(operationTypes=READ) Optional<D> findByAccountNumber(String accountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Searches the credit account for the specified account number.
      Parameters:
      accountNumber - the credit account number
      contextInfo - context information related to multitenancy
      Returns:
      the credit account for the specified type and account number
    • findByTypeAndAccountNumber

      @Policy(operationTypes=READ) Optional<D> findByTypeAndAccountNumber(String creditAccountType, String accountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Searches the credit account for the specified type and account number.
      Parameters:
      creditAccountType - the credit account type
      accountNumber - the credit account number
      contextInfo - context information related to multitenancy
      Returns:
      the credit account for the specified type and account number
    • findByOwningUserTypeAndTypeAndAccountNumber

      @Policy(operationTypes=READ) Optional<D> findByOwningUserTypeAndTypeAndAccountNumber(String owningUserType, String creditAccountType, String accountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Searches the credit account for the specified owning user type, credit account type and account number.
      Parameters:
      owningUserType - the owning user type
      creditAccountType - the credit account type
      accountNumber - the credit account number
      contextInfo - context information related to multitenancy
      Returns:
      the credit account for the specified owning user type, credit account type and account number
    • findByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumber

      @Policy(operationTypes=READ) Optional<D> findByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumber(String owningUserType, String owningUserRef, String creditAccountType, String accountNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Searches the credit account for the specified owning user type, owning user reference (customer id, account id, email etc), credit account type and account number.
      Parameters:
      owningUserType - the owning user type
      owningUserRef - the reference to the user that owns this credit account
      creditAccountType - the type of the credit account
      accountNumber - the credit account number
      contextInfo - context information related to multitenancy
      Returns:
      the credit account for the specified owning user type, credit account type, owning user reference and account number
    • findAllByOwningUserTypeAndOwningUserRefAndType

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOwningUserTypeAndOwningUserRefAndType(String owningUserType, String owningUserRef, @Nullable String creditAccountType, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit account for the specified owning user type, user reference (customer id, account id, email etc) and credit account type.
      Parameters:
      owningUserType - the owning user type
      owningUserRef - the reference to the user that owns this credit account
      creditAccountType - the type of the credit account
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts
    • findAllByOwningUserTypeAndOwningUserRefAndTypeAndCurrency

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOwningUserTypeAndOwningUserRefAndTypeAndCurrency(String owningUserType, String owningUserRef, @Nullable String creditAccountType, javax.money.CurrencyUnit currency, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit account for the specified owning user type, user reference (customer id, account id, email etc), credit account type and currency.
      Parameters:
      owningUserType - the owning user type
      owningUserRef - the reference to the user that owns this credit account
      creditAccountType - the type of the credit account
      currency - the currency of the credit account balance
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts
    • findAllByOwningUserTypeAndType

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOwningUserTypeAndType(String owningUserType, String creditAccountType, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit account for the specified owning user type and credit account type.
      Parameters:
      owningUserType - the owning user type
      creditAccountType - the type of the credit account
      filters - An RSQL filter used to narrow query results
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts
    • findAllByAccountNumberIn

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByAccountNumberIn(List<String> accountNumbers, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit accounts for the specified account numbers
      Parameters:
      accountNumbers - the credit account numbers
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts
    • findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberIn

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberIn(String owningUserType, String owningUserRef, String creditAccountType, List<String> accountNumbers, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit accounts for the specified owning user type, user reference (customer id, account id, email etc), credit account type, and account numbers
      Parameters:
      owningUserType - the owning user type
      owningUserRef - the reference to the user that owns these credit accounts
      creditAccountType - the type of the credit account
      accountNumbers - the credit account numbers
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts
    • findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberInAndCurrency

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByOwningUserTypeAndOwningUserRefAndTypeAndAccountNumberInAndCurrency(String owningUserType, String owningUserRef, String creditAccountType, List<String> accountNumbers, javax.money.CurrencyUnit currency, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Reads all credit accounts for the specified owning user type, user reference (customer id, account id, email etc), credit account type, account numbers and currency.
      Parameters:
      owningUserType - the owning user type
      owningUserRef - the reference to the user that owns these credit accounts
      creditAccountType - the type of the credit account
      accountNumbers - the credit account numbers
      currency - the currency of the credit account balance
      page - information about which page of results to return from the database
      contextInfo - context information related to multitenancy
      Returns:
      the credit accounts