| Package | Description |
|---|---|
| org.jdbi.v3.core |
The 'core' package hosts the top level interface into jdbi core.
|
| org.jdbi.v3.core.transaction |
The
transaction package implements the strategy
Jdbi uses to open and close transactions. |
| Modifier and Type | Method and Description |
|---|---|
TransactionIsolationLevel |
Handle.getTransactionIsolationLevel()
Obtain the current transaction isolation level.
|
| Modifier and Type | Method and Description |
|---|---|
<R,X extends Exception> |
Handle.inTransaction(TransactionIsolationLevel level,
HandleCallback<R,X> callback)
Executes
callback in a transaction, and returns the result of the callback. |
<R,X extends Exception> |
Jdbi.inTransaction(TransactionIsolationLevel level,
HandleCallback<R,X> callback)
A convenience function which manages the lifecycle of a handle and yields it to a callback
for use by clients.
|
void |
Handle.setTransactionIsolation(TransactionIsolationLevel level)
Set the transaction isolation level on the underlying connection.
|
<X extends Exception> |
Handle.useTransaction(TransactionIsolationLevel level,
HandleConsumer<X> callback)
Executes
callback in a transaction. |
<X extends Exception> |
Jdbi.useTransaction(TransactionIsolationLevel level,
HandleConsumer<X> callback)
A convenience function which manages the lifecycle of a handle and yields it to a callback
for use by clients.
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionIsolationLevel |
TransactionIsolationLevel.valueOf(int val) |
static TransactionIsolationLevel |
TransactionIsolationLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionIsolationLevel[] |
TransactionIsolationLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
<R,X extends Exception> |
LocalTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
SerializableTransactionRunner.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
CMTTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
DelegatingTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
TransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback)
Run a transaction.
|
Copyright © 2019. All rights reserved.