public class Handles extends Object implements JdbiConfig<Handles>
| Constructor and Description |
|---|
Handles() |
| Modifier and Type | Method and Description |
|---|---|
Handles |
createCopy()
Returns a copy of this configuration object.
|
boolean |
isForceEndTransactions()
Returns whether to enforce transaction termination discipline when a
Handle is closed. |
void |
setForceEndTransactions(boolean forceEndTransactions)
Sets whether to enforce transaction termination discipline when a
Handle is closed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetRegistrypublic Handles createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<Handles>public boolean isForceEndTransactions()
Handle is closed. This check is enabled by default. If enabled,
and a handle is closed while a transaction is active (i.e. not committed
or rolled back), an exception will be thrown.
This check does not apply to handles allocated with a connection that
already has an open transaction.Handle is closed.public void setForceEndTransactions(boolean forceEndTransactions)
Handle is closed.forceEndTransactions - whether to enforce transaction termination
discipline.Copyright © 2019. All rights reserved.