jOOQ provides built in data types through SQLDataType. Users can
define their own data types programmatically by calling
asConvertedDataType(Converter) or
asConvertedDataType(Binding), for example. Custom data types can
also be defined on generated code using the <forcedType/>
configuration, see the manual for more details
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull DataType | |
| public <U> @NotNull DataType | |
| public default <U> @NotNull DataType | asConvertedDataType(Class<U> toType, Function<? super T, ? extends U> from, Function<? super U, ? extends T> to)
Convenience method for converting this type using
|
| public <U> @NotNull DataType | |
| public default <U> @NotNull DataType | asConvertedDataTypeFrom(Class<U> toType, Function<? super T, ? extends U> from)
Convenience method for converting this type to a read-only type using
|
| public default <U> @NotNull DataType | asConvertedDataTypeFrom(Function<? super T, ? extends U> from)
Convenience method for converting this type to a read-only type using
|
| public default <U> @NotNull DataType | asConvertedDataTypeTo(Class<U> toType, Function<? super U, ? extends T> to)
Convenience method for converting this type to a write-only type using
|
| public default <U> @NotNull DataType | asConvertedDataTypeTo(Function<? super U, ? extends T> to)
Convenience method for converting this type to a write-only type using
|
| public <E extends EnumType> @NotNull DataType | |
| public @NotNull DataType | |
| public @Nullable CharacterSet | characterSet()
Get the character set of this data type, or |
| public @NotNull DataType | |
| public @Nullable Collation | collation()
Get the collation of this data type, or |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | computedOnClientStoredOn(GeneratorStatementType statementType)
Whether this column is computed on the client. |
| public boolean | computedOnClientStoredOn(GeneratorStatementType statementType, Configuration configuration)
Whether this column is computed on the client. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public T | |
| public @NotNull T[] | |
| public @NotNull List | Returns: The converted objectsThe objects to be converted objects)Convert an arbitrary set of objects into |
| public @NotNull DataType | default_(T defaultValue)
Specify an expression to be applied as the |
| public @NotNull DataType | |
| public @Nullable Field | |
| public @NotNull DataType | Returns: The new data typeThe new defaultability defaulted)
Deprecated
for removal since 3.8. - [#3852] - 3.8.0 - Use
Return a new data type like this, with a new defaultability.
defaultValue(Field) instead.
|
| public boolean | |
| public @NotNull DataType | defaultValue(T defaultValue)
Specify an expression to be applied as the |
| public @NotNull DataType | defaultValue(Field<T> defaultValue)
Deprecated
as a consequence of
Specify an expression to be applied as the Field being deprecated.
DEFAULT value for
this data type.
|
| public @Nullable Field | Returns: The default value if present, ornull if no default
value is specified for this data type.
Deprecated
as a consequence of
The expression to be applied as the Field being deprecated.
DEFAULT value for this
data type.
|
| public @NotNull DataType | generatedAlwaysAs(T generatedAlwaysAsValue)
Set the computed column expression of this data type to a constant value. |
| public @NotNull DataType | generatedAlwaysAs(Field<T> generatedAlwaysAsValue)
Deprecated
as a consequence of
Set the computed column expression of this data type to a constant
expression.
Field being deprecated.
|
| public @NotNull DataType | generatedAlwaysAs(Generator<?, ?, T> generatedAlwaysAsValue)
Set the computed column expression of this data type to a dynamic expression. |
| public @Nullable Field | generatedAlwaysAs()
Deprecated
as a consequence of
Get the computed column expression of this data type, if any.
Field being deprecated.
|
| public @Nullable Generator | |
| public @NotNull DataType | generationLocation(QOM.
Set the |
| public @NotNull QOM. | generationLocation()
Get the |
| public @NotNull DataType | generationOption(QOM.
Set the |
| public @NotNull QOM. | generationOption()
Get the |
| public @NotNull DataType | getArrayBaseDataType()
Retrieve the Java component data type if this is an ARRAY type, or
|
| public @NotNull Class | |
| public @Nullable DataType | getArrayComponentDataType()
Retrieve the Java component data type if this is an ARRAY type, or
|
| public @Nullable Class | getArrayComponentType()
Retrieve the Java component type if this is an ARRAY type, or
|
| public @NotNull DataType | |
| public @NotNull Class | |
| public @NotNull Binding | |
| public @NotNull String | getCastTypeName()
Retrieve the dialect-specific type name associated with this data type used for casting. |
| public @NotNull String | getCastTypeName(Configuration configuration)
Retrieve the dialect-specific type name associated with this data type used for casting. |
| public @NotNull ContextConverter | |
| public @NotNull DataType | |
| public @Nullable SQLDialect | |
| public @Nullable Domain | |
| public @Nullable Class | getRecordType()
Get the nested record's record type definition, if this is a
|
| public @Nullable Row | getRow()
Get the nested record's |
| public @Nullable DataType | |
| public int | |
| public int | |
| public @NotNull Class | |
| public @NotNull String | |
| public @NotNull String | getTypeName(Configuration configuration)
Retrieve the dialect-specific type name associated with this data type. |
| public boolean | |
| public boolean | Returns: Whether this data type has a precisionWhether this data type has a precision. |
| public boolean | |
| public @NotNull DataType | Returns: The new data typeThe new identity flag identity)Return a new data type like this, with a new identity flag. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public @NotNull DataType | Returns: The new data typeThe new length value length)Return a new data type like this, with a new length value. |
| public int | |
| public boolean | |
| public @NotNull DataType | |
| public @NotNull DataType | |
| public @NotNull DataType | Returns: The new data typeThe new nullability nullability)Return a new data type like this, with a new nullability. |
| public @NotNull Nullability | |
| public @NotNull DataType | Returns: The new data typeThe new nullability nullable)Return a new data type like this, with a new nullability. |
| public boolean | |
| public @NotNull DataType | Returns: The new data typeThe new precision value precision)Return a new data type like this, with a new precision value. |
| public @NotNull DataType | Returns: The new data typeThe new precision value precision, int The new scale value scale)Return a new data type like this, with a new precision and scale value. |
| public int | |
| public boolean | |
| public @NotNull DataType | Returns: The new data typeThe new readonly attribute value. readonly)Return a new data type like this, with a new readonly attribute. |
| public boolean | |
| public boolean | readonlyInternal()
Get the readonly attribute of this data type, combined with other flags that influence readonly behaviour. |
| public boolean | readonlyInternal(Configuration configuration)
Get the readonly attribute of this data type, combined with other flags that influence readonly behaviour. |
| public @NotNull DataType | Returns: The new data typeThe new scale value scale)Return a new data type like this, with a new scale value. |
| public int | |
| public boolean | |
| public @NotNull DataType | |
| public @NotNull DataType |