Class JpaCustomizedScheduledJobExecutionDetailRepository<D extends JpaScheduledJobExecutionDetail>
java.lang.Object
com.broadleafcommerce.scheduledjob.provider.jpa.repository.JpaCustomizedScheduledJobExecutionDetailRepository<D>
- All Implemented Interfaces:
 CustomizedScheduledJobExecutionDetailRepository<D>
public class JpaCustomizedScheduledJobExecutionDetailRepository<D extends JpaScheduledJobExecutionDetail>
extends Object
implements CustomizedScheduledJobExecutionDetailRepository<D>
- 
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedScheduledJobExecutionDetailRepository(com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)  - 
Method Summary
Modifier and TypeMethodDescriptionfindFirstByJobIdAndStatusOrderByTriggerTimeDesc(@NonNull String jobId, @NonNull String executionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds the most recentScheduledJobExecutionDetailwith the given scheduledJobId and executionStatusRetrieves the type determined to be the managed type for this repositoryprotected ScheduledJobExecutionDetailRepository<D>protected com.broadleafcommerce.common.jpa.RepositoryEntityTypeManagerprotected com.broadleafcommerce.common.extension.TypeFactoryvoidsetRepository(ScheduledJobExecutionDetailRepository<D> repository) updateScheduledJobExecutionDetails(@NonNull String contextId, @NonNull String executionStatus, @NonNull String timeType, @NonNull Instant time, String messageType, String message, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates theScheduledJobExecutionDetailwith the supplied values of status, time and message 
- 
Constructor Details
- 
JpaCustomizedScheduledJobExecutionDetailRepository
public JpaCustomizedScheduledJobExecutionDetailRepository(com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)  
 - 
 - 
Method Details
- 
setRepository
 - 
updateScheduledJobExecutionDetails
public D updateScheduledJobExecutionDetails(@NonNull @NonNull String contextId, @NonNull @NonNull String executionStatus, @NonNull @NonNull String timeType, @NonNull @NonNull Instant time, @Nullable String messageType, @Nullable String message, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedScheduledJobExecutionDetailRepositoryUpdates theScheduledJobExecutionDetailwith the supplied values of status, time and message- Specified by:
 updateScheduledJobExecutionDetailsin interfaceCustomizedScheduledJobExecutionDetailRepository<D extends JpaScheduledJobExecutionDetail>- Parameters:
 contextId- the ID of theScheduledJobExecutionDetailto 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
public Optional<D> findFirstByJobIdAndStatusOrderByTriggerTimeDesc(@NonNull @NonNull String jobId, @NonNull @NonNull String executionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedScheduledJobExecutionDetailRepositoryFinds the most recentScheduledJobExecutionDetailwith the given scheduledJobId and executionStatus- Specified by:
 findFirstByJobIdAndStatusOrderByTriggerTimeDescin interfaceCustomizedScheduledJobExecutionDetailRepository<D extends JpaScheduledJobExecutionDetail>- 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
Description copied from interface:CustomizedScheduledJobExecutionDetailRepositoryRetrieves the type determined to be the managed type for this repository- Specified by:
 getManagedTypein interfaceCustomizedScheduledJobExecutionDetailRepository<D extends JpaScheduledJobExecutionDetail>- Returns:
 - the Class of the entity managed by this repository
 
 - 
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory() - 
getRepositoryEntityTypeManager
protected com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager getRepositoryEntityTypeManager() - 
getRepository
 
 -