Java 类org.springframework.jdbc.core.BatchUpdateUtils 实例源码

项目:lams    文件:SimpleJdbcTemplate.java   
@Override
public int[] batchUpdate(String sql, List<Object[]> batchArgs, int[] argTypes) {
    return BatchUpdateUtils.executeBatchUpdate(sql, batchArgs, argTypes, getJdbcOperations());
}
项目:Android_Code_Arbiter    文件:SpringBatchUpdateUtils.java   
public void queryBatchUpdateUnsafe(String input) {
    String sql = "UPDATE Users SET name = '"+input+"' where id = 1";
    BatchUpdateUtils.executeBatchUpdate(sql, new ArrayList<Object[]>(),new int[] {Types.INTEGER}, jdbcOperations);
}
项目:Android_Code_Arbiter    文件:SpringBatchUpdateUtils.java   
public void queryBatchUpdateSafe() {
    String sql = "UPDATE Users SET name = 'safe' where id = 1";
    BatchUpdateUtils.executeBatchUpdate(sql, new ArrayList<Object[]>(),new int[] {Types.INTEGER}, jdbcOperations);
}
项目:class-guard    文件:SimpleJdbcTemplate.java   
public int[] batchUpdate(String sql, List<Object[]> batchArgs, int[] argTypes) {
    return BatchUpdateUtils.executeBatchUpdate(sql, batchArgs, argTypes, getJdbcOperations());
}