@Override public void commit() throws Exception { instance.commit(); }
/** * Used to commit a default connection. See getConnection() * @param pool * @param con * @throws Exception */ public void commitConnection(DbPool pool, DbConnection con) throws Exception { DbConnection c = (DbConnection) DbTransaction.getConnection(pool); if (c != null) return; con.commit(); }
@Override public void deleteCaseAndFlowNodes(UUID id) throws IOException { try { DbConnection con = pool.getConnection(); MProperties prop = new MProperties(); prop.put("id", id); { DbStatement sta = con.createStatement("DELETE FROM " + prefix + "_case_ WHERE id_=$id$"); sta.execute(prop); } { DbStatement sta = con.createStatement("DELETE FROM " + prefix + "_node_ WHERE case_=$id$"); sta.execute(prop); } con.commit(); con.close(); } catch (Exception e) { throw new IOException(e); } }
sta.close(); con.commit(); con.close(); } catch (Exception e) {
addClass(null,getRegistryName(clazz),clazz,con, cleanup); con.commit();
sta.close(); con.commit(); con.close(); } catch (Exception e) {
sta.close(); con.commit(); con.close(); } catch (Exception e) {
sta.close(); con.commit(); con.close(); } catch (Exception e) {
sta.close(); con.commit(); con.close(); } catch (Exception e) {