| Package | Description |
|---|---|
| org.jdbi.v3.core |
The 'core' package hosts the top level interface into jdbi core.
|
| org.jdbi.v3.core.extension |
The
extension classes allow you to extend Jdbi's
functionality by declaring interface types that may attach to Handle
instances. |
| org.jdbi.v3.core.spi |
The
spi package includes entrypoints to extending Jdbi
instances with your own custom functionality. |
| org.jdbi.v3.core.statement |
The
statement package provides most of the Fluent API
to drive statement execution. |
| org.jdbi.v3.core.transaction |
The
transaction package implements the strategy
Jdbi uses to open and close transactions. |
| Modifier and Type | Method and Description |
|---|---|
Handle |
Handle.begin()
Start a transaction.
|
Handle |
Handle.commit()
Commit a transaction.
|
Handle |
Jdbi.open()
Obtain a Handle to the data source wrapped by this Jdbi instance.
|
static Handle |
Jdbi.open(Connection connection)
Create a Handle wrapping a particular JDBC Connection
|
static Handle |
Jdbi.open(ConnectionFactory connectionFactory)
Convenience method used to obtain a handle from a
ConnectionFactory. |
static Handle |
Jdbi.open(DataSource dataSource)
Convenience method used to obtain a handle from a specific data source
|
static Handle |
Jdbi.open(String url)
Obtain a handle with just a JDBC URL
|
static Handle |
Jdbi.open(String url,
Properties props)
Obtain a handle with just a JDBC URL
|
static Handle |
Jdbi.open(String url,
String username,
String password)
Obtain a handle with just a JDBC URL
|
Handle |
Handle.release(String savepointName)
Release a previously created savepoint.
|
Handle |
Handle.rollback()
Rollback a transaction.
|
Handle |
Handle.rollbackToSavepoint(String savepointName)
Rollback a transaction to a named savepoint.
|
Handle |
Handle.savepoint(String name)
Create a transaction savepoint with the name provided.
|
Handle |
Handle.setReadOnly(boolean readOnly)
Set the Handle readOnly.
|
Handle |
Handle.setStatementBuilder(StatementBuilder builder)
Specify the statement builder to use for this handle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HandleConsumer.useHandle(Handle handle)
Will be invoked with an open Handle.
|
T |
HandleCallback.withHandle(Handle handle)
Will be invoked with an open Handle.
|
| Modifier and Type | Method and Description |
|---|---|
Handle |
HandleSupplier.getHandle()
Returns a handle, possibly creating it lazily.
|
| Modifier and Type | Method and Description |
|---|---|
default Handle |
JdbiPlugin.customizeHandle(Handle handle)
Configure customizations for a new Handle instance.
|
| Modifier and Type | Method and Description |
|---|---|
default Handle |
JdbiPlugin.customizeHandle(Handle handle)
Configure customizations for a new Handle instance.
|
| Constructor and Description |
|---|
Batch(Handle handle) |
Call(Handle handle,
String sql) |
PreparedBatch(Handle handle,
String sql) |
Query(Handle handle,
String sql) |
Script(Handle h,
String sql) |
Update(Handle handle,
String sql) |
| Modifier and Type | Method and Description |
|---|---|
void |
DelegatingTransactionHandler.begin(Handle handle) |
void |
LocalTransactionHandler.begin(Handle handle) |
void |
CMTTransactionHandler.begin(Handle handle)
Called when a transaction is started
|
void |
TransactionHandler.begin(Handle handle)
Begin a transaction.
|
void |
DelegatingTransactionHandler.commit(Handle handle) |
void |
LocalTransactionHandler.commit(Handle handle) |
void |
CMTTransactionHandler.commit(Handle handle)
Called when a transaction is committed
|
void |
TransactionHandler.commit(Handle handle)
Commit the transaction.
|
<R,X extends Exception> |
SerializableTransactionRunner.inTransaction(Handle handle,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
DelegatingTransactionHandler.inTransaction(Handle handle,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
LocalTransactionHandler.inTransaction(Handle handle,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
CMTTransactionHandler.inTransaction(Handle handle,
HandleCallback<R,X> callback) |
<R,X extends Exception> |
TransactionHandler.inTransaction(Handle handle,
HandleCallback<R,X> callback)
Run a transaction.
|
<R,X extends Exception> |
SerializableTransactionRunner.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> |
LocalTransactionHandler.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> |
TransactionHandler.inTransaction(Handle handle,
TransactionIsolationLevel level,
HandleCallback<R,X> callback)
Run a transaction.
|
boolean |
DelegatingTransactionHandler.isInTransaction(Handle handle) |
boolean |
LocalTransactionHandler.isInTransaction(Handle handle) |
boolean |
CMTTransactionHandler.isInTransaction(Handle handle)
Called to test if a handle is in a transaction
|
boolean |
TransactionHandler.isInTransaction(Handle handle) |
void |
DelegatingTransactionHandler.releaseSavepoint(Handle handle,
String name) |
void |
LocalTransactionHandler.releaseSavepoint(Handle handle,
String name) |
void |
CMTTransactionHandler.releaseSavepoint(Handle handle,
String savepointName)
Savepoints are not supported.
|
void |
TransactionHandler.releaseSavepoint(Handle handle,
String savepointName)
Release a previously created savepoint.
|
void |
DelegatingTransactionHandler.rollback(Handle handle) |
void |
LocalTransactionHandler.rollback(Handle handle) |
void |
CMTTransactionHandler.rollback(Handle handle)
Called when a transaction is rolled back
Will throw a RuntimeException to force transactional rollback
|
void |
TransactionHandler.rollback(Handle handle)
Roll back the transaction.
|
void |
DelegatingTransactionHandler.rollbackToSavepoint(Handle handle,
String name) |
void |
LocalTransactionHandler.rollbackToSavepoint(Handle handle,
String name) |
void |
CMTTransactionHandler.rollbackToSavepoint(Handle handle,
String name)
Savepoints are not supported.
|
void |
TransactionHandler.rollbackToSavepoint(Handle handle,
String savepointName)
Roll back to a named savepoint.
|
void |
DelegatingTransactionHandler.savepoint(Handle handle,
String name) |
void |
LocalTransactionHandler.savepoint(Handle handle,
String name) |
void |
CMTTransactionHandler.savepoint(Handle handle,
String name)
Savepoints are not supported.
|
void |
TransactionHandler.savepoint(Handle handle,
String savepointName)
Create a new savepoint.
|
Copyright © 2017. All rights reserved.