Interface JdbcConnectionFactory
-
- All Known Implementing Classes:
DataLakeGen2JdbcConnectionFactory
,GenericJdbcConnectionFactory
,HiveJdbcConnectionFactory
,HiveJdbcConnectionFactory
,ImpalaJdbcConnectionFactory
,OracleJdbcConnectionFactory
,SqlServerJdbcConnectionFactory
,SynapseJdbcConnectionFactory
public interface JdbcConnectionFactory
Factory abstracts creation of JDBC connection to database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
getConnection(JdbcCredentialProvider jdbcCredentialProvider)
Retrieves database connection for a database type.
-
-
-
Method Detail
-
getConnection
Connection getConnection(JdbcCredentialProvider jdbcCredentialProvider) throws Exception
Retrieves database connection for a database type.- Parameters:
jdbcCredentialProvider
- jdbc user and password provider.- Returns:
- JDBC connection. See
Connection
. - Throws:
Exception
-
-