Class SpringConnectionFactory
java.lang.Object
org.jdbi.v3.spring.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 Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConnectionFactory
getCleanableForModifier and TypeMethodDescriptiondefault CleanablegetCleanableFor(Connection conn) Returns aCleanablethat will close the connection and release all necessary resources.
-
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
-