Methods Summary |
---|
public void | commit()Complete the transaction represented by this Transaction object.
|
public boolean | delistResource(javax.transaction.xa.XAResource xaRes, int flag)Disassociate the resource specified from the transaction associated
with the target Transaction object.
|
public boolean | enlistResource(javax.transaction.xa.XAResource xaRes)Enlist the resource specified with the transaction associated with the
target Transaction object.
|
public int | getStatus()Obtain the status of the transaction associated with the target
Transaction object.
|
public void | registerSynchronization(javax.transaction.Synchronization sync)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.
|
public void | rollback()Rollback the transaction represented by this Transaction object.
|
public void | setRollbackOnly()Modify the transaction associated with the target object such that
the only possible outcome of the transaction is to roll back the
transaction.
|