Package org.jdbi.v3.core.argument
Interface ArgumentFactory.Preparable
-
- All Superinterfaces:
ArgumentFactory
- All Known Implementing Classes:
AbstractArgumentFactory,BitStringEnumSetArgumentFactory,BlobInputStreamArgumentFactory,BoxedArgumentFactory,BuiltInArgumentFactory,BuiltInArgumentFactory.LegacyEnumByNameArgumentFactory,CharSequenceArgumentFactory,ClobReaderArgumentFactory,DateTimeArgumentFactory,DelegatingArgumentFactory,DurationArgumentFactory,EssentialsArgumentFactory,HStoreArgumentFactory,InetArgumentFactory,InternetArgumentFactory,JavaTimeArgumentFactory,JavaTimeArgumentFactory,JavaTimeZoneIdArgumentFactory,JsonArgumentFactory,MacAddrArgumentFactory,NVarcharArgumentFactory,ObjectArgumentFactory,OptionalArgumentFactory,PeriodArgumentFactory,PGobjectArgumentFactory,PrimitivesArgumentFactory,SetObjectArgumentFactory,SqlArgumentFactory,SqlArrayArgumentFactory,SqlTimeArgumentFactory,TypedEnumArgumentFactory,UntypedNullArgumentFactory,URLArgumentFactory,UUIDArgumentFactory
- Enclosing interface:
- ArgumentFactory
@Beta public static interface ArgumentFactory.Preparable extends ArgumentFactory
ArgumentFactory extension interface that allows preparing arguments for efficient batch binding.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.util.Optional<Argument>build(java.lang.reflect.Type type, java.lang.Object value, ConfigRegistry config)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)default java.util.Collection<? extends java.lang.reflect.Type>prePreparedTypes()Deprecated.no longer used
-
-
-
Method Detail
-
build
default java.util.Optional<Argument> build(java.lang.reflect.Type type, java.lang.Object value, ConfigRegistry config)
Description copied from interface:ArgumentFactoryReturns anArgumentfor the given value if the factory supports it; empty otherwise.- Specified by:
buildin interfaceArgumentFactory- Parameters:
type- 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)
-
prepare
java.util.Optional<java.util.function.Function<java.lang.Object,Argument>> prepare(java.lang.reflect.Type type, ConfigRegistry config)
-
prePreparedTypes
@Deprecated default java.util.Collection<? extends java.lang.reflect.Type> prePreparedTypes()
Deprecated.no longer used
-
-