Class MongoExecutionContextDao
java.lang.Object
org.springframework.batch.core.repository.dao.MongoExecutionContextDao
- All Implemented Interfaces:
ExecutionContextDao
- Since:
- 5.2.0
- Author:
- Mahmoud Ben Hassine
-
Constructor Summary
ConstructorsConstructorDescriptionMongoExecutionContextDao(org.springframework.data.mongodb.core.MongoOperations mongoOperations) -
Method Summary
Modifier and TypeMethodDescriptiongetExecutionContext(JobExecution jobExecution) getExecutionContext(StepExecution stepExecution) voidsaveExecutionContext(JobExecution jobExecution) Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.voidsaveExecutionContext(StepExecution stepExecution) Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.voidsaveExecutionContexts(Collection<StepExecution> stepExecutions) Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.voidupdateExecutionContext(JobExecution jobExecution) Persist the updates of execution context associated with the given jobExecution.voidupdateExecutionContext(StepExecution stepExecution) Persist the updates of execution context associated with the given stepExecution.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.batch.core.repository.dao.ExecutionContextDao
deleteExecutionContext, deleteExecutionContext
-
Constructor Details
-
MongoExecutionContextDao
public MongoExecutionContextDao(org.springframework.data.mongodb.core.MongoOperations mongoOperations)
-
-
Method Details
-
getExecutionContext
- Specified by:
getExecutionContextin interfaceExecutionContextDao- Parameters:
jobExecution-JobExecutioninstance that contains the context.- Returns:
- execution context associated with the given jobExecution
-
getExecutionContext
- Specified by:
getExecutionContextin interfaceExecutionContextDao- Parameters:
stepExecution-StepExecutioninstance that contains the context.- Returns:
- execution context associated with the given stepExecution
-
saveExecutionContext
Description copied from interface:ExecutionContextDaoPersist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.- Specified by:
saveExecutionContextin interfaceExecutionContextDao- Parameters:
jobExecution-JobExecutioninstance that contains the context.
-
saveExecutionContext
Description copied from interface:ExecutionContextDaoPersist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.- Specified by:
saveExecutionContextin interfaceExecutionContextDao- Parameters:
stepExecution-StepExecutioninstance that contains the context.
-
saveExecutionContexts
Description copied from interface:ExecutionContextDaoPersist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.- Specified by:
saveExecutionContextsin interfaceExecutionContextDao- Parameters:
stepExecutions- a collection ofStepExecutions that contain the contexts.
-
updateExecutionContext
Description copied from interface:ExecutionContextDaoPersist the updates of execution context associated with the given jobExecution. Persistent entry should already exist for this context.- Specified by:
updateExecutionContextin interfaceExecutionContextDao- Parameters:
jobExecution-JobExecutioninstance that contains the context.
-
updateExecutionContext
Description copied from interface:ExecutionContextDaoPersist the updates of execution context associated with the given stepExecution. Persistent entry should already exist for this context.- Specified by:
updateExecutionContextin interfaceExecutionContextDao- Parameters:
stepExecution-StepExecutioninstance that contains the context.
-