Class AbstractConnectionFactory
java.lang.Object
org.datanucleus.store.connection.AbstractConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
Abstract implementation of a ConnectionFactory for a DataNucleus-supported datastore.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected final StringName of this resource ("tx", "non-tx" etc).protected final StringType of resource represented by this ConnectionFactory.protected StoreManager -
Constructor Summary
ConstructorsConstructorDescriptionAbstractConnectionFactory(StoreManager storeMgr, String resourceName) Constructor. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ConnectionFactory
createManagedConnection
-
Field Details
-
storeMgr
-
resourceType
Type of resource represented by this ConnectionFactory. See ConnectionResourceType. -
resourceName
Name of this resource ("tx", "non-tx" etc). -
RESOURCE_NAME_TX
- See Also:
-
RESOURCE_NAME_NONTX
- See Also:
-
-
Constructor Details
-
AbstractConnectionFactory
Constructor.- Parameters:
storeMgr- The store manager needing the connectionresourceName- Name of resource (tx, nontx)
-
-
Method Details
-
getResourceName
Description copied from interface:ConnectionFactoryAccessor for the resource name (e.g "jdbc/tx").- Specified by:
getResourceNamein interfaceConnectionFactory- Returns:
- The resource name
-
getResourceType
Description copied from interface:ConnectionFactoryType of resource that this ConnectionFactory represents. See ConnectionResourceType.- Specified by:
getResourceTypein interfaceConnectionFactory- Returns:
- Resource type ("JTA", "RESOURCE_LOCAL")
-
close
public void close()Description copied from interface:ConnectionFactoryRelease any resources that have been allocated.- Specified by:
closein interfaceConnectionFactory
-
toString
-