Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class ConvertedDataType<T, U>

extends AbstractDataTypeX<U>
Class Inheritance
Annotations
@SuppressWarnings:rawtypes, unchecked
Static Imports
org.jooq.impl.Internal.converterContext

A DataType used for converted types using Converter
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final Binding<? super T, U>
pack-priv final AbstractDataTypeX<T>

Constructor Summary

AccessConstructor and Description
pack-priv
ConvertedDataType(AbstractDataTypeX<T> delegate, Binding<? super T, U> binding)

Method Summary

Modifier and TypeMethod and Description
public final <X> DataType<X>
asConvertedDataType(Converter<? super U, X> converter)

Overrides org.jooq.impl.AbstractDataType.asConvertedDataType.

Implements org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given converter.
pack-priv final String
pack-priv final String
pack-priv final String
public final CharacterSet
characterSet()

Implements org.jooq.DataType.characterSet.

Get the character set of this data type, or null if there is no character set, or if the default character set applies.
public final Collation
collation()

Implements org.jooq.DataType.collation.

Get the collation of this data type, or null if there is no collation, or if the default collation applies.
pack-priv AbstractDataTypeX<U>
construct(Integer newPrecision, Integer newScale, Integer newLength, Nullability newNullability, boolean newReadonly, Generator<?, ?, U> newGeneratedAlwaysAs, QOM.GenerationOption newGenerationOption, QOM.GenerationLocation newGenerationLocation, Collation newCollation, CharacterSet newCharacterSet, boolean newIdentity, Field<U> newDefaultValue)

Implements abstract org.jooq.impl.AbstractDataTypeX.construct.

Deprecated as a consequence of Field being deprecated.
[#7811] Allow for subtypes to override the constructor
public final U
convert(Object
The object to be converted
object
)

Overrides org.jooq.impl.AbstractDataType.convert.

Implements org.jooq.DataType.convert.

Convert an arbitrary object into <T>.
public final Field<U>
default_()

Implements org.jooq.DataType.default_.

Deprecated as a consequence of Field being deprecated.
The expression to be applied as the DEFAULT value for this data type.
pack-priv final DataType<T>
pack-priv static final DataType<?>
delegate(DataType<?> type)

public final Generator<?, ?, U>
generatedAlwaysAsGenerator()

Implements abstract org.jooq.impl.AbstractDataType.generatedAlwaysAsGenerator.

Implements org.jooq.DataType.generatedAlwaysAsGenerator.

Get the computed column expression of this data type, if any.
public final QOM.GenerationLocation
generationLocation()

Implements abstract org.jooq.impl.AbstractDataType.generationLocation.

Implements org.jooq.DataType.generationLocation.

Get the GenerationLocation of the computed column expression of this data type, if any.
public final QOM.GenerationOption
generationOption()

Implements abstract org.jooq.impl.AbstractDataType.generationOption.

Implements org.jooq.DataType.generationOption.

Get the GenerationOption of the computed column expression of this data type, if any.
public final DataType<?>
getArrayComponentDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayComponentDataType.

Implements org.jooq.DataType.getArrayComponentDataType.

Retrieve the Java component data type if this is an ARRAY type, or null, otherwise.
public final Class<?>
getArrayComponentType()

Overrides org.jooq.impl.AbstractDataType.getArrayComponentType.

Implements org.jooq.DataType.getArrayComponentType.

Retrieve the Java component type if this is an ARRAY type, or null, otherwise.
public final DataType<U[]>
getArrayDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayDataType.

Implements org.jooq.DataType.getArrayDataType.

Retrieve the data type for an ARRAY of this data type.
public final Binding<?, U>
getBinding()

Implements org.jooq.DataType.getBinding.

Get the data type binding associated with this data type.
public final String
getCastTypeName()

Overrides org.jooq.impl.AbstractDataType.getCastTypeName.

Implements org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.
public final String
getCastTypeName(Configuration configuration)

Overrides org.jooq.impl.AbstractDataType.getCastTypeName.

Implements org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.
public final DataType<U>
getDataType(Configuration configuration)

Implements org.jooq.DataType.getDataType.

The dialect-specific data type representing this data type.
public final SQLDialect
getDialect()

Implements org.jooq.DataType.getDialect.

Retrieve the underlying SQLDialect.
public final Class<? extends Record>
getRecordType()

Overrides org.jooq.impl.AbstractDataType.getRecordType.

Implements org.jooq.DataType.getRecordType.

Get the nested record's record type definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.
public final Row
getRow()

Overrides org.jooq.impl.AbstractDataType.getRow.

Implements org.jooq.DataType.getRow.

Get the nested record's Row definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.
public final DataType<U>
getSQLDataType()

Implements org.jooq.DataType.getSQLDataType.

Get the standard SQL data type of this (dialect-specific) data type if available.
public final Class<U>
getType()

Implements org.jooq.DataType.getType.

Retrieve the Java type associated with this data type.
public final String
getTypeName()

Overrides org.jooq.impl.AbstractDataType.getTypeName.

Implements org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.
public final String
getTypeName(Configuration configuration)

Overrides org.jooq.impl.AbstractDataType.getTypeName.

Implements org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.
public final boolean
identity()

Implements org.jooq.DataType.identity.

Get the identity flag of this data type.
public final boolean
isMultiset()

Overrides org.jooq.impl.AbstractDataType.isMultiset.

Implements org.jooq.DataType.isMultiset.

Whether this data type is a nested collection type.
public final boolean
isRecord()

Overrides org.jooq.impl.AbstractDataType.isRecord.

Implements org.jooq.DataType.isRecord.

Whether this data type is a nested record type.
pack-priv final Integer
public final Nullability
nullability()

Implements org.jooq.DataType.nullability.

Get the nullability of this data type.
pack-priv final Integer
public final boolean
readonly()

Implements abstract org.jooq.impl.AbstractDataType.readonly.

Implements org.jooq.DataType.readonly.

Get the readonly attribute of this data type.
pack-priv final Integer
pack-priv final Class<?>
pack-priv final String
pack-priv final Class<U>
Inherited from org.jooq.impl.AbstractDataTypeX:
characterSetcollationdefault_generatedAlwaysAsgenerationLocationgenerationOptionidentitylength1nullabilityprecision1readonlyscale1

Field Detail

bindingback to summary
pack-priv final Binding<? super T, U> binding
delegateback to summary
pack-priv final AbstractDataTypeX<T> delegate

Constructor Detail

ConvertedDataTypeback to summary
pack-priv ConvertedDataType(AbstractDataTypeX<T> delegate, Binding<? super T, U> binding)

Method Detail

asConvertedDataTypeback to summary
public final <X> DataType<X> asConvertedDataType(Converter<? super U, X> converter)

Overrides org.jooq.impl.AbstractDataType.asConvertedDataType.

Implements org.jooq.DataType.asConvertedDataType.

Doc from org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given converter.

Annotations
@Override
castTypeName0back to summary
pack-priv final String castTypeName0()

Implements abstract org.jooq.impl.AbstractDataType.castTypeName0.

Annotations
@Override
castTypePrefix0back to summary
pack-priv final String castTypePrefix0()

Implements abstract org.jooq.impl.AbstractDataType.castTypePrefix0.

Annotations
@Override
castTypeSuffix0back to summary
pack-priv final String castTypeSuffix0()

Implements abstract org.jooq.impl.AbstractDataType.castTypeSuffix0.

Annotations
@Override
characterSetback to summary
public final CharacterSet characterSet()

Implements org.jooq.DataType.characterSet.

Doc from org.jooq.DataType.characterSet.

Get the character set of this data type, or null if there is no character set, or if the default character set applies.

Annotations
@Override
collationback to summary
public final Collation collation()

Implements org.jooq.DataType.collation.

Doc from org.jooq.DataType.collation.

Get the collation of this data type, or null if there is no collation, or if the default collation applies.

Annotations
@Override
constructback to summary
pack-priv AbstractDataTypeX<U> construct(Integer newPrecision, Integer newScale, Integer newLength, Nullability newNullability, boolean newReadonly, Generator<?, ?, U> newGeneratedAlwaysAs, QOM.GenerationOption newGenerationOption, QOM.GenerationLocation newGenerationLocation, Collation newCollation, CharacterSet newCharacterSet, boolean newIdentity, Field<U> newDefaultValue)

Implements abstract org.jooq.impl.AbstractDataTypeX.construct.

Doc from org.jooq.impl.AbstractDataTypeX.construct.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

[#7811] Allow for subtypes to override the constructor

Annotations
@Override
convertback to summary
public final U convert(Object object)

Overrides org.jooq.impl.AbstractDataType.convert.

Implements org.jooq.DataType.convert.

Doc from org.jooq.DataType.convert.

Convert an arbitrary object into <T>.

See Convert#convert(Object, Class) for details about conversion rules. Notice this does not pass through any Configuration#converterProvider().

Parameters
object:Object

The object to be converted

Returns:U

The converted object

Annotations
@Override
default_back to summary
public final Field<U> default_()

Implements org.jooq.DataType.default_.

Doc from org.jooq.DataType.default_.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

The expression to be applied as the DEFAULT value for this data type.

Returns:Field<U>

The default value if present, or null if no default value is specified for this data type.

Annotations
@Override
delegateback to summary
pack-priv final DataType<T> delegate()
delegateback to summary
pack-priv static final DataType<?> delegate(DataType<?> type)
generatedAlwaysAsGeneratorback to summary
public final Generator<?, ?, U> generatedAlwaysAsGenerator()

Implements abstract org.jooq.impl.AbstractDataType.generatedAlwaysAsGenerator.

Implements org.jooq.DataType.generatedAlwaysAsGenerator.

Doc from org.jooq.DataType.generatedAlwaysAsGenerator.

Get the computed column expression of this data type, if any.

This feature is implemented in commercial distributions only.

Annotations
@Override
generationLocationback to summary
public final QOM.GenerationLocation generationLocation()

Implements abstract org.jooq.impl.AbstractDataType.generationLocation.

Implements org.jooq.DataType.generationLocation.

Doc from org.jooq.DataType.generationLocation.

Get the GenerationLocation of the computed column expression of this data type, if any.

Specifies whether the generatedAlwaysAs() expression is computed on the GenerationLocation#SERVER (by default) or in the GenerationLocation#CLIENT. The latter is supported in all dialects, the former only in relevant dialects.

The computation happens in Insert, Update, or Merge statements in case generationOption() is GenerationOption#STORED, or in Select in case the generationOption() is GenerationOption#VIRTUAL.

This feature is implemented in commercial distributions only.

Annotations
@Override
generationOptionback to summary
public final QOM.GenerationOption generationOption()

Implements abstract org.jooq.impl.AbstractDataType.generationOption.

Implements org.jooq.DataType.generationOption.

Doc from org.jooq.DataType.generationOption.

Get the GenerationOption of the computed column expression of this data type, if any.

This feature is implemented in commercial distributions only.

Annotations
@Override
getArrayComponentDataTypeback to summary
public final DataType<?> getArrayComponentDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayComponentDataType.

Implements org.jooq.DataType.getArrayComponentDataType.

Doc from org.jooq.DataType.getArrayComponentDataType.

Retrieve the Java component data type if this is an ARRAY type, or null, otherwise.

E.g. for DataType, this will return DataType<String[][]>.

Annotations
@Override
getArrayComponentTypeback to summary
public final Class<?> getArrayComponentType()

Overrides org.jooq.impl.AbstractDataType.getArrayComponentType.

Implements org.jooq.DataType.getArrayComponentType.

Doc from org.jooq.DataType.getArrayComponentType.

Retrieve the Java component type if this is an ARRAY type, or null, otherwise.

E.g. for DataType, this will return String[][].

Annotations
@Override
getArrayDataTypeback to summary
public final DataType<U[]> getArrayDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayDataType.

Implements org.jooq.DataType.getArrayDataType.

Doc from org.jooq.DataType.getArrayDataType.

Retrieve the data type for an ARRAY of this data type.

Built-in data types, as well as custom data types that have a custom getConverter() can be translated to array data types using Converter#forArrays(). Data types with custom getBinding() cannot be translated to an array data type. Use this idiom, instead:


// Doesn't work
DataType t1 =
  SQLDataType.INTEGER.asConvertedDataType(binding).getArrayDataType();

// Works
DataType t2 =
  SQLDataType.INTEGER.getArrayDataType().asConvertedDataType(arrayBinding);
Annotations
@Override
getBindingback to summary
public final Binding<?, U> getBinding()

Implements org.jooq.DataType.getBinding.

Doc from org.jooq.DataType.getBinding.

Get the data type binding associated with this data type.

Annotations
@Override
getCastTypeNameback to summary
public final String getCastTypeName()

Overrides org.jooq.impl.AbstractDataType.getCastTypeName.

Implements org.jooq.DataType.getCastTypeName.

Doc from org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.

This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. VARCHAR(32767))

Annotations
@Override
getCastTypeNameback to summary
public final String getCastTypeName(Configuration configuration)

Overrides org.jooq.impl.AbstractDataType.getCastTypeName.

Implements org.jooq.DataType.getCastTypeName.

Doc from org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.

This is useful for some dialects that have specialised type names for cast expressions. Other dialects require type-length binding when casting, (e.g. VARCHAR(32767))

Annotations
@Override
getDataTypeback to summary
public final DataType<U> getDataType(Configuration configuration)

Implements org.jooq.DataType.getDataType.

Doc from org.jooq.DataType.getDataType.

The dialect-specific data type representing this data type.

Annotations
@Override
getDialectback to summary
public final SQLDialect getDialect()

Implements org.jooq.DataType.getDialect.

Doc from org.jooq.DataType.getDialect.

Retrieve the underlying SQLDialect.

Annotations
@Override
getRecordTypeback to summary
public final Class<? extends Record> getRecordType()

Overrides org.jooq.impl.AbstractDataType.getRecordType.

Implements org.jooq.DataType.getRecordType.

Doc from org.jooq.DataType.getRecordType.

Get the nested record's record type definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.

Annotations
@Override
getRowback to summary
public final Row getRow()

Overrides org.jooq.impl.AbstractDataType.getRow.

Implements org.jooq.DataType.getRow.

Doc from org.jooq.DataType.getRow.

Get the nested record's Row definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.

Annotations
@Override
getSQLDataTypeback to summary
public final DataType<U> getSQLDataType()

Implements org.jooq.DataType.getSQLDataType.

Doc from org.jooq.DataType.getSQLDataType.

Get the standard SQL data type of this (dialect-specific) data type if available.

Annotations
@Override
getTypeback to summary
public final Class<U> getType()

Implements org.jooq.DataType.getType.

Doc from org.jooq.DataType.getType.

Retrieve the Java type associated with this data type.

Annotations
@Override
getTypeNameback to summary
public final String getTypeName()

Overrides org.jooq.impl.AbstractDataType.getTypeName.

Implements org.jooq.DataType.getTypeName.

Doc from org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.

Annotations
@Override
getTypeNameback to summary
public final String getTypeName(Configuration configuration)

Overrides org.jooq.impl.AbstractDataType.getTypeName.

Implements org.jooq.DataType.getTypeName.

Doc from org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.

Annotations
@Override
identityback to summary
public final boolean identity()

Implements org.jooq.DataType.identity.

Doc from org.jooq.DataType.identity.

Get the identity flag of this data type.

Returns:boolean

The identity flag.

Annotations
@Override
isMultisetback to summary
public final boolean isMultiset()

Overrides org.jooq.impl.AbstractDataType.isMultiset.

Implements org.jooq.DataType.isMultiset.

Doc from org.jooq.DataType.isMultiset.

Whether this data type is a nested collection type.

This is true for anonymous, structural nested collection types constructed with DSL#multiset(Select) or DSL#multisetAgg(Field...).

Annotations
@Override
isRecordback to summary
public final boolean isRecord()

Overrides org.jooq.impl.AbstractDataType.isRecord.

Implements org.jooq.DataType.isRecord.

Doc from org.jooq.DataType.isRecord.

Whether this data type is a nested record type.

This is true for anonymous, structural nested record types constructed with DSL#row(SelectField...) or for nominal nested record types, such as isUDT() or isEmbeddable().

Annotations
@Override
length0back to summary
pack-priv final Integer length0()

Implements abstract org.jooq.impl.AbstractDataType.length0.

Annotations
@Override
nullabilityback to summary
public final Nullability nullability()

Implements org.jooq.DataType.nullability.

Doc from org.jooq.DataType.nullability.

Get the nullability of this data type.

Returns:Nullability

The nullability

Annotations
@Override
precision0back to summary
pack-priv final Integer precision0()

Implements abstract org.jooq.impl.AbstractDataType.precision0.

Annotations
@Override
readonlyback to summary
public final boolean readonly()

Implements abstract org.jooq.impl.AbstractDataType.readonly.

Implements org.jooq.DataType.readonly.

Doc from org.jooq.DataType.readonly.

Get the readonly attribute of this data type.

This feature is implemented in commercial distributions only.

Annotations
@Override
scale0back to summary
pack-priv final Integer scale0()

Implements abstract org.jooq.impl.AbstractDataType.scale0.

Annotations
@Override
tType0back to summary
pack-priv final Class<?> tType0()

Implements abstract org.jooq.impl.AbstractDataType.tType0.

Annotations
@Override
typeName0back to summary
pack-priv final String typeName0()

Implements abstract org.jooq.impl.AbstractDataType.typeName0.

Annotations
@Override
uType0back to summary
pack-priv final Class<U> uType0()

Implements abstract org.jooq.impl.AbstractDataType.uType0.

Annotations
@Override