org.datanucleus.store.json
Class ConnectionFactoryImpl
java.lang.Object
org.datanucleus.store.connection.AbstractConnectionFactory
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.
| Fields inherited from class org.datanucleus.store.connection.AbstractConnectionFactory |
options, resourceType, storeMgr |
| 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.store.StoreManager storeMgr,
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 |
close, getConnection, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STORE_JSON_URL
public static final java.lang.String STORE_JSON_URL
- See Also:
- Constant Field Values
ConnectionFactoryImpl
public ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
java.lang.String resourceType)
- Constructor.
- Parameters:
storeMgr - Store ManagerresourceType - Type of resource (tx, nontx)
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 © 2012. All Rights Reserved.