public abstract class AbstractJobRepositoryFactoryBean extends java.lang.Object implements org.springframework.beans.factory.FactoryBean<JobRepository>, org.springframework.beans.factory.InitializingBean
FactoryBean that automates the creation of a
SimpleJobRepository. Declares abstract methods for providing DAO
object implementations.JobRepositoryFactoryBean,
MapJobRepositoryFactoryBean| Constructor and Description |
|---|
AbstractJobRepositoryFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected abstract ExecutionContextDao |
createExecutionContextDao() |
protected abstract JobExecutionDao |
createJobExecutionDao() |
protected abstract JobInstanceDao |
createJobInstanceDao() |
protected abstract StepExecutionDao |
createStepExecutionDao() |
JobRepository |
getJobRepository()
Deprecated.
use
getObject() instead |
JobRepository |
getObject() |
java.lang.Class<JobRepository> |
getObjectType()
The type of object to be returned from
getObject(). |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
The transaction manager used in this factory.
|
boolean |
isSingleton() |
void |
setIsolationLevelForCreate(java.lang.String isolationLevelForCreate)
public setter for the isolation level to be used for the transaction when
job execution entities are initially created.
|
void |
setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
Public setter for the
PlatformTransactionManager. |
void |
setValidateTransactionState(boolean validateTransactionState)
Flag to determine whether to check for an existing transaction when a
JobExecution is created.
|
protected abstract JobInstanceDao createJobInstanceDao() throws java.lang.Exception
JobInstanceDao implementation.java.lang.Exceptionprotected abstract JobExecutionDao createJobExecutionDao() throws java.lang.Exception
JobExecutionDao implementation.java.lang.Exceptionprotected abstract StepExecutionDao createStepExecutionDao() throws java.lang.Exception
StepExecutionDao implementation.java.lang.Exceptionprotected abstract ExecutionContextDao createExecutionContextDao() throws java.lang.Exception
ExecutionContextDao implementation.java.lang.Exceptionpublic java.lang.Class<JobRepository> getObjectType()
getObject().getObjectType in interface org.springframework.beans.factory.FactoryBean<JobRepository>FactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<JobRepository>public void setValidateTransactionState(boolean validateTransactionState)
validateTransactionState - the flag to setpublic void setIsolationLevelForCreate(java.lang.String isolationLevelForCreate)
isolationLevelForCreate - the isolation level name to setSimpleJobRepository.createJobExecution(String,
org.springframework.batch.core.JobParameters)public void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
PlatformTransactionManager.transactionManager - the transactionManager to setpublic org.springframework.transaction.PlatformTransactionManager getTransactionManager()
public JobRepository getJobRepository() throws java.lang.Exception
getObject() insteadJobRepository without
a cast.JobRepository from getObject()java.lang.Exception - if the repository could not be createdpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic JobRepository getObject() throws java.lang.Exception
getObject in interface org.springframework.beans.factory.FactoryBean<JobRepository>java.lang.Exception