Class SpringConnectionFactory
java.lang.Object
org.jdbi.v3.spring5.SpringConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
@Deprecated(forRemoval=true,
since="3.47.0")
public class SpringConnectionFactory
extends Object
implements ConnectionFactory
Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Summary
ConstructorsConstructorDescriptionSpringConnectionFactory(DataSource dataSource) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection connection) Deprecated, for removal: This API element is subject to removal in a future version.Closes a connection.Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
openConnection
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConnectionFactoryOpens a connection.- Specified by:
openConnectionin interfaceConnectionFactory- Returns:
- A
Connectionobject. - Throws:
SQLException- if anything goes wrong
-
closeConnection
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ConnectionFactoryCloses a connection.- Specified by:
closeConnectionin interfaceConnectionFactory- Parameters:
connection- AConnectionobject.- Throws:
SQLException- if anything goes wrong
-
org.jdbi.v3.springmodule with Spring 6.x or newer.