public class ConnectionFactoryImpl
extends org.datanucleus.store.connection.AbstractConnectionFactory
| Constructor and Description |
|---|
ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
String resourceName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
bonecpPresent(org.datanucleus.ClassLoaderResolver clr) |
protected static boolean |
c3p0Present(org.datanucleus.ClassLoaderResolver clr) |
protected static String |
calculatePoolingType(org.datanucleus.store.StoreManager storeMgr,
String requiredPoolingType)
Method to set the connection pooling type (if any).
|
void |
close() |
org.datanucleus.store.connection.ManagedConnection |
createManagedConnection(org.datanucleus.ExecutionContext ec,
Map options)
Method to create a new ManagedConnection.
|
protected static boolean |
dbcpPresent(org.datanucleus.ClassLoaderResolver clr) |
protected void |
initialiseDataSources()
Method to initialise the DataSource(s) used by this ConnectionFactory.
|
protected static boolean |
proxoolPresent(org.datanucleus.ClassLoaderResolver clr) |
public ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
String resourceName)
storeMgr - Store ManagerresourceName - either tx or nontxpublic void close()
close in interface org.datanucleus.store.connection.ConnectionFactoryclose in class org.datanucleus.store.connection.AbstractConnectionFactoryprotected void initialiseDataSources()
public org.datanucleus.store.connection.ManagedConnection createManagedConnection(org.datanucleus.ExecutionContext ec,
Map options)
ec - the object that is bound the connection during its lifecycle (if for a PM/EM operation)options - Options for creating the connection (optional)protected static String calculatePoolingType(org.datanucleus.store.StoreManager storeMgr, String requiredPoolingType)
storeMgr - Store ManagerrequiredPoolingType - Pooling type requested by the userprotected static boolean dbcpPresent(org.datanucleus.ClassLoaderResolver clr)
protected static boolean c3p0Present(org.datanucleus.ClassLoaderResolver clr)
protected static boolean proxoolPresent(org.datanucleus.ClassLoaderResolver clr)
protected static boolean bonecpPresent(org.datanucleus.ClassLoaderResolver clr)
Copyright © 2017. All rights reserved.