org.exolab.castor.jdo.transactionmanager.spi
Class LocalTransactionManagerFactory

java.lang.Object
  extended by org.exolab.castor.jdo.transactionmanager.spi.LocalTransactionManagerFactory
All Implemented Interfaces:
TransactionManagerFactory

public final class LocalTransactionManagerFactory
extends java.lang.Object
implements TransactionManagerFactory

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

Version:
$Revision: 1.5 $ $Date: 2005/09/20 21:30:47 $
Author:
Bruce Snyder, Werner Guttmann, Ralf Joachim

Field Summary
static javax.transaction.TransactionManager MANAGER
          The dummy transaction manager that always will be returned.
static java.lang.String NAME
          The name of the factory.
 
Constructor Summary
LocalTransactionManagerFactory()
           
 
Method Summary
 java.lang.String getName()
          Returns the short alias for this factory instance.
 javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
          Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
The name of the factory.

See Also:
Constant Field Values

MANAGER

public static final javax.transaction.TransactionManager MANAGER
The dummy transaction manager that always will be returned.

Constructor Detail

LocalTransactionManagerFactory

public LocalTransactionManagerFactory()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: TransactionManagerFactory
Returns the short alias for this factory instance.

Specified by:
getName in interface TransactionManagerFactory
Returns:
The short alias name.
See Also:
TransactionManagerFactory.getName()

getTransactionManager

public javax.transaction.TransactionManager getTransactionManager(JdoConf jdoConf)
                                                           throws TransactionManagerAcquireException
Description copied from interface: TransactionManagerFactory
Acquires the appropriate javax.transaction.TransactionManager with the parameters from the given jdo configuration.

Specified by:
getTransactionManager in interface TransactionManagerFactory
Parameters:
jdoConf - The jdo configuration holding the parameters to set on the transaction manager.
Returns:
The transaction manager.
Throws:
TransactionManagerAcquireException - If any failure occures when loading the transaction manager.
See Also:
#getTransactionManager(org.exolab.castor.jdo.conf.JdoConf)


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com