|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.admin.service.SimpleJobServiceFactoryBean
public class SimpleJobServiceFactoryBean
A factory for a JobService that makes the configuration of its
various ingredients as convenient as possible.
| Constructor Summary | |
|---|---|
SimpleJobServiceFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected org.springframework.batch.core.repository.dao.ExecutionContextDao |
createExecutionContextDao()
|
protected SearchableJobExecutionDao |
createJobExecutionDao()
|
protected SearchableJobInstanceDao |
createJobInstanceDao()
|
protected SearchableStepExecutionDao |
createStepExecutionDao()
|
JobService |
getObject()
Create a SimpleJobService from the configuration provided. |
java.lang.Class<? extends JobService> |
getObjectType()
Tells the containing bean factory what kind of object is the product of getObject(). |
boolean |
isSingleton()
Allows optimisation in the containing bean factory. |
void |
setDatabaseType(java.lang.String dbType)
Sets the database type. |
void |
setDataSource(javax.sql.DataSource dataSource)
Public setter for the DataSource. |
void |
setIncrementerFactory(org.springframework.batch.item.database.support.DataFieldMaxValueIncrementerFactory incrementerFactory)
A factory for incrementers (used to build primary keys for meta data). |
void |
setJobLauncher(org.springframework.batch.core.launch.JobLauncher jobLauncher)
The launcher used to run jobs. |
void |
setJobLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
A registry that can be used to locate jobs to run. |
void |
setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository)
The repository used to store and update jobs and step executions. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleJobServiceFactoryBean()
| 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(org.springframework.batch.item.database.support.DataFieldMaxValueIncrementerFactory incrementerFactory)
DefaultDataFieldMaxValueIncrementerFactory.
incrementerFactory - the incrementer factory to setpublic void setJobRepository(org.springframework.batch.core.repository.JobRepository jobRepository)
jobRepository - the JobRepository to setpublic void setJobLauncher(org.springframework.batch.core.launch.JobLauncher jobLauncher)
jobLauncher - a JobLauncherpublic void setJobLocator(org.springframework.batch.core.configuration.ListableJobLocator jobLocator)
jobLocator - a JobLocator
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
protected SearchableJobInstanceDao createJobInstanceDao()
throws java.lang.Exception
java.lang.Exception
protected SearchableJobExecutionDao createJobExecutionDao()
throws java.lang.Exception
java.lang.Exception
protected SearchableStepExecutionDao createStepExecutionDao()
throws java.lang.Exception
java.lang.Exception
protected org.springframework.batch.core.repository.dao.ExecutionContextDao createExecutionContextDao()
throws java.lang.Exception
java.lang.Exception
public JobService getObject()
throws java.lang.Exception
SimpleJobService from the configuration provided.
getObject in interface org.springframework.beans.factory.FactoryBean<JobService>java.lang.ExceptionFactoryBean.getObject()public java.lang.Class<? extends JobService> getObjectType()
getObject().
getObjectType in interface org.springframework.beans.factory.FactoryBean<JobService>FactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<JobService>FactoryBean.isSingleton()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||