Interface Session.ConnectionFactory

Enclosing class:
Session

public static interface Session.ConnectionFactory
Connection factory.
Author:
Ralf Wisser
  • Method Details

    • getConnection

      Connection getConnection() throws SQLException
      Gets the connection for the current thread.
      Returns:
      the connection
      Throws:
      SQLException - if a database access error occurs
    • createNewConnection

      Connection createNewConnection() throws SQLException
      Creates a new connection. Must be closed by the caller.
      Returns:
      a new connection
      Throws:
      SQLException - if a database access error occurs