Top Description Fields Constructors Methods
org.jooq

public final Enum Nullability

extends Enum<Nullability>
Class Inheritance
Imports
org.jetbrains.annotations.NotNull

An enum that specifies the nullability of a DataType.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
public static final Nullability
DEFAULT

Default behaviour for data types.

public static final Nullability
NOT_NULL

The data type is explicitly not nullable.

public static final Nullability
NULL

The data type is explicitly nullable.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
nullable()

Whether this nullability encodes an explicitly or implicitly nullable type.

public static @NotNull Nullability
of(boolean nullability)

Get the explicit Nullability corresponding to a boolean value.

public static Nullability
public static Nullability[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEFAULTback to summary
public static final Nullability DEFAULT

Default behaviour for data types.

The interpretation of this value depends on the context in which a DataType is 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#MYSQL or SQLDialect#SQLSERVER).
Annotations
@NotNull
@Support
NOT_NULLback to summary
public static final Nullability NOT_NULL

The data type is explicitly not nullable.

Annotations
@NotNull
@Support
NULLback to summary
public static final Nullability NULL

The data type is explicitly nullable.

Annotations
@NotNull
@Support

Constructor Detail

Nullabilityback to summary
private Nullability()

Method Detail

nullableback to summary
public boolean nullable()

Whether this nullability encodes an explicitly or implicitly nullable type.

ofback to summary
public static @NotNull Nullability of(boolean nullability)

Get the explicit Nullability corresponding to a boolean value.

Annotations
@NotNull
valueOfback to summary
public static Nullability valueOf(String name)
valuesback to summary
public static Nullability[] values()