Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class DataTypeProxy<T>

extends AbstractDataType<T>
Class Inheritance
Static Imports
org.jooq.tools.StringUtils.defaultIfNull

A mutable proxy for a temporary DataType, which can be replaced by a more specific data type once it is known.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final CharacterSet
private final Collation
private final Field<T>
overrideDefaultValue

Deprecated as a consequence of Field being deprecated.
private final Generator<?, ?, T>
private final QOM.GenerationLocation
private final QOM.GenerationOption
private final Boolean
private final Integer
private final Nullability
private final Integer
private final Boolean
private final Integer
private AbstractDataType<T>
Inherited from org.jooq.impl.AbstractDataType:
NO_SUPPORT_TIMESTAMP_PRECISION

Constructor Summary

AccessConstructor and Description
pack-priv
private
DataTypeProxy(AbstractDataType<T> type, Integer overridePrecision, Integer overrideScale, Integer overrideLength, Nullability overrideNullability, Boolean overrideReadonly, Generator<?, ?, T> overrideGeneratedAlwaysAs, QOM.GenerationOption overrideGenerationOption, QOM.GenerationLocation overrideGenerationLocation, Collation overrideCollation, CharacterSet overrideCharacterSet, Boolean overrideIdentity, Field<T> overrideDefaultValue)

Deprecated as a consequence of Field being deprecated.

Method Summary

Modifier and TypeMethod and Description
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 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 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.
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.
public final Field<T>
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.
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 Generator<?, ?, T>
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 DataType<T>
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<T>
public final Binding<?, T>
getBinding()

Implements org.jooq.DataType.getBinding.

Get the data type binding associated with this data type.
public final DataType<T>
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 Name
getQualifiedName()

Overrides org.jooq.impl.AbstractNamed.getQualifiedName.

Implements org.jooq.Named.getQualifiedName.

The qualified name of this object.
public final DataType<T>
getSQLDataType()

Implements org.jooq.DataType.getSQLDataType.

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

Implements org.jooq.DataType.getType.

Retrieve the Java type associated with this data type.
public final boolean
identity()

Implements org.jooq.DataType.identity.

Get the identity flag of this data type.
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 Integer
pack-priv final AbstractDataType<T>
public final Nullability
nullability()

Implements org.jooq.DataType.nullability.

Get the nullability of this data type.
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 Integer
pack-priv final AbstractDataType<T>
public final boolean
readonly()

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

Implements org.jooq.DataType.readonly.

Get the readonly attribute of this data type.
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 Integer
pack-priv final AbstractDataType<T>
pack-priv final Class<?>
pack-priv final AbstractDataType<T>
type()

pack-priv final void
pack-priv final String
pack-priv final Class<T>
Inherited from org.jooq.impl.AbstractDataType:
acceptarrayasConvertedDataTypeasConvertedDataTypeasEnumDataTypecomputedcomputedOnClientcomputedOnClientcomputedOnClientStoredcomputedOnClientStoredcomputedOnClientStoredOncomputedOnClientStoredOncomputedOnClientVirtualcomputedOnClientVirtualcomputedOnServercomputedOnServerconvertconvertconvertdefaulteddefaulteddefaultValuedefaultValuedefaultValueequalsgeneratedAlwaysAsgeneratedAlwaysAsgenerationLocationgenerationOptiongetArrayBaseDataTypegetArrayBaseTypegetArrayComponentDataTypegetArrayComponentTypegetArrayDataTypegetArrayTypegetCastTypeNamegetCastTypeNamegetConvertergetDomaingetRecordTypegetRowgetSQLTypegetSQLTypegetTypeNamegetTypeNamehashCodehasLengthhasPrecisionhasScaleisArrayisAssociativeArrayisBinaryisBooleanisDateisDateTimeisEmbeddableisEnumisFloatisIntegerisIntervalisJSONisLobisMultisetisNStringisNumericisRecordisSpatialisStringisTemporalisTimeisTimestampisUDTisXMLlazyNamelazyNamelengthlengthlength0lengthDefinednotNullnull_nullablenullableprecisionprecisionprecisionprecision0precisionDefinedreadonlyInternalreadonlyInternalscalescalescale0scaleDefinedstoredtoStringvirtual

Field Detail

overrideCharacterSetback to summary
private final CharacterSet overrideCharacterSet
overrideCollationback to summary
private final Collation overrideCollation
overrideDefaultValueback to summary
private final Field<T> overrideDefaultValue

Deprecated

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

overrideGeneratedAlwaysAsback to summary
private final Generator<?, ?, T> overrideGeneratedAlwaysAs
overrideGenerationLocationback to summary
private final QOM.GenerationLocation overrideGenerationLocation
overrideGenerationOptionback to summary
private final QOM.GenerationOption overrideGenerationOption
overrideIdentityback to summary
private final Boolean overrideIdentity
overrideLengthback to summary
private final Integer overrideLength
overrideNullabilityback to summary
private final Nullability overrideNullability
overridePrecisionback to summary
private final Integer overridePrecision
overrideReadonlyback to summary
private final Boolean overrideReadonly
overrideScaleback to summary
private final Integer overrideScale
typeback to summary
private AbstractDataType<T> type

Constructor Detail

DataTypeProxyback to summary
pack-priv DataTypeProxy(AbstractDataType<T> type)
DataTypeProxyback to summary
private DataTypeProxy(AbstractDataType<T> type, Integer overridePrecision, Integer overrideScale, Integer overrideLength, Nullability overrideNullability, Boolean overrideReadonly, Generator<?, ?, T> overrideGeneratedAlwaysAs, QOM.GenerationOption overrideGenerationOption, QOM.GenerationLocation overrideGenerationLocation, Collation overrideCollation, CharacterSet overrideCharacterSet, Boolean overrideIdentity, Field<T> overrideDefaultValue)

Deprecated

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

Method Detail

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
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 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
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
default_back to summary
public final Field<T> 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<T>

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

Annotations
@Override
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
generatedAlwaysAsGeneratorback to summary
public final Generator<?, ?, T> 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
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 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
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
getBindingback to summary
public final Binding<?, T> getBinding()

Implements org.jooq.DataType.getBinding.

Doc from org.jooq.DataType.getBinding.

Get the data type binding associated with this data type.

Annotations
@Override
getDataTypeback to summary
public final DataType<T> 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
getQualifiedNameback to summary
public final Name getQualifiedName()

Overrides org.jooq.impl.AbstractNamed.getQualifiedName.

Implements org.jooq.Named.getQualifiedName.

Doc from org.jooq.Named.getQualifiedName.

The qualified name of this object.

Annotations
@Override
getSQLDataTypeback to summary
public final DataType<T> 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<T> getType()

Implements org.jooq.DataType.getType.

Doc from org.jooq.DataType.getType.

Retrieve the Java type 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
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
length0back to summary
pack-priv final Integer length0()

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

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

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

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
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
precision0back to summary
pack-priv final Integer precision0()

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

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

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

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
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
scale0back to summary
pack-priv final Integer scale0()

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

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

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

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

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

Annotations
@Override
typeback to summary
pack-priv final AbstractDataType<T> type()
typeback to summary
pack-priv final void type(AbstractDataType<T> t)
typeName0back to summary
pack-priv final String typeName0()

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

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

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

Annotations
@Override