Here you can find the source of addBatch(PreparedStatement prepStmt)
public static void addBatch(PreparedStatement prepStmt)
//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); } } }