org.jboss.ejb3.tx
Class UserTransactionImpl

java.lang.Object
  extended by org.jboss.ejb3.tx.UserTransactionImpl
All Implemented Interfaces:
Externalizable, Serializable, UserTransaction

public final class UserTransactionImpl
extends Object
implements UserTransaction, Externalizable

Comment

Version:
$Revision: 72368 $
Author:
Bill Burke
See Also:
Serialized Form

Field Summary
protected static org.jboss.logging.Logger log
           
 
Constructor Summary
UserTransactionImpl()
           
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 void readExternal(ObjectInput in)
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int seconds)
          Set the transaction timeout value for new transactions started by this instance.
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log
Constructor Detail

UserTransactionImpl

public UserTransactionImpl()
Method Detail

begin

public void begin()
           throws NotSupportedException,
                  SystemException
Specified by:
begin in interface UserTransaction
Throws:
NotSupportedException
SystemException

commit

public void commit()
            throws RollbackException,
                   HeuristicMixedException,
                   HeuristicRollbackException,
                   SecurityException,
                   IllegalStateException,
                   SystemException
Specified by:
commit in interface UserTransaction
Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException

rollback

public void rollback()
              throws IllegalStateException,
                     SecurityException,
                     SystemException
Specified by:
rollback in interface UserTransaction
Throws:
IllegalStateException
SecurityException
SystemException

setRollbackOnly

public void setRollbackOnly()
                     throws IllegalStateException,
                            SystemException
Specified by:
setRollbackOnly in interface UserTransaction
Throws:
IllegalStateException
SystemException

getStatus

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

setTransactionTimeout

public void setTransactionTimeout(int seconds)
                           throws SystemException
Set the transaction timeout value for new transactions started by this instance.

Specified by:
setTransactionTimeout in interface UserTransaction
Throws:
SystemException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2008 JBoss Inc.. All Rights Reserved.