/** * Convenience method returning the {@link UpdateNotifier} * of the {@link #getTransaction() current transaction}. */ protected UpdateNotifier getUpdateNotifier() { return getTransaction().getUpdateNotifier(); }
/** * Convenience method returning the {@link MessageBroker} * of the {@link #getTransaction() current transaction}. */ protected MessageBroker getMessageBroker() { return getTransaction().getMessageBroker(); }
public void close() { if (getTransaction() != null) { try { abortTransaction(); } catch (final Exception e2) { LOG.error("failure during abort", e2); } } session = null; }
public void debugData(final DebugString debug) { debug.appendln("Transaction", getTransaction()); }
public boolean inTransaction() { return getTransaction() != null && !getTransaction().getState().isComplete(); }
protected void ensureTransactionNotInProgress() { ensureThatState( getTransaction() != null && !getTransaction().getState().isComplete(), is(false), "Transaction in progress"); }
protected void ensureTransactionInProgress() { ensureThatState( getTransaction() != null && !getTransaction().getState().isComplete(), is(true), "No transaction in progress"); }