|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.jca.UserTransactionImpl
public class UserTransactionImpl
Implementation of the UserTransactionImpl for a thread instance.
| Constructor Summary | |
|---|---|
UserTransactionImpl(TransactionManagerImpl tm)
Creates the proxy. |
|
| Method Summary | |
|---|---|
void |
abortTransaction()
Aborts the transaction. |
void |
begin()
Start the transaction. |
void |
commit()
Commits the transaction |
void |
enlistBeginResource(BeginResource resource)
Enlist a resource automatically called when a transaction begins |
void |
enlistCloseResource(CloseResource resource)
Enlist a resource automatically closed when the context ends. |
int |
getEnlistedResourceCount()
Returns the XID. |
int |
getStatus()
Gets the transaction's status |
Xid |
getXid()
Returns the XID. |
boolean |
isInContext()
inContext is valid within a managed UserTransactionImpl context, e.g in a webApp, but not in a cron job. |
void |
rollback()
Rolls the transaction back |
void |
setInContext(boolean isInContext)
inContext is valid within a managed UserTransactionImpl context, e.g in a webApp, but not in a cron job. |
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. |
void |
userResume(UserTransactionSuspendState state)
Resumes the transaction. |
UserTransactionSuspendState |
userSuspend()
Suspends the transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTransactionImpl(TransactionManagerImpl tm)
| Method Detail |
|---|
public void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemException
public int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic boolean isInContext()
public void setInContext(boolean isInContext)
public void enlistBeginResource(BeginResource resource)
public void enlistCloseResource(CloseResource resource)
public Xid getXid()
throws SystemException,
RollbackException
SystemException
RollbackException
public int getEnlistedResourceCount()
throws SystemException,
RollbackException
SystemException
RollbackException
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedException
SystemExceptionpublic UserTransactionSuspendState userSuspend()
public void userResume(UserTransactionSuspendState state)
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
setRollbackOnly 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 UserTransactionjava.lang.IllegalStateException
RollbackException
HeuristicMixedException
HeuristicRollbackException
java.lang.SecurityException
SystemException
public void rollback()
throws java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
rollback in interface UserTransactionjava.lang.IllegalStateException
java.lang.SecurityException
SystemException
public void abortTransaction()
throws java.lang.IllegalStateException
java.lang.IllegalStateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||