Class ConnectionFactoryFactory
java.lang.Object
org.datanucleus.store.rdbms.datasource.dbcp2.ConnectionFactoryFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ConnectionFactorycreateConnectionFactory(BasicDataSource basicDataSource, Driver driver) Creates a newDriverConnectionFactoryallowing for an override throughBasicDataSource.getDriverClassName().
-
Constructor Details
-
ConnectionFactoryFactory
ConnectionFactoryFactory()
-
-
Method Details
-
createConnectionFactory
static ConnectionFactory createConnectionFactory(BasicDataSource basicDataSource, Driver driver) throws SQLException Creates a newDriverConnectionFactoryallowing for an override throughBasicDataSource.getDriverClassName().- Parameters:
basicDataSource- Configures creation.driver- The JDBC driver.- Returns:
- a new
DriverConnectionFactoryallowing for aBasicDataSource.getDriverClassName()override. - Throws:
SQLException- Thrown when instantiation fails.
-