Enum Class TypeNullability
- All Implemented Interfaces:
Serializable, Comparable<TypeNullability>, Constable
Describes the intrinsic nullability of a data type as reported by the JDBC driver.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe data type cannot accept nullsThe data type can accept nullsIt is unknown if the data type accepts nulls -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeNullabilityinterpret(short code) Based on the code retrieved fromDatabaseMetaData.getTypeInfo()for theNULLABLEcolumn, return the appropriate enum.static TypeNullabilityReturns the enum constant of this class with the specified name.static TypeNullability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULLABLE
-
NON_NULLABLE
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
interpret
Based on the code retrieved fromDatabaseMetaData.getTypeInfo()for theNULLABLEcolumn, return the appropriate enum.- Parameters:
code- The retrieved code value.- Returns:
- The corresponding enum.
-