Java SQL Batch Execute executeBatch(PreparedStatement prepStmt)

Here you can find the source of executeBatch(PreparedStatement prepStmt)

Description

execute Batch

License

Creative Commons License

Declaration

public static void executeBatch(PreparedStatement prepStmt) 

Method Source Code

//package com.java2s;
//License from project: Creative Commons License 

import java.sql.PreparedStatement;
import java.sql.SQLException;

public class Main {
    public static void executeBatch(PreparedStatement prepStmt) {
        try {//from  w w  w.jav a2 s .c  om
            prepStmt.executeBatch();
        } catch (SQLException sqle) {
            sqle.getNextException().printStackTrace();
            throw new RuntimeException(sqle);
        }
    }
}

Related

  1. executeAsBatch(Connection con, List sqlList)
  2. executeBatch(File file, Connection con, String pluginName)
  3. executeBatch(PreparedStatement ps)
  4. executeBatchedUpdate(Connection conn, String sql, int size)
  5. executeBatchedUpdateDataType(Connection conn, String sql)
  6. executeBatches(PreparedStatement... statements)