|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jca.UserTransactionProxy
public class UserTransactionProxy
Implementation of the UserTransactionImpl for a thread instance.
| Method Summary | |
|---|---|
void |
abortTransaction()
Finish any transaction. |
void |
begin()
Start the transaction. |
void |
commit()
Commits the transaction |
void |
enlistBeginResource(BeginResource resource)
Enlist a begin resource |
void |
enlistCloseResource(CloseResource resource)
Enlist a close resource |
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 |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static UserTransactionProxy getInstance()
public static UserTransactionProxy getCurrent()
public UserTransactionImpl getUserTransaction()
public UserTransactionImpl getCurrentUserTransactionImpl()
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface TransactionManagersetTransactionTimeout in interface UserTransactionSystemException
public int getStatus()
throws SystemException
getStatus in interface TransactionManagergetStatus in interface UserTransactionSystemException
public void begin()
throws NotSupportedException,
SystemException
begin in interface TransactionManagerbegin in interface UserTransactionNotSupportedException
SystemException
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
setRollbackOnly in interface TransactionManagersetRollbackOnly in interface UserTransactionjava.lang.IllegalStateException
SystemException
public void setRollbackOnly(java.lang.Exception e)
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void commit()
throws java.lang.IllegalStateException,
RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
SystemException
commit in interface TransactionManagercommit in interface UserTransactionjava.lang.IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
SystemException
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
rollback in interface TransactionManagerrollback in interface UserTransactionjava.lang.IllegalStateException
java.lang.SecurityException
SystemException
public void enlistBeginResource(BeginResource resource)
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void enlistCloseResource(CloseResource resource)
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void abortTransaction()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
public Transaction getTransaction()
throws SystemException
getTransaction in interface TransactionManagerSystemException
public Transaction suspend()
throws SystemException
suspend in interface TransactionManagerSystemException
public void resume(Transaction transaction)
throws java.lang.IllegalStateException,
InvalidTransactionException,
SystemException
resume in interface TransactionManagerjava.lang.IllegalStateException
InvalidTransactionException
SystemExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||