public class DBIUtil extends Object
| Constructor and Description |
|---|
DBIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeIfNeeded(Handle h)
Close a handle if it is not transactionally bound, otherwise no-op
|
static Handle |
getHandle(IDBI dbi)
Obtain a Handle instance, either the transactionally bound one if we are in a transaction,
or a new one otherwise.
|
public static void closeIfNeeded(Handle h)
h - the handle to consider closingCopyright © 2018. All rights reserved.