org.springframework.batch.core.repository.dao
Class JdbcExecutionContextDao
java.lang.Object
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
org.springframework.batch.core.repository.dao.JdbcExecutionContextDao
- All Implemented Interfaces:
- ExecutionContextDao, InitializingBean
public class JdbcExecutionContextDao
- extends AbstractJdbcBatchMetadataDao
- implements ExecutionContextDao
JDBC DAO for ExecutionContext
.
Stores execution context data related to both Step and Job using
discriminator column to distinguish between the two.
- Author:
- Lucas Ward, Robert Kasanicky, Thomas Risberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcExecutionContextDao
public JdbcExecutionContextDao()
getExecutionContext
public ExecutionContext getExecutionContext(JobExecution jobExecution)
- Specified by:
getExecutionContext
in interface ExecutionContextDao
- Returns:
- execution context associated with the given jobExecution
getExecutionContext
public ExecutionContext getExecutionContext(StepExecution stepExecution)
- Specified by:
getExecutionContext
in interface ExecutionContextDao
- Returns:
- execution context associated with the given stepExecution
updateExecutionContext
public void updateExecutionContext(JobExecution jobExecution)
- Description copied from interface:
ExecutionContextDao
- Persist the updates of execution context associated with the given
jobExecution. Persistent entry should already exist for this context.
- Specified by:
updateExecutionContext
in interface ExecutionContextDao
updateExecutionContext
public void updateExecutionContext(StepExecution stepExecution)
- Description copied from interface:
ExecutionContextDao
- Persist the updates of execution context associated with the given
stepExecution. Persistent entry should already exist for this context.
- Specified by:
updateExecutionContext
in interface ExecutionContextDao
saveExecutionContext
public void saveExecutionContext(JobExecution jobExecution)
- Description copied from interface:
ExecutionContextDao
- Persist the execution context associated with the given jobExecution,
persistent entry for the context should not exist yet.
- Specified by:
saveExecutionContext
in interface ExecutionContextDao
saveExecutionContext
public void saveExecutionContext(StepExecution stepExecution)
- Description copied from interface:
ExecutionContextDao
- Persist the execution context associated with the given stepExecution,
persistent entry for the context should not exist yet.
- Specified by:
saveExecutionContext
in interface ExecutionContextDao
setLobHandler
public void setLobHandler(LobHandler lobHandler)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class AbstractJdbcBatchMetadataDao
- Throws:
Exception
Copyright © 2009 SpringSource. All Rights Reserved.