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, setUserTransaction
public UserTransaction getUserSubordinateTransaction()
UserTransaction
getUserSubordinateTransaction
in class UserTransaction
public void begin() throws WrongStateException, SystemException
UserTransaction
begin
in class UserTransaction
WrongStateException
SystemException
public void begin(int timeout) throws WrongStateException, SystemException
begin
in class UserTransaction
WrongStateException
SystemException
public void commit() throws TransactionRolledBackException, UnknownTransactionException, SecurityException, SystemException, WrongStateException
commit
in class UserTransaction
TransactionRolledBackException
UnknownTransactionException
SecurityException
SystemException
WrongStateException
public void rollback() throws UnknownTransactionException, SecurityException, SystemException, WrongStateException
rollback
in class UserTransaction
UnknownTransactionException
SecurityException
SystemException
WrongStateException
public String transactionIdentifier()
transactionIdentifier
in class UserTransaction
Copyright © 2017 JBoss by Red Hat. All rights reserved.