Class CharSequenceArgumentFactory

java.lang.Object
org.jdbi.v3.core.argument.AbstractArgumentFactory<CharSequence>
org.jdbi.v3.core.argument.CharSequenceArgumentFactory
All Implemented Interfaces:
ArgumentFactory, ArgumentFactory.Preparable

public class CharSequenceArgumentFactory extends AbstractArgumentFactory<CharSequence>
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
Author:
Markus Spann
  • Constructor Details

    • CharSequenceArgumentFactory

      public CharSequenceArgumentFactory()