org.datanucleus.store.hbase
Class ConnectionFactoryImpl
java.lang.Object
org.datanucleus.store.connection.AbstractConnectionFactory
org.datanucleus.store.hbase.ConnectionFactoryImpl
- All Implemented Interfaces:
- org.datanucleus.store.connection.ConnectionFactory
public class ConnectionFactoryImpl
- extends org.datanucleus.store.connection.AbstractConnectionFactory
Implementation of a ConnectionFactory for HBase.
|
Field Summary |
protected static org.datanucleus.util.Localiser |
LOCALISER_HBASE
Localiser for messages. |
| 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 |
LOCALISER_HBASE
protected static final org.datanucleus.util.Localiser LOCALISER_HBASE
- Localiser for messages.
ConnectionFactoryImpl
public ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
java.lang.String resourceType)
- Constructor.
- Parameters:
storeMgr - The contextresourceType - 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.