Package | Description |
---|---|
org.skife.jdbi.v2 |
Start with
DBI and Handle |
org.skife.jdbi.v2.sqlobject.mixins | |
org.skife.jdbi.v2.tweak |
Interfaces used to alter JDBI's behavior
|
org.skife.jdbi.v2.tweak.transactions |
Several
TransactionHandler instances ae provided for working in
different environments. |
Modifier and Type | Method and Description |
---|---|
TransactionIsolationLevel |
Handle.getTransactionIsolationLevel()
Obtain the current transaction isolation level
|
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 |
---|---|
<ReturnType> |
IDBI.inTransaction(TransactionIsolationLevel isolation,
TransactionCallback<ReturnType> callback)
A convenience function which manages the lifecycle of a handle and yields it to a callback
for use by clients.
|
<ReturnType> |
Handle.inTransaction(TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback)
Executes
callback in a transaction. |
<ReturnType> |
DBI.inTransaction(TransactionIsolationLevel isolation,
TransactionCallback<ReturnType> callback) |
void |
Handle.setTransactionIsolation(TransactionIsolationLevel level)
Set the transaction isolation level on the underlying connection
|
void |
IDBI.useTransaction(TransactionIsolationLevel isolation,
TransactionConsumer callback)
A convenience function which manages the lifecycle of a handle and yields it to a callback
for use by clients.
|
void |
Handle.useTransaction(TransactionIsolationLevel level,
TransactionConsumer callback)
Executes
callback in a transaction. |
void |
DBI.useTransaction(TransactionIsolationLevel isolation,
TransactionConsumer callback) |
Modifier and Type | Method and Description |
---|---|
<ReturnType> |
Transactional.inTransaction(TransactionIsolationLevel isolation,
Transaction<ReturnType,SelfType> func) |
Modifier and Type | Method and Description |
---|---|
<ReturnType> |
TransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback)
Run a transaction.
|
Modifier and Type | Method and Description |
---|---|
<ReturnType> |
SerializableTransactionRunner.inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback) |
<ReturnType> |
LocalTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback) |
<ReturnType> |
DelegatingTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback) |
<ReturnType> |
CMTTransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
TransactionCallback<ReturnType> callback) |
Copyright © 2018. All rights reserved.