org.slim3.transaction.jta
Class UserTransactionImpl

java.lang.Object
  extended by org.slim3.transaction.jta.UserTransactionImpl
All Implemented Interfaces:
UserTransaction

public class UserTransactionImpl
extends Object
implements UserTransaction

An implementation class for UserTransaction.

Since:
3.0
Author:
higa

Field Summary
protected  TransactionManager tm
          The transaction manager.
 
Constructor Summary
UserTransactionImpl(TransactionManager tm)
          Constructor.
 
Method Summary
 void begin()
           
 void commit()
           
 int getStatus()
           
 void rollback()
           
 void setRollbackOnly()
           
 void setTransactionTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tm

protected TransactionManager tm
The transaction manager.

Constructor Detail

UserTransactionImpl

public UserTransactionImpl(TransactionManager tm)
                    throws NullPointerException
Constructor.

Parameters:
tm - the transaction manager
Throws:
NullPointerException - if the tm parameter is null
Method Detail

begin

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

commit

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

getStatus

public int getStatus()
              throws SystemException
Specified by:
getStatus in interface UserTransaction
Throws:
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

setTransactionTimeout

public void setTransactionTimeout(int timeout)
                           throws SystemException
Specified by:
setTransactionTimeout in interface UserTransaction
Throws:
SystemException


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.