Externalise lob handler reference

This commit is contained in:
dsyer
2008-02-27 09:51:20 +00:00
parent 36fcddb20e
commit 219e9a08a4
3 changed files with 9 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ batch.database.vendor=HSQLDB
batch.schema.script=schema-hsqldb.sql
batch.business.schema.script=business-schema-hsqldb.sql
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.HsqlMaxValueIncrementer
batch.lob.handler.class=org.springframework.jdbc.support.lob.DefaultLobHandler
batch.football.job.commit.interval=2
# Other platforms:
# org.springframework.jdbc.support.incrementer.DB2SequenceMaxValueIncrementer

View File

@@ -58,6 +58,8 @@
<property name="ignoreUnresolvablePlaceholders" value="false" />
<property name="order" value="1" />
</bean>
<bean id="lobHandler" class="${batch.lob.handler.class}"/>
<bean id="incrementerParent"
class="${batch.database.incrementer.class}" abstract="true">

View File

@@ -32,6 +32,8 @@
<aop:scoped-proxy />
<property name="dataSource"
ref="dataSource" />
<property name="lobHandler"
ref="lobHandler" />
<property name="incrementer">
<bean parent="incrementerParent">
<property name="incrementerName"
@@ -50,6 +52,8 @@
class="org.springframework.batch.sample.item.reader.StagingItemReader"
scope="step">
<aop:scoped-proxy />
<property name="lobHandler"
ref="lobHandler" />
<property name="dataSource"
ref="dataSource" />
</bean>