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 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 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(); } }