|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
JobRepositoryFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected ExecutionContextDao |
createExecutionContextDao()
|
protected JobExecutionDao |
createJobExecutionDao()
|
protected JobInstanceDao |
createJobInstanceDao()
|
protected StepExecutionDao |
createStepExecutionDao()
|
void |
setDatabaseType(java.lang.String dbType)
Sets the database type. |
void |
setDataSource(javax.sql.DataSource dataSource)
Public setter for the DataSource. |
void |
setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
|
void |
setLobHandler(org.springframework.jdbc.support.lob.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(java.lang.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 org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public JobRepositoryFactoryBean()
| Method Detail |
|---|
public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
lobHandler - the LobHandler to setLobHandlerpublic 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(javax.sql.DataSource dataSource)
DataSource.
dataSource - a DataSourcepublic void setDatabaseType(java.lang.String dbType)
dbType - as specified by
DefaultDataFieldMaxValueIncrementerFactorypublic void setTablePrefix(java.lang.String tablePrefix)
tablePrefix - public void setIncrementerFactory(DataFieldMaxValueIncrementerFactory incrementerFactory)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractJobRepositoryFactoryBeanjava.lang.Exception
protected JobInstanceDao createJobInstanceDao()
throws java.lang.Exception
createJobInstanceDao in class AbstractJobRepositoryFactoryBeanJobInstanceDao implementation.
java.lang.Exception
protected JobExecutionDao createJobExecutionDao()
throws java.lang.Exception
createJobExecutionDao in class AbstractJobRepositoryFactoryBeanJobExecutionDao implementation.
java.lang.Exception
protected StepExecutionDao createStepExecutionDao()
throws java.lang.Exception
createStepExecutionDao in class AbstractJobRepositoryFactoryBeanStepExecutionDao implementation.
java.lang.Exception
protected ExecutionContextDao createExecutionContextDao()
throws java.lang.Exception
createExecutionContextDao in class AbstractJobRepositoryFactoryBeanExecutionContextDao implementation.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||