Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class DomainDataType<T>

extends DefaultDataType<T>
Class Inheritance
Imports
org.jooq.CharacterSet, .Collation, .Configuration, .DataType, .Domain, .Field, .Generator, .Nullability, org.jooq.impl.QOM.GenerationLocation, .QOM.GenerationOption

A DataType used for Domain types.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final DataType<T>
private final Domain<T>
Inherited from org.jooq.impl.DefaultDataType:
BYTE_PRECISIONINTEGER_PRECISIONLONG_PRECISIONSHORT_PRECISION

Constructor Summary

AccessConstructor and Description
pack-priv
DomainDataType(Domain<T> domain, DataType<T> baseType)

Method Summary

Modifier and TypeMethod and Description
pack-priv DefaultDataType<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)

Overrides org.jooq.impl.DefaultDataType.construct.

Deprecated as a consequence of Field being deprecated.
[#7811] Allow for subtypes to override the constructor
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 Domain<T>
getDomain()

Overrides org.jooq.impl.AbstractDataType.getDomain.

Implements org.jooq.DataType.getDomain.

Get the defining DOMAIN type or NULL if there is no such type.
public final int
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.
Inherited from org.jooq.impl.DefaultDataType:
castTypeName0castTypePrefix0castTypeSuffix0characterSetcollationdataTypesdefault_generatedAlwaysAsGeneratorgenerationLocationgenerationOptiongetBindinggetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDefaultDataTypegetDefaultDataTypegetDialectgetSQLDataTypegetTypegetTypeidentitylength0normalisenullabilityprecision0readonlyscale0settType0typeName0typesuType0

Field Detail

baseTypeback to summary
private final DataType<T> baseType
domainback to summary
private final Domain<T> domain

Constructor Detail

DomainDataTypeback to summary
pack-priv DomainDataType(Domain<T> domain, DataType<T> baseType)

Method Detail

constructback to summary
pack-priv DefaultDataType<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)

Overrides org.jooq.impl.DefaultDataType.construct.

Doc from org.jooq.impl.DefaultDataType.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
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
getDomainback to summary
public final Domain<T> getDomain()

Overrides org.jooq.impl.AbstractDataType.getDomain.

Implements org.jooq.DataType.getDomain.

Doc from org.jooq.DataType.getDomain.

Get the defining DOMAIN type or NULL if there is no such type.

Annotations
@Override
getSQLTypeback to summary
public final int getSQLType()

Overrides org.jooq.impl.AbstractDataType.getSQLType.

Implements org.jooq.DataType.getSQLType.

Doc from org.jooq.DataType.getSQLType.

Get JDBC Types value.

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