Top Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractDataType<T>

extends AbstractNamed
implements DataType<T>, UEmpty
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.DataType, org.jooq.Named
Known Direct Subclasses
org.jooq.impl.AbstractDataTypeX, org.jooq.impl.DataTypeProxy
Annotations
@SuppressWarnings:rawtypes, unchecked
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE, org.jooq.SQLDialect.DERBY, .SQLDialect.FIREBIRD, org.jooq.impl.Internal.arrayType, .QOM.GenerationOption.STORED, .QOM.GenerationOption.VIRTUAL, .SQLDataType.BLOB, .SQLDataType.CLOB, .SQLDataType.NCHAR, .SQLDataType.NCLOB, .SQLDataType.NVARCHAR, .Tools.CONFIG, .Tools.CONFIG_UNQUOTED, .Tools.NO_SUPPORT_BINARY_TYPE_LENGTH, .Tools.map, .Tools.settings, .Tools.visitMappedSchema

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv static final Set<SQLDialect>

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractDataType(Name name, Comment comment)

Method Summary

Modifier and TypeMethod and Description
public final void
accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.
public final DataType<T[]>
array()

Implements org.jooq.DataType.array.

A convenient short for form getArrayDataType() for DSL usage
public <U> DataType<U>
asConvertedDataType(Converter<? super T, U> converter)

Implements org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given converter.
public <U> DataType<U>
asConvertedDataType(Binding<? super T, U> newBinding)

Implements org.jooq.DataType.asConvertedDataType.

Retrieve the data type for a given binding.
public final <E extends EnumType> DataType<E>
asEnumDataType(Class<E> enumDataType)

Implements org.jooq.DataType.asEnumDataType.

Retrieve the data type for a given enum data type.
pack-priv abstract String
pack-priv abstract String
pack-priv abstract String
public abstract DataType<T>
characterSet(CharacterSet c)

Redeclares org.jooq.DataType.characterSet.

Return a new data type like this, with a new character set.
public abstract DataType<T>
collation(Collation c)

Redeclares org.jooq.DataType.collation.

Return a new data type like this, with a new collation.
public final boolean
computed()

Implements org.jooq.DataType.computed.

Whether this column is computed.
public final boolean
computedOnClient()

Implements org.jooq.DataType.computedOnClient.

Whether this column is computed on the client.
public final boolean
computedOnClient(Configuration configuration)

Implements org.jooq.DataType.computedOnClient.

Whether this column is computed on the client.
public final boolean
computedOnClientStored()

Implements org.jooq.DataType.computedOnClientStored.

Whether this column is computed on the client.
public final boolean
computedOnClientStored(Configuration configuration)

Implements org.jooq.DataType.computedOnClientStored.

Whether this column is computed on the client.
public final boolean
computedOnClientStoredOn(GeneratorStatementType statementType)

Implements org.jooq.DataType.computedOnClientStoredOn.

Whether this column is computed on the client.
public final boolean
computedOnClientStoredOn(GeneratorStatementType statementType, Configuration configuration)

Implements org.jooq.DataType.computedOnClientStoredOn.

Whether this column is computed on the client.
public final boolean
computedOnClientVirtual()

Implements org.jooq.DataType.computedOnClientVirtual.

Whether this column is computed on the client.
public final boolean
computedOnClientVirtual(Configuration configuration)

Implements org.jooq.DataType.computedOnClientVirtual.

Whether this column is computed on the client.
public final boolean
computedOnServer()

Implements org.jooq.DataType.computedOnServer.

Whether this column is computed on the server.
public final boolean
computedOnServer(Configuration configuration)

Implements org.jooq.DataType.computedOnServer.

Whether this column is computed on the server.
public T
convert(Object
The object to be converted
object
)

Implements org.jooq.DataType.convert.

Convert an arbitrary object into <T>.
public final T[]
convert(Object...
The objects to be converted
objects
)

Implements org.jooq.DataType.convert.

Convert an arbitrary set of objects into <T>.
public final List<T>
convert(Collection<?>
The objects to be converted
objects
)

Implements org.jooq.DataType.convert.

Convert an arbitrary set of objects into <T>.
public final DataType<T>
default_(T d)

Implements org.jooq.DataType.default_.

Specify an expression to be applied as the DEFAULT value for this data type.
public abstract DataType<T>
default_(Field<T> d)

Redeclares 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>
defaulted(boolean
The new defaultability
d
)

Implements org.jooq.DataType.defaulted.

Deprecated
Return a new data type like this, with a new defaultability.
public final boolean
defaulted()

Implements org.jooq.DataType.defaulted.

Get the defaultability of this data type.
public final DataType<T>
defaultValue(T d)

Implements org.jooq.DataType.defaultValue.

Specify an expression to be applied as the DEFAULT value for this data type.
public final DataType<T>
defaultValue(Field<T> d)

Implements org.jooq.DataType.defaultValue, org.jooq.DataType.defaultValue.

Deprecated as a consequence of Field being deprecated.
Specify an expression to be applied as the DEFAULT value for this data type.
public final Field<T>
defaultValue()

Implements org.jooq.DataType.defaultValue.

Deprecated as a consequence of Field being deprecated.
The expression to be applied as the DEFAULT value for this data type.
private static final boolean
eq(Integer i1, Integer i2)

public boolean
equals(Object
The other QueryPart
obj
)

Overrides org.jooq.impl.AbstractNamed.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public final DataType<T>
generatedAlwaysAs(T g)

Implements org.jooq.DataType.generatedAlwaysAs.

Set the computed column expression of this data type to a constant value.
public final DataType<T>
generatedAlwaysAs(Field<T> generatedAlwaysAsValue)

Implements org.jooq.DataType.generatedAlwaysAs, org.jooq.DataType.generatedAlwaysAs.

Deprecated as a consequence of Field being deprecated.
Set the computed column expression of this data type to a constant expression.
public abstract DataType<T>
generatedAlwaysAs(Generator<?, ?, T> generatedAlwaysAsValue)

Redeclares org.jooq.DataType.generatedAlwaysAs, org.jooq.DataType.generatedAlwaysAs.

Set the computed column expression of this data type to a dynamic expression.
public final Field<T>
generatedAlwaysAs()

Implements org.jooq.DataType.generatedAlwaysAs.

Deprecated as a consequence of Field being deprecated.
Get the computed column expression of this data type, if any.
public abstract Generator<?, ?, T>
generatedAlwaysAsGenerator()

Redeclares org.jooq.DataType.generatedAlwaysAsGenerator.

Get the computed column expression of this data type, if any.
public abstract DataType<T>
generationLocation(QOM.GenerationLocation generationLocation)

Redeclares org.jooq.DataType.generationLocation.

Set the generationLocation() of the computed column expression.
public abstract QOM.GenerationLocation
generationLocation()

Redeclares org.jooq.DataType.generationLocation.

Get the GenerationLocation of the computed column expression of this data type, if any.
pack-priv final QOM.GenerationLocation
public abstract DataType<T>
generationOption(QOM.GenerationOption generationOption)

Redeclares org.jooq.DataType.generationOption.

Set the generationOption() of the computed column expression.
public abstract QOM.GenerationOption
generationOption()

Redeclares org.jooq.DataType.generationOption.

Get the GenerationOption of the computed column expression of this data type, if any.
pack-priv final QOM.GenerationOption
public DataType<?>
getArrayBaseDataType()

Implements org.jooq.DataType.getArrayBaseDataType.

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

Implements org.jooq.DataType.getArrayBaseType.

Retrieve the Java base type if this is an ARRAY type, or getType(), otherwise.
public DataType<?>
getArrayComponentDataType()

Implements org.jooq.DataType.getArrayComponentDataType.

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

Implements org.jooq.DataType.getArrayComponentType.

Retrieve the Java component type if this is an ARRAY type, or null, otherwise.
public DataType<T[]>
getArrayDataType()

Implements org.jooq.DataType.getArrayDataType.

Retrieve the data type for an ARRAY of this data type.
public final Class<T[]>
getArrayType()

Implements org.jooq.DataType.getArrayType.

Retrieve the Java type associated with ARRAYs of this data type.
public String
getCastTypeName()

Implements org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.
public String
getCastTypeName(Configuration configuration)

Implements org.jooq.DataType.getCastTypeName.

Retrieve the dialect-specific type name associated with this data type used for casting.
private final String
public final ContextConverter<?, T>
getConverter()

Implements org.jooq.DataType.getConverter.

Get the converter associated with this data type.
public Domain<T>
getDomain()

Implements org.jooq.DataType.getDomain.

Get the defining DOMAIN type or NULL if there is no such type.
public Class<? extends Record>
getRecordType()

Implements org.jooq.DataType.getRecordType.

Get the nested record's record type definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.
public Row
getRow()

Implements org.jooq.DataType.getRow.

Get the nested record's Row definition, if this is a isRecord(), or a isMultiset(), or NULL otherwise.
public int
getSQLType()

Implements org.jooq.DataType.getSQLType.

Get JDBC Types value.
public final int
getSQLType(Configuration configuration)

Implements org.jooq.DataType.getSQLType.

Get the dialect-specific JDBC Types value.
public String
getTypeName()

Implements org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.
public String
getTypeName(Configuration configuration)

Implements org.jooq.DataType.getTypeName.

Retrieve the dialect-specific type name associated with this data type.
private final String
getTypeName0(Configuration configuration)

public int
hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
public final boolean
hasLength()

Implements org.jooq.DataType.hasLength.

Whether this data type has a length.
public final boolean
hasPrecision()

Implements org.jooq.DataType.hasPrecision.

Whether this data type has a precision.
public final boolean
hasScale()

Implements org.jooq.DataType.hasScale.

Whether this data type has a scale.
public abstract DataType<T>
identity(boolean
The new identity flag
i
)

Redeclares org.jooq.DataType.identity.

Return a new data type like this, with a new identity flag.
public final boolean
isArray()

Implements org.jooq.DataType.isArray.

Whether this data type is an array type.
public final boolean
isAssociativeArray()

Implements org.jooq.DataType.isAssociativeArray.

Whether this data type is an array type.
public final boolean
isBinary()

Implements org.jooq.DataType.isBinary.

Whether this data type is any binary type.
public final boolean
isBoolean()

Implements org.jooq.DataType.isBoolean.

Whether this data type is any boolean data type.
public final boolean
isDate()

Implements org.jooq.DataType.isDate.

Whether this data type is any date type.
public final boolean
isDateTime()

Implements org.jooq.DataType.isDateTime.

Whether this data type is any date or time type.
public final boolean
isEmbeddable()

Implements org.jooq.DataType.isEmbeddable.

Whether this data type is an embeddable type.
public final boolean
isEnum()

Implements org.jooq.DataType.isEnum.

Whether this data type is an enum type.
public final boolean
isFloat()

Implements org.jooq.DataType.isFloat.

Whether this data type is any floating point data type.
public final boolean
isInteger()

Implements org.jooq.DataType.isInteger.

Whether this data type is any integer data type.
public final boolean
isInterval()

Implements org.jooq.DataType.isInterval.

Whether this data type is any interval type.
public final boolean
isJSON()

Implements org.jooq.DataType.isJSON.

Whether this data type is a JSON type.
public final boolean
isLob()

Implements org.jooq.DataType.isLob.

Whether this data type is best deserialised as a LOB.
public boolean
isMultiset()

Implements org.jooq.DataType.isMultiset.

Whether this data type is a nested collection type.
public final boolean
isNString()

Implements org.jooq.DataType.isNString.

Whether this data type is any national character data type.
public final boolean
isNumeric()

Implements org.jooq.DataType.isNumeric.

Whether this data type is any numeric data type.
public boolean
isRecord()

Implements org.jooq.DataType.isRecord.

Whether this data type is a nested record type.
public final boolean
isSpatial()

Implements org.jooq.DataType.isSpatial.

Whether this data type is a spatial type.
public final boolean
isString()

Implements org.jooq.DataType.isString.

Whether this data type is any character data type.
public final boolean
isTemporal()

Implements org.jooq.DataType.isTemporal.

Whether this data type is any date or time type.
public final boolean
isTime()

Implements org.jooq.DataType.isTime.

Whether this data type is any time type.
public final boolean
isTimestamp()

Implements org.jooq.DataType.isTimestamp.

Whether this data type is any timestamp type.
public final boolean
isUDT()

Implements org.jooq.DataType.isUDT.

Whether this data type is a UDT type.
public final boolean
isXML()

Implements org.jooq.DataType.isXML.

Whether this data type is an XML type.
pack-priv static final <E extends EnumType> Name
lazyName(E e)

pack-priv static final Name
public final DataType<T>
length(int
The new length value
l
)

Implements org.jooq.DataType.length.

Return a new data type like this, with a new length value.
public final int
length()

Implements org.jooq.DataType.length.

Get the length of this data type.
pack-priv final AbstractDataType<T>
pack-priv abstract Integer
pack-priv abstract AbstractDataType<T>
public final boolean
lengthDefined()

Implements org.jooq.DataType.lengthDefined.

Whether the precision returned by length() is defined.
public final DataType<T>
notNull()

Implements org.jooq.DataType.notNull.

Synonym for nullable(boolean), passing false as an argument.
public final DataType<T>
null_()

Implements org.jooq.DataType.null_.

Synonym for nullable(boolean), passing true as an argument.
public abstract DataType<T>
nullability(Nullability
The new nullability
n
)

Redeclares org.jooq.DataType.nullability.

Return a new data type like this, with a new nullability.
public final DataType<T>
nullable(boolean
The new nullability
n
)

Implements org.jooq.DataType.nullable.

Return a new data type like this, with a new nullability.
public final boolean
nullable()

Implements org.jooq.DataType.nullable.

Get the nullability of this data type.
public final int
precision()

Implements org.jooq.DataType.precision.

Get the precision of this data type.
public final DataType<T>
precision(int
The new precision value
p
)

Implements org.jooq.DataType.precision.

Return a new data type like this, with a new precision value.
public final DataType<T>
precision(int
The new precision value
p
,
int
The new scale value
s
)

Implements org.jooq.DataType.precision.

Return a new data type like this, with a new precision and scale value.
pack-priv final AbstractDataType<T>
pack-priv abstract Integer
pack-priv abstract AbstractDataType<T>
public final boolean
precisionDefined()

Implements org.jooq.DataType.precisionDefined.

Whether the precision returned by precision() is defined.
public abstract boolean
readonly()

Redeclares org.jooq.DataType.readonly.

Get the readonly attribute of this data type.
public abstract DataType<T>
readonly(boolean
The new readonly attribute value.
r
)

Redeclares org.jooq.DataType.readonly.

Return a new data type like this, with a new readonly attribute.
public final boolean
readonlyInternal()

Implements org.jooq.DataType.readonlyInternal.

Get the readonly attribute of this data type, combined with other flags that influence readonly behaviour.
public final boolean
readonlyInternal(Configuration configuration)

Implements org.jooq.DataType.readonlyInternal.

Get the readonly attribute of this data type, combined with other flags that influence readonly behaviour.
private final String
public final int
scale()

Implements org.jooq.DataType.scale.

Get the scale of this data type.
public final DataType<T>
scale(int
The new scale value
s
)

Implements org.jooq.DataType.scale.

Return a new data type like this, with a new scale value.
pack-priv final AbstractDataType<T>
pack-priv abstract Integer
pack-priv abstract AbstractDataType<T>
public final boolean
scaleDefined()

Implements org.jooq.DataType.scaleDefined.

Whether the precision returned by scale() is defined.
public final DataType<T>
stored()

Implements org.jooq.DataType.stored.

Set the generationOption() of the computed column expression to GenerationOption#STORED.
public String
toString()

Overrides org.jooq.impl.AbstractQueryPart.toString.

Implements org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.
pack-priv abstract Class<?>
pack-priv abstract String
pack-priv abstract Class<T>
public final DataType<T>
virtual()

Implements org.jooq.DataType.virtual.

Set the generationOption() of the computed column expression to GenerationOption#VIRTUAL.
Inherited from org.jooq.impl.AbstractNamed:
$namefindfindfindAllfindAllfindIgnoreCasefindIgnoreCasegetCommentgetCommentPartgetNamegetQualifiedNamegetUnqualifiedNamenameOrDefaultqualify