|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.caucho.transaction.TransactionImpl
Implementation of the transaction. Transactions are normally associated with a single thread.
Method Summary | |
void |
close()
Close the transaction, rolling back everything and removing all enlisted resources. |
void |
commit()
Commit the transaction. |
boolean |
delistResource(com.caucho.transaction.XAResource resource,
int flag)
delists a resource from the current transaction |
boolean |
enlistResource(com.caucho.transaction.XAResource resource)
enlists a resource with the current transaction |
int |
getStatus()
Returns the status of this transaction |
void |
handleAlarm(Alarm alarm)
Handles a callback from an alarm. |
void |
registerSynchronization(com.caucho.transaction.Synchronization sync)
Register a synchronization callback |
void |
rollback()
Rollback the transaction. |
void |
setRollbackOnly()
Force any completion to be a rollback. |
void |
setTransactionTimeout(int seconds)
sets the timeout for the transaction |
Method Detail |
public boolean enlistResource(com.caucho.transaction.XAResource resource) throws com.caucho.transaction.RollbackException, com.caucho.transaction.SystemException
public boolean delistResource(com.caucho.transaction.XAResource resource, int flag) throws com.caucho.transaction.SystemException
resource
- the resource to delistflag
- XXX: ???public int getStatus() throws com.caucho.transaction.SystemException
public void registerSynchronization(com.caucho.transaction.Synchronization sync)
public void setRollbackOnly() throws com.caucho.transaction.SystemException
public void commit() throws com.caucho.transaction.RollbackException, com.caucho.transaction.HeuristicMixedException, com.caucho.transaction.HeuristicRollbackException, com.caucho.transaction.SystemException
public void rollback()
public void setTransactionTimeout(int seconds) throws com.caucho.transaction.SystemException
public void handleAlarm(Alarm alarm)
AlarmListener
handleAlarm
in interface AlarmListener
public void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |