|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
public class JdbcStepExecutionDao
Jdbc implementation of StepExecutionDao.
Allows customization of the tables names used by Spring Batch for step meta
data via a prefix property.
Uses sequences or tables (via Spring's DataFieldMaxValueIncrementer
abstraction) to create all primary keys before inserting a new row. All
objects are checked to ensure all fields to be stored are not null. If any
are found to be null, an IllegalArgumentException will be thrown. This could
be left to JdbcTemplate, however, the exception will be fairly vague, and
fails to highlight which field caused the exception.
StepExecutionDao| Field Summary |
|---|
| Fields inherited from class org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao |
|---|
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX |
| Constructor Summary | |
|---|---|
JdbcStepExecutionDao()
|
|
| Method Summary | |
|---|---|
void |
addStepExecutions(JobExecution jobExecution)
Retrieve all the StepExecution for the parent JobExecution. |
void |
afterPropertiesSet()
|
StepExecution |
getStepExecution(JobExecution jobExecution,
java.lang.Long stepExecutionId)
Retrieve a StepExecution from its id. |
void |
saveStepExecution(StepExecution stepExecution)
Save a StepExecution. |
void |
setExitMessageLength(int exitMessageLength)
Public setter for the exit message length in database. |
void |
setStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer)
|
void |
updateStepExecution(StepExecution stepExecution)
Update the given StepExecution Preconditions: Id must not be null. |
| 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 JdbcStepExecutionDao()
| Method Detail |
|---|
public void setExitMessageLength(int exitMessageLength)
exitMessageLength - the exitMessageLength to setpublic void setStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractJdbcBatchMetadataDaojava.lang.Exceptionpublic void saveStepExecution(StepExecution stepExecution)
saveStepExecution in interface StepExecutionDaoStepExecutionDao.saveStepExecution(StepExecution)public void updateStepExecution(StepExecution stepExecution)
StepExecutionDao
updateStepExecution in interface StepExecutionDao
public StepExecution getStepExecution(JobExecution jobExecution,
java.lang.Long stepExecutionId)
StepExecutionDaoStepExecution from its id.
getStepExecution in interface StepExecutionDaojobExecution - the parent JobExecutionstepExecutionId - the step execution id
StepExecutionpublic void addStepExecutions(JobExecution jobExecution)
StepExecutionDaoStepExecution for the parent JobExecution.
addStepExecutions in interface StepExecutionDaojobExecution - the parent job execution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||