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 Type
    Method
    Description
    void
    deleteByJobIdAndContextIdIn(@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 approach
    void
    deleteByJobIdAndContextIdNotIn(@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 approach
    org.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 of ScheduledJobExecutionDetail by its scheduledJobId

    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

    Methods 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 of ScheduledJobExecutionDetail by its scheduledJobId
      Parameters:
      jobId - the scheduledJobId by which the executionDetails are to be fetched
      page - the requested page of results from the database
      contextInfo - the context info
      Returns:
      a paged list of ScheduledJobExecutionDetail by 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 removed
      jobId - - id of the ScheduledJob that execution details belong to
      contextInfo -
    • 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 delete
      jobId - - id of the ScheduledJob that execution details belong to
      contextInfo -