- All Implemented Interfaces:
- Serializable,- Comparable<Nullability>,- Constable
An enum that specifies the nullability of a 
DataType.- Author:
- Lukas Eder
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbooleannullable()Whether this nullability encodes an explicitly or implicitly nullable type.static @NotNull Nullabilityof(boolean nullability)Get the explicitNullabilitycorresponding to a boolean value.static NullabilityReturns the enum constant of this class with the specified name.static Nullability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NULLThe data type is explicitly nullable.
- 
NOT_NULLThe data type is explicitly not nullable.
- 
DEFAULTDefault behaviour for data types.The interpretation of this value depends on the context in which a DataTypeis used:- CREATE TABLE: The data type is implicitly nullable (or explicitly, if the underlying database does not support implicit nullability or defaults to implicit non-nullability).
- ALTER TABLE .. ALTER COLUMN .. SET TYPE: The data type's nullability will not be modified by jOOQ (but it may well be modified by the database, e.g.- SQLDialect.MYSQLor- SQLDialect.SQLSERVER).
 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
ofGet the explicitNullabilitycorresponding to a boolean value.
- 
nullablepublic boolean nullable()Whether this nullability encodes an explicitly or implicitly nullable type.
 
-