Package org.jdbi.v3.spring5
Class SpringConnectionFactory
java.lang.Object
org.jdbi.v3.spring5.SpringConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection connection) Closes a connection.Opens a connection.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.ConnectionFactory
getCleanableFor
-
Constructor Details
-
SpringConnectionFactory
-
-
Method Details
-
openConnection
Description copied from interface:ConnectionFactoryOpens a connection.- Specified by:
openConnectionin interfaceConnectionFactory- Returns:
- A
Connectionobject. - Throws:
SQLException- if anything goes wrong
-
closeConnection
Description copied from interface:ConnectionFactoryCloses a connection.- Specified by:
closeConnectionin interfaceConnectionFactory- Parameters:
connection- AConnectionobject.- Throws:
SQLException- if anything goes wrong
-