Class CharSequenceArgumentFactory
java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<CharSequence>
org.jdbi.v3.core.argument.CharSequenceArgumentFactory
- All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable
An
ArgumentFactory for arguments that implement CharSequence.
The factory is registered by default in Arguments before other more specific or
user-defined factories such EssentialsArgumentFactory (which has
explicit support for String arguments).
The factory converts arguments to String by calling their toString() method
and treats them as sql type Types.VARCHAR.
- Since:
- 3.30.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface ArgumentFactory
ArgumentFactory.PreparableModifier and TypeInterfaceDescriptionstatic interfaceArgumentFactory extension interface that allows preparing arguments for efficient batch binding. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractArgumentFactory
build, prepare, prePreparedTypesModifier and TypeMethodDescriptionbuild(Type type, Object value, ConfigRegistry config) Returns anArgumentfor the given value if the factory supports it; empty otherwise.prepare(Type type, ConfigRegistry config) Deprecated, for removal: This API element is subject to removal in a future version.no longer used
-
Constructor Details
-
CharSequenceArgumentFactory
public CharSequenceArgumentFactory()
-