Package org.springframework.jdbc.core
Class BatchUpdateUtils
- java.lang.Object
- org.springframework.jdbc.core.BatchUpdateUtils
- Direct Known Subclasses:
NamedParameterBatchUpdateUtils
public abstract class BatchUpdateUtils extends Object
Generic utility methods for working with JDBC batch statements. Mainly for internal use within the framework.- Since:
- 3.0
- Author:
- Thomas Risberg, Juergen Hoeller
Constructor Summary
Constructors Constructor Description BatchUpdateUtils()
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]
executeBatchUpdate(String sql, List<Object[]> batchArgs, int[] columnTypes, JdbcOperations jdbcOperations)
protected static void
setStatementParameters(Object[] values, PreparedStatement ps, int[] columnTypes)
Constructor Detail
BatchUpdateUtils
public BatchUpdateUtils()
Method Detail
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
- Throws:
SQLException