类 JobExplorerFactoryBean
- java.lang.Object
- org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
- org.springframework.batch.core.explore.support.JobExplorerFactoryBean
- 所有已实现的接口:
org.springframework.beans.factory.FactoryBean<JobExplorer>
,org.springframework.beans.factory.InitializingBean
public class JobExplorerFactoryBean extends AbstractJobExplorerFactoryBean implements org.springframework.beans.factory.InitializingBean
AFactoryBean
that automates the creation of aSimpleJobExplorer
using JDBC DAO implementations. Requires the user to describe what kind of database they are using.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 JobExplorerFactoryBean()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
protected ExecutionContextDao
createExecutionContextDao()
protected JobExecutionDao
createJobExecutionDao()
protected JobInstanceDao
createJobInstanceDao()
protected StepExecutionDao
createStepExecutionDao()
JobExplorer
getObject()
void
setDataSource(javax.sql.DataSource dataSource)
Public setter for theDataSource
.void
setJdbcOperations(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
Public setter for theJdbcOperations
.void
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
The lob handler to use when savingExecutionContext
instances.void
setSerializer(ExecutionContextSerializer serializer)
A custom implementation of theExecutionContextSerializer
.void
setTablePrefix(java.lang.String tablePrefix)
Sets the table prefix for all the batch meta-data tables.从类继承的方法 org.springframework.batch.core.explore.support.AbstractJobExplorerFactoryBean
getObjectType, isSingleton
构造器详细资料
JobExplorerFactoryBean
public JobExplorerFactoryBean()
方法详细资料
setSerializer
public void setSerializer(ExecutionContextSerializer serializer)
A custom implementation of theExecutionContextSerializer
. The default, if not injected, is theXStreamExecutionContextStringSerializer
.- 参数:
serializer
- used to serialize/deserialize anExecutionContext
- 另请参阅:
ExecutionContextSerializer
setDataSource
public void setDataSource(javax.sql.DataSource dataSource)
Public setter for theDataSource
.- 参数:
dataSource
- aDataSource
setJdbcOperations
public void setJdbcOperations(org.springframework.jdbc.core.JdbcOperations jdbcOperations)
Public setter for theJdbcOperations
. If this property is not set explicitly, a newJdbcTemplate
will be created for the configured DataSource by default.- 参数:
jdbcOperations
- aJdbcOperations
setTablePrefix
public void setTablePrefix(java.lang.String tablePrefix)
Sets the table prefix for all the batch meta-data tables.- 参数:
tablePrefix
- prefix for the batch meta-data tables
setLobHandler
public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
The lob handler to use when savingExecutionContext
instances. Defaults to null which works for most databases.- 参数:
lobHandler
- Large object handler for savingExecutionContext
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
createExecutionContextDao
protected ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
- 指定者:
createExecutionContextDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
ExecutionContextDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during ExecutionContextDao creation.
createJobInstanceDao
protected JobInstanceDao createJobInstanceDao() throws java.lang.Exception
- 指定者:
createJobInstanceDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
JobInstanceDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during JobInstanceDao creation.
createJobExecutionDao
protected JobExecutionDao createJobExecutionDao() throws java.lang.Exception
- 指定者:
createJobExecutionDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
JobExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during JobExecutionDao creation.
createStepExecutionDao
protected StepExecutionDao createStepExecutionDao() throws java.lang.Exception
- 指定者:
createStepExecutionDao
在类中AbstractJobExplorerFactoryBean
- 返回:
- fully configured
StepExecutionDao
implementation. - 抛出:
java.lang.Exception
- thrown if error occurs during StepExecutionDao creation.
getObject
public JobExplorer getObject() throws java.lang.Exception
- 指定者:
getObject
在接口中org.springframework.beans.factory.FactoryBean<JobExplorer>
- 抛出:
java.lang.Exception