Interface CartNoteRepository<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:
JpaCartNoteRepository<D>
@NoRepositoryBean
public interface CartNoteRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository for persistent counterparts to CartNote- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>findAllByCartId(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allCartNotesby cart id.org.springframework.data.domain.Page<D>findAllByCartIdAndCartItemIdIsNull(String cartId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allCartNotesby cart id and has anullcart item id.Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods 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, setTrackableBehaviorUtilMethods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor
exists, findAll, findAll, findAll, findAll
-
Method Details
-
findAllByCartId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByCartId(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allCartNotesby cart id.- Parameters:
cartId- the cart id to filterfilters- additional filters to apply in the query.pageable- the page information being requestedcontextInfo- the context of the request- Returns:
- the
CartNoteswith the provided cart id
-
findAllByCartIdAndCartItemIdIsNull
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByCartIdAndCartItemIdIsNull(String cartId, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds allCartNotesby cart id and has anullcart item id.This is typically used to retrieve Cart-level notes.
- Parameters:
cartId- the cart id to filterfilters- additional filters to apply in the query.pageable- the page information being requestedcontextInfo- the context of the request- Returns:
- the
CartNoteswith the provided cart id and has anullcart item id
-