Class WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter

java.lang.Object
org.hibernate.engine.transaction.jta.platform.internal.WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter
All Implemented Interfaces:
Transaction
Enclosing class:
WebSphereExtendedJtaPlatform.TransactionManagerAdapter

public class WebSphereExtendedJtaPlatform.TransactionManagerAdapter.TransactionAdapter extends Object implements Transaction
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Complete the transaction represented by this Transaction object.
    boolean
    delistResource(XAResource resource, int i)
    Disassociate the resource specified from the transaction associated with the target Transaction object.
    boolean
    Enlist the resource specified with the transaction associated with the target Transaction object.
    boolean
    equals(@Nullable Object other)
     
    int
    Obtain the status of the transaction associated with the target Transaction object.
    int
     
    void
    Register a synchronization object for the transaction currently associated with the target object.
    void
    Rollback the transaction represented by this Transaction object.
    void
    Modify the transaction associated with the target object such that the only possible outcome of the transaction is to roll back the transaction.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • registerSynchronization

      public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
      Description copied from interface: Transaction
      Register a synchronization object for the transaction currently associated with the target object. The transction manager invokes the beforeCompletion method prior to starting the two-phase transaction commit process. After the transaction is completed, the transaction manager invokes the afterCompletion method.
      Specified by:
      registerSynchronization in interface Transaction
      Parameters:
      synchronization - The Synchronization object for the transaction associated with the target object.
      Throws:
      RollbackException - Thrown to indicate that the transaction has been marked for rollback only.
      IllegalStateException - Thrown if the transaction in the target object is in the prepared state or the transaction is inactive.
      SystemException - Thrown if the transaction manager encounters an unexpected error condition.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object
    • commit

      public void commit() throws UnsupportedOperationException
      Description copied from interface: Transaction
      Complete the transaction represented by this Transaction object.
      Specified by:
      commit in interface Transaction
      Throws:
      UnsupportedOperationException
    • delistResource

      public boolean delistResource(XAResource resource, int i) throws UnsupportedOperationException
      Description copied from interface: Transaction
      Disassociate the resource specified from the transaction associated with the target Transaction object.
      Specified by:
      delistResource in interface Transaction
      Parameters:
      resource - The XAResource object associated with the resource (connection).
      i - One of the values of TMSUCCESS, TMSUSPEND, or TMFAIL.
      Returns:
      true if the resource was delisted successfully; otherwise false.
      Throws:
      UnsupportedOperationException
    • enlistResource

      public boolean enlistResource(XAResource resource) throws UnsupportedOperationException
      Description copied from interface: Transaction
      Enlist the resource specified with the transaction associated with the target Transaction object.
      Specified by:
      enlistResource in interface Transaction
      Parameters:
      resource - The XAResource object associated with the resource (connection).
      Returns:
      true if the resource was enlisted successfully; otherwise false.
      Throws:
      UnsupportedOperationException
    • getStatus

      public int getStatus()
      Description copied from interface: Transaction
      Obtain the status of the transaction associated with the target Transaction object.
      Specified by:
      getStatus in interface Transaction
      Returns:
      The transaction status. If no transaction is associated with the target object, this method returns the Status.NoTransaction value.
    • rollback

      public void rollback() throws UnsupportedOperationException
      Description copied from interface: Transaction
      Rollback the transaction represented by this Transaction object.
      Specified by:
      rollback in interface Transaction
      Throws:
      UnsupportedOperationException
    • setRollbackOnly

      public void setRollbackOnly() throws UnsupportedOperationException
      Description copied from interface: Transaction
      Modify the transaction associated with the target object such that the only possible outcome of the transaction is to roll back the transaction.
      Specified by:
      setRollbackOnly in interface Transaction
      Throws:
      UnsupportedOperationException