|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean org.springframework.batch.core.repository.support.JobRepositoryFactoryBean
public class JobRepositoryFactoryBean
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.
Constructor Summary | |
---|---|
JobRepositoryFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected JobExecutionDao |
createJobExecutionDao()
|
protected JobInstanceDao |
createJobInstanceDao()
|
protected StepExecutionDao |
createStepExecutionDao()
|
void |
setDatabaseType(String dbType)
Sets the database type. |
void |
setDataSource(DataSource dataSource)
Public setter for the DataSource . |
void |
setExitMessageLength(int exitMessageLength)
Public setter for the exit message length in database. |
void |
setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
|
void |
setTablePrefix(String tablePrefix)
Sets the table prefix for all the batch meta-data tables. |
Methods inherited from class org.springframework.batch.core.repository.support.AbstractJobRepositoryFactoryBean |
---|
getObject, getObjectType, initializeProxy, isSingleton, setIsolationLevelForCreate, setTransactionManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobRepositoryFactoryBean()
Method Detail |
---|
public void setExitMessageLength(int exitMessageLength)
JdbcJobExecutionDao
and JdbcStepExecutionDao
.
exitMessageLength
- the exitMessageLength to setpublic void setDataSource(DataSource dataSource)
DataSource
.
dataSource
- a DataSource
public void setDatabaseType(String dbType)
dbType
- as specified by
DefaultDataFieldMaxValueIncrementerFactory
public void setTablePrefix(String tablePrefix)
tablePrefix
- public void setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractJobRepositoryFactoryBean
Exception
protected JobInstanceDao createJobInstanceDao() throws Exception
createJobInstanceDao
in class AbstractJobRepositoryFactoryBean
JobInstanceDao
implementation.
Exception
protected JobExecutionDao createJobExecutionDao() throws Exception
createJobExecutionDao
in class AbstractJobRepositoryFactoryBean
JobExecutionDao
implementation.
Exception
protected StepExecutionDao createStepExecutionDao() throws Exception
createStepExecutionDao
in class AbstractJobRepositoryFactoryBean
StepExecutionDao
implementation.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |