类 ListPreparedStatementSetter
- java.lang.Object
- org.springframework.batch.item.database.support.ListPreparedStatementSetter
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
,org.springframework.jdbc.core.PreparedStatementSetter
public class ListPreparedStatementSetter extends java.lang.Object implements org.springframework.jdbc.core.PreparedStatementSetter, org.springframework.beans.factory.InitializingBean
Implementation of thePreparedStatementSetter
interface that accepts a list of values to be set on a PreparedStatement. This is usually used in conjunction with theJdbcCursorItemReader
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)- 作者:
- Lucas Ward
构造器概要
构造器 构造器 说明 ListPreparedStatementSetter()
ListPreparedStatementSetter(java.util.List<?> parameters)
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
void
setParameters(java.util.List<?> parameters)
已过时。In favor of the constructorvoid
setValues(java.sql.PreparedStatement ps)
构造器详细资料
ListPreparedStatementSetter
public ListPreparedStatementSetter()
ListPreparedStatementSetter
public ListPreparedStatementSetter(java.util.List<?> parameters)
方法详细资料
setValues
public void setValues(java.sql.PreparedStatement ps) throws java.sql.SQLException
- 指定者:
setValues
在接口中org.springframework.jdbc.core.PreparedStatementSetter
- 抛出:
java.sql.SQLException
setParameters
@Deprecated public void setParameters(java.util.List<?> parameters)
已过时。In favor of the constructorThe parameter values that will be set on the PreparedStatement. It is assumed that their order in the List is the order of the parameters in the PreparedStatement.- 参数:
parameters
- list containing the parameter values to be used.
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception