Interface Session.ConnectionFactory
- Enclosing class:
Session
public static interface Session.ConnectionFactory
Connection factory.
- Author:
- Ralf Wisser
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new connection.Gets the connection for the current thread.
-
Method Details
-
getConnection
Gets the connection for the current thread.- Returns:
- the connection
- Throws:
SQLException- if a database access error occurs
-
createNewConnection
Creates a new connection. Must be closed by the caller.- Returns:
- a new connection
- Throws:
SQLException- if a database access error occurs
-