Interface ConnectionCreator

All Known Implementing Classes:
BasicConnectionCreator, DriverConnectionCreator, DriverManagerConnectionCreator

public interface ConnectionCreator
Contract for creating JDBC connections on demand.
  • Method Details

    • getUrl

      String getUrl()
      Obtain the URL to which this creator connects. Intended just for informational (logging) purposes.
      Returns:
      The connection URL.
    • createConnection

      Connection createConnection()
      Create a Connection
      Returns:
      The newly-created Connection