Class TransactionImpl

  • All Implemented Interfaces:
    javax.transaction.Transaction

    @Deprecated
    public class TransactionImpl
    extends java.lang.Object
    implements javax.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

      • getConnection

        public java.sql.Connection getConnection​(DataSourceImpl ds,
                                                 java.lang.String user,
                                                 java.lang.String password)
                                          throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • invokeAfterCompletion

        public void invokeAfterCompletion()
        Deprecated.
      • rollbackConnection

        public void rollbackConnection()
                                throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • commitConnection

        public void commitConnection()
                              throws java.sql.SQLException
        Deprecated.
        Throws:
        java.sql.SQLException
      • cleanup

        public void cleanup()
        Deprecated.
      • commit

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

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

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

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

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

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

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