Interface AccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
- All Superinterfaces:
CustomizedAccountAddressRepository<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:
JpaAccountAddressRepository<D>
@NoRepositoryBean public interface AccountAddressRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedAccountAddressRepository<D>
Repository
for persistent counter-parts ofAccountAddress
- Author:
- Chris Kittrell (ckittrell)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<D>
findByAccountContextId(String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds all of the AccountAddress relationships in the database associated with the given account context ID.Optional<D>
findByContextIdAndAccountContextId(String contextId, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds anAccountAddress
in the database associated with the given context ID & account context ID.-
Methods inherited from interface com.broadleafcommerce.customer.repository.CustomizedAccountAddressRepository
clearDefaultForAddressType
-
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
-
-
-
-
Method Detail
-
findByAccountContextId
@NonNull @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByAccountContextId(@NonNull String accountId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds all of the AccountAddress relationships in the database associated with the given account context ID.- Parameters:
accountId
- the account context ID to find the relationships forfilters
- additional filters to apply in the query. Should beEmptyNode
if no additional filters should be applied.page
- the requested page of results from the databasecontextInfo
- context surrounding site context- Returns:
- the AccountAddress relationships in the database that match the given account context ID
-
findByContextIdAndAccountContextId
@Policy(operationTypes=READ) Optional<D> findByContextIdAndAccountContextId(@NonNull String contextId, @NonNull String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Finds anAccountAddress
in the database associated with the given context ID & account context ID.- Parameters:
contextId
- the ID of the accountAddressaccountId
- the account context ID to find the relationship forcontextInfo
- context surrounding site context- Returns:
- an AccountAddress associated with the given context ID & account context ID.
-
-