Interface JdbcConnectionFactory

  • All Known Implementing Classes:
    GenericJdbcConnectionFactory

    public interface JdbcConnectionFactory
    Factory abstracts creation of JDBC connection to database.
    • Method Detail

      • getConnection

        Connection getConnection​(com.amazonaws.athena.connector.credentials.CredentialsProvider credentialsProvider)
                          throws Exception
        Retrieves database connection for a database type.
        Parameters:
        credentialsProvider - jdbc user and password provider.
        Returns:
        JDBC connection. See Connection.
        Throws:
        Exception