Interface FeeRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedFeeRepository<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:
JpaFeeRepository<F>
public interface FeeRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedFeeRepository<D>
Repository for persistent counter-parts of Fees.- Since:
- Pricing Services 2.2.0, Release Train 2.3.0
- Author:
- Julia Lopez-Pozas (jlopezpozas)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByFeeCode(String feeCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) booleanexistsByFeeCodeAndContextIdNot(String feeCode, String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Whether there exists aFeewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid.Methods inherited from interface com.broadleafcommerce.pricing.repository.CustomizedFeeRepository
findAllByApplicationIdMethods 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
-
existsByFeeCode
@Policy(operationTypes=READ) boolean existsByFeeCode(@NonNull String feeCode, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
feeCode- The type key to matchcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- Whether there exists a
Feewhere theFee.getFeeCode()matchesfeeCode. - Since:
- Pricing Services 2.2.0, Release Train 2.3.0
-
existsByFeeCodeAndContextIdNot
@Policy(operationTypes=READ) boolean existsByFeeCodeAndContextIdNot(@NonNull String feeCode, @NonNull String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Whether there exists aFeewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid.- Parameters:
feeCode- The fee code to matchid- The id to not matchcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- Whether there exists a
Feewhere theFee.getFeeCode()matchesfeeCodeand theFee.getId()does not matchid. - Since:
- Pricing Services 2.2.0, Release Train 2.3.0
-