Package com.exasol.adapter.jdbc
Interface ConnectionFactory
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
RemoteConnectionFactory
public interface ConnectionFactory extends AutoCloseable
Interface for factories creating custom JDBC connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()ConnectiongetConnection()Create a JDBC connection to the remote data source.
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws SQLException
Create a JDBC connection to the remote data source.- Returns:
- JDBC connection to remote data source
- Throws:
SQLException- if the connection to the remote source could not be established
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable
-
-