Class SetObjectArgumentFactory
java.lang.Object
org.jdbi.v3.core.argument.SetObjectArgumentFactory
- All Implemented Interfaces:
ArgumentFactory
,ArgumentFactory.Preparable
- Direct Known Subclasses:
JavaTimeArgumentFactory
,UUIDArgumentFactory
Factory that uses
PreparedStatement.setObject(int, Object, int)
to bind values.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentFactory
forClasses
(Map<Class<?>, Integer> types) Creates a newArgumentFactory
that maps objects toTypes
values.prepare
(Type type, ConfigRegistry config) Collection
<? extends Type> Deprecated.no longer usedMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable
build
-
Method Details
-
forClasses
Creates a newArgumentFactory
that maps objects toTypes
values.- Parameters:
types
- the JavaClass
es to handle with theTypes
they bind to.- Returns:
- an
ArgumentFactory
that handles only the givenClass
es.
-
prepare
- Specified by:
prepare
in interfaceArgumentFactory.Preparable
-
prePreparedTypes
Deprecated.no longer used- Specified by:
prePreparedTypes
in interfaceArgumentFactory.Preparable
-