|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jts.jta.TransactionImpl
public class TransactionImpl
An implementation of javax.transaction.Transaction using JTS XXX TODO should catch all org.omg.CORBA.SystemException and throw javax.transaction.SystemException
| Constructor Summary | |
|---|---|
TransactionImpl(org.omg.CosTransactions.Control control,
GlobalTID gtid)
|
|
| Method Summary | |
|---|---|
void |
commit()
Complete the transaction represented by this Transaction object |
boolean |
delistResource(XAResource res,
int flags)
|
boolean |
enlistResource(XAResource res)
enlist a resource with the current transaction If a transaction is marked as rollback, enlistment will succeed if the resource has been enlisted before. |
boolean |
equals(java.lang.Object object)
|
long |
getStartTime()
|
int |
getStatus()
|
java.lang.String |
getTransactionId()
|
int |
hashCode()
|
void |
registerInterposedSynchronization(Synchronization sync)
|
void |
registerSynchronization(Synchronization sync)
|
void |
rollback()
Rollback the transaction represented by this Transaction object. |
void |
setRollbackOnly()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionImpl(org.omg.CosTransactions.Control control,
GlobalTID gtid)
throws SystemException
SystemException| Method Detail |
|---|
public void commit()
throws HeuristicMixedException,
RollbackException,
HeuristicRollbackException,
java.lang.IllegalStateException,
java.lang.SecurityException,
SystemException
commit in interface TransactionHeuristicMixedException
RollbackException
HeuristicRollbackException
java.lang.IllegalStateException
java.lang.SecurityException
SystemException
public void rollback()
throws java.lang.IllegalStateException,
SystemException
rollback in interface Transactionjava.lang.IllegalStateException
SystemException
public boolean enlistResource(XAResource res)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
enlistResource in interface TransactionRollbackException
java.lang.IllegalStateException
SystemException
public boolean delistResource(XAResource res,
int flags)
throws java.lang.IllegalStateException,
SystemException
delistResource in interface Transactionjava.lang.IllegalStateException
SystemException
public int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public void registerSynchronization(Synchronization sync)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
registerSynchronization in interface TransactionRollbackException
java.lang.IllegalStateException
SystemException
public void registerInterposedSynchronization(Synchronization sync)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
registerInterposedSynchronization in interface TransactionInternalRollbackException
java.lang.IllegalStateException
SystemException
public void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
setRollbackOnly in interface Transactionjava.lang.IllegalStateException
SystemExceptionpublic java.lang.String getTransactionId()
public long getStartTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||