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

java.lang.Object
  extended byorg.exolab.castor.jdo.transactionmanager.spi.BaseTransactionManagerFactory
All Implemented Interfaces:
TransactionManagerFactory
Direct Known Subclasses:
JNDIENCTransactionManagerFactory, LocalTransactionManagerFactory, WebSphere51TransactionManagerFactory, WebSphere5TransactionManagerFactory, WebSphereTransactionManagerFactory

public abstract class BaseTransactionManagerFactory
extends java.lang.Object
implements TransactionManagerFactory

Transaction manager factory instance to be used with J2EE containers where the transaction manager is bound to the JNDI ENC of the container. Implements {link org.exolab.castor.jdo.transactionmanager. TransactionManagerFactory}.

Author:
Bruce Snyder, Werner Guttmann

Field Summary
protected  javax.transaction.TransactionManager _transactionManager
          The javax.transaction.TransactionManager that Castor will use.
protected  java.util.Properties params
           
 
Constructor Summary
BaseTransactionManagerFactory()
           
 
Method Summary
abstract  java.lang.String getName()
          Returns the short alias for this factory instance.
 java.util.Properties getParams()
          Returns the full set of parameters associated with this factory instance.
abstract  javax.transaction.TransactionManager getTransactionManager()
          Acquires the appropriate TransactionManager.
 void setParams(java.util.Properties params)
          Setsthe full set of parameters on this factory instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected java.util.Properties params

_transactionManager

protected javax.transaction.TransactionManager _transactionManager
The javax.transaction.TransactionManager that Castor will use.

Constructor Detail

BaseTransactionManagerFactory

public BaseTransactionManagerFactory()
Method Detail

getTransactionManager

public abstract javax.transaction.TransactionManager getTransactionManager()
                                                                    throws TransactionManagerAcquireException
Acquires the appropriate TransactionManager.

Specified by:
getTransactionManager in interface TransactionManagerFactory
Throws:
TransactionManagerAcquireException

getName

public abstract 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.

getParams

public java.util.Properties getParams()
Description copied from interface: TransactionManagerFactory
Returns the full set of parameters associated with this factory instance.

Specified by:
getParams in interface TransactionManagerFactory
Returns:
The full set of parameters. Null if no parameters are available.

setParams

public void setParams(java.util.Properties params)
Description copied from interface: TransactionManagerFactory
Setsthe full set of parameters on this factory instance.

Specified by:
setParams in interface TransactionManagerFactory


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