Class TransactionImpl

  • All Implemented Interfaces:
    jakarta.transaction.Transaction

    @Deprecated
    public class TransactionImpl
    extends Object
    implements jakarta.transaction.Transaction
    Deprecated.
    Implementation of JTA Transaction class. The guts of the tx logic is contained in this class. Currently support is limited to enlisting only a single tx data source
    • Field Detail

      • STATUS_ACTIVE

        public static final int STATUS_ACTIVE
        Deprecated.
        Static constants
        See Also:
        Constant Field Values
      • STATUS_MARKED_ROLLBACK

        public static final int STATUS_MARKED_ROLLBACK
        Deprecated.
        See Also:
        Constant Field Values
      • STATUS_ROLLEDBACK

        public static final int STATUS_ROLLEDBACK
        Deprecated.
        See Also:
        Constant Field Values
      • STATUS_NO_TRANSACTION

        public static final int STATUS_NO_TRANSACTION
        Deprecated.
        See Also:
        Constant Field Values
      • STATUS_COMMITTING

        public static final int STATUS_COMMITTING
        Deprecated.
        See Also:
        Constant Field Values
      • STATUS_ROLLING_BACK

        public static final int STATUS_ROLLING_BACK
        Deprecated.
        See Also:
        Constant Field Values
      • DUMP_AFTER_COMPLETION_ERRORS

        public static boolean DUMP_AFTER_COMPLETION_ERRORS
        Deprecated.
    • Constructor Detail

      • TransactionImpl

        public TransactionImpl()
        Deprecated.
    • Method Detail

      • invokeAfterCompletion

        public void invokeAfterCompletion()
        Deprecated.
      • cleanup

        public void cleanup()
        Deprecated.
      • commit

        public void commit()
                    throws jakarta.transaction.RollbackException,
                           jakarta.transaction.HeuristicMixedException,
                           jakarta.transaction.HeuristicRollbackException,
                           SecurityException,
                           IllegalStateException,
                           jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        commit in interface jakarta.transaction.Transaction
        Throws:
        jakarta.transaction.RollbackException
        jakarta.transaction.HeuristicMixedException
        jakarta.transaction.HeuristicRollbackException
        SecurityException
        IllegalStateException
        jakarta.transaction.SystemException
      • getStatus

        public int getStatus()
                      throws jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        getStatus in interface jakarta.transaction.Transaction
        Throws:
        jakarta.transaction.SystemException
      • registerSynchronization

        public void registerSynchronization​(jakarta.transaction.Synchronization synchronization)
                                     throws jakarta.transaction.RollbackException,
                                            IllegalStateException,
                                            jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        registerSynchronization in interface jakarta.transaction.Transaction
        Throws:
        jakarta.transaction.RollbackException
        IllegalStateException
        jakarta.transaction.SystemException
      • rollback

        public void rollback()
                      throws IllegalStateException,
                             jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        rollback in interface jakarta.transaction.Transaction
        Throws:
        IllegalStateException
        jakarta.transaction.SystemException
      • setRollbackOnly

        public void setRollbackOnly()
                             throws IllegalStateException,
                                    jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        setRollbackOnly in interface jakarta.transaction.Transaction
        Throws:
        IllegalStateException
        jakarta.transaction.SystemException
      • enlistResource

        public boolean enlistResource​(XAResource xaresource)
                               throws jakarta.transaction.RollbackException,
                                      IllegalStateException,
                                      jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        enlistResource in interface jakarta.transaction.Transaction
        Throws:
        jakarta.transaction.RollbackException
        IllegalStateException
        jakarta.transaction.SystemException
      • delistResource

        public boolean delistResource​(XAResource xaresource,
                                      int i)
                               throws IllegalStateException,
                                      jakarta.transaction.SystemException
        Deprecated.
        Specified by:
        delistResource in interface jakarta.transaction.Transaction
        Throws:
        IllegalStateException
        jakarta.transaction.SystemException