Uses of Interface
org.jdbi.v3.core.argument.ArgumentFactory
Package
Description
The
argument
classes translate Java types into JDBC parameters.
The
array
package binds Java arrays and collections to SQL arrays, and
handles mapping array result types back to Java arrays and collections.
The
config
classes define a configuration registry starting from
each Jdbi
instance.guava
provides extra types that are commonly needed beyond built
in JDK types.joda-time
provides improved date and time types to pre-Java 8 applications.
The
postgres
plugin provides improved support for
java.time
, hstore
, uuid
, and enum
types when configured with a recent Postgres database server.-
Uses of ArgumentFactory in org.jdbi.v3.core.argument
Modifier and TypeInterfaceDescriptionstatic interface
ArgumentFactory extension interface that allows preparing arguments for efficient batch binding.Modifier and TypeClassDescriptionclass
AnArgumentFactory
base class for arguments of typeT
.class
Deprecated.will be replaced by a pluginclass
AnArgumentFactory
for arguments that implementCharSequence
.class
class
class
Argument factory that matches a specified type and binds it as anObjectArgument
.class
Factory that usesPreparedStatement.setObject(int, Object, int)
to bind values.Modifier and TypeFieldDescriptionstatic final ArgumentFactory
BuiltInArgumentFactory.INSTANCE
Deprecated.Modifier and TypeMethodDescriptionstatic ArgumentFactory
Match the given type and bind as an object without SQL type information.static ArgumentFactory
Match the given type and bind as an object with the given SQL type informationstatic ArgumentFactory
SetObjectArgumentFactory.forClasses
(Map<Class<?>, Integer> types) Creates a newArgumentFactory
that maps objects toTypes
values.Modifier and TypeMethodDescriptionstatic QualifiedArgumentFactory
QualifiedArgumentFactory.adapt
(ConfigRegistry config, ArgumentFactory factory) Adapts anArgumentFactory
into a QualifiedArgumentFactory.Arguments.register
(ArgumentFactory factory) Registers the given argument factory. -
Uses of ArgumentFactory in org.jdbi.v3.core.array
Modifier and TypeClassDescriptionclass
Bind a Java array orCollection
to a SQL array using theSqlArrayTypeFactory
for the given type information. -
Uses of ArgumentFactory in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptiondefault This
Configurable.registerArgument
(ArgumentFactory factory) Convenience method forgetConfig(Arguments.class).register(factory)
-
Uses of ArgumentFactory in org.jdbi.v3.guava
Modifier and TypeMethodDescriptionstatic ArgumentFactory
GuavaArguments.factory()
Returns anArgumentFactory
which understands Guava types. -
Uses of ArgumentFactory in org.jdbi.v3.jodatime2
-
Uses of ArgumentFactory in org.jdbi.v3.postgres
Modifier and TypeClassDescriptionclass
Postgres version of argument factory forDuration
.class
An argument factory which binds Java'sMap
to Postgres' hstore type.class
Postgres version of argument factory forInetAddress
.class
class
Postgres version of argument factory forPeriod
.class
Defaultjdbi
behavior is to bindEnum
subclasses as a string, which Postgres won't implicitly convert to an enum type.class
Bind UUID arguments as an Object.