类 BatchUpdateUtils
- java.lang.Object
- org.springframework.jdbc.core.BatchUpdateUtils
public abstract class BatchUpdateUtils extends Object
Generic utility methods for working with JDBC batch statements. Mainly for internal use within the framework.- 从以下版本开始:
- 3.0
- 作者:
- Thomas Risberg, Juergen Hoeller
构造器概要
构造器 构造器 说明 BatchUpdateUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static int[]
executeBatchUpdate(String sql, List<Object[]> batchArgs, int[] columnTypes, JdbcOperations jdbcOperations)
protected static void
setStatementParameters(Object[] values, PreparedStatement ps, int[] columnTypes)
构造器详细资料
BatchUpdateUtils
public BatchUpdateUtils()
方法详细资料
executeBatchUpdate
public static int[] executeBatchUpdate(String sql, List<Object[]> batchArgs, int[] columnTypes, JdbcOperations jdbcOperations)
setStatementParameters
protected static void setStatementParameters(Object[] values, PreparedStatement ps, int[] columnTypes) throws SQLException
- 抛出:
SQLException