Package org.jdbi.v3.core.argument
Class SetObjectArgumentFactory
- java.lang.Object
-
- org.jdbi.v3.core.argument.SetObjectArgumentFactory
-
- All Implemented Interfaces:
ArgumentFactory,ArgumentFactory.Preparable
- Direct Known Subclasses:
JavaTimeArgumentFactory,UUIDArgumentFactory
@Beta public class SetObjectArgumentFactory extends java.lang.Object implements ArgumentFactory.Preparable
Factory that usesPreparedStatement.setObject(int, Object, int)to bind values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,java.lang.Integer>supportedTypes
-
Constructor Summary
Constructors Modifier Constructor Description protectedSetObjectArgumentFactory(java.util.Map<java.lang.Class<?>,java.lang.Integer> types)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ArgumentFactoryforClasses(java.util.Map<java.lang.Class<?>,java.lang.Integer> types)Creates a newArgumentFactorythat maps objects toTypesvalues.java.util.Optional<java.util.function.Function<java.lang.Object,Argument>>prepare(java.lang.reflect.Type type, ConfigRegistry config)java.util.Collection<? extends java.lang.reflect.Type>prePreparedTypes()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable
build
-
-
-
-
Method Detail
-
forClasses
public static ArgumentFactory forClasses(java.util.Map<java.lang.Class<?>,java.lang.Integer> types)
Creates a newArgumentFactorythat maps objects toTypesvalues.- Parameters:
types- the JavaClasses to handle with theTypesthey bind to.- Returns:
- an
ArgumentFactorythat handles only the givenClasses.
-
prepare
public java.util.Optional<java.util.function.Function<java.lang.Object,Argument>> prepare(java.lang.reflect.Type type, ConfigRegistry config)
- Specified by:
preparein interfaceArgumentFactory.Preparable
-
prePreparedTypes
public java.util.Collection<? extends java.lang.reflect.Type> prePreparedTypes()
- Specified by:
prePreparedTypesin interfaceArgumentFactory.Preparable
-
-