66676869707172737475
else { System.out.println("No result."); } stmt.close(); cw.commitAndDiscard(); persist.close(); } }
268269270271272273274275276277278
ConnectionWrapper cw = connectionPool.getConnectionWrapper(); int res = 0; try { res = deleteObjects(cw, clazz, where); cw.commitAndDiscard(); } catch (Exception e) { cw.rollbackAndDiscard(); throw new SQLException(e);
692693694695696697698699700701702
{ ConnectionWrapper cw = getConnectionWrapper(); try { saveObject(cw, object, true, null); cw.commitAndDiscard(); } catch (Exception e) { // cancel the operation cw.rollbackAndDiscard();
818819820821822823824825826827828
List<T> res = null; ConnectionWrapper cw = getConnectionWrapper(); try { res = getObjects(cw, clazz, clause); cw.commitAndDiscard(); } catch (Exception e) { cw.rollbackAndDiscard(); throw new SQLException(e);
13771378137913801381138213831384138513861387
LOGGER.log(Level.WARNING, "ClassNotFoundException: ", e); } } ps.close(); cw.commitAndDiscard(); } catch (Exception e) { cw.rollbackAndDiscard(); throw new SQLException(e);
15281529153015311532153315341535153615371538
cw = getConnectionWrapper(); PreparedStatement ps = cw.prepareStatement(adapter .getShutdownCommand()); ps.execute(); ps.close(); cw.commitAndDiscard(); } catch (Exception e) { LOGGER.log(Level.WARNING, "Exception: ", e); try
621622623624625626627628629630631
T res = null; ConnectionWrapper cw = getConnectionWrapper(); try { res = refresh(cw, obj); cw.commitAndDiscard(); } catch (IllegalArgumentException iae) { // rethrow throw iae;
690691692693694695696697698699700
{ ConnectionWrapper cw = getConnectionWrapper(); try { dropTable(cw, c); cw.commitAndDiscard(); } catch (Exception e) { // cancel the operation cw.rollbackAndDiscard();
840841842843844845846847848849850
{ ConnectionWrapper cw = getConnectionWrapper(); try { persist.getTableManager().updateTableForClass(klass, cw); cw.commitAndDiscard(); } catch (Exception e) { // cancel the operation cw.rollbackAndDiscard();
866867868869870871872873874875876
{ ConnectionWrapper cw = getConnectionWrapper(); try { persist.getTableManager().setTableName(oldClass, newClass, cw); cw.commitAndDiscard(); } catch (Exception e) { // cancel the operation cw.rollbackAndDiscard();