java.lang.Object
com.pervasive.datarush.jdbc.DefaultConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
Default implementation of
ConnectionFactory that uses the JDBC
DriverManager for creating connections.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(ConnectionSettings settings) Create a new JDBC connection.static DriverProviderGets the driver provider to use.static voidsetDriverProvider(DriverProvider driver) Sets the driver provider to use.
-
Constructor Details
-
DefaultConnectionFactory
public DefaultConnectionFactory()
-
-
Method Details
-
setDriverProvider
Sets the driver provider to use. By default, we use a driver provider that first looks in the DR classloader, then looks in the system classloader.- Parameters:
driver- the driver provider.
-
getDriverProvider
Gets the driver provider to use. By default, we use a driver provider that first looks in the DR classloader, then looks in the system classloader.- Returns:
- the driver provider.
-
createConnection
Description copied from interface:ConnectionFactoryCreate a new JDBC connection. Implementation must allow this method to be called multiple times and by multiple threads.- Specified by:
createConnectionin interfaceConnectionFactory- Parameters:
settings- the connection settings- Returns:
- a newly-created JDBC connection.
-