Class AbstractConnectionPoolFactory
java.lang.Object
org.datanucleus.store.rdbms.connectionpool.AbstractConnectionPoolFactory
- All Implemented Interfaces:
ConnectionPoolFactory
- Direct Known Subclasses:
C3P0ConnectionPoolFactory, DBCP2BuiltinConnectionPoolFactory, DBCP2ConnectionPoolFactory, TomcatConnectionPoolFactory
Abstract superclass for ConnectionPool factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PropertiesgetPropertiesForDriver(org.datanucleus.store.StoreManager storeMgr) Convenience method to return the properties to pass to the driver.protected voidloadDriver(String dbDriver, org.datanucleus.ClassLoaderResolver clr) Convenience method to load the (JDBC) driver.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConnectionPoolFactory
createConnectionPool
-
Constructor Details
-
AbstractConnectionPoolFactory
public AbstractConnectionPoolFactory()
-
-
Method Details
-
loadDriver
Convenience method to load the (JDBC) driver.- Parameters:
dbDriver- Datastore driverclr- Class loader resolver
-
getPropertiesForDriver
Convenience method to return the properties to pass to the driver. Includes as a minimum "user" and "password", but a user may define a persistence property with name "datanucleus.connectionPool.driverProps" then is a comma separated name-value pair that are treated as properties- Parameters:
storeMgr- StoreManager- Returns:
- The properties for the driver
-