Top Description Fields Constructors Methods
org.jooq.impl

pack-priv final Class ArrayDataType<T>

extends DefaultDataType<T[]>
Class Inheritance
Static Imports
org.jooq.impl.Tools.CONFIG

A wrapper for anonymous array data types
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final DataType<T>
Inherited from org.jooq.impl.DefaultDataType:
BYTE_PRECISIONINTEGER_PRECISIONLONG_PRECISIONSHORT_PRECISION

Constructor Summary

AccessConstructor and Description
public
ArrayDataType(DataType<T> elementType)

pack-priv
ArrayDataType(AbstractDataType<T[]> t, DataType<T> elementType, 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 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 DataType<?>
getArrayBaseDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayBaseDataType.

Implements org.jooq.DataType.getArrayBaseDataType.

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

Overrides org.jooq.impl.AbstractDataType.getArrayBaseType.

Implements org.jooq.DataType.getArrayBaseType.

Retrieve the Java base type if this is an ARRAY type, or getType(), otherwise.
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.
private static String
getArrayType(Configuration configuration, String dataType)

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 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.
Inherited from org.jooq.impl.DefaultDataType:
castTypeName0castTypePrefix0castTypeSuffix0characterSetcollationdataTypesdefault_generatedAlwaysAsGeneratorgenerationLocationgenerationOptiongetBindinggetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDataTypegetDefaultDataTypegetDefaultDataTypegetDialectgetSQLDataTypegetTypegetTypeidentitylength0normalisenullabilityprecision0readonlyscale0settType0typeName0typesuType0

Field Detail

elementTypeback to summary
pack-priv final DataType<T> elementType

Constructor Detail

ArrayDataTypeback to summary
public ArrayDataType(DataType<T> elementType)
ArrayDataTypeback to summary
pack-priv ArrayDataType(AbstractDataType<T[]> t, DataType<T> elementType, 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

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
@SuppressWarnings:unchecked, rawtypes
@Override
getArrayBaseDataTypeback to summary
public final DataType<?> getArrayBaseDataType()

Overrides org.jooq.impl.AbstractDataType.getArrayBaseDataType.

Implements org.jooq.DataType.getArrayBaseDataType.

Doc from org.jooq.DataType.getArrayBaseDataType.

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

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

Annotations
@Override
getArrayBaseTypeback to summary
public final Class<?> getArrayBaseType()

Overrides org.jooq.impl.AbstractDataType.getArrayBaseType.

Implements org.jooq.DataType.getArrayBaseType.

Doc from org.jooq.DataType.getArrayBaseType.

Retrieve the Java base type if this is an ARRAY type, or getType(), otherwise.

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

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
getArrayTypeback to summary
private static String getArrayType(Configuration configuration, String dataType)
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
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