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