/** * INTERNAL: * Called by rollbackTransaction() to rollback a transaction. * This rolls back the active transaction. */ protected void basicRollbackTransaction() throws DatabaseException { try { getAccessor().rollbackTransaction(this); } catch (RuntimeException exception) { handleException(exception); } }
/** * INTERNAL: * Called by rollbackTransaction() to rollback a transaction. * This rolls back the active transaction. */ protected void basicRollbackTransaction() throws DatabaseException { Collection<Accessor> accessors = getAccessors(); if (accessors == null) { return; } RuntimeException exception = null; for (Accessor accessor : accessors) { try { accessor.rollbackTransaction(this); } catch (RuntimeException failure) { exception = failure; } } if (exception != null) { handleException(exception); } }
/** * INTERNAL: * Called by rollbackTransaction() to rollback a transaction. * This rolls back the active transaction. */ protected void basicRollbackTransaction() throws DatabaseException { Collection<Accessor> accessors = getAccessors(); if (accessors == null) { return; } RuntimeException exception = null; for (Accessor accessor : accessors) { try { accessor.rollbackTransaction(this); } catch (RuntimeException failure) { exception = failure; } } if (exception != null) { handleException(exception); } }
/** * INTERNAL: * Called by beginTransaction() to start a transaction. * This starts a real database transaction. * Allows retry if the connection is dead. */ protected void basicBeginTransaction() throws DatabaseException { Collection<Accessor> accessors = getAccessors(); if (accessors == null) { return; } Accessor failedAccessor = null; try { for (Accessor accessor : accessors) { failedAccessor = accessor; basicBeginTransaction(accessor); } } catch (RuntimeException exception) { // If begin failed, rollback ones already started. for (Accessor accessor : accessors) { if (accessor == failedAccessor) { break; } try { accessor.rollbackTransaction(this); } catch (RuntimeException ignore) { } } throw exception; } }
/** * INTERNAL: * Called by beginTransaction() to start a transaction. * This starts a real database transaction. * Allows retry if the connection is dead. */ protected void basicBeginTransaction() throws DatabaseException { Collection<Accessor> accessors = getAccessors(); if (accessors == null) { return; } Accessor failedAccessor = null; try { for (Accessor accessor : accessors) { failedAccessor = accessor; basicBeginTransaction(accessor); } } catch (RuntimeException exception) { // If begin failed, rollback ones already started. for (Accessor accessor : accessors) { if (accessor == failedAccessor) { break; } try { accessor.rollbackTransaction(this); } catch (RuntimeException ignore) { } } throw exception; } }
try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) { try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) {
try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) { try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) {
try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) { try { accessor.rollbackTransaction(writeSession); } catch (Exception rollbackException) {