Here you can find the source of commit(Connection conn)
public static void commit(Connection conn)
//package com.java2s; import java.sql.Connection; import java.sql.SQLException; public class Main { public static void commit(Connection conn) { try {//from w w w. j a va 2 s .co m conn.commit(); } catch (SQLException e) { throw new RuntimeException(e); } } }