Enum BindList.EmptyHandling

java.lang.Object
java.lang.Enum<BindList.EmptyHandling>
org.jdbi.v3.sqlobject.customizer.BindList.EmptyHandling
All Implemented Interfaces:
Serializable, Comparable<BindList.EmptyHandling>
Enclosing class:
BindList

public static enum BindList.EmptyHandling extends Enum<BindList.EmptyHandling>
describes what needs to be done if the passed argument is null or empty
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    vaguely named in light of new additions, use NULL_STRING instead
    Define "null", useful e.g. in postgresql where "in ()" is invalid syntax.
    Define null, leaving the result up to the TemplateEngine to decide.
    Throw IllegalArgumentException.
    Define "".
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    define(org.jdbi.v3.core.statement.SqlStatement stmt, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    legacy internal API
    org.jdbi.v3.core.statement.EmptyHandling
     
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static BindList.EmptyHandling[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BindList.EmptyHandling valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • define

      @Deprecated(since="3.10.0", forRemoval=true) public void define(org.jdbi.v3.core.statement.SqlStatement stmt, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      legacy internal API
    • getCoreImpl

      public org.jdbi.v3.core.statement.EmptyHandling getCoreImpl()