Java SQL PreparedStatement addBatch(PreparedStatement prepStmt)

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

Description

add Batch

License

Creative Commons License

Declaration

public static void addBatch(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 addBatch(PreparedStatement prepStmt) {
        try {/*from  ww  w .j  a v a 2  s  . co m*/
            prepStmt.addBatch();
        } catch (SQLException sqle) {
            sqle.getNextException().printStackTrace();
            throw new RuntimeException(sqle);
        }
    }
}

Related

  1. addValuesToPreparedStatement(PreparedStatement preparedStatement, List values)
  2. close(PreparedStatement preparedStatement)
  3. close(PreparedStatement stat)
  4. closePreparedStatement(Map psMap)