Package org.jdbi.v3.core.argument
Class BuiltInArgumentFactory
- java.lang.Object
-
- org.jdbi.v3.core.argument.BuiltInArgumentFactory
-
- All Implemented Interfaces:
ArgumentFactory,ArgumentFactory.Preparable
@Deprecated public class BuiltInArgumentFactory extends java.lang.Object implements ArgumentFactory.Preparable
Deprecated.will be replaced by a pluginThe BuiltInArgumentFactory provides instances ofArgumentfor many core Java types. Generally you should not need to use this class directly, but instead should bind your object with theSqlStatementconvenience methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classBuiltInArgumentFactory.LegacyEnumByNameArgumentFactoryDeprecated.-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<ArgumentFactory.Preparable>FACTORIESDeprecated.static ArgumentFactoryINSTANCEDeprecated.
-
Constructor Summary
Constructors Constructor Description BuiltInArgumentFactory()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Optional<Argument>build(java.lang.reflect.Type expectedType, java.lang.Object value, ConfigRegistry config)Deprecated.Returns anArgumentfor the given value if the factory supports it; empty otherwise.java.util.Optional<java.util.function.Function<java.lang.Object,Argument>>prepare(java.lang.reflect.Type type, ConfigRegistry config)Deprecated.java.util.Collection<? extends java.lang.reflect.Type>prePreparedTypes()Deprecated.
-
-
-
Field Detail
-
INSTANCE
public static final ArgumentFactory INSTANCE
Deprecated.
-
FACTORIES
private static final java.util.List<ArgumentFactory.Preparable> FACTORIES
Deprecated.
-
-
Method Detail
-
prepare
public java.util.Optional<java.util.function.Function<java.lang.Object,Argument>> prepare(java.lang.reflect.Type type, ConfigRegistry config)
Deprecated.- Specified by:
preparein interfaceArgumentFactory.Preparable
-
build
public java.util.Optional<Argument> build(java.lang.reflect.Type expectedType, java.lang.Object value, ConfigRegistry config)
Deprecated.Description copied from interface:ArgumentFactoryReturns anArgumentfor the given value if the factory supports it; empty otherwise.- Specified by:
buildin interfaceArgumentFactory- Specified by:
buildin interfaceArgumentFactory.Preparable- Parameters:
expectedType- the known type of value. Depending on the situation this may be a full generic signature e.g.ParameterizedType, aClass, or Object.class if no type information is known.value- the value to convert into anArgumentconfig- the config registry, for composition- Returns:
- an argument for the given value if this factory supports it, or
Optional.empty()otherwise. - See Also:
StatementContext.findArgumentFor(Type, Object),Arguments.findFor(Type, Object)
-
prePreparedTypes
public java.util.Collection<? extends java.lang.reflect.Type> prePreparedTypes()
Deprecated.- Specified by:
prePreparedTypesin interfaceArgumentFactory.Preparable
-
-