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 Summary
Modifier and TypeMethodDescriptionfindFirstByJobIdAndStatusOrderByTriggerTimeDesc
(String jobId, String executionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds the most recentScheduledJobExecutionDetail
with the given scheduledJobId and executionStatusRetrieves the type determined to be the managed type for this repositoryupdateScheduledJobExecutionDetails
(String contextId, String executionStatus, String timeType, Instant time, String messageType, String message, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates theScheduledJobExecutionDetail
with the supplied values of status, time and message
-
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 theScheduledJobExecutionDetail
with the supplied values of status, time and message- Parameters:
contextId
- the ID of theScheduledJobExecutionDetail
to updateexecutionStatus
- the status to update the detail totimeType
- the time field to updatetime
- the value of time to update tomessageType
- the message field to updatemessage
- the value of the message to update tocontextInfo
- 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 recentScheduledJobExecutionDetail
with the given scheduledJobId and executionStatus- Parameters:
jobId
- the ID of the scheduledJob by which the executionDetail is to be fetchedexecutionStatus
- the status of the scheduledJob by which the executionDetail is to be fetchedcontextInfo
- the context info- Returns:
- the optional
JpaScheduledJobExecutionDetail
-
getManagedType
Retrieves the type determined to be the managed type for this repository- Returns:
- the Class of the entity managed by this repository
-