public class Arguments extends Object implements JdbiConfig<Arguments>
| Constructor and Description |
|---|
Arguments() |
| Modifier and Type | Method and Description |
|---|---|
Arguments |
createCopy()
Returns a copy of this configuration object.
|
Optional<Argument> |
findFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in the given context.
|
Optional<Argument> |
findFor(Type type,
Object value)
Obtain an argument for given value in the given context
|
Argument |
getUntypedNullArgument() |
Arguments |
register(ArgumentFactory factory)
Registers the given argument factory.
|
void |
setRegistry(ConfigRegistry registry)
The registry will inject itself into the configuration object.
|
void |
setUntypedNullArgument(Argument untypedNullArgument)
Configure the
Argument to use when binding a null
we don't have a type for. |
public Arguments createCopy()
JdbiConfigcreateCopy in interface JdbiConfig<Arguments>@Beta public Optional<Argument> findFor(QualifiedType<?> type, Object value)
type - the qualified type of the argument.value - the argument value.public Optional<Argument> findFor(Type type, Object value)
type - the type of the argument.value - the argument value.public Argument getUntypedNullArgument()
public Arguments register(ArgumentFactory factory)
factory - the factory to addpublic void setRegistry(ConfigRegistry registry)
JdbiConfigsetRegistry in interface JdbiConfig<Arguments>registry - the registry that owns this configuration objectCopyright © 2019. All rights reserved.