Interface VariantRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedVariantRepository<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:
JpaVariantRepository<D>
@NoRepositoryBean
public interface VariantRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedVariantRepository<D>
- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByExternalIdIn(Collection<String> externalIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) org.springframework.data.domain.Page<D>findAllByProductContextId(String productContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<D>findAllByProductContextIdAndSkuContainingIgnoreCase(String productContextId, String sku, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) findAllBySkuIn(Collection<String> skus, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) findByProductContextIdAndSkuIgnoreCase(String productContextId, String sku, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Methods inherited from interface com.broadleafcommerce.catalog.repository.product.CustomizedVariantRepository
countNonProductionRecordsByProductIdsInTenant, findAllByContextIdIn, findAllByProductContextIdIn, findAllByProductContextIdInAndSkuIn, findAllByVariantOrProductContextIdMethods 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
-
findAllByProductContextId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByProductContextId(String productContextId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
productContextId- the context ID of the product to search forpage- the requested page of results from the databasefilters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.contextInfo- context information around sandbox and multitenant state- Returns:
- a page of the variants associated with the given product context ID
-
findAllByProductContextIdAndSkuContainingIgnoreCase
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByProductContextIdAndSkuContainingIgnoreCase(String productContextId, String sku, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
findByProductContextIdAndSkuIgnoreCase
-
findAllByExternalIdIn
@Policy(operationTypes=READ) List<D> findAllByExternalIdIn(Collection<String> externalIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Parameters:
externalIds- a list of external IDscontext- context information around sandbox and multitenant state- Returns:
- a List of variants with the corresponding external IDs provided
-
findAllBySkuIn
@Policy(operationTypes=READ) List<D> findAllBySkuIn(Collection<String> skus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Parameters:
skus- a list of SKUscontext- context information around sandbox and multitenant state- Returns:
- a List of variants with the corresponding SKUs provided
-