/** * Get a {@code UserTransaction} that controls a remote transactions state at the given {@code location}. The transaction * context may cache these instances by location. * * @return the {@code UserTransaction} (not {@code null}) */ public RemoteUserTransaction getUserTransaction() { return new RemoteUserTransaction(AuthenticationContext.captureCurrent()); }
public int getStatus() { final RemoteTransaction remoteTransaction = getMatchingTransaction(); return remoteTransaction == null ? Status.STATUS_NO_TRANSACTION : remoteTransaction.getStatus(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }
/** * Get a {@code UserTransaction} that controls a remote transactions state at the given {@code location}. The transaction * context may cache these instances by location. * * @return the {@code UserTransaction} (not {@code null}) */ public RemoteUserTransaction getUserTransaction() { return new RemoteUserTransaction(AuthenticationContext.captureCurrent()); }
public void rollback() throws IllegalStateException, SecurityException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.rollback(); } }
/** * Get a {@code UserTransaction} that controls a remote transactions state at the given {@code location}. The transaction * context may cache these instances by location. * * @return the {@code UserTransaction} (not {@code null}) */ public RemoteUserTransaction getUserTransaction() { return new RemoteUserTransaction(AuthenticationContext.captureCurrent()); }
public void setRollbackOnly() throws IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.noTransaction(); } else { transactionManager.setRollbackOnly(); } }
public int getStatus() { final RemoteTransaction remoteTransaction = getMatchingTransaction(); return remoteTransaction == null ? Status.STATUS_NO_TRANSACTION : remoteTransaction.getStatus(); }
public int getStatus() { final RemoteTransaction remoteTransaction = getMatchingTransaction(); return remoteTransaction == null ? Status.STATUS_NO_TRANSACTION : remoteTransaction.getStatus(); }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.commit(); } }
public void setRollbackOnly() throws IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.noTransaction(); } else { transactionManager.setRollbackOnly(); } }
public void rollback() throws IllegalStateException, SecurityException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.rollback(); } }
public void setRollbackOnly() throws IllegalStateException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.noTransaction(); } else { transactionManager.setRollbackOnly(); } }
public void rollback() throws IllegalStateException, SecurityException, SystemException { ContextTransactionManager transactionManager = ContextTransactionManager.getInstance(); final RemoteTransaction remoteTransaction = getMatchingTransaction(); if (remoteTransaction == null) { throw Log.log.invalidTxnState(); } else { transactionManager.rollback(); } }