Package org.jdbi.v3.core.argument
Class CharSequenceArgumentFactory
- java.lang.Object
-
- org.jdbi.v3.core.argument.AbstractArgumentFactory<java.lang.CharSequence>
-
- org.jdbi.v3.core.argument.CharSequenceArgumentFactory
-
- All Implemented Interfaces:
ArgumentFactory,ArgumentFactory.Preparable
public class CharSequenceArgumentFactory extends AbstractArgumentFactory<java.lang.CharSequence>
AnArgumentFactoryfor arguments that implementCharSequence.The factory is registered by default in
Argumentsbefore other more specific or user-defined factories suchEssentialsArgumentFactory(which has explicit support forStringarguments).
The factory converts arguments to String by calling theirtoString()method and treats them as sql typeTypes.VARCHAR.- Since:
- 3.30.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jdbi.v3.core.argument.ArgumentFactory
ArgumentFactory.Preparable
-
-
Constructor Summary
Constructors Constructor Description CharSequenceArgumentFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Argumentbuild(java.lang.CharSequence value, ConfigRegistry config)Produce an argument object for the given value.-
Methods inherited from class org.jdbi.v3.core.argument.AbstractArgumentFactory
build, prepare, prePreparedTypes
-
-
-
-
Method Detail
-
build
protected Argument build(java.lang.CharSequence value, ConfigRegistry config)
Description copied from class:AbstractArgumentFactoryProduce an argument object for the given value. When the implementation class has accepted a given type, it must then produce an argument instance or throw an exception.- Specified by:
buildin classAbstractArgumentFactory<java.lang.CharSequence>- Parameters:
value- the value to convert to an argumentconfig- the config registry- Returns:
- An
Argumentfor the givenvalue. Must not be null!
-
-