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.
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 TypeMethodDescriptionvoid
ConfigCustomizer.customize
(ConfigRegistry config) Manipulates theConfigRegistry
object.default void
JdbiConfig.setRegistry
(ConfigRegistry registry) The registry will inject itself into the configuration object. -
Uses of ConfigRegistry in org.jdbi.v3.core.extension
Modifier and TypeMethodDescriptionExtensionMetadata.createInstanceConfiguration
(ConfigRegistry config) Create an instance specific configuration based on all instance customizers.ExtensionMetadata.createMethodConfiguration
(Method method, ConfigRegistry config) Create an method specific configuration based on all method customizers.ExtensionContext.getConfig()
HandleSupplier.getConfig()
Returns the current Jdbi config.Modifier and TypeMethodDescriptionabstract void
SimpleExtensionConfigurer.configure
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.default void
ExtensionConfigurer.configureForMethod
(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) Configures the config for the given annotation on a extension type method.final void
SimpleExtensionConfigurer.configureForMethod
(ConfigRegistry config, Annotation annotation, Class<?> extensionType, Method method) default void
ExtensionConfigurer.configureForType
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) Updates configuration for the given annotation on an extension type.final void
SimpleExtensionConfigurer.configureForType
(ConfigRegistry config, Annotation annotation, Class<?> extensionType) ExtensionMetadata.createExtensionHandlerInvoker
(E target, Method method, HandleSupplier handleSupplier, ConfigRegistry config) Creates anExtensionMetadata.ExtensionHandlerInvoker
instance for a specific method.ExtensionMetadata.createInstanceConfiguration
(ConfigRegistry config) Create an instance specific configuration based on all instance customizers.ExtensionMetadata.createMethodConfiguration
(Method method, ConfigRegistry config) Create an method specific configuration based on all method customizers.static ExtensionContext
ExtensionContext.forConfig
(ConfigRegistry config) Create an extension context for a configuration only.static ExtensionContext
ExtensionContext.forExtensionMethod
(ConfigRegistry config, Class<?> type, Method method) default Collection
<ConfigCustomizerFactory> ExtensionFactory.getConfigCustomizerFactories
(ConfigRegistry config) Returns a collection ofConfigCustomizerFactory
objects.default Collection
<ExtensionHandlerCustomizer> ExtensionFactory.getExtensionHandlerCustomizers
(ConfigRegistry config) Returns a collection ofExtensionHandlerCustomizer
objects.default Collection
<ExtensionHandlerFactory> ExtensionFactory.getExtensionHandlerFactories
(ConfigRegistry config) Returns a collection ofExtensionHandlerFactory
objects.void
Extensions.setRegistry
(ConfigRegistry registry) default void
ExtensionHandler.warm
(ConfigRegistry config) Called after the method handler is constructed to pre-initialize any important configuration data structures.ModifierConstructorDescriptionExtensionContext
(ConfigRegistry config, ExtensionMethod extensionMethod) -
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) Returns aRowMapper
for a map with the given value type.GenericMapMapperFactory.getMapperForValueType
(GenericType<T> valueType, ConfigRegistry config) Returns aRowMapper
for a map with the given value type.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.forType
(Type type, ConfigRegistry config) default Object
JsonMapper.fromJson
(Type type, String json, ConfigRegistry config) Deprecated.JsonMapper.TypedJsonMapper.fromJson
(String json, ConfigRegistry config) default String
JsonMapper.toJson
(Type type, Object value, ConfigRegistry config) Deprecated.JsonMapper.TypedJsonMapper.toJson
(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.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