public class UserTransactionProxy
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
abortTransaction()
Finish any transaction.
|
void |
begin()
Start the transaction.
|
void |
commit()
Commits the transaction
|
static UserTransactionProxy |
getCurrent()
Returns the local UT proxy.
|
UserTransactionImpl |
getCurrentUserTransactionImpl()
Gets the current thread transaction.
|
static UserTransactionProxy |
getInstance()
Returns the local UT proxy.
|
int |
getStatus()
Gets the transaction's status
|
Transaction |
getTransaction()
Returns the current transaction.
|
UserTransactionImpl |
getUserTransaction()
Gets the thread transaction.
|
void |
recover(javax.transaction.xa.XAResource xaRes)
Recovers an XAResource
|
void |
resume(Transaction transaction)
Resume a transaction.
|
void |
rollback()
Rolls the transaction back
|
void |
setRollbackOnly()
Marks the transaction as rollback only.
|
void |
setRollbackOnly(java.lang.Exception e)
Marks the transaction as rollback only.
|
void |
setTransactionTimeout(int seconds)
Sets the transaction's timeout.
|
Transaction |
suspend()
Suspends the transaction.
|
java.lang.String |
toString() |
public static UserTransactionProxy getInstance()
public static UserTransactionProxy getCurrent()
public UserTransactionImpl getUserTransaction()
public UserTransactionImpl getCurrentUserTransactionImpl()
public void setTransactionTimeout(int seconds)
throws SystemException
SystemExceptionpublic int getStatus()
throws SystemException
SystemExceptionpublic void begin()
throws NotSupportedException,
SystemException
NotSupportedExceptionSystemExceptionpublic void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemExceptionpublic void setRollbackOnly(java.lang.Exception e)
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic void commit()
throws java.lang.IllegalStateException,
RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
SystemException
java.lang.IllegalStateExceptionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionjava.lang.SecurityExceptionSystemExceptionpublic void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
java.lang.IllegalStateExceptionjava.lang.SecurityExceptionSystemExceptionpublic void abortTransaction()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic void recover(javax.transaction.xa.XAResource xaRes)
throws javax.transaction.xa.XAException
javax.transaction.xa.XAExceptionpublic Transaction getTransaction()
throws SystemException
SystemExceptionpublic Transaction suspend()
throws SystemException
SystemExceptionpublic void resume(Transaction transaction)
throws java.lang.IllegalStateException,
javax.transaction.InvalidTransactionException,
SystemException
java.lang.IllegalStateExceptionjavax.transaction.InvalidTransactionExceptionSystemExceptionpublic java.lang.String toString()
toString in class java.lang.Object