public int getStatus() throws javax.transaction.SystemException { TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
public int getStatus() throws javax.transaction.SystemException { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("BaseTransaction.getStatus"); } TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
public int getStatus() throws javax.transaction.SystemException { TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
public int getStatus() throws javax.transaction.SystemException { TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
public int getStatus() throws javax.transaction.SystemException { TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
public int getStatus() throws javax.transaction.SystemException { TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }
private TransactionImple getTransactionImple() throws IllegalStateException { TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } try { if (transactionImple == null || (transactionImple.getStatus() != Status.STATUS_ACTIVE && transactionImple.getStatus() != Status.STATUS_MARKED_ROLLBACK)) { throw new IllegalStateException("No transaction is running"); } } catch (SystemException e) { throw new IllegalStateException("Could not get the status of a transaction"); } return transactionImple; } }
private TransactionImple getTransactionImple() throws IllegalStateException { TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } try { if (transactionImple == null || (transactionImple.getStatus() != Status.STATUS_ACTIVE && transactionImple.getStatus() != Status.STATUS_MARKED_ROLLBACK)) { throw new IllegalStateException("No transaction is running"); } } catch (SystemException e) { throw new IllegalStateException("Could not get the status of a transaction"); } return transactionImple; } }
private TransactionImple getTransactionImple() throws IllegalStateException { TransactionImple transactionImple = null; try { transactionImple = (TransactionImple)tm.getTransaction(); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } try { if (transactionImple == null || (transactionImple.getStatus() != Status.STATUS_ACTIVE && transactionImple.getStatus() != Status.STATUS_MARKED_ROLLBACK)) { throw new IllegalStateException("No transaction is running"); } } catch (SystemException e) { throw new IllegalStateException("Could not get the status of a transaction"); } return transactionImple; } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isTraceEnabled()) { jtaLogger.logger.trace("TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.i18NLogger.get_transaction_arjunacore_systemexception(), e); } }
/** * Called when we want to make sure this thread does not already have a * transaction associated with it. */ final void checkTransactionState() throws IllegalStateException, javax.transaction.SystemException { // ok, no transaction currently associated with thread. TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return; else { if ((theTransaction.getStatus() != javax.transaction.Status.STATUS_NO_TRANSACTION) && !_supportSubtransactions) { throw new IllegalStateException( "BaseTransaction.checkTransactionState - " + jtaLogger.i18NLogger.get_transaction_arjunacore_alreadyassociated()); } } }
/** * Called when we want to make sure this thread does not already have a * transaction associated with it. */ final void checkTransactionState() throws IllegalStateException, javax.transaction.SystemException { // ok, no transaction currently associated with thread. TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return; else { if ((theTransaction.getStatus() != javax.transaction.Status.STATUS_NO_TRANSACTION) && !_supportSubtransactions) { throw new IllegalStateException( "BaseTransaction.checkTransactionState - " + jtaLogger.i18NLogger.get_transaction_arjunacore_alreadyassociated()); } } }
/** * Called when we want to make sure this thread does not already have a * transaction associated with it. */ final void checkTransactionState() throws IllegalStateException, javax.transaction.SystemException { // ok, no transaction currently associated with thread. TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return; else { if ((theTransaction.getStatus() != javax.transaction.Status.STATUS_NO_TRANSACTION) && !_supportSubtransactions) { throw new IllegalStateException( "BaseTransaction.checkTransactionState - " + jtaLogger.i18NLogger.get_transaction_arjunacore_alreadyassociated()); } } }
public boolean getRollbackOnly() { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "TransactionSynchronizationRegistryImple.getRollbackOnly"); } TransactionImple transactionImple = getTransactionImple(); if(transactionImple == null) { throw new IllegalStateException(); } try { return (transactionImple.getStatus() == Status.STATUS_MARKED_ROLLBACK); } catch (SystemException e) { throw new RuntimeException(jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.arjunacore.systemexception"), e); } }
public int getStatus() throws javax.transaction.SystemException { if (jtaLogger.logger.isDebugEnabled()) { jtaLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jta.logging.FacilityCode.FAC_JTA, "BaseTransaction.getStatus"); } TransactionImple theTransaction = TransactionImple.getTransaction(); if (theTransaction == null) return javax.transaction.Status.STATUS_NO_TRANSACTION; else return theTransaction.getStatus(); }