| Package | Description |
|---|---|
| org.jdbi.v3.core.argument |
The
argument classes translate Java types into JDBC parameters. |
| org.jdbi.v3.core.argument.internal | |
| org.jdbi.v3.core.argument.internal.strategies | |
| org.jdbi.v3.core.array |
The
array package binds Java arrays and collections to SQL arrays, and
handles mapping array result types back to Java arrays and collections. |
| org.jdbi.v3.core.statement |
The
statement package provides most of the Fluent API
to drive statement execution. |
| Modifier and Type | Class and Description |
|---|---|
class |
CharacterStreamArgument
Bind a
Reader as a character stream parameter. |
class |
InputStreamArgument
Bind an input stream as either an ASCII (discouraged) or binary stream.
|
class |
NullArgument
A typed SQL null argument.
|
class |
ObjectArgument
An Argument which uses
setObject to support
vendor specific types. |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Argument |
AbstractArgumentFactory.build(T value,
ConfigRegistry config)
Produce an argument object for the given value.
|
protected Argument |
JavaTimeZoneIdArgumentFactory.build(ZoneId value,
ConfigRegistry config) |
Argument |
Arguments.getUntypedNullArgument() |
static Argument |
ObjectArgument.of(Object value)
Bind a vendor-supported object with the given SQL type.
|
static Argument |
ObjectArgument.of(Object value,
Integer sqlType)
Bind a vendor-supported object with the given SQL type.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Argument> |
QualifiedArgumentFactory.build(QualifiedType<?> type,
Object value,
ConfigRegistry config)
Returns an
Argument for the given value if the factory supports it; empty otherwise. |
Optional<Argument> |
AbstractArgumentFactory.build(Type type,
Object value,
ConfigRegistry config) |
Optional<Argument> |
ObjectArgumentFactory.build(Type expectedType,
Object value,
ConfigRegistry config) |
Optional<Argument> |
ArgumentFactory.build(Type type,
Object value,
ConfigRegistry config)
Returns an
Argument for the given value if the factory supports it; empty otherwise. |
Optional<Argument> |
SetObjectArgumentFactory.build(Type type,
Object value,
ConfigRegistry config) |
Optional<Argument> |
BuiltInArgumentFactory.build(Type expectedType,
Object value,
ConfigRegistry config)
Deprecated.
|
Optional<Argument> |
NamedArgumentFinder.find(String name,
StatementContext ctx) |
Optional<Argument> |
MapArguments.find(String name,
StatementContext ctx) |
Optional<Argument> |
Arguments.findFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in the given context.
|
Optional<Argument> |
Arguments.findFor(Type type,
Object value)
Obtain an argument for given value in the given context
|
| Modifier and Type | Method and Description |
|---|---|
void |
Arguments.setUntypedNullArgument(Argument untypedNullArgument)
Configure the
Argument to use when binding a null
we don't have a type for. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Argument> |
ObjectPropertyNamedArgumentFinder.find(String name,
StatementContext ctx) |
| Modifier and Type | Class and Description |
|---|---|
class |
LoggableBinderArgument<T> |
| Modifier and Type | Method and Description |
|---|---|
static Argument |
LoggableBinderArgument.bindAsString(Object obj) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Argument> |
SqlArrayArgumentFactory.build(Type type,
Object value,
ConfigRegistry config) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Argument> |
StatementContext.findArgumentFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in this context
|
Optional<Argument> |
StatementContext.findArgumentFor(Type type,
Object value)
Obtain an argument for given value in this context
|
Optional<Argument> |
Binding.findForName(String name,
StatementContext ctx)
Look up an argument by name.
|
Optional<Argument> |
Binding.findForPosition(int position)
Look up an argument by position.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Binding.addNamed(String name,
Argument argument)
Bind a named parameter for the given name.
|
void |
Binding.addPositional(int position,
Argument argument)
Bind a positional parameter at the given index (0-based).
|
This |
SqlStatement.bind(int position,
Argument argument)
Used if you need to have some exotic parameter bound.
|
This |
SqlStatement.bind(String name,
Argument argument)
Used if you need to have some exotic parameter bound.
|
Copyright © 2019. All rights reserved.