Top Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractDataTypeX<T>

extends AbstractDataType<T>
Class Inheritance
Known Direct Subclasses
org.jooq.impl.ConvertedDataType, org.jooq.impl.DefaultDataType
Static Imports
org.jooq.Nullability.NOT_NULL, org.jooq.impl.Tools.CONFIG

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final JooqLogger
Inherited from org.jooq.impl.AbstractDataType:
NO_SUPPORT_TIMESTAMP_PRECISION

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final DataType<T>
characterSet(CharacterSet c)

Implements abstract org.jooq.impl.AbstractDataType.characterSet.

Implements org.jooq.DataType.characterSet.

Return a new data type like this, with a new character set.
public final DataType<T>
collation(Collation c)

Implements abstract org.jooq.impl.AbstractDataType.collation.

Implements org.jooq.DataType.collation.

Return a new data type like this, with a new collation.
pack-priv abstract AbstractDataTypeX<T>
construct(Integer newPrecision, Integer newScale, Integer newLength, Nullability newNullability, boolean newReadonly, Generator<?, ?, T> newGeneratedAlwaysAs, QOM.GenerationOption newGenerationOption, QOM.GenerationLocation newGenerationLocation, Collation newCollation, CharacterSet newCharacterSet, boolean newIdentity, Field<T> newDefaultValue)

Deprecated as a consequence of Field being deprecated.
[#7811] Allow for subtypes to override the constructor
public final DataType<T>
default_(Field<T> d)

Overrides org.jooq.impl.AbstractDataType.default_.

Implements abstract org.jooq.impl.AbstractDataType.default_.

Implements org.jooq.DataType.default_, org.jooq.DataType.default_.

Deprecated as a consequence of Field being deprecated.
Specify an expression to be applied as the DEFAULT value for this data type.
public final DataType<T>
generatedAlwaysAs(Generator<?, ?, T> g)

Overrides org.jooq.impl.AbstractDataType.generatedAlwaysAs.

Implements abstract org.jooq.impl.AbstractDataType.generatedAlwaysAs.

Implements org.jooq.DataType.generatedAlwaysAs, org.jooq.DataType.generatedAlwaysAs.

Set the computed column expression of this data type to a dynamic expression.
public final DataType<T>
public final DataType<T>
public final DataType<T>
identity(boolean
The new identity flag
i
)

Implements abstract org.jooq.impl.AbstractDataType.identity.

Implements org.jooq.DataType.identity.

Return a new data type like this, with a new identity flag.
pack-priv final AbstractDataTypeX<T>
public final DataType<T>
nullability(Nullability
The new nullability
n
)

Implements abstract org.jooq.impl.AbstractDataType.nullability.

Implements org.jooq.DataType.nullability.

Return a new data type like this, with a new nullability.
pack-priv final AbstractDataTypeX<T>
public final DataType<T>
readonly(boolean
The new readonly attribute value.
r
)

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

Implements org.jooq.DataType.readonly.

Return a new data type like this, with a new readonly attribute.
pack-priv final AbstractDataTypeX<T>
Inherited from org.jooq.impl.AbstractDataType:
acceptarrayasConvertedDataTypeasConvertedDataTypeasEnumDataTypecastTypeName0castTypePrefix0castTypeSuffix0computedcomputedOnClientcomputedOnClientcomputedOnClientStoredcomputedOnClientStoredcomputedOnClientStoredOncomputedOnClientStoredOncomputedOnClientVirtualcomputedOnClientVirtualcomputedOnServercomputedOnServerconvertconvertconvertdefaulteddefaulteddefaultValuedefaultValuedefaultValueequalsgeneratedAlwaysAsgeneratedAlwaysAsgeneratedAlwaysAsGeneratorgenerationLocationgenerationLocationgenerationOptiongenerationOptiongetArrayBaseDataTypegetArrayBaseTypegetArrayComponentDataTypegetArrayComponentTypegetArrayDataTypegetArrayTypegetCastTypeNamegetCastTypeNamegetConvertergetDomaingetRecordTypegetRowgetSQLTypegetSQLTypegetTypeNamegetTypeNamehashCodehasLengthhasPrecisionhasScaleisArrayisAssociativeArrayisBinaryisBooleanisDateisDateTimeisEmbeddableisEnumisFloatisIntegerisIntervalisJSONisLobisMultisetisNStringisNumericisRecordisSpatialisStringisTemporalisTimeisTimestampisUDTisXMLlazyNamelazyNamelengthlengthlength0length0lengthDefinednotNullnull_nullablenullableprecisionprecisionprecisionprecision0precision0precisionDefinedreadonlyreadonlyInternalreadonlyInternalscalescalescale0scale0scaleDefinedstoredtoStringtType0typeName0uType0virtual

Field Detail

logGeneratedAlwaysAsback to summary
private static final JooqLogger logGeneratedAlwaysAs

Constructor Detail

AbstractDataTypeXback to summary
pack-priv AbstractDataTypeX(Name name, Comment comment)

Method Detail

characterSetback to summary
public final DataType<T> characterSet(CharacterSet c)

Implements abstract org.jooq.impl.AbstractDataType.characterSet.

Implements org.jooq.DataType.characterSet.

Doc from org.jooq.DataType.characterSet.

Return a new data type like this, with a new character set.

Annotations
@Override
collationback to summary
public final DataType<T> collation(Collation c)

Implements abstract org.jooq.impl.AbstractDataType.collation.

Implements org.jooq.DataType.collation.

Doc from org.jooq.DataType.collation.

Return a new data type like this, with a new collation.

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

Deprecated

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

[#7811] Allow for subtypes to override the constructor

default_back to summary
public final DataType<T> default_(Field<T> d)

Overrides org.jooq.impl.AbstractDataType.default_.

Implements abstract org.jooq.impl.AbstractDataType.default_.

Implements org.jooq.DataType.default_, org.jooq.DataType.default_.

Doc from org.jooq.DataType.default_.

Deprecated

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

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

A default value of a data type applies to DDL statements, such as

  • CREATE TABLE
  • ALTER TABLE

The distinct types of possible DEFAULT expressions is defined by the underlying database. Please refer to your database manual to learn what expressions are possible.

Annotations
@Override
generatedAlwaysAsback to summary
public final DataType<T> generatedAlwaysAs(Generator<?, ?, T> g)

Overrides org.jooq.impl.AbstractDataType.generatedAlwaysAs.

Implements abstract org.jooq.impl.AbstractDataType.generatedAlwaysAs.

Implements org.jooq.DataType.generatedAlwaysAs, org.jooq.DataType.generatedAlwaysAs.

Doc from org.jooq.DataType.generatedAlwaysAs.

Set the computed column expression of this data type to a dynamic expression.

Unlike generatedAlwaysAs(Object) and generatedAlwaysAs(Field), which produce a constant value or expression, this allows for generating a dynamic expression if used along with generationLocation() and GenerationLocation#CLIENT, in order to implement client side computed columns.

If generationLocation() is GenerationLocation#SERVER, then this does not affect generated DML statements, and will be evaluated only in DDL statements, when creating the table.

This implicitly sets readonly() to true.

This feature is implemented in commercial distributions only.

Annotations
@Override
generationLocationback to summary
public final DataType<T> generationLocation(QOM.GenerationLocation g)

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

Implements org.jooq.DataType.generationLocation.

Doc from org.jooq.DataType.generationLocation.

Set the generationLocation() of the computed column expression.

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 DataType<T> generationOption(QOM.GenerationOption g)

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

Implements org.jooq.DataType.generationOption.

Doc from org.jooq.DataType.generationOption.

Set the generationOption() of the computed column expression.

If not supported by the dialect, this will be ignored.

This feature is implemented in commercial distributions only.

Annotations
@Override
identityback to summary
public final DataType<T> identity(boolean i)

Implements abstract org.jooq.impl.AbstractDataType.identity.

Implements org.jooq.DataType.identity.

Doc from org.jooq.DataType.identity.

Return a new data type like this, with a new identity flag.

[#5709] The IDENTITY flag imposes a NOT NULL constraint, and removes all DEFAULT values.

Parameters
i:boolean

The new identity flag

Returns:DataType<T>

The new data type

Annotations
@Override
length1back to summary
pack-priv final AbstractDataTypeX<T> length1(Integer l)

Implements abstract org.jooq.impl.AbstractDataType.length1.

Annotations
@Override
nullabilityback to summary
public final DataType<T> nullability(Nullability n)

Implements abstract org.jooq.impl.AbstractDataType.nullability.

Implements org.jooq.DataType.nullability.

Doc from org.jooq.DataType.nullability.

Return a new data type like this, with a new nullability.

[#5709] A nullable column cannot have an identity().

Parameters
n:Nullability

The new nullability

Returns:DataType<T>

The new data type

Annotations
@Override
precision1back to summary
pack-priv final AbstractDataTypeX<T> precision1(Integer p, Integer s)

Implements abstract org.jooq.impl.AbstractDataType.precision1.

Annotations
@Override
readonlyback to summary
public final DataType<T> readonly(boolean r)

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

Implements org.jooq.DataType.readonly.

Doc from org.jooq.DataType.readonly.

Return a new data type like this, with a new readonly attribute.

This feature is implemented in commercial distributions only.

Parameters
r:boolean

The new readonly attribute value.

Returns:DataType<T>

The new data type

Annotations
@Override
scale1back to summary
pack-priv final AbstractDataTypeX<T> scale1(Integer s)

Implements abstract org.jooq.impl.AbstractDataType.scale1.

Annotations
@Override