Class AbstractConnectionPoolFactory
- java.lang.Object
-
- org.datanucleus.store.rdbms.connectionpool.AbstractConnectionPoolFactory
-
- All Implemented Interfaces:
ConnectionPoolFactory
- Direct Known Subclasses:
BoneCPConnectionPoolFactory
,C3P0ConnectionPoolFactory
,DBCP2BuiltinConnectionPoolFactory
,DBCP2ConnectionPoolFactory
,HikariCPConnectionPoolFactory
,TomcatConnectionPoolFactory
public abstract class AbstractConnectionPoolFactory extends Object implements ConnectionPoolFactory
Abstract superclass for ConnectionPool factory.
-
-
Constructor Summary
Constructors Constructor Description AbstractConnectionPoolFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Properties
getPropertiesForDriver(org.datanucleus.store.StoreManager storeMgr)
Convenience method to return the properties to pass to the driver.protected void
loadDriver(String dbDriver, org.datanucleus.ClassLoaderResolver clr)
Convenience method to load the (JDBC) driver.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.datanucleus.store.rdbms.connectionpool.ConnectionPoolFactory
createConnectionPool
-
-
-
-
Method Detail
-
loadDriver
protected void loadDriver(String dbDriver, org.datanucleus.ClassLoaderResolver clr)
Convenience method to load the (JDBC) driver.- Parameters:
dbDriver
- Datastore driverclr
- Class loader resolver
-
getPropertiesForDriver
public static Properties getPropertiesForDriver(org.datanucleus.store.StoreManager storeMgr)
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
-
-