Package acdp.design

Enum ST.Nulls

All Implemented Interfaces:
Serializable, Comparable<ST.Nulls>, java.lang.constant.Constable
Enclosing class:
ST

public static enum ST.Nulls extends Enum<ST.Nulls>
Defines the constants used to indicate whether a column allows for the null value or not.
Author:
Beat Hörmann
  • Enum Constant Details

    • NO_NULL

      public static final ST.Nulls NO_NULL
      The column does not allow for the null value.
    • NULLABLE

      public static final ST.Nulls NULLABLE
      The column allows for the null value.
  • Method Details

    • values

      public static ST.Nulls[] 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 ST.Nulls 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
    • get

      public static ST.Nulls get(boolean value)
      Returns either the NULLABLE or the NO_NULL constant, depending on the specified value.
      Parameters:
      value - The value.
      Returns:
      The constant NULLABLE if value is equal to true, otherwise the constant NO_NULL.
    • value

      public final boolean value()
      Returns the information whether a column allows for the null value.
      Returns:
      The boolean value true if and only if the column allows for the null value.