public class ConnectionFactoryImpl
extends org.datanucleus.store.connection.AbstractConnectionFactory
Modifier and Type | Field and Description |
---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER_RDBMS |
Constructor and Description |
---|
ConnectionFactoryImpl(org.datanucleus.store.StoreManager storeMgr,
String resourceType)
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 txnOptions)
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 resourceType)
storeMgr
- Store ManagerresourceType
- either tx or nontxpublic void close()
close
in interface org.datanucleus.store.connection.ConnectionFactory
close
in class org.datanucleus.store.connection.AbstractConnectionFactory
protected void initialiseDataSources()
public org.datanucleus.store.connection.ManagedConnection createManagedConnection(org.datanucleus.ExecutionContext ec, Map txnOptions)
ec
- the object that is bound the connection during its lifecycle (if any)txnOptions
- Transaction options for creating the connectionprotected static String calculatePoolingType(org.datanucleus.store.StoreManager storeMgr, String requiredPoolingType)
requiredPoolingType
- 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 © 2023. All rights reserved.