Modifier and Type | Method and Description |
---|---|
void |
TransactionManager.begin()
Create a new transaction and associate it with the current thread.
|
void |
UserTransaction.begin()
Create a new transaction and associate it 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.
|
void |
UserTransaction.commit()
Complete the transaction associated with the current thread.
|
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 |
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.
|
int |
UserTransaction.getStatus()
Obtain the status of the transaction associated with the current thread.
|
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 |
TransactionManager.rollback()
Roll back the transaction associated with the current thread.
|
void |
Transaction.rollback()
Rollback the transaction represented by this Transaction object.
|
void |
UserTransaction.rollback()
Roll back the transaction associated with the current thread.
|
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.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.setTransactionTimeout(int seconds)
Modify the timeout value that is associated with transactions started
by the current thread with the begin method.
|
void |
UserTransaction.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 © 2018, 2020 Eclipse Foundation. All Rights Reserved.
Use is subject to license terms.