Interface CustomizedScheduledJobExecutionDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Known Subinterfaces:
JpaScheduledJobExecutionDetailRepository<D>, ScheduledJobExecutionDetailRepository<D>
All Known Implementing Classes:
JpaCustomizedScheduledJobExecutionDetailRepository

public interface CustomizedScheduledJobExecutionDetailRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Repository fragment supporting additional persistence functionality related to 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 Details

    • updateScheduledJobExecutionDetails

      D updateScheduledJobExecutionDetails(String contextId, String executionStatus, String timeType, Instant time, @Nullable String messageType, @Nullable String message, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Updates the ScheduledJobExecutionDetail with the supplied values of status, time and message
      Parameters:
      contextId - the ID of the ScheduledJobExecutionDetail to update
      executionStatus - the status to update the detail to
      timeType - the time field to update
      time - the value of time to update to
      messageType - the message field to update
      message - the value of the message to update to
      contextInfo - the context info
      Returns:
      the updated JpaScheduledJobExecutionDetail
    • findFirstByJobIdAndStatusOrderByTriggerTimeDesc

      Optional<D> findFirstByJobIdAndStatusOrderByTriggerTimeDesc(String jobId, String executionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds the most recent ScheduledJobExecutionDetail with the given scheduledJobId and executionStatus
      Parameters:
      jobId - the ID of the scheduledJob by which the executionDetail is to be fetched
      executionStatus - the status of the scheduledJob by which the executionDetail is to be fetched
      contextInfo - the context info
      Returns:
      the optional JpaScheduledJobExecutionDetail
    • getManagedType

      Class<D> getManagedType()
      Retrieves the type determined to be the managed type for this repository
      Returns:
      the Class of the entity managed by this repository