org.castor.transactionmanager
Class LocalTransactionManager

java.lang.Object
  extended by org.castor.transactionmanager.LocalTransactionManager
All Implemented Interfaces:
javax.transaction.TransactionManager

public final class LocalTransactionManager
extends java.lang.Object
implements javax.transaction.TransactionManager

Default transaction manager when Castor is used in standalone mode, in other words not within a J2EE container.

Since:
1.0
Version:
$Revision: 6907 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
Author:
Ralf Joachim

Constructor Summary
LocalTransactionManager()
           
 
Method Summary
 void begin()
          
 void commit()
          
 int getStatus()
          
 javax.transaction.Transaction getTransaction()
          
 void resume(javax.transaction.Transaction arg)
          
 void rollback()
          
 void setRollbackOnly()
          
 void setTransactionTimeout(int arg)
          
 javax.transaction.Transaction suspend()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalTransactionManager

public LocalTransactionManager()
Method Detail

begin

public void begin()
           throws javax.transaction.SystemException

Specified by:
begin in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.begin()

commit

public void commit()
            throws javax.transaction.SystemException

Specified by:
commit in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.commit()

getStatus

public int getStatus()
              throws javax.transaction.SystemException

Specified by:
getStatus in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.getStatus()

getTransaction

public javax.transaction.Transaction getTransaction()
                                             throws javax.transaction.SystemException

Specified by:
getTransaction in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.getTransaction()

resume

public void resume(javax.transaction.Transaction arg)
            throws javax.transaction.SystemException

Specified by:
resume in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.resume(javax.transaction.Transaction)

rollback

public void rollback()
              throws javax.transaction.SystemException

Specified by:
rollback in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.rollback()

setRollbackOnly

public void setRollbackOnly()
                     throws javax.transaction.SystemException

Specified by:
setRollbackOnly in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.setRollbackOnly()

setTransactionTimeout

public void setTransactionTimeout(int arg)
                           throws javax.transaction.SystemException

Specified by:
setTransactionTimeout in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.setTransactionTimeout(int)

suspend

public javax.transaction.Transaction suspend()
                                      throws javax.transaction.SystemException

Specified by:
suspend in interface javax.transaction.TransactionManager
Throws:
javax.transaction.SystemException
See Also:
TransactionManager.suspend()


Copyright © 2011. All Rights Reserved.