| Package | Description |
|---|---|
| org.jdbi.v3.core.annotation | |
| org.jdbi.v3.core.argument |
The
argument classes translate Java types into JDBC parameters. |
| org.jdbi.v3.core.config |
The
config classes define a configuration registry starting from
each Jdbi instance. |
| org.jdbi.v3.core.enums | |
| org.jdbi.v3.core.mapper |
mappers take the JDBC ResultSet and produce Java results. |
| org.jdbi.v3.core.mapper.immutables | |
| org.jdbi.v3.core.qualifier | |
| org.jdbi.v3.core.result |
result provides the streaming interface that reads rows from JDBC
and drives the mapper and collector processes to
produce results. |
| org.jdbi.v3.core.statement |
The
statement package provides most of the Fluent API
to drive statement execution. |
| Modifier and Type | Class and Description |
|---|---|
interface |
Unmappable
Configure reflective bean and pojo mapping to skip a property.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
QualifiedArgumentFactory
Inspect a value with optional static qualified type information and produce an
Argument
that binds the value to a prepared statement. |
class |
SetObjectArgumentFactory
Factory that uses
PreparedStatement.setObject(int, Object, int) to bind values. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Argument> |
Arguments.findFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in the given context.
|
default Collection<String> |
NamedArgumentFinder.getNames() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
JdbiCache<K,V>
Simple cache interface.
|
class |
JdbiCaches
Hold metadata caches which maps various JVM constants into pre-parsed forms.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> This |
Configurable.registerColumnMapper(QualifiedType<T> type,
ColumnMapper<T> mapper)
Convenience method for
getConfig(ColumnMappers.class).register(type, mapper) |
| Modifier and Type | Class and Description |
|---|---|
interface |
DatabaseValue |
| Modifier and Type | Class and Description |
|---|---|
class |
CaseStrategy
Strategies for comparing case sensitive strings.
|
class |
GenericMapMapperFactory
Factory for a RowMapper that can map resultset rows to column name/generic value
Maps. |
class |
GetObjectColumnMapperFactory
Factory that uses
ResultSet.getObject(int, Class) to fetch values. |
class |
MapMappers |
interface |
PropagateNull
Signals that the annotated property signals the presence of the mapped type:
reflective mappers should map a null bean if this property is null, rather than a
present bean with a null property value.
|
interface |
QualifiedColumnMapperFactory
Factory interface used to produce column mappers.
|
interface |
RowViewMapper<T>
|
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<ColumnMapper<T>> |
ColumnMappers.findFor(QualifiedType<T> type)
Obtain a column mapper for the given qualified type.
|
<T> Optional<RowMapper<T>> |
Mappers.findFor(QualifiedType<T> type)
Obtain a mapper for the given qualified type.
|
UnaryOperator<String> |
MapMappers.getCaseChange() |
static <T> RowMapper<Map<String,T>> |
GenericMapMapperFactory.getMapperForValueType(Class<T> valueType,
ConfigRegistry config) |
static <T> RowMapper<Map<String,T>> |
GenericMapMapperFactory.getMapperForValueType(GenericType<T> valueType,
ConfigRegistry config) |
<T> ColumnMappers |
ColumnMappers.register(QualifiedType<T> type,
ColumnMapper<T> mapper)
Register a column mapper for a given
QualifiedType
Column mappers may be reused by RowMapper to map individual columns. |
MapMappers |
MapMappers.setCaseChange(UnaryOperator<String> caseChange) |
| Modifier and Type | Class and Description |
|---|---|
class |
JdbiImmutables
|
| Modifier and Type | Class and Description |
|---|---|
interface |
NVarchar
Argument qualifier annotation, indicating that the annotated String element should be bound as an
NVARCHAR instead of a VARCHAR. |
class |
QualifiedType<T>
A
Type qualified by a set of qualifier annotations. |
interface |
Qualifier
Annotation used to identify type qualifying annotations.
|
class |
Qualifiers
Utility class for type qualifiers supported by Jdbi core.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> ResultIterable<T> |
ResultBearing.mapTo(QualifiedType<T> type)
Maps this result set to a
ResultIterable of the given qualified element type. |
default <T> ResultIterable<Map<String,T>> |
ResultBearing.mapToMap(Class<T> valueType)
|
default <T> ResultIterable<Map<String,T>> |
ResultBearing.mapToMap(GenericType<T> valueType)
|
| Modifier and Type | Class and Description |
|---|---|
class |
StatementExceptions
Configuration for
StatementException and subclasses behavior. |
| Modifier and Type | Method and Description |
|---|---|
This |
SqlStatement.bindByType(int position,
Object value,
QualifiedType<?> argumentType)
Bind an argument dynamically by the qualified type passed in.
|
This |
SqlStatement.bindByType(String name,
Object value,
QualifiedType<?> argumentType)
Bind an argument dynamically by the type passed in.
|
This |
SqlStatement.bindNVarchar(int position,
String value)
Bind a
String argument positionally, as NVARCHAR type. |
This |
SqlStatement.bindNVarchar(String name,
String value)
Bind a
String argument by name, as NVARCHAR type. |
This |
SqlStatement.bindPojo(Object pojo)
Binds named parameters from object properties on the argument.
|
This |
SqlStatement.bindPojo(String prefix,
Object pojo)
Binds named parameters from object properties on the bean argument, with the given prefix.
|
This |
SqlStatement.defineNamedBindings()
Define all bound arguments that don't already have a definition with a boolean indicating their presence.
|
Optional<Argument> |
StatementContext.findArgumentFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in this context
|
<T> Optional<ColumnMapper<T>> |
StatementContext.findColumnMapperFor(QualifiedType<T> type)
Obtain a column mapper for the given qualified type in this context.
|
<T> Optional<RowMapper<T>> |
StatementContext.findMapperFor(QualifiedType<T> type)
Obtain a mapper for the given qualified type in this context.
|
Integer |
SqlStatements.getQueryTimeout() |
SqlStatements |
SqlStatements.setQueryTimeout(Integer seconds)
Jdbi does not implement its own timeout mechanism: it simply calls
Statement.setQueryTimeout(int), leaving timeout handling to your jdbc driver. |
Copyright © 2019. All rights reserved.