Class JTATransactionWrapper

    • Field Detail

      • txnController

        protected org.eclipse.persistence.transaction.AbstractTransactionController txnController
    • Constructor Detail

      • JTATransactionWrapper

        public JTATransactionWrapper​(EntityManagerImpl entityManager)
    • Method Detail

      • checkForTransaction

        public java.lang.Object checkForTransaction​(boolean validateExistence)
        INTERNAL: This method will be used to check for a transaction and throws exception if none exists. If this method returns without exception then a transaction exists. This method must be called before accessing the localUOW.
        Specified by:
        checkForTransaction in class TransactionWrapperImpl
      • clear

        public void clear()
        INTERNAL: Internal clear the underlying data structures that this transaction owns.
        Overrides:
        clear in class TransactionWrapperImpl
      • getTransaction

        public javax.persistence.EntityTransaction getTransaction()
        An ENtityTransaction cannot be used at the same time as a JTA transaction throw an exception
        Specified by:
        getTransaction in interface TransactionWrapper
      • setRollbackOnlyInternal

        public void setRollbackOnlyInternal()
        INTERNAL: Mark the current transaction so that the only possible outcome of the transaction is for the transaction to be rolled back. This is an internal method and if the txn is not active will do nothing
        Specified by:
        setRollbackOnlyInternal in class TransactionWrapperImpl
      • throwUserTransactionException

        protected void throwUserTransactionException()
      • throwCheckTransactionFailedException

        protected void throwCheckTransactionFailedException()