public abstract class UserTransaction extends Object
Constructor and Description |
---|
UserTransaction() |
Modifier and Type | Method and Description |
---|---|
abstract void |
begin()
Start a new transaction.
|
abstract void |
begin(int timeout)
Start a new transaction with the specified timeout as its lifetime.
|
abstract void |
commit()
The transaction is committed by the commit method.
|
abstract UserTransaction |
getUserSubordinateTransaction()
get the user subordinate transaction
this is a UserTransaction whose begin method will create an interposed AT transaction
|
static UserTransaction |
getUserTransaction()
Get the user transaction.
|
abstract void |
rollback()
The rollback operation will terminate the transaction and return
normally if it succeeded, while throwing an appropriate exception if it
didn't.
|
static void |
setUserTransaction(UserTransaction userTransaction)
Set the user transaction.
|
abstract String |
transactionIdentifier() |
public static UserTransaction getUserTransaction()
public static void setUserTransaction(UserTransaction userTransaction)
userTransaction
- The user transaction.public abstract UserTransaction getUserSubordinateTransaction()
public abstract void begin() throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void begin(int timeout) throws WrongStateException, SystemException
WrongStateException
SystemException
public abstract void commit() throws TransactionRolledBackException, UnknownTransactionException, SecurityException, SystemException, WrongStateException
public abstract void rollback() throws UnknownTransactionException, SecurityException, SystemException, WrongStateException
public abstract String transactionIdentifier()
Copyright © 2016 JBoss by Red Hat. All rights reserved.