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
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 ArgumentFactoryforClasses(Map<Class<?>, Integer> types) Creates a newArgumentFactorythat maps objects toTypesvalues.prepare(Type type, ConfigRegistry config) Collection<? extends Type>Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.Preparable
build
-
Method Details
-
forClasses
Creates a newArgumentFactorythat maps objects toTypesvalues.- Parameters:
types- the JavaClasses to handle with theTypesthey bind to.- Returns:
- an
ArgumentFactorythat handles only the givenClasses.
-
prepare
- Specified by:
preparein interfaceArgumentFactory.Preparable
-
prePreparedTypes
- Specified by:
prePreparedTypesin interfaceArgumentFactory.Preparable
-