Top Description Fields Constructors Methods
org.jooq.impl

public Class DefaultDataType<T>

extends AbstractDataTypeX<T>
Class Inheritance
Known Direct Subclasses
org.jooq.impl.BuiltInDataType, org.jooq.impl.LegacyConvertedDataType, org.jooq.impl.MultisetDataType, org.jooq.impl.TableDataType, org.jooq.impl.UDTDataType, org.jooq.impl.ArrayDataType, org.jooq.impl.DomainDataType, org.jooq.impl.RecordDataType
Annotations
@SuppressWarnings:unchecked
@Internal
Static Imports
java.util.Collections.unmodifiableCollection, org.jooq.SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.MARIADB, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.SQLITE, .SQLDialect.YUGABYTEDB, org.jooq.impl.CommentImpl.NO_COMMENT, .DSL.systemName, .DefaultBinding.binding, .SQLDataType.BIGINT, .SQLDataType.BINARY, .SQLDataType.BIT, .SQLDataType.BLOB, .SQLDataType.BOOLEAN, .SQLDataType.CHAR, .SQLDataType.CLOB, .SQLDataType.DATE, .SQLDataType.DECIMAL, .SQLDataType.DOUBLE, .SQLDataType.FLOAT, .SQLDataType.INTEGER, .SQLDataType.LONGNVARCHAR, .SQLDataType.LONGVARBINARY, .SQLDataType.LONGVARCHAR, .SQLDataType.NCHAR, .SQLDataType.NCLOB, .SQLDataType.NUMERIC, .SQLDataType.NVARCHAR, .SQLDataType.OTHER, .SQLDataType.REAL, .SQLDataType.RECORD, .SQLDataType.RESULT, .SQLDataType.SMALLINT, .SQLDataType.TIME, .SQLDataType.TIMESTAMP, .SQLDataType.TIMESTAMPWITHTIMEZONE, .SQLDataType.TIMEWITHTIMEZONE, .SQLDataType.TINYINT, .SQLDataType.VARBINARY, .SQLDataType.VARCHAR, .SQLDataType.XML, .Tools.getRecordQualifier, org.jooq.tools.reflect.Reflect.wrapper

A common base class for data types.

This also acts as a static data type registry for jOOQ internally.

This type is for JOOQ INTERNAL USE only. Do not reference directly

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final Binding<?, T>
binding

The data type binding corresponding to this data type.

pack-priv static final int
BYTE_PRECISION

The minimum decimal precision needed to represent a Java Byte type.

private final String
castTypeName

The type name used for casting to this type.

private final String
castTypePrefix

The type name prefix (prior to length, precision, scale) used for casting to this type.

private final String
castTypeSuffix

The type name suffix (after length, precision, scale) used for casting to this type.

private final CharacterSet
private final Collation
private final Field<T>
defaultValue

Deprecated as a consequence of Field being deprecated.
private final SQLDialect
dialect

The SQL dialect associated with this data type.

private static final Set<SQLDialect>
private final Generator<?, ?, T>
private final QOM.GenerationLocation
private final QOM.GenerationOption
private final boolean
pack-priv static final int
INTEGER_PRECISION

The minimum decimal precision needed to represent a Java Integer type.

private final Integer
pack-priv static final int
LONG_PRECISION

The minimum decimal precision needed to represent a Java Long type.

private static final Set<SQLDialect>
private static final Pattern
NORMALISE_PATTERN

A pattern for data type name normalisation.

private final Nullability
private final Integer
private final boolean
private final Integer
pack-priv static final int
SHORT_PRECISION

The minimum decimal precision needed to represent a Java Short type.

private static final Map<Class<?>, DefaultDataType<?>>
SQL_DATATYPES_BY_TYPE

A cache for SQL DataTypes by Java type.

private final DataType<T>
sqlDataType

The SQL DataType corresponding to this data type.

private static final Set<SQLDialect>
private static final Set<SQLDialect>
private final Class<?>
tType

The Java class corresponding to this data type's <T> type, i.e. the database type in case a Binding applies.

private static final Pattern
TYPE_NAME_PATTERN

A pattern to be used to replace all precision, scale, and length information.

private final String
typeName

The type name.

private static final Map<String, DefaultDataType<?>>[]
TYPES_BY_NAME

A cache for dialect-specific data types by normalised.

private static final Map<DataType<?>, DefaultDataType<?>>[]
TYPES_BY_SQL_DATATYPE

A cache for dialect-specific data types by SQL DataTypes.

private static final Map<Class<?>, DefaultDataType<?>>[]
TYPES_BY_TYPE

A cache for dialect-specific data types by Java type.

private final Class<T>
uType

The Java class corresponding to this data type's <U> type, i.e. the user type in case a Binding applies.

Constructor Summary

AccessConstructor and Description
public
DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName)

public
DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName, String castTypeName)

public
DefaultDataType(SQLDialect dialect, Class<T> type, String typeName)

public
DefaultDataType(SQLDialect dialect, Class<T> type, String typeName, String castTypeName)

pack-priv
DefaultDataType(SQLDialect dialect, Class<T> type, Name qualifiedTypeName)

pack-priv
DefaultDataType(SQLDialect dialect, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated as a consequence of Field being deprecated.
pack-priv
DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated as a consequence of Field being deprecated.
pack-priv
DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated as a consequence of Field being deprecated.
pack-priv
DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, boolean readonly, Generator<?, ?, T> generatedAlwaysAs, QOM.GenerationOption generationOption, QOM.GenerationLocation generationLocation, Collation collation, CharacterSet characterSet, boolean identity, Field<T> defaultValue)

Deprecated as a consequence of Field being deprecated.
pack-priv
DefaultDataType(AbstractDataType<T> t, Integer precision, Integer scale, Integer length, Nullability nullability, boolean readonly, Generator<?, ?, T> generatedAlwaysAs, QOM.GenerationOption generationOption, QOM.GenerationLocation generationLocation, Collation collation, CharacterSet characterSet, boolean identity, Field<T> defaultValue)

Deprecated as a consequence of Field being deprecated.
[#3225] Performant constructor for creating derived types.

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 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 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)

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

Deprecated as a consequence of Field being deprecated.
[#7811] Allow for subtypes to override the constructor
pack-priv static final Collection<DefaultDataType<?>>
private static final int
decodeTimestampPrecision(int precision)

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 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 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 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 static final DataType<?>
getDataType(SQLDialect dialect, String typeName)

public static final DataType<?>
getDataType(SQLDialect dialect, SQLType sqlType)

public static final DataType<?>
getDataType(SQLDialect dialect, int sqlType)

public static final <T> DataType<T>
getDataType(SQLDialect dialect, Class<T> type)

public static final <T> DataType<T>
getDataType(SQLDialect dialect, Class<T> type, DataType<T> fallbackDataType)

public static final DataType<?>
getDataType(SQLDialect dialect, String t, int p, int s)

Convert a type name (using precision and scale) into a Java class

public static final DataType<?>
getDataType(SQLDialect dialect, String t, int p, int s, boolean forceIntegerTypesOnZeroScaleDecimals)

Convert a type name (using precision and scale) into a Java class

public static final DataType<Object>
public static final DataType<Object>
public final SQLDialect
getDialect()

Implements org.jooq.DataType.getDialect.

Retrieve the underlying SQLDialect.
private static final Class<?>
getNumericClass(int precision, int scale)

Get the most suitable Java class for a given precision and scale

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 static final Class<?>
getType(SQLDialect dialect, String t, int p, int s)

Convert a type name (using precision and scale) into a Java class

public final boolean
identity()

Implements org.jooq.DataType.identity.

Get the identity flag of this data type.
private static final Integer
integerPrecision(Class<?> type, Integer precision)

pack-priv final Integer
public static final String

Returns:

The type name without all special characters and white spaces
normalise
(String typeName)

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 static final DataType<?>
pack-priv final Class<?>
pack-priv final String
pack-priv static final Collection<Class<?>>
pack-priv final Class<T>
Inherited from org.jooq.impl.AbstractDataTypeX:
characterSetcollationdefault_generatedAlwaysAsgenerationLocationgenerationOptionidentitylength1nullabilityprecision1readonlyscale1

Field Detail

bindingback to summary
private final Binding<?, T> binding

The data type binding corresponding to this data type.

BYTE_PRECISIONback to summary
pack-priv static final int BYTE_PRECISION

The minimum decimal precision needed to represent a Java Byte type.

castTypeNameback to summary
private final String castTypeName

The type name used for casting to this type.

castTypePrefixback to summary
private final String castTypePrefix

The type name prefix (prior to length, precision, scale) used for casting to this type.

castTypeSuffixback to summary
private final String castTypeSuffix

The type name suffix (after length, precision, scale) used for casting to this type.

characterSetback to summary
private final CharacterSet characterSet
collationback to summary
private final Collation collation
defaultValueback to summary
private final Field<T> defaultValue

Deprecated

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

dialectback to summary
private final SQLDialect dialect

The SQL dialect associated with this data type.

ENCODED_TIMESTAMP_PRECISIONback to summary
private static final Set<SQLDialect> ENCODED_TIMESTAMP_PRECISION
generatedAlwaysAsback to summary
private final Generator<?, ?, T> generatedAlwaysAs
generationLocationback to summary
private final QOM.GenerationLocation generationLocation
generationOptionback to summary
private final QOM.GenerationOption generationOption
identityback to summary
private final boolean identity
INTEGER_PRECISIONback to summary
pack-priv static final int INTEGER_PRECISION

The minimum decimal precision needed to represent a Java Integer type.

lengthback to summary
private final Integer length
LONG_PRECISIONback to summary
pack-priv static final int LONG_PRECISION

The minimum decimal precision needed to represent a Java Long type.

NO_SUPPORT_TIMESTAMP_PRECISIONback to summary
private static final Set<SQLDialect> NO_SUPPORT_TIMESTAMP_PRECISION

Hides org.jooq.impl.AbstractDataType.NO_SUPPORT_TIMESTAMP_PRECISION.

NORMALISE_PATTERNback to summary
private static final Pattern NORMALISE_PATTERN

A pattern for data type name normalisation.

nullabilityback to summary
private final Nullability nullability
precisionback to summary
private final Integer precision
readonlyback to summary
private final boolean readonly
scaleback to summary
private final Integer scale
SHORT_PRECISIONback to summary
pack-priv static final int SHORT_PRECISION

The minimum decimal precision needed to represent a Java Short type.

SQL_DATATYPES_BY_TYPEback to summary
private static final Map<Class<?>, DefaultDataType<?>> SQL_DATATYPES_BY_TYPE

A cache for SQL DataTypes by Java type.

sqlDataTypeback to summary
private final DataType<T> sqlDataType

The SQL DataType corresponding to this data type.

SUPPORT_HSQLDB_ARRAY_NOTATIONback to summary
private static final Set<SQLDialect> SUPPORT_HSQLDB_ARRAY_NOTATION
SUPPORT_POSTGRES_ARRAY_NOTATIONback to summary
private static final Set<SQLDialect> SUPPORT_POSTGRES_ARRAY_NOTATION
tTypeback to summary
private final Class<?> tType

The Java class corresponding to this data type's <T> type, i.e. the database type in case a Binding applies.

TYPE_NAME_PATTERNback to summary
private static final Pattern TYPE_NAME_PATTERN

A pattern to be used to replace all precision, scale, and length information.

typeNameback to summary
private final String typeName

The type name.

TYPES_BY_NAMEback to summary
private static final Map<String, DefaultDataType<?>>[] TYPES_BY_NAME

A cache for dialect-specific data types by normalised.

TYPES_BY_SQL_DATATYPEback to summary
private static final Map<DataType<?>, DefaultDataType<?>>[] TYPES_BY_SQL_DATATYPE

A cache for dialect-specific data types by SQL DataTypes.

TYPES_BY_TYPEback to summary
private static final Map<Class<?>, DefaultDataType<?>>[] TYPES_BY_TYPE

A cache for dialect-specific data types by Java type.

uTypeback to summary
private final Class<T> uType

The Java class corresponding to this data type's <U> type, i.e. the user type in case a Binding applies.

Constructor Detail

DefaultDataTypeback to summary
public DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName)
DefaultDataTypeback to summary
public DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName, String castTypeName)
DefaultDataTypeback to summary
public DefaultDataType(SQLDialect dialect, Class<T> type, String typeName)
DefaultDataTypeback to summary
public DefaultDataType(SQLDialect dialect, Class<T> type, String typeName, String castTypeName)
DefaultDataTypeback to summary
pack-priv DefaultDataType(SQLDialect dialect, Class<T> type, Name qualifiedTypeName)
DefaultDataTypeback to summary
pack-priv DefaultDataType(SQLDialect dialect, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated

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

DefaultDataTypeback to summary
pack-priv DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated

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

DefaultDataTypeback to summary
pack-priv DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, Field<T> defaultValue)

Deprecated

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

DefaultDataTypeback to summary
pack-priv DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, Class<T> type, Binding<?, T> binding, Name qualifiedTypeName, String typeName, String castTypeName, Integer precision, Integer scale, Integer length, Nullability nullability, boolean readonly, Generator<?, ?, T> generatedAlwaysAs, QOM.GenerationOption generationOption, QOM.GenerationLocation generationLocation, Collation collation, CharacterSet characterSet, boolean identity, Field<T> defaultValue)

Deprecated

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

DefaultDataTypeback to summary
pack-priv DefaultDataType(AbstractDataType<T> t, Integer precision, Integer scale, Integer length, Nullability nullability, boolean readonly, Generator<?, ?, T> generatedAlwaysAs, QOM.GenerationOption generationOption, QOM.GenerationLocation generationLocation, Collation collation, CharacterSet characterSet, boolean identity, Field<T> defaultValue)

Deprecated

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

[#3225] Performant constructor for creating derived types.

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
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 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)

Implements abstract 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
dataTypesback to summary
pack-priv static final Collection<DefaultDataType<?>> dataTypes()
decodeTimestampPrecisionback to summary
private static final int decodeTimestampPrecision(int precision)
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
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
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
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
getDataTypeback to summary
public static final DataType<?> getDataType(SQLDialect dialect, String typeName)
getDataTypeback to summary
public static final DataType<?> getDataType(SQLDialect dialect, SQLType sqlType)
getDataTypeback to summary
public static final DataType<?> getDataType(SQLDialect dialect, int sqlType)
getDataTypeback to summary
public static final <T> DataType<T> getDataType(SQLDialect dialect, Class<T> type)
getDataTypeback to summary
public static final <T> DataType<T> getDataType(SQLDialect dialect, Class<T> type, DataType<T> fallbackDataType)
getDataTypeback to summary
public static final DataType<?> getDataType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedException

Convert a type name (using precision and scale) into a Java class

getDataTypeback to summary
public static final DataType<?> getDataType(SQLDialect dialect, String t, int p, int s, boolean forceIntegerTypesOnZeroScaleDecimals) throws SQLDialectNotSupportedException

Convert a type name (using precision and scale) into a Java class

getDefaultDataTypeback to summary
public static final DataType<Object> getDefaultDataType(String typeName)
getDefaultDataTypeback to summary
public static final DataType<Object> getDefaultDataType(SQLDialect dialect, String typeName)
getDialectback to summary
public final SQLDialect getDialect()

Implements org.jooq.DataType.getDialect.

Doc from org.jooq.DataType.getDialect.

Retrieve the underlying SQLDialect.

Annotations
@Override
getNumericClassback to summary
private static final Class<?> getNumericClass(int precision, int scale)

Get the most suitable Java class for a given precision and scale

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
getTypeback to summary
public static final Class<?> getType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedException

Convert a type name (using precision and scale) into a Java class

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
integerPrecisionback to summary
private static final Integer integerPrecision(Class<?> type, Integer precision)
length0back to summary
pack-priv final Integer length0()

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

Annotations
@Override
normaliseback to summary
public static final String normalise(String typeName)
Returns:String

The type name without all special characters and white spaces

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
setback to summary
pack-priv static final DataType<?> set(DataType<?> d, Integer l, Integer p, Integer s)
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
typesback to summary
pack-priv static final Collection<Class<?>> types()
uType0back to summary
pack-priv final Class<T> uType0()

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

Annotations
@Override