|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao org.springframework.batch.core.repository.dao.JdbcExecutionContextDao
public class JdbcExecutionContextDao
JDBC DAO for ExecutionContext
.
Stores execution context data related to both Step and Job using
a different table for each.
Field Summary |
---|
Fields inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao |
---|
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX |
Constructor Summary | |
---|---|
JdbcExecutionContextDao()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
ExecutionContext |
getExecutionContext(JobExecution jobExecution)
|
ExecutionContext |
getExecutionContext(StepExecution stepExecution)
|
void |
saveExecutionContext(JobExecution jobExecution)
Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet. |
void |
saveExecutionContext(StepExecution stepExecution)
Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet. |
void |
setLobHandler(LobHandler lobHandler)
|
void |
setShortContextLength(int shortContextLength)
The maximum size that an execution context can have and still be stored completely in short form in the column SHORT_CONTEXT . |
void |
updateExecutionContext(JobExecution jobExecution)
Persist the updates of execution context associated with the given jobExecution. |
void |
updateExecutionContext(StepExecution stepExecution)
Persist the updates of execution context associated with the given stepExecution. |
Methods inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao |
---|
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JdbcExecutionContextDao()
Method Detail |
---|
public void setShortContextLength(int shortContextLength)
SHORT_CONTEXT
.
Anything longer than this will overflow into large-object storage, and
the first part only will be retained in the short form for readability.
Default value is 2500. Clients using multi-bytes charsets on the database
server may need to reduce this value to as little as half the value of
the column size.
shortContextLength
- public ExecutionContext getExecutionContext(JobExecution jobExecution)
getExecutionContext
in interface ExecutionContextDao
public ExecutionContext getExecutionContext(StepExecution stepExecution)
getExecutionContext
in interface ExecutionContextDao
public void updateExecutionContext(JobExecution jobExecution)
ExecutionContextDao
updateExecutionContext
in interface ExecutionContextDao
public void updateExecutionContext(StepExecution stepExecution)
ExecutionContextDao
updateExecutionContext
in interface ExecutionContextDao
public void saveExecutionContext(JobExecution jobExecution)
ExecutionContextDao
saveExecutionContext
in interface ExecutionContextDao
public void saveExecutionContext(StepExecution stepExecution)
ExecutionContextDao
saveExecutionContext
in interface ExecutionContextDao
public void setLobHandler(LobHandler lobHandler)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractJdbcBatchMetadataDao
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |