|
||||||||||
| 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
public abstract class AbstractJobRepositoryFactoryBean
A FactoryBean that automates the creation of a
SimpleJobRepository. Declares abstract methods for providing DAO
object implementations.
JobRepositoryFactoryBean,
MapJobRepositoryFactoryBean| Constructor Summary | |
|---|---|
AbstractJobRepositoryFactoryBean()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected abstract ExecutionContextDao |
createExecutionContextDao()
|
protected abstract JobExecutionDao |
createJobExecutionDao()
|
protected abstract JobInstanceDao |
createJobInstanceDao()
|
protected abstract StepExecutionDao |
createStepExecutionDao()
|
JobRepository |
getJobRepository()
Convenience method for clients to grab the JobRepository without
a cast. |
Object |
getObject()
|
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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractJobRepositoryFactoryBean()
| Method Detail |
|---|
protected abstract JobInstanceDao createJobInstanceDao()
throws Exception
JobInstanceDao implementation.
Exception
protected abstract JobExecutionDao createJobExecutionDao()
throws Exception
JobExecutionDao implementation.
Exception
protected abstract StepExecutionDao createStepExecutionDao()
throws Exception
StepExecutionDao implementation.
Exception
protected abstract ExecutionContextDao createExecutionContextDao()
throws Exception
ExecutionContextDao implementation.
Exceptionpublic Class<JobRepository> getObjectType()
getObject().
getObjectType in interface org.springframework.beans.factory.FactoryBeanFactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic void setValidateTransactionState(boolean validateTransactionState)
validateTransactionState - the flag to setpublic void setIsolationLevelForCreate(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 Exception
JobRepository without
a cast.
JobRepository from getObject()
Exception - if the repository could not be created
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanException
public Object getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBeanException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||