Package org.jdbi.v3.core.argument
Class ObjectArgumentFactory
java.lang.Object
org.jdbi.v3.core.argument.ObjectArgumentFactory
- All Implemented Interfaces:
- ArgumentFactory,- ArgumentFactory.Preparable
Argument factory that matches a specified type and binds
 it as an 
ObjectArgument.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactoryArgumentFactory.Preparable
- 
Method SummaryModifier and TypeMethodDescriptionbuild(Type expectedType, Object value, ConfigRegistry config) Returns anArgumentfor the given value if the factory supports it; empty otherwise.static ArgumentFactoryMatch the given type and bind as an object without SQL type information.static ArgumentFactoryMatch the given type and bind as an object with the given SQL type informationprepare(Type expectedType, ConfigRegistry config) Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.argument.ArgumentFactory.PreparableprePreparedTypes
- 
Method Details- 
createMatch the given type and bind as an object without SQL type information.- Parameters:
- type- the Java type to match
- Returns:
- an ArgumentFactory that produces ObjectArguments for values of the supplied type
 
- 
createMatch the given type and bind as an object with the given SQL type information- Parameters:
- type- the Java type to match
- sqlType- the SQL type to bind
- Returns:
- an ArgumentFactory that produces ObjectArguments for values of the supplied type
- See Also:
 
- 
prepare- Specified by:
- preparein interface- ArgumentFactory.Preparable
 
- 
buildDescription copied from interface:ArgumentFactoryReturns anArgumentfor the given value if the factory supports it; empty otherwise.- Specified by:
- buildin interface- ArgumentFactory
- Specified by:
- buildin interface- ArgumentFactory.Preparable
- Parameters:
- expectedType- the known type of value. Depending on the situation this may be a full generic signature e.g.- ParameterizedType, a- Class, or Object.class if no type information is known.
- value- the value to convert into an- Argument
- config- the config registry, for composition
- Returns:
- an argument for the given value if this factory supports it, or Optional.empty()otherwise.
- See Also:
 
 
-