Interface ScheduledJobExecutionDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedScheduledJobExecutionDetailRepository<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:
JpaScheduledJobExecutionDetailRepository<D>
@NoRepositoryBean
public interface ScheduledJobExecutionDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>, CustomizedScheduledJobExecutionDetailRepository<D>
Repository to manage
ScheduledJobExecutionDetail- Since:
- Scheduled Job Service 2.1.4, Release Train 2.1.4, Scheduled Job Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByJobIdAndContextIdIn(@NonNull String jobId, @NonNull Collection<String> executionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deletes Job Execution Details by context ids, expect list of executionIds is not more than 500, otherwise need another approachvoiddeleteByJobIdAndContextIdNotIn(@NonNull String jobId, @NonNull Collection<String> executionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deletes ALL Job Execution Details for a job except passed context ids, expects a list of executionIds is not more than 500, and the total number of records to be deleted less than 1000, otherwise need another approachorg.springframework.data.domain.Page<D>findAllByJobId(@NonNull String jobId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofScheduledJobExecutionDetailby its scheduledJobIdMethods inherited from interface com.broadleafcommerce.scheduledjob.repository.CustomizedScheduledJobExecutionDetailRepository
findFirstByJobIdAndStatusOrderByTriggerTimeDesc, getManagedType, updateScheduledJobExecutionDetailsMethods 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
-
findAllByJobId
org.springframework.data.domain.Page<D> findAllByJobId(@NonNull @NonNull String jobId, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list ofScheduledJobExecutionDetailby its scheduledJobId- Parameters:
jobId- the scheduledJobId by which the executionDetails are to be fetchedpage- the requested page of results from the databasecontextInfo- the context info- Returns:
- a paged list of
ScheduledJobExecutionDetailby its scheduledJobId
-
deleteByJobIdAndContextIdNotIn
void deleteByJobIdAndContextIdNotIn(@NonNull @NonNull String jobId, @NonNull @NonNull Collection<String> executionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deletes ALL Job Execution Details for a job except passed context ids, expects a list of executionIds is not more than 500, and the total number of records to be deleted less than 1000, otherwise need another approach- Parameters:
executionIds- - List of PKs of execution details to keep, ALL not included in this list will be removedjobId- - id of theScheduledJobthat execution details belong tocontextInfo-
-
deleteByJobIdAndContextIdIn
void deleteByJobIdAndContextIdIn(@NonNull @NonNull String jobId, @NonNull @NonNull Collection<String> executionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deletes Job Execution Details by context ids, expect list of executionIds is not more than 500, otherwise need another approach- Parameters:
executionIds- - List of PKs of execution details to deletejobId- - id of theScheduledJobthat execution details belong tocontextInfo-
-