void suspend() throws SystemException { notifyAssociationListeners(false); TransactionManager transactionManager = owner.getProvider().getTransactionManager(); if (! transaction.equals(transactionManager.getTransaction())) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManager.getTransaction()); } final Transaction transactionManagerTransaction = transactionManager.suspend(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } }
void resume() throws SystemException { TransactionManager transactionManager = owner.getProvider().getTransactionManager(); try { transactionManager.resume(transaction); } catch (InvalidTransactionException e) { // should be impossible throw Log.log.invalidTxnState(); } final Transaction transactionManagerTransaction = transactionManager.getTransaction(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } notifyAssociationListeners(true); }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void suspend() throws SystemException { notifyAssociationListeners(false); TransactionManager transactionManager = owner.getProvider().getTransactionManager(); if (! transaction.equals(transactionManager.getTransaction())) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManager.getTransaction()); } final Transaction transactionManagerTransaction = transactionManager.suspend(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } }
void suspend() throws SystemException { notifyAssociationListeners(false); TransactionManager transactionManager = owner.getProvider().getTransactionManager(); if (! transaction.equals(transactionManager.getTransaction())) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManager.getTransaction()); } final Transaction transactionManagerTransaction = transactionManager.suspend(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } }
void resume() throws SystemException { TransactionManager transactionManager = owner.getProvider().getTransactionManager(); try { transactionManager.resume(transaction); } catch (InvalidTransactionException e) { // should be impossible throw Log.log.invalidTxnState(); } final Transaction transactionManagerTransaction = transactionManager.getTransaction(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } notifyAssociationListeners(true); }
void resume() throws SystemException { TransactionManager transactionManager = owner.getProvider().getTransactionManager(); try { transactionManager.resume(transaction); } catch (InvalidTransactionException e) { // should be impossible throw Log.log.invalidTxnState(); } final Transaction transactionManagerTransaction = transactionManager.getTransaction(); if (! transaction.equals(transactionManagerTransaction)) { throw Log.log.unexpectedProviderTransactionMismatch(transaction, transactionManagerTransaction); } notifyAssociationListeners(true); }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void rollbackAndDissociate() throws IllegalStateException, SystemException { if (isImported()) { throw Log.log.rollbackOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().rollback(); } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }
void commitAndDissociate() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, SystemException { if (isImported()) { throw Log.log.commitOnImported(); } notifyAssociationListeners(false); try { owner.getProvider().getTransactionManager().commit(); } catch (RollbackException re) { addRollbackExceptions(re); throw re; } finally { final XAOutflowedResources outflowedResources = RemoteTransactionContext.getOutflowedResources(this); if (outflowedResources == null || outflowedResources.getEnlistedSubordinates() == 0) { // we can drop the mapping, since we are both a master and have no enlisted subordinates owner.getProvider().dropLocal(transaction); } } }