| Package | Description | 
|---|---|
| javax.transaction | 
 Provides the API that defines the contract between the transaction 
manager and the various parties involved in a distributed transaction 
namely : resource manager, application, and application server. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
UserTransaction.begin()
Create a new transaction and associate it with the current thread. 
 | 
void | 
TransactionManager.begin()
Create a new transaction and associate it with the current thread. 
 | 
void | 
UserTransaction.commit()
Complete the transaction associated with the current thread. 
 | 
void | 
TransactionManager.commit()
Complete the transaction associated with the current thread. 
 | 
void | 
Transaction.commit()
Complete the transaction represented by this Transaction object. 
 | 
boolean | 
Transaction.delistResource(XAResource xaRes,
              int flag)
Disassociate the resource specified from the transaction associated 
 with the target Transaction object. 
 | 
boolean | 
Transaction.enlistResource(XAResource xaRes)
Enlist the resource specified with the transaction associated with the 
 target Transaction object. 
 | 
int | 
UserTransaction.getStatus()
Obtain the status of the transaction associated with the current thread. 
 | 
int | 
TransactionManager.getStatus()
Obtain the status of the transaction associated with the current thread. 
 | 
int | 
Transaction.getStatus()
Obtain the status of the transaction associated with the target 
 Transaction object. 
 | 
Transaction | 
TransactionManager.getTransaction()
Get the transaction object that represents the transaction
 context of the calling thread. 
 | 
void | 
Transaction.registerSynchronization(Synchronization sync)
Register a synchronization object for the transaction currently
 associated with the target object. 
 | 
void | 
TransactionManager.resume(Transaction tobj)
Resume the transaction context association of the calling thread
 with the transaction represented by the supplied Transaction object. 
 | 
void | 
UserTransaction.rollback()
Roll back the transaction associated with the current thread. 
 | 
void | 
TransactionManager.rollback()
Roll back the transaction associated with the current thread. 
 | 
void | 
Transaction.rollback()
Rollback the transaction represented by this Transaction object. 
 | 
void | 
UserTransaction.setRollbackOnly()
Modify the transaction associated with the current thread such that
 the only possible outcome of the transaction is to roll back the
 transaction. 
 | 
void | 
TransactionManager.setRollbackOnly()
Modify the transaction associated with the current thread such that
 the only possible outcome of the transaction is to roll back the
 transaction. 
 | 
void | 
Transaction.setRollbackOnly()
Modify the transaction associated with the target object such that
 the only possible outcome of the transaction is to roll back the
 transaction. 
 | 
void | 
UserTransaction.setTransactionTimeout(int seconds)
Modify the timeout value that is associated with transactions started
 by the current thread with the begin method. 
 | 
void | 
TransactionManager.setTransactionTimeout(int seconds)
Modify the timeout value that is associated with transactions started
 by the current thread with the begin method. 
 | 
Transaction | 
TransactionManager.suspend()
Suspend the transaction currently associated with the calling
 thread and return a Transaction object that represents the
 transaction context being suspended. 
 | 
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.