Class JTAJCATransactionImpl

  • All Implemented Interfaces:
    javax.transaction.Synchronization, Transaction

    public class JTAJCATransactionImpl
    extends TransactionImpl
    implements javax.transaction.Synchronization
    A transaction that is synchronised with a Java Transaction Service (JTA) transaction with JCA. It is only used when using the JDO API within a JavaEE environment using the JCA adapter (i.e not for JPA).
    • Constructor Detail

      • JTAJCATransactionImpl

        public JTAJCATransactionImpl​(ExecutionContext ec,
                                     PropertyStore properties)
        ec - ExecutionContext
        properties - Properties to use with the transaction
    • Method Detail

      • getIsActive

        public boolean getIsActive()
        Description copied from class: TransactionImpl
        Similar to "isActive" except that it just returns the "active" flag whereas the isActive() method can also embody rejoining to underlying transactions.
        Specified by:
        getIsActive in interface Transaction
        getIsActive in class TransactionImpl
        The "active" flag
      • isActive

        public boolean isActive()
        Accessor for whether the transaction is active.
        Specified by:
        isActive in interface Transaction
        isActive in class TransactionImpl
        Whether the transaction is active.
      • beforeCompletion

        public void beforeCompletion()
        Called by the transaction manager prior to the start of the two-phase transaction commit process.
        Specified by:
        beforeCompletion in interface javax.transaction.Synchronization
      • afterCompletion

        public void afterCompletion​(int status)
        Called by the transaction manager after the transaction is committed or rolled back. Must be synchronised because some callers expect to be owner of this object's monitor (internalPostCommit() calls closeSQLConnection() which calls notifyAll()).
        Specified by:
        afterCompletion in interface javax.transaction.Synchronization
        status - The status