public class ListPreparedStatementSetter extends 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(List<?> parameters)
The parameter values that will be set on the PreparedStatement.
|
void |
setValues(PreparedStatement ps) |
public void setValues(PreparedStatement ps) throws SQLException
setValues
in interface org.springframework.jdbc.core.PreparedStatementSetter
SQLException
public void setParameters(List<?> parameters)
Copyright © 2013 SpringSource. All rights reserved.