Enum Class TypeNullability

java.lang.Object
java.lang.Enum<TypeNullability>
org.hibernate.engine.jdbc.spi.TypeNullability
All Implemented Interfaces:
Serializable, Comparable<TypeNullability>, Constable

public enum TypeNullability extends Enum<TypeNullability>
Describes the intrinsic nullability of a data type as reported by the JDBC driver.
  • Enum Constant Details

  • Method Details

    • values

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

      public static TypeNullability valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • interpret

      public static TypeNullability interpret(short code)
      Based on the code retrieved from DatabaseMetaData.getTypeInfo() for the NULLABLE column, return the appropriate enum.
      Parameters:
      code - The retrieved code value.
      Returns:
      The corresponding enum.