| Package | Description |
|---|---|
| org.jdbi.v3.core.argument | |
| org.jdbi.v3.core.mapper | |
| org.jdbi.v3.core.mapper.reflect | |
| org.jdbi.v3.core.result | |
| org.jdbi.v3.core.rewriter | |
| org.jdbi.v3.core.statement |
Interfaces used to alter JDBI's handling of JDBC Statements
|
| Modifier and Type | Method and Description |
|---|---|
void |
ObjectArgument.apply(int position,
PreparedStatement statement,
StatementContext ctx) |
void |
NullArgument.apply(int position,
PreparedStatement statement,
StatementContext ctx) |
void |
InputStreamArgument.apply(int position,
PreparedStatement statement,
StatementContext ctx) |
void |
CharacterStreamArgument.apply(int position,
PreparedStatement statement,
StatementContext ctx) |
void |
Argument.apply(int position,
PreparedStatement statement,
StatementContext ctx)
Callback method invoked right before statement execution.
|
| Constructor and Description |
|---|
BeanPropertyArguments(String prefix,
Object bean,
StatementContext ctx) |
MapArguments(Map<String,?> args,
StatementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
T |
ColumnMapper.map(ResultSet r,
int columnNumber,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
T |
SingleColumnMapper.map(ResultSet r,
StatementContext ctx) |
T |
RowMapper.map(ResultSet rs,
StatementContext ctx)
Map the row the result set is at when passed in.
|
Map<String,Object> |
MapMapper.map(ResultSet rs,
StatementContext ctx) |
JoinRowMapper.JoinRow |
JoinRowMapper.map(ResultSet r,
StatementContext ctx) |
default T |
ColumnMapper.map(ResultSet r,
String columnLabel,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
default RowMapper<T> |
RowMapper.specialize(ResultSet rs,
StatementContext ctx)
Returns a specialized row mapper, optimized for the given result set.
|
RowMapper<Map<String,Object>> |
MapMapper.specialize(ResultSet rs,
StatementContext ctx) |
RowMapper<JoinRowMapper.JoinRow> |
JoinRowMapper.specialize(ResultSet r,
StatementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
T |
FieldMapper.map(ResultSet rs,
StatementContext ctx) |
T |
ConstructorMapper.map(ResultSet rs,
StatementContext ctx) |
T |
BeanMapper.map(ResultSet rs,
StatementContext ctx) |
RowMapper<T> |
FieldMapper.specialize(ResultSet rs,
StatementContext ctx) |
RowMapper<T> |
ConstructorMapper.specialize(ResultSet rs,
StatementContext ctx) |
RowMapper<T> |
BeanMapper.specialize(ResultSet rs,
StatementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
StatementContext |
ResultIterator.getContext() |
| Modifier and Type | Method and Description |
|---|---|
T |
ResultSetAccumulator.apply(T in,
ResultSet rs,
StatementContext ctx)
Extract a single row from the result set, and combine it with the
accumulator to produce a result.
|
T |
ResultSetMapper.mapResultSet(Supplier<ResultSet> resultSetSupplier,
StatementContext ctx)
Maps the lazily-supplied result set into an object.
|
static <T> ResultIterable<T> |
ResultIterable.of(Supplier<ResultSet> supplier,
RowMapper<T> mapper,
StatementContext ctx)
Returns a ResultIterable backed by the given result set supplier, mapper, and context.
|
static ResultBearing |
ResultBearing.of(Supplier<ResultSet> resultSetSupplier,
StatementContext ctx)
Returns a ResultBearing backed by the given result set supplier and context.
|
R |
ResultProducer.produce(Supplier<PreparedStatement> statementSupplier,
StatementContext ctx)
Produces a statement result from a lazily supplied
PreparedStatement. |
| Constructor and Description |
|---|
NoResultsException(String msg,
StatementContext ctx) |
NoResultsException(String msg,
Throwable e,
StatementContext ctx) |
NoResultsException(Throwable e,
StatementContext ctx) |
ResultSetException(String msg,
Exception e,
StatementContext ctx) |
UnableToProduceResultException(Exception e,
StatementContext ctx) |
UnableToProduceResultException(String message,
StatementContext ctx) |
UnableToProduceResultException(String string,
Throwable throwable,
StatementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
RewrittenStatement |
StatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
RewrittenStatement |
NoOpStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx) |
RewrittenStatement |
HashPrefixStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
RewrittenStatement |
ColonPrefixStatementRewriter.rewrite(String sql,
Binding params,
StatementContext ctx)
Munge up the SQL as desired.
|
| Modifier and Type | Method and Description |
|---|---|
StatementContext |
StatementException.getStatementContext() |
| Modifier and Type | Method and Description |
|---|---|
default void |
StatementCustomizer.afterExecution(PreparedStatement stmt,
StatementContext ctx)
This will be invoked after execution of the prepared statement, but before any results
are accessed.
|
void |
StatementCustomizers.FetchDirectionStatementCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.QueryTimeoutCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.FetchSizeCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.MaxRowsCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
void |
StatementCustomizers.MaxFieldSizeCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx) |
default void |
StatementCustomizer.beforeExecution(PreparedStatement stmt,
StatementContext ctx)
Make the changes you need to inside this method.
|
void |
TimingCollector.collect(long elapsedTime,
StatementContext ctx)
This method is executed every time there is information to collect.
|
void |
TimingCollector.NopTimingCollector.collect(long elapsedTime,
StatementContext ctx) |
Statement |
StatementBuilder.create(Connection conn,
StatementContext ctx)
Called each time a statement needs to be created.
|
Statement |
DefaultStatementBuilder.create(Connection conn,
StatementContext ctx) |
PreparedStatement |
StatementBuilder.create(Connection conn,
String sql,
StatementContext ctx)
Called each time a prepared statement needs to be created.
|
PreparedStatement |
DefaultStatementBuilder.create(Connection conn,
String sql,
StatementContext ctx)
Create a new DefaultStatementBuilder which will always create a new PreparedStatement from
the Connection
|
CallableStatement |
StatementBuilder.createCall(Connection conn,
String sql,
StatementContext ctx)
Called each time a Callable statement needs to be created.
|
CallableStatement |
DefaultStatementBuilder.createCall(Connection conn,
String sql,
StatementContext ctx)
Called each time a Callable statement needs to be created
|
| Constructor and Description |
|---|
StatementException(String message,
StatementContext ctx) |
StatementException(String string,
Throwable throwable,
StatementContext ctx) |
StatementException(Throwable cause,
StatementContext ctx) |
UnableToCreateStatementException(Exception e,
StatementContext ctx) |
UnableToCreateStatementException(String string,
StatementContext ctx) |
UnableToCreateStatementException(String string,
Throwable throwable,
StatementContext ctx) |
UnableToExecuteStatementException(Exception e,
StatementContext ctx) |
UnableToExecuteStatementException(String message,
StatementContext ctx) |
UnableToExecuteStatementException(String string,
Throwable throwable,
StatementContext ctx) |
Copyright © 2017. All rights reserved.