public class UserSubordinateTransactionImple extends UserTransaction
| Constructor and Description |
|---|
UserSubordinateTransactionImple() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Start a new transaction.
|
void |
begin(int timeout)
Start a new subordinate transaction with the specified timeout as its lifetime.
|
void |
commit()
it is inappropriate to call this even if the current transaction is a top level AT
transaction so we always throw a WrongStateException.
|
UserTransaction |
getUserSubordinateTransaction()
get the user subordinate transaction
this is a UserTransaction whose begin method will create an interposed AT transaction
|
void |
rollback()
it is inappropriate to call this even if the current transaction is a top level AT
transaction so we always throw a WrongStateException.
|
String |
transactionIdentifier() |
getUserTransaction, setUserTransactionpublic UserTransaction getUserSubordinateTransaction()
UserTransactiongetUserSubordinateTransaction in class UserTransactionpublic void begin()
throws WrongStateException,
SystemException
UserTransactionbegin in class UserTransactionWrongStateExceptionSystemExceptionpublic void begin(int timeout)
throws WrongStateException,
SystemException
begin in class UserTransactionWrongStateExceptionSystemExceptionpublic void commit()
throws TransactionRolledBackException,
UnknownTransactionException,
SecurityException,
SystemException,
WrongStateException
commit in class UserTransactionTransactionRolledBackExceptionUnknownTransactionExceptionSecurityExceptionSystemExceptionWrongStateExceptionpublic void rollback()
throws UnknownTransactionException,
SecurityException,
SystemException,
WrongStateException
rollback in class UserTransactionUnknownTransactionExceptionSecurityExceptionSystemExceptionWrongStateExceptionpublic String transactionIdentifier()
transactionIdentifier in class UserTransactionCopyright © 2018 JBoss by Red Hat. All rights reserved.