Here you can find the source of commit(Connection conn)
Parameter | Description |
---|---|
conn | a parameter |
public static void commit(Connection conn)
//package com.java2s; import java.sql.Connection; public class Main { /**//from w ww . j av a 2 s .co m * Commit a transaction without an exception even if it has an error. * * @param conn */ public static void commit(Connection conn) { try { if (conn != null) { conn.commit(); } } catch (Exception ignored) { } } }