Package org.jdbi.v3.core
Class SingleConnectionFactory
java.lang.Object
org.jdbi.v3.core.SingleConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
Connection handler which always provides a single connection. Close operation is ignored.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection toClose) Closes a connection.Opens a connection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.ConnectionFactory
getCleanableFor
-
Field Details
-
connection
-
-
Constructor Details
-
SingleConnectionFactory
SingleConnectionFactory(Connection connection)
-
-
Method Details
-
openConnection
Description copied from interface:ConnectionFactoryOpens a connection.- Specified by:
openConnectionin interfaceConnectionFactory- Returns:
- A
Connectionobject.
-
closeConnection
Description copied from interface:ConnectionFactoryCloses a connection.- Specified by:
closeConnectionin interfaceConnectionFactory- Parameters:
toClose- AConnectionobject.
-