List of usage examples for org.apache.commons.dbutils DbUtils commitAndClose
public static void commitAndClose(Connection conn) throws SQLException
Connection
then closes it, avoid closing if null. From source file:org.okinawaopenlabs.orientdb.client.ConnectionManagerJdbc.java
/** * commit/*from www . j ava 2s .c o m*/ * * @param database * @throws SQLException */ synchronized public void commit(Connection conn) throws SQLException { DbUtils.commitAndClose(conn); }
From source file:org.openlogics.gears.jdbc.DataStore.java
/** * @throws SQLException */ public void commitAndClose() throws SQLException { DbUtils.commitAndClose(connection); }