public class UserTransactionImple extends UserTransaction
| Modifier and Type | Field and Description |
|---|---|
protected String |
_activationCoordinatorService |
protected ContextManager |
_ctxManager |
| Constructor and Description |
|---|
UserTransactionImple() |
| 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, setUserTransactionprotected ContextManager _ctxManager
protected String _activationCoordinatorService
public UserTransaction getUserSubordinateTransaction()
UserTransactiongetUserSubordinateTransaction in class UserTransactionpublic void begin()
throws WrongStateException,
SystemException
UserTransactionbegin in class UserTransactionWrongStateExceptionSystemExceptionpublic void begin(int timeout)
throws WrongStateException,
SystemException
UserTransactionbegin in class UserTransactionWrongStateExceptionSystemExceptionpublic void commit()
throws TransactionRolledBackException,
UnknownTransactionException,
SecurityException,
SystemException,
WrongStateException
UserTransactioncommit in class UserTransactionTransactionRolledBackExceptionUnknownTransactionExceptionSecurityExceptionSystemExceptionWrongStateExceptionpublic void rollback()
throws UnknownTransactionException,
SecurityException,
SystemException,
WrongStateException
UserTransactionrollback in class UserTransactionUnknownTransactionExceptionSecurityExceptionSystemExceptionWrongStateExceptionpublic String transactionIdentifier()
transactionIdentifier in class UserTransactionpublic void beginSubordinate(int timeout)
throws WrongStateException,
SystemException
timeout - WrongStateExceptionSystemExceptionprotected final Context startTransaction(int timeout, TxContextImple current) throws InvalidCreateParametersException, SystemException
protected final void tidyup()
Copyright © 2017 JBoss by Red Hat. All rights reserved.