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="ParameterSetter" class="test.reader.TestPartitionParameterSetter" scope="step"> | |
<property name="startParam" value="#{stepExecutionContext['StartDay']}"/> | |
<property name="endParam" value="#{stepExecutionContext['EndDay']}"/> | |
</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 | |
FROM TB_PARTITION_SOURCE | |
WHERE DAY_OF_WEEK BETWEEN ? AND ?"/> | |
<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