org.springframework.batch.core.repository.support
Class JobRepositoryFactoryBean
java.lang.Object
org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean
org.springframework.batch.core.repository.support.JobRepositoryFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
public class JobRepositoryFactoryBean
- extends AbstractJobRepositoryFactoryBean
- implements org.springframework.beans.factory.InitializingBean
A FactoryBean that automates the creation of a
SimpleJobRepository using JDBC DAO implementations which persist
batch metadata in database. Requires the user to describe what kind of
database they are using.
- Author:
- Ben Hale, Lucas Ward
|
Field Summary |
protected static org.apache.commons.logging.Log |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final org.apache.commons.logging.Log logger
JobRepositoryFactoryBean
public JobRepositoryFactoryBean()
setExitMessageLength
public void setExitMessageLength(int exitMessageLength)
- Public setter for the exit message length in database. Do not set this if
you haven't modified the schema. Note this value will be used for both
JdbcJobExecutionDao and JdbcStepExecutionDao.
- Parameters:
exitMessageLength - the exitMessageLength to set
setDataSource
public void setDataSource(javax.sql.DataSource dataSource)
- Public setter for the
DataSource.
- Parameters:
dataSource - a DataSource
setDatabaseType
public void setDatabaseType(java.lang.String dbType)
- Sets the database type.
- Parameters:
dbType - as specified by
DefaultDataFieldMaxValueIncrementerFactory
setTablePrefix
public void setTablePrefix(java.lang.String tablePrefix)
- Sets the table prefix for all the batch meta-data tables.
- Parameters:
tablePrefix -
setIncrementerFactory
public void setIncrementerFactory(org.springframework.batch.item.database.support.DataFieldMaxValueIncrementerFactory incrementerFactory)
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSet in class AbstractJobRepositoryFactoryBean
- Throws:
java.lang.Exception
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao()
throws java.lang.Exception
- Specified by:
createJobInstanceDao in class AbstractJobRepositoryFactoryBean
- Returns:
- fully configured
JobInstanceDao implementation.
- Throws:
java.lang.Exception
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao()
throws java.lang.Exception
- Specified by:
createJobExecutionDao in class AbstractJobRepositoryFactoryBean
- Returns:
- fully configured
JobExecutionDao implementation.
- Throws:
java.lang.Exception
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao()
throws java.lang.Exception
- Specified by:
createStepExecutionDao in class AbstractJobRepositoryFactoryBean
- Returns:
- fully configured
StepExecutionDao implementation.
- Throws:
java.lang.Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao()
throws java.lang.Exception
- Specified by:
createExecutionContextDao in class AbstractJobRepositoryFactoryBean
- Returns:
- fully configured
ExecutionContextDao implementation.
- Throws:
java.lang.Exception
Copyright © 2009. All Rights Reserved.