Package org.jdbi.v3.core
Interface ConnectionFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies
Connection
instances to a created Handle
and allows
custom close handling.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
closeConnection
(Connection conn) Close a connection.Open a connection.
-
Method Details
-
openConnection
Open a connection.- Returns:
- a Connection
- Throws:
SQLException
- if anything goes wrong
-
closeConnection
Close a connection.- Parameters:
conn
- the connection to close- Throws:
SQLException
- if anything goes wrong
-