If this method succeeds, {@link #isTransactionActive()} will return true afterwards
96979899100101102103104105106
public Void execute(ISession session, SeConnection connection) throws SeException, IOException { try { session.commitTransaction(); session.startTransaction(); } catch (IOException se) { LOGGER.log(Level.WARNING, se.getMessage(), se); throw se; } return null;
125126127128129130131132133134135
@Override public Void execute(ISession session, SeConnection connection) throws SeException, IOException { session.rollbackTransaction(); // and keep editing session.startTransaction(); return null; } }); } catch (IOException se) { close();
268269270271272273274275276277278
} catch (UnavailableConnectionException e) { throw new RuntimeException( "Can't create a transaction state, connection pool exhausted", e); } try { session.startTransaction(); } catch (IOException e) { try { session.rollbackTransaction(); } finally { session.dispose();
10541055105610571058105910601061106210631064
{ final ISessionPool connPool = testData.getConnectionPool(); transSession = connPool.getSession(); // start a transaction on transConn transSession.startTransaction(); } // flag to rollback or not at finally{} boolean commited = false;