Java SQL Batch Execute executeBatch(PreparedStatement ps)

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

Description

execute Batch

License

Open Source License

Declaration

public static int[] executeBatch(PreparedStatement ps)
            throws SQLException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    private static boolean locked = false;

    public static int[] executeBatch(PreparedStatement ps)
            throws SQLException {
        assert locked : "Database isn't locked";
        int[] a = ps.executeBatch();
        return a;
    }/*from   ww w  . j a  v  a 2 s . co m*/
}

Related

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