Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class LegacyConvertedDataType<T, U>

extends DefaultDataType<U>
Class Inheritance
Annotations
@Deprecated
Static Imports
org.jooq.impl.Internal.converterContext

Deprecated

- 3.14.0 - [#9492] [#10312] - A compatibility implementation for converted data types, which registers itself in the static type registry for legacy reasons.

Author
Lukas Eder

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
LegacyConvertedDataType(AbstractDataTypeX<T> delegate, Binding<? super T, U> binding)

Method Summary

Modifier and TypeMethod and Description
public <X> DataType<X>
asConvertedDataType(Converter<? super U, X> converter)

Overrides org.jooq.impl.AbstractDataType.asConvertedDataType.

Implements org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given converter.
pack-priv DefaultDataType<U>
construct(Integer newPrecision, Integer newScale, Integer newLength, Nullability newNullability, boolean newReadonly, Generator<?, ?, U> newGeneratedAlwaysAs, QOM.GenerationOption newGenerationOption, QOM.GenerationLocation newGenerationLocation, Collation newCollation, CharacterSet newCharacterSet, boolean newIdentity, Field<U> newDefaultValue)

Overrides org.jooq.impl.DefaultDataType.construct.

Deprecated as a consequence of Field being deprecated.
[#7811] Allow for subtypes to override the constructor
public U
convert(Object
The object to be converted
object
)

Overrides org.jooq.impl.AbstractDataType.convert.

Implements org.jooq.DataType.convert.

Convert an arbitrary object into <T>.
public 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 int
public 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

delegateback to summary
private final AbstractDataTypeX<T> delegate

Constructor Detail

LegacyConvertedDataTypeback to summary
pack-priv LegacyConvertedDataType(AbstractDataTypeX<T> delegate, Binding<? super T, U> binding)
Annotations
@SuppressWarnings:unchecked

Method Detail

asConvertedDataTypeback to summary
public <X> DataType<X> asConvertedDataType(Converter<? super U, X> converter)

Overrides org.jooq.impl.AbstractDataType.asConvertedDataType.

Implements org.jooq.DataType.asConvertedDataType.

Doc from org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given converter.

Annotations
@SuppressWarnings:unchecked, rawtypes
@Override
constructback to summary
pack-priv DefaultDataType<U> construct(Integer newPrecision, Integer newScale, Integer newLength, Nullability newNullability, boolean newReadonly, Generator<?, ?, U> newGeneratedAlwaysAs, QOM.GenerationOption newGenerationOption, QOM.GenerationLocation newGenerationLocation, Collation newCollation, CharacterSet newCharacterSet, boolean newIdentity, Field<U> 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
@Override
convertback to summary
public U convert(Object object)

Overrides org.jooq.impl.AbstractDataType.convert.

Implements org.jooq.DataType.convert.

Doc from org.jooq.DataType.convert.

Convert an arbitrary object into <T>.

See Convert#convert(Object, Class) for details about conversion rules. Notice this does not pass through any Configuration#converterProvider().

Parameters
object:Object

The object to be converted

Returns:U

The converted object

Annotations
@SuppressWarnings:unchecked
@Override
getCastTypeNameback to summary
public 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
getSQLTypeback to summary
public 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 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