Created
April 26, 2019 01:56
-
-
Save tkstone/b8fc50369c6f398faa4abf8e7f8a003f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="SourceMapper" | |
class="test.rowmapper.TbSourceMapper"/> | |
<bean id="ParameterSetter" class="test.reader.TestParameterSetter"> | |
<property name="param" value="col1-1"/> | |
</bean> | |
<bean id="TestReader" | |
class="org.springframework.batch.item.database.JdbcCursorItemReader" | |
scope="step"> | |
<property name="dataSource" ref="testDataSource"/> | |
<property name="sql" | |
value="SELECT COL1, COL2, COL3 | |
FROM TB_SOURCE | |
WHERE COL1 = ?"/> | |
<property name="rowMapper" | |
ref="SourceMapper"/> | |
<property name="preparedStatementSetter" ref="ParameterSetter"/> | |
<property name="fetchSize" value="100" /> | |
<property name="maxRows" value="0" /> | |
</bean> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment