Here you can find the source of executeUpdate(PreparedStatement ps)
public static int executeUpdate(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 executeUpdate(PreparedStatement ps) throws SQLException { assert locked : "Database isn't locked"; int i = ps.executeUpdate(); return i; }/*w w w.ja v a 2 s . c om*/ public static int executeUpdate(PreparedStatement ps, long[] keys, int q) throws SQLException { assert locked : "Database isn't locked"; int i = ps.executeUpdate(); for (int j = 1; j <= q; j++) keys[j] = ps.getGeneratedKeys().getLong(j); return i; } }