| javax.transaction.Transaction
Transaction | public interface Transaction (Code) | | The Transaction interface allows operations to be performed on
transactions.
version: $Revision: 57196 $ |
Method Summary | |
public void | commit() Attempt to commit this transaction. | public boolean | delistResource(XAResource xaRes, int flag) Delist an XA resource from this transaction.
true if the resource could be delisted fromthis transaction, otherwise false . throws: IllegalStateException - If the transaction is in a statewhere resources cannot be delisted. | public boolean | enlistResource(XAResource xaRes) Enlist an XA resource with this transaction.
true if the resource could be enlisted withthis transaction, otherwise false . throws: RollbackException - If the transaction is marked for rollbackonly. throws: IllegalStateException - If the transaction is in a statewhere resources cannot be enlisted. | public int | getStatus() Get the status of the transaction.
The status of the transaction. | public void | registerSynchronization(Synchronization sync) Register a
Synchronization callback with this transaction. | public void | rollback() Rolls back this transaction.
throws: IllegalStateException - If the transaction is in a statewhere it cannot be rolled back. | public void | setRollbackOnly() Mark the transaction so that the only possible outcome is a rollback. |
delistResource | public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException, SystemException(Code) | | Delist an XA resource from this transaction.
true if the resource could be delisted fromthis transaction, otherwise false . throws: IllegalStateException - If the transaction is in a statewhere resources cannot be delisted. This could be because thetransaction is no longer active. throws: SystemException - If the transaction service fails in anunexpected way. |
getStatus | public int getStatus() throws SystemException(Code) | | Get the status of the transaction.
The status of the transaction. This is one of theStatus constants. throws: SystemException - If the transaction service fails in anunexpected way. |
|
|