Package org.jdbi.v3.spring4
Class JdbiUtil
java.lang.Object
org.jdbi.v3.spring4.JdbiUtil
Deprecated.
Spring 4 is EOL, please move to Spring 5
Utility for working with Jdbi and Spring transaction bound resources
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeIfNeeded(Handle handle)
Deprecated.Close a handle if it is not transactionally bound, otherwise no-opstatic Handle
Deprecated.Obtain a Handle instance, either the transactionally bound one if we are in a transaction, or a new one otherwise.
-
Method Details
-
getHandle
Deprecated.Obtain a Handle instance, either the transactionally bound one if we are in a transaction, or a new one otherwise.- Parameters:
jdbi
- the Jdbi instance from which to obtain the handle- Returns:
- the Handle instance
-
closeIfNeeded
Deprecated.Close a handle if it is not transactionally bound, otherwise no-op- Parameters:
handle
- the handle to consider closing
-