Uses of Class
jakarta.transaction.SystemException
Package
Description
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.
-
Uses of SystemException in jakarta.transaction
Modifier and TypeMethodDescriptionvoid
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
Transaction.commit()
Complete the transaction represented by this Transaction object.void
TransactionManager.commit()
Complete the transaction associated with the current thread.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
Transaction.getStatus()
Obtain the status of the transaction associated with the target Transaction object.int
TransactionManager.getStatus()
Obtain the status of the transaction associated with the current thread.int
UserTransaction.getStatus()
Obtain the status of the transaction associated with the current thread.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
Transaction.rollback()
Rollback the transaction represented by this Transaction object.void
TransactionManager.rollback()
Roll back the transaction associated with the current thread.void
UserTransaction.rollback()
Roll back the transaction associated with the current thread.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
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
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.TransactionManager.suspend()
Suspend the transaction currently associated with the calling thread and return a Transaction object that represents the transaction context being suspended.