public class UserTransactionStandaloneImple extends UserTransaction
Modifier and Type | Field and Description |
---|---|
protected String |
_activationCoordinatorService |
protected ContextManager |
_ctxManager |
Constructor and Description |
---|
UserTransactionStandaloneImple() |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Start a new transaction.
|
void |
begin(int timeout)
Start a new transaction with the specified timeout as its lifetime.
|
void |
beginSubordinate(int timeout)
method provided for the benefit of UserSubordinateTransactionImple to allow it
to begin a subordinate transaction which requires an existing context to be
installed on the thread before it will start and instal la new transaction
|
void |
commit()
The transaction is committed by the commit method.
|
UserTransaction |
getUserSubordinateTransaction()
get the user subordinate transaction
this is a UserTransaction whose begin method will create an interposed AT transaction
|
void |
rollback()
The rollback operation will terminate the transaction and return
normally if it succeeded, while throwing an appropriate exception if it
didn't.
|
protected Context |
startTransaction(int timeout,
TxContextImple current) |
protected void |
tidyup() |
String |
toString() |
String |
transactionIdentifier() |
getUserTransaction, setUserTransaction
protected ContextManager _ctxManager
protected String _activationCoordinatorService
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
UserTransaction
begin
in class UserTransaction
WrongStateException
SystemException
public void commit() throws TransactionRolledBackException, UnknownTransactionException, SecurityException, SystemException, WrongStateException
UserTransaction
commit
in class UserTransaction
TransactionRolledBackException
UnknownTransactionException
SecurityException
SystemException
WrongStateException
public void rollback() throws UnknownTransactionException, SecurityException, SystemException, WrongStateException
UserTransaction
rollback
in class UserTransaction
UnknownTransactionException
SecurityException
SystemException
WrongStateException
public String transactionIdentifier()
transactionIdentifier
in class UserTransaction
public void beginSubordinate(int timeout) throws WrongStateException, SystemException
timeout
- WrongStateException
SystemException
protected final Context startTransaction(int timeout, TxContextImple current) throws InvalidCreateParametersException, SystemException
protected final void tidyup()
Copyright © 2017 JBoss by Red Hat. All rights reserved.