IN PROGRESS - issue BATCH-340: Refactor JobRepository for greater clarity and consistency.

http://jira.springframework.org/browse/BATCH-340

StepDao split into StepInstanceDao and StepExecutionDao. AbstractJdbcBatchMetadataDao created to remove the duplications.
This commit is contained in:
robokaso
2008-02-11 16:15:24 +00:00
parent 7b26bc4f2e
commit 0824f1aeb3
19 changed files with 1020 additions and 986 deletions

View File

@@ -46,7 +46,8 @@
<bean id="jobRepository"
class="org.springframework.batch.execution.repository.SimpleJobRepository">
<constructor-arg ref="jobDao" />
<constructor-arg ref="stepDao" />
<constructor-arg ref="stepInstanceDao" />
<constructor-arg ref="stepExecutionDao" />
</bean>
<bean id="jobDao" lazy-init="true"
@@ -57,13 +58,27 @@
ref="jobExecutionIncrementer" />
</bean>
<bean id="stepDao" lazy-init="true"
<!--bean id="stepDao" lazy-init="true"
class="org.springframework.batch.execution.repository.dao.JdbcStepDao">
<property name="jdbcTemplate" ref="jdbcTemplate" />
<property name="stepIncrementer" ref="stepIncrementer" />
<property name="stepExecutionIncrementer"
ref="stepExecutionIncrementer" />
<property name="jobDao" ref="jobDao" />
</bean-->
<bean id="stepInstanceDao" lazy-init="true"
class="org.springframework.batch.execution.repository.dao.JdbcStepInstanceDao">
<property name="jdbcTemplate" ref="jdbcTemplate" />
<property name="stepIncrementer" ref="stepIncrementer" />
<property name="stepExecutionDao" ref="stepExecutionDao" />
</bean>
<bean id="stepExecutionDao" lazy-init="true"
class="org.springframework.batch.execution.repository.dao.JdbcStepExecutionDao">
<property name="jdbcTemplate" ref="jdbcTemplate" />
<property name="stepExecutionIncrementer" ref="stepExecutionIncrementer" />
<property name="jobDao" ref="jobDao" />
</bean>
<bean id="mapJobDao" lazy-init="true"