Interface ConnectionProvider

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

@Internal @FunctionalInterface public interface ConnectionProvider
Interface towards a mechanism that provides access to a JDBC Connection.
Since:
2.2
Author:
Allard Buijze
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a connection, ready for use.
  • Method Details

    • getConnection

      Connection getConnection() throws SQLException
      Returns a connection, ready for use.
      Returns:
      a new connection to use
      Throws:
      SQLException - when an error occurs obtaining the connection