org.datanucleus.store.json
Class ConnectionFactoryImpl

java.lang.Object
  extended by org.datanucleus.store.connection.AbstractConnectionFactory
      extended by org.datanucleus.store.json.ConnectionFactoryImpl
All Implemented Interfaces:
org.datanucleus.store.connection.ConnectionFactory

public class ConnectionFactoryImpl
extends org.datanucleus.store.connection.AbstractConnectionFactory

Implementation of a ConnectionFactory for JSON. The connections are only created and they are not managed. All operations besides getConnection are no-op.


Nested Class Summary
static class ConnectionFactoryImpl.ManagedConnectionImpl
          Implementation of a ManagedConnection for LDAP.
 
Field Summary
static java.lang.String STORE_JSON_URL
           
 
Fields inherited from class org.datanucleus.store.connection.AbstractConnectionFactory
omfContext, options, resourceType
 
Fields inherited from interface org.datanucleus.store.connection.ConnectionFactory
DATANUCLEUS_CONNECTION_RESOURCE_TYPE, DATANUCLEUS_CONNECTION2_RESOURCE_TYPE, RESOURCE_TYPE_OPTION
 
Constructor Summary
ConnectionFactoryImpl(org.datanucleus.OMFContext omfContext, java.lang.String resourceType)
          Constructor.
 
Method Summary
 org.datanucleus.store.connection.ManagedConnection createManagedConnection(java.lang.Object poolKey, java.util.Map options)
          Obtain a connection from the Factory.
 
Methods inherited from class org.datanucleus.store.connection.AbstractConnectionFactory
getConnection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STORE_JSON_URL

public static final java.lang.String STORE_JSON_URL
See Also:
Constant Field Values
Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl(org.datanucleus.OMFContext omfContext,
                             java.lang.String resourceType)
Constructor.

Parameters:
omfContext - The OMF context
resourceType - Type of resource (tx, nontx)
Method Detail

createManagedConnection

public org.datanucleus.store.connection.ManagedConnection createManagedConnection(java.lang.Object poolKey,
                                                                                  java.util.Map options)
Obtain a connection from the Factory. The connection will be enlisted within the Transaction associated to the poolKey if "enlist" is set to true.

Parameters:
poolKey - the pool that is bound the connection during its lifecycle (or null)
options - Any options for then creating the connection
Returns:
the ManagedConnection


Copyright © 2011. All Rights Reserved.