org.datanucleus.store.connection
Class AbstractConnectionFactory
java.lang.Object
org.datanucleus.store.connection.AbstractConnectionFactory
- All Implemented Interfaces:
- ConnectionFactory
public abstract class AbstractConnectionFactory
- extends java.lang.Object
- implements ConnectionFactory
Abstract implementation of a ConnectionFactory for a DataNucleus supported datastore.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
omfContext
protected OMFContext omfContext
- The underlying ObjectManagerFactory context.
options
protected java.util.Map options
AbstractConnectionFactory
public AbstractConnectionFactory(OMFContext omfContext,
java.lang.String resourceType)
- Constructor.
- Parameters:
omfContext - The OMF contextresourceType - Type of resource (tx, nontx)
getConnection
public ManagedConnection getConnection(java.lang.Object boundto,
Transaction transaction,
java.util.Map options)
- Description copied from interface:
ConnectionFactory
- Obtain a connection from the Factory. The connection will be enlisted within the
Transaction
associated to the poolKey if "enlist" is set to true.
- Specified by:
getConnection in interface ConnectionFactory
- Parameters:
boundto - the pool that is bound the connection during its lifecycle (or null)options - Any options for then creating the connection
- Returns:
- the
ManagedConnection
Copyright © 2010. All Rights Reserved.