Uses of Class
org.jdbi.v3.core.config.ConfigRegistry
Package
Description
The 'core' package hosts the top level interface into jdbi core.
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.
The
extension
classes allow you to extend Jdbi
's
functionality by declaring interface types that may attach to Handle
instances.mapper
s take the JDBC ResultSet and produce Java results.
The
statement
package provides most of the Fluent API
to drive statement execution.freemarker
provides advanced string template processing.
The
jpa
plugin provides minimal support for discovering JPA
annotations like Column
.
The
postgres
plugin provides improved support for
java.time
, hstore
, uuid
, and enum
types when configured with a recent Postgres database server.SQL Objects
The
sqlobject.config
package defines configuration annotations
that modify the Jdbi
configuration used as the context for executing
SqlObject methods, such as registering handled types.
The
sqlobject.customizer
package provides annotations
that customize the execution of a statement.sqlobject.locator
inspects the declared SqlObject and determines
the statement text to pass off to core.locator
for final
resolution of the statement text.vavr
is a functional programming library for the JVM.-
Uses of ConfigRegistry in org.jdbi.v3.core
-
Uses of ConfigRegistry in org.jdbi.v3.core.argument
Modifier and TypeMethodDescriptionstatic QualifiedArgumentFactory
QualifiedArgumentFactory.adapt
(ConfigRegistry config, ArgumentFactory factory) Adapts anArgumentFactory
into a QualifiedArgumentFactory.QualifiedArgumentFactory.adapt
(ConfigRegistry config, ArgumentFactory.Preparable factory) Adapts anArgumentFactory.Preparable
into a QualifiedArgumentFactory.Preparable.QualifiedArgumentFactory.Preparable.adapt
(ConfigRegistry config, ArgumentFactory.Preparable factory) Adapts anArgumentFactory.Preparable
into a QualifiedArgumentFactory.Preparable The returned factory only matches qualified types with zero qualifiers.AbstractArgumentFactory.build
(Type type, Object value, ConfigRegistry config) ArgumentFactory.build
(Type type, Object value, ConfigRegistry config) Returns anArgument
for the given value if the factory supports it; empty otherwise.ArgumentFactory.Preparable.build
(Type type, Object value, ConfigRegistry config) BuiltInArgumentFactory.build
(Type expectedType, Object value, ConfigRegistry config) Deprecated.DirectArgumentFactory.build
(Type expectedType, Object value, ConfigRegistry config) ObjectArgumentFactory.build
(Type expectedType, Object value, ConfigRegistry config) QualifiedArgumentFactory.build
(QualifiedType<?> type, Object value, ConfigRegistry config) Returns anArgument
for the given value if the factory supports it; empty otherwise.ObjectFieldArguments.getter
(String name, ConfigRegistry config) Deprecated.ObjectMethodArguments.getter
(String name, ConfigRegistry config) Deprecated.AbstractArgumentFactory.prepare
(Type type, ConfigRegistry config) ArgumentFactory.Preparable.prepare
(Type type, ConfigRegistry config) BuiltInArgumentFactory.prepare
(Type type, ConfigRegistry config) Deprecated.ObjectArgumentFactory.prepare
(Type expectedType, ConfigRegistry config) QualifiedArgumentFactory.Preparable.prepare
(QualifiedType<?> type, ConfigRegistry config) SetObjectArgumentFactory.prepare
(Type type, ConfigRegistry config) void
Arguments.setRegistry
(ConfigRegistry registry) ModifierConstructorDescriptionArguments
(ConfigRegistry registry) BeanPropertyArguments
(String prefix, Object bean, ConfigRegistry config) Deprecated. -
Uses of ConfigRegistry in org.jdbi.v3.core.array
Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
SqlArrayMapperFactory.build
(Type type, ConfigRegistry config) Optional<SqlArrayType<?>>
SqlArrayTypeFactory.build
(Type elementType, ConfigRegistry config) Returns anSqlArrayType
for the givenelementType
if this factory supports it; empty otherwise.SqlArrayArgumentFactory.prepare
(Type type, ConfigRegistry config) void
SqlArrayTypes.setRegistry
(ConfigRegistry registry) -
Uses of ConfigRegistry in org.jdbi.v3.core.codec
Modifier and TypeMethodDescriptionCodecFactory.build
(QualifiedType<?> type, Object value, ConfigRegistry config) final Optional<ColumnMapper<?>>
CodecFactory.build
(QualifiedType<?> type, ConfigRegistry config) Codec.getArgumentFunction
(ConfigRegistry configRegistry) default ColumnMapper<T>
Codec.getColumnMapper
(ConfigRegistry configRegistry) Returns aColumnMapper
that creates an attribute value from a database column.CodecFactory.prepare
(QualifiedType<?> type, ConfigRegistry config) -
Uses of ConfigRegistry in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptionConfigRegistry.createCopy()
Returns a copy of this config registry.Configurable.getConfig()
Returns the configuration registry associated with this object.Modifier and TypeMethodDescriptionJdbiCache.get
(K key, ConfigRegistry config) default void
JdbiConfig.setRegistry
(ConfigRegistry registry) The registry will inject itself into the configuration object.Modifier and TypeMethodDescriptionstatic <K,
V> JdbiCache<K, V> JdbiCaches.declare
(BiFunction<ConfigRegistry, K, V> computer) static <K,
V> JdbiCache<K, V> JdbiCaches.declare
(Function<K, ?> keyNormalizer, BiFunction<ConfigRegistry, K, V> computer) -
Uses of ConfigRegistry in org.jdbi.v3.core.extension
Modifier and TypeMethodDescription<V> V
HandleSupplier.invokeInContext
(ExtensionMethod extensionMethod, ConfigRegistry config, Callable<V> task) Bind an extension method and configuration registry to the Handle, invoke the given task, then reset the Handle's extension state. -
Uses of ConfigRegistry in org.jdbi.v3.core.mapper
Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
BuiltInMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.Optional<ColumnMapper<?>>
ColumnMapperFactory.build
(Type type, ConfigRegistry config) Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.Optional<ColumnMapper<?>>
EnumByNameMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.Optional<ColumnMapper<?>>
EnumByOrdinalMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.GenericMapMapperFactory.build
(Type mapType, ConfigRegistry config) Optional<ColumnMapper<?>>
GetObjectColumnMapperFactory.build
(Type type, ConfigRegistry config) Optional<ColumnMapper<?>>
QualifiedColumnMapperFactory.build
(QualifiedType<?> type, ConfigRegistry config) Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.RowMapperFactory.build
(Type type, ConfigRegistry config) Supplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.GenericMapMapperFactory.getMapperForValueType
(Class<T> valueType, ConfigRegistry config) GenericMapMapperFactory.getMapperForValueType
(GenericType<T> valueType, ConfigRegistry config) default void
ColumnMapper.init
(ConfigRegistry registry) Allows for initialization of the column mapper instance within a ConfigRegistry scope.default void
RowMapper.init
(ConfigRegistry registry) Allows for initialization of the row mapper instance within a ConfigRegistry scope.void
ColumnMappers.setRegistry
(ConfigRegistry registry) void
Mappers.setRegistry
(ConfigRegistry registry) void
RowMappers.setRegistry
(ConfigRegistry registry) -
Uses of ConfigRegistry in org.jdbi.v3.core.mapper.freebuilder
-
Uses of ConfigRegistry in org.jdbi.v3.core.mapper.immutables
-
Uses of ConfigRegistry in org.jdbi.v3.core.qualifier
-
Uses of ConfigRegistry in org.jdbi.v3.core.statement
Modifier and TypeMethodDescriptionDefinedAttributeTemplateEngine.parse
(String template, ConfigRegistry config) default Optional<Function<StatementContext,
String>> TemplateEngine.parse
(String template, ConfigRegistry config) Parse a SQL template and return a parsed representation ready to apply to a statement.TemplateEngine.Parsing.parse
(String template, ConfigRegistry config) -
Uses of ConfigRegistry in org.jdbi.v3.freemarker
Modifier and TypeMethodDescriptionFreemarkerEngine.parse
(String sqlTemplate, ConfigRegistry config) -
Uses of ConfigRegistry in org.jdbi.v3.jpa
-
Uses of ConfigRegistry in org.jdbi.v3.json
Modifier and TypeMethodDescriptionJsonMapper.fromJson
(Type type, String json, ConfigRegistry config) JsonMapper.toJson
(Type type, Object value, ConfigRegistry config) -
Uses of ConfigRegistry in org.jdbi.v3.postgres
Modifier and TypeMethodDescriptionDurationArgumentFactory.build
(Duration duration, ConfigRegistry config) Optional<ColumnMapper<?>>
DurationColumnMapperFactory.build
(Type type, ConfigRegistry config) PeriodArgumentFactory.build
(Period period, ConfigRegistry config) Optional<ColumnMapper<?>>
PeriodColumnMapperFactory.build
(Type type, ConfigRegistry config) void
PostgresTypes.setRegistry
(ConfigRegistry registry) -
Uses of ConfigRegistry in org.jdbi.v3.sqlobject
Modifier and TypeMethodDescriptiondefault void
Handler.warm
(ConfigRegistry config) Called after the method handler is constructed to pre-initialize any important configuration data structures. -
Uses of ConfigRegistry in org.jdbi.v3.sqlobject.config
Modifier and TypeMethodDescriptiondefault void
Configurer.configureForMethod
(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType, Method method) Configures the registry for the given annotation on a sql object method.default void
Configurer.configureForType
(ConfigRegistry registry, Annotation annotation, Class<?> sqlObjectType) Configures the registry for the given annotation on a sql object type. -
Uses of ConfigRegistry in org.jdbi.v3.sqlobject.customizer
Modifier and TypeMethodDescriptiondefault void
SqlStatementCustomizer.warm
(ConfigRegistry config) Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures.default void
SqlStatementParameterCustomizer.warm
(ConfigRegistry config) Called after the customizer is instantiated but before any statement is available, to pre-initialize any configuration data structures. -
Uses of ConfigRegistry in org.jdbi.v3.sqlobject.locator
Modifier and TypeMethodDescriptionAnnotationSqlLocator.locate
(Class<?> sqlObjectType, Method method, ConfigRegistry config) SqlLocator.locate
(Class<?> sqlObjectType, Method method, ConfigRegistry config) Locates and returns the SQL for the given SQL Object type and method.SqlObjectClasspathSqlLocator.locate
(Class<?> sqlObjectType, Method method, ConfigRegistry config) -
Uses of ConfigRegistry in org.jdbi.v3.vavr