Package migratedb.v1.core.internal.jdbc
Class JdbcConnectionFactoryImpl
java.lang.Object
migratedb.v1.core.internal.jdbc.JdbcConnectionFactoryImpl
- All Implemented Interfaces:
JdbcConnectionFactory
Utility class for dealing with jdbc connections.
-
Nested Class Summary
Nested classes/interfaces inherited from interface migratedb.v1.core.api.internal.jdbc.JdbcConnectionFactory
JdbcConnectionFactory.ConnectionInitializer -
Constructor Summary
ConstructorsConstructorDescriptionJdbcConnectionFactoryImpl(ConnectionProvider dataSource, Configuration configuration) Creates a new JDBC connection factory. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetConnectionInitializer(JdbcConnectionFactory.ConnectionInitializer connectionInitializer)
-
Constructor Details
-
JdbcConnectionFactoryImpl
Creates a new JDBC connection factory. This automatically opens a first connection which can be obtained via a call to openConnection and which must be closed again to avoid leaking it.
-
-
Method Details
-
setConnectionInitializer
public void setConnectionInitializer(JdbcConnectionFactory.ConnectionInitializer connectionInitializer) -
getDatabaseType
- Specified by:
getDatabaseTypein interfaceJdbcConnectionFactory
-
getJdbcUrl
- Specified by:
getJdbcUrlin interfaceJdbcConnectionFactory
-
getDriverInfo
- Specified by:
getDriverInfoin interfaceJdbcConnectionFactory
-
getProductName
- Specified by:
getProductNamein interfaceJdbcConnectionFactory
-
openConnection
- Specified by:
openConnectionin interfaceJdbcConnectionFactory- Throws:
MigrateDbException
-