org.datanucleus.store.json
Class ConnectionFactoryImpl
java.lang.Object
org.datanucleus.store.json.ConnectionFactoryImpl
- All Implemented Interfaces:
- org.datanucleus.ConnectionFactory
public class ConnectionFactoryImpl
- extends java.lang.Object
- implements org.datanucleus.ConnectionFactory
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 interface org.datanucleus.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.ManagedConnection |
createManagedConnection(org.datanucleus.ObjectManager om,
java.util.Map transactionOptions)
Method to create a new managed connection. |
org.datanucleus.ManagedConnection |
getConnection(org.datanucleus.ObjectManager om,
java.util.Map options)
Method to get a managed connection enlisting it in the transaction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.OMFContext omfContext,
java.lang.String resourceType)
- Constructor.
- Parameters:
omfContext - The OMF contextresourceType - Type of resource (tx, nontx)
getConnection
public org.datanucleus.ManagedConnection getConnection(org.datanucleus.ObjectManager om,
java.util.Map options)
- Method to get a managed connection enlisting it in the transaction.
- Specified by:
getConnection in interface org.datanucleus.ConnectionFactory
- Parameters:
om - ObjectManager (or null)options - Any options for when creating the connection
- Returns:
- The connection
createManagedConnection
public org.datanucleus.ManagedConnection createManagedConnection(org.datanucleus.ObjectManager om,
java.util.Map transactionOptions)
- Method to create a new managed connection.
- Specified by:
createManagedConnection in interface org.datanucleus.ConnectionFactory
- Parameters:
om - ObjectManageroptions - Transaction options
- Returns:
- The connection
Copyright © 2009. All Rights Reserved.