public class ListPreparedStatementSetter
extends java.lang.Object
implements org.springframework.jdbc.core.PreparedStatementSetter, org.springframework.beans.factory.InitializingBean
PreparedStatementSetter
interface that accepts
a list of values to be set on a PreparedStatement. This is usually used in
conjunction with the JdbcCursorItemReader
to allow for the replacement
of bind variables when generating the cursor. The order of the list will be
used to determine the ordering of setting variables. For example, the first
item in the list will be the first bind variable set. (i.e. it will
correspond to the first '?' in the SQL statement)Constructor and Description |
---|
ListPreparedStatementSetter() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
setParameters(java.util.List<?> parameters)
The parameter values that will be set on the PreparedStatement.
|
void |
setValues(java.sql.PreparedStatement ps) |
public void setValues(java.sql.PreparedStatement ps) throws java.sql.SQLException
setValues
in interface org.springframework.jdbc.core.PreparedStatementSetter
java.sql.SQLException
public void setParameters(java.util.List<?> parameters)
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception