Here you can find the source of executeBatch(PreparedStatement ps)
public static int[] executeBatch(PreparedStatement ps) throws SQLException
//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*/ }