Interface JdbcConnection.ConnectionFactory

All Known Implementing Classes:
JdbcConnection.ConnectionFactoryDecorator
Enclosing class:
JdbcConnection
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @ThreadSafe public static interface JdbcConnection.ConnectionFactory
Establishes JDBC connections.
  • Method Summary

    Modifier and Type
    Method
    Description
    Establish a connection to the database denoted by the given configuration.
  • Method Details

    • connect

      Connection connect(JdbcConfiguration config) throws SQLException
      Establish a connection to the database denoted by the given configuration.
      Parameters:
      config - the configuration with JDBC connection information
      Returns:
      the JDBC connection; may not be null
      Throws:
      SQLException - if there is an error connecting to the database