cuba.wired
Class WiredUserTransaction

java.lang.Object
  extended by cuba.wired.WiredUserTransaction
All Implemented Interfaces:
javax.transaction.UserTransaction

public class WiredUserTransaction
extends java.lang.Object
implements javax.transaction.UserTransaction

Transaction object, being instantiated when a component calls WiredComponentContext.getTransaction() for the first time or a client calls WiredClientContext.getTransaction(). We currently do not support nested calls of begin() allthough this is no rocket sience since we have the JDBC feature of savapoints available. However, we have more important things to do at the moment ;-)

Author:
Jan Lessner

Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

begin

public void begin()
           throws javax.transaction.SystemException
Specified by:
begin in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException

commit

public void commit()
            throws javax.transaction.SystemException
Specified by:
commit in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException

rollback

public void rollback()
              throws javax.transaction.SystemException
Specified by:
rollback in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws javax.transaction.SystemException
Specified by:
setRollbackOnly in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException

getStatus

public int getStatus()
              throws javax.transaction.SystemException
Specified by:
getStatus in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException

setTransactionTimeout

public void setTransactionTimeout(int arg)
                           throws javax.transaction.SystemException
Specified by:
setTransactionTimeout in interface javax.transaction.UserTransaction
Throws:
javax.transaction.SystemException