net.hasor.jdbc.core.util
类 NamedBatchUpdateUtils

java.lang.Object
  继承者 net.hasor.jdbc.core.util.NamedBatchUpdateUtils

public class NamedBatchUpdateUtils
extends Object

Generic utility methods for working with JDBC batch statements using named parameters. Mainly for internal use within the framework.

作者:
Thomas Risberg

构造方法摘要
NamedBatchUpdateUtils()
           
 
方法摘要
static int[] executeBatchUpdate(String sql, List<Object[]> batchValues, int[] columnTypes, JdbcOperations jdbcOperations)
           
static int[] executeBatchUpdateWithNamedParameters(ParsedSql parsedSql, SqlParameterSource[] batchArgs, JdbcOperations jdbcOperations)
           
protected static void setStatementParameters(Object[] values, PreparedStatement ps, int[] columnTypes)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

NamedBatchUpdateUtils

public NamedBatchUpdateUtils()
方法详细信息

executeBatchUpdate

public static int[] executeBatchUpdate(String sql,
                                       List<Object[]> batchValues,
                                       int[] columnTypes,
                                       JdbcOperations jdbcOperations)

setStatementParameters

protected static void setStatementParameters(Object[] values,
                                             PreparedStatement ps,
                                             int[] columnTypes)
                                      throws SQLException
抛出:
SQLException

executeBatchUpdateWithNamedParameters

public static int[] executeBatchUpdateWithNamedParameters(ParsedSql parsedSql,
                                                          SqlParameterSource[] batchArgs,
                                                          JdbcOperations jdbcOperations)


Copyright © 2013-2014. All Rights Reserved.