|
||||||||||
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.
Field Summary | |
---|---|
protected static Log |
logger
|
Constructor Summary | |
---|---|
JobRepositoryFactoryBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected ExecutionContextDao |
createExecutionContextDao()
|
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 |
setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
|
void |
setLobHandler(LobHandler lobHandler)
A special handler for large objects. |
void |
setMaxVarCharLength(int maxVarCharLength)
Public setter for the length of long string columns in database. |
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 |
---|
getJobRepository, getObject, getObjectType, getTransactionManager, isSingleton, setIsolationLevelForCreate, setTransactionManager, setValidateTransactionState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Log logger
Constructor Detail |
---|
public JobRepositoryFactoryBean()
Method Detail |
---|
public void setLobHandler(LobHandler lobHandler)
lobHandler
- the LobHandler
to setLobHandler
public void setMaxVarCharLength(int maxVarCharLength)
JdbcJobExecutionDao
and
JdbcStepExecutionDao
and also the short version of the execution
context in JdbcExecutionContextDao
. For databases with
multi-byte character sets this number can be smaller (by up to a factor
of 2 for 2-byte characters) than the declaration of the column length in
the DDL for the tables.
maxVarCharLength
- 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
protected ExecutionContextDao createExecutionContextDao() throws Exception
createExecutionContextDao
in class AbstractJobRepositoryFactoryBean
ExecutionContextDao
implementation.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |