- All Implemented Interfaces:
Serializable,DataType<T>,Named,QueryPart,QueryPartInternal
- Direct Known Subclasses:
BuiltInDataType
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
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDataType(SQLDialect dialect, Class<T> type, String typeName)DefaultDataType(SQLDialect dialect, Class<T> type, String typeName, String castTypeName)DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName)DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName, String castTypeName) -
Method Summary
Modifier and TypeMethodDescriptionvoid<A extends ArrayRecord<?>>
DataType<A>asArrayDataType(Class<A> arrayDataType)Retrieve the data type for an Oracle-style ARRAY of this data type.<U> DataType<U>asConvertedDataType(Binding<? super T,U> newBinding)Retrieve the data type for a given binding.<U> DataType<U>asConvertedDataType(Converter<? super T,U> converter)Retrieve the data type for a given converter.asEnumDataType(Class<E> enumDataType)Retrieve the data type for a given enum data type.Get the character set of this data type, ornullif there is no character set, or if the default character set applies.Return a new data type like this, with a new character set.Clause[]Deprecated.- 3.11.0 - [#8179] - This functionality will be removed in the future.Get the collation of this data type, ornullif there is no collation, or if the default collation applies.Return a new data type like this, with a new collation.Convert an arbitrary object into<T>.T[]Convert an arbitrary set of objects into<T>.convert(Collection<?> objects)Convert an arbitrary set of objects into<T>.protected DSLContextcreate()Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.protected DSLContextcreate(Configuration configuration)Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.protected DSLContextDeprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.booleanSubclasses may override thisbooleanSubclasses may override thisbooleanSubclasses may override thisbooleanSubclasses may override thisbooleanSubclasses may override thisdefault_()The expression to be applied as theDEFAULTvalue for this data type.Specify an expression to be applied as theDEFAULTvalue for this data type.Specify an expression to be applied as theDEFAULTvalue for this data type.booleanGet the defaultability of this data type.defaulted(boolean d)Deprecated.The expression to be applied as theDEFAULTvalue for this data type.defaultValue(Field<T> d)Specify an expression to be applied as theDEFAULTvalue for this data type.defaultValue(T d)Specify an expression to be applied as theDEFAULTvalue for this data type.booleanCheck whether thisQueryPartcan be considered equal to anotherQueryPart.booleanSubclasses may override thisDataType<?>Retrieve the Java component data type if this is an ARRAY type, ornull, otherwise.Class<?>Retrieve the Java component type if this is an ARRAY type, ornull, otherwise.Retrieve the data type for an ARRAY of this data type.Retrieve the Java type associated with ARRAYs of this data type.Get the data type binding associated with this data type.Retrieve the dialect-specific type name associated with this data type used for casting.getCastTypeName(Configuration configuration)Retrieve the dialect-specific type name associated with this data type used for casting.The comment on this object.The comment on this object as aQueryPart.Get the converter associated with this data type.getDataType(Configuration configuration)The dialect-specific data type representing this data type.static DataType<?>getDataType(SQLDialect dialect, int sqlType)static <T> DataType<T>getDataType(SQLDialect dialect, Class<T> type)static <T> DataType<T>getDataType(SQLDialect dialect, Class<T> type, DataType<T> fallbackDataType)static DataType<?>getDataType(SQLDialect dialect, String typeName)static DataType<?>getDataType(SQLDialect dialect, String t, int p, int s)Convert a type name (using precision and scale) into a Java classstatic DataType<?>getDataType(SQLDialect dialect, String t, int p, int s, boolean forceIntegerTypesOnZeroScaleDecimals)Convert a type name (using precision and scale) into a Java classstatic DataType<?>getDataType(SQLDialect dialect, SQLType sqlType)getDefaultDataType(String typeName)getDefaultDataType(SQLDialect dialect, String typeName)Retrieve the underlyingSQLDialect.Get the defining DOMAIN type orNULLif there is no such type.getName()The unqualified name of this object.The qualified name of this object.Get the nested record's record type definition, if this is aDataType.isRecord(), or aDataType.isMultiset(), orNULLotherwise.getRow()Get the nested record'sRowdefinition, if this is aDataType.isRecord(), or aDataType.isMultiset(), orNULLotherwise.Get the standard SQL data type of this (dialect-specific) data type if available.intGet JDBCTypesvalue.intgetSQLType(Configuration configuration)Get the dialect-specific JDBCTypesvalue.getType()Retrieve the Java type associated with this data type.static Class<?>getType(SQLDialect dialect, String t, int p, int s)Convert a type name (using precision and scale) into a Java classRetrieve the dialect-specific type name associated with this data type.getTypeName(Configuration configuration)Retrieve the dialect-specific type name associated with this data type.The unqualified name of this object.inthashCode()Generate a hash code from thisQueryPart.booleanWhether this data type has a length.booleanWhether this data type has a precision.booleanhasScale()Whether this data type has a scale.booleanidentity()Get the identity flag of this data type.identity(boolean i)Return a new data type like this, with a new identity flag.booleanisArray()Whether this data type is an array type.booleanisBinary()Whether this data type is any binary type.booleanisDate()Whether this data type is any date type.booleanWhether this data type is any date or time type.booleanWhether this data type is an embeddable type.booleanisEnum()Whether this data type is an enum type.booleanWhether this data type is any integer data type.booleanWhether this data type is any interval type.booleanisJSON()Whether this data type is a JSON type.booleanisLob()Whether this data type is best deserialised as aLOB.booleanWhether this data type is a nested collection type.booleanWhether this data type is any national character data type.booleanWhether this data type is any numeric data type.booleanisRecord()Whether this data type is a nested record type.booleanisString()Whether this data type is any character data type.booleanWhether this data type is any date or time type.booleanisTime()Whether this data type is any time type.booleanWhether this data type is any timestamp type.booleanisUDT()Whether this data type is a UDT type.booleanisXML()Whether this data type is an XML type.intlength()Get the length of this data type.length(int l)Return a new data type like this, with a new length value.booleanWhether the precision returned byDataType.length()is defined.static StringnotNull()Synonym forDataType.nullable(boolean), passingfalseas an argument.null_()Synonym forDataType.nullable(boolean), passingtrueas an argument.Get the nullability of this data type.Return a new data type like this, with a new nullability.booleannullable()Get the nullability of this data type.nullable(boolean n)Return a new data type like this, with a new nullability.intGet the precision of this data type.precision(int p)Return a new data type like this, with a new precision value.precision(int p, int s)Return a new data type like this, with a new precision and scale value.booleanWhether the precision returned byDataType.precision()is defined.booleanrendersContent(Context<?> ctx)Subclasses may override thisintscale()Get the scale of this data type.scale(int s)Return a new data type like this, with a new scale value.booleanWhether the precision returned byDataType.scale()is defined.toString()Render a SQL string representation of thisQueryPart.protected DataAccessExceptiontranslate(String sql, SQLException e)Internal convenience methodMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jooq.DataType
asConvertedDataType, asConvertedDataTypeFrom, asConvertedDataTypeFrom, asConvertedDataTypeTo, asConvertedDataTypeToMethods inherited from interface org.jooq.Named
getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedName
-
Constructor Details
-
DefaultDataType
-
DefaultDataType
public DefaultDataType(SQLDialect dialect, DataType<T> sqlDataType, String typeName, String castTypeName) -
DefaultDataType
-
DefaultDataType
-
-
Method Details
-
nullability
Description copied from interface:DataTypeGet the nullability of this data type.- Returns:
- The nullability
-
collation
Description copied from interface:DataTypeGet the collation of this data type, ornullif there is no collation, or if the default collation applies. -
characterSet
Description copied from interface:DataTypeGet the character set of this data type, ornullif there is no character set, or if the default character set applies. -
identity
public final boolean identity()Description copied from interface:DataTypeGet the identity flag of this data type.- Returns:
- The identity flag.
-
default_
Description copied from interface:DataTypeThe expression to be applied as theDEFAULTvalue for this data type.- Returns:
- The default value if present, or
nullif no default value is specified for this data type. - See Also:
DataType.defaultValue(Field)
-
getSQLDataType
Description copied from interface:DataTypeGet the standard SQL data type of this (dialect-specific) data type if available. -
getDataType
Description copied from interface:DataTypeThe dialect-specific data type representing this data type. -
getType
Description copied from interface:DataTypeRetrieve the Java type associated with this data type. -
getBinding
Description copied from interface:DataTypeGet the data type binding associated with this data type. -
getDialect
Description copied from interface:DataTypeRetrieve the underlyingSQLDialect. -
getDefaultDataType
-
getDefaultDataType
-
getDataType
-
getDataType
-
getDataType
-
getDataType
-
getDataType
public static final <T> DataType<T> getDataType(SQLDialect dialect, Class<T> type, DataType<T> fallbackDataType) -
normalise
- Returns:
- The type name without all special characters and white spaces
-
getDataType
public static final DataType<?> getDataType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedExceptionConvert a type name (using precision and scale) into a Java class- Throws:
SQLDialectNotSupportedException
-
getDataType
public static final DataType<?> getDataType(SQLDialect dialect, String t, int p, int s, boolean forceIntegerTypesOnZeroScaleDecimals) throws SQLDialectNotSupportedExceptionConvert a type name (using precision and scale) into a Java class- Throws:
SQLDialectNotSupportedException
-
getType
public static final Class<?> getType(SQLDialect dialect, String t, int p, int s) throws SQLDialectNotSupportedExceptionConvert a type name (using precision and scale) into a Java class- Throws:
SQLDialectNotSupportedException
-
nullability
Description copied from interface:DataTypeReturn a new data type like this, with a new nullability.[#5709] A
nullablecolumn cannot have anDataType.identity().- Specified by:
nullabilityin interfaceDataType<T>- Parameters:
n- The new nullability- Returns:
- The new data type
-
collation
Description copied from interface:DataTypeReturn a new data type like this, with a new collation. -
characterSet
Description copied from interface:DataTypeReturn a new data type like this, with a new character set.- Specified by:
characterSetin interfaceDataType<T>
-
identity
Description copied from interface:DataTypeReturn a new data type like this, with a new identity flag.[#5709] The IDENTITY flag imposes a NOT NULL constraint, and removes all DEFAULT values.
-
default_
Description copied from interface:DataTypeSpecify an expression to be applied as theDEFAULTvalue for this data type.A default value of a data type applies to DDL statements, such as
CREATE TABLEALTER TABLE
The distinct types of possible
DEFAULTexpressions is defined by the underlying database. Please refer to your database manual to learn what expressions are possible. -
nullable
Description copied from interface:DataTypeReturn a new data type like this, with a new nullability.This is the same as calling
DataType.nullability(Nullability)with any ofNullability.NULLorNullability.NOT_NULLas an argument.[#5709] A
nullablecolumn cannot have anDataType.identity(). -
nullable
public final boolean nullable()Description copied from interface:DataTypeGet the nullability of this data type.This returns
trueby default, i.e. ifDataType.nullability()isNullability.DEFAULT. -
null_
Description copied from interface:DataTypeSynonym forDataType.nullable(boolean), passingtrueas an argument. -
notNull
Description copied from interface:DataTypeSynonym forDataType.nullable(boolean), passingfalseas an argument. -
defaultValue
Description copied from interface:DataTypeSpecify an expression to be applied as theDEFAULTvalue for this data type.[#5709] A
defaultedcolumn cannot have anDataType.identity().This is an alias for
DataType.default_(Object).- Specified by:
defaultValuein interfaceDataType<T>- See Also:
DataType.defaultValue(Field)
-
defaultValue
Description copied from interface:DataTypeSpecify an expression to be applied as theDEFAULTvalue for this data type.A default value of a data type applies to DDL statements, such as
CREATE TABLEALTER TABLE
The distinct types of possible
DEFAULTexpressions is defined by the underlying database. Please refer to your database manual to learn what expressions are possible.This is an alias for
DataType.default_(Field).- Specified by:
defaultValuein interfaceDataType<T>
-
defaultValue
Description copied from interface:DataTypeThe expression to be applied as theDEFAULTvalue for this data type.This is an alias for
DataType.default_().- Specified by:
defaultValuein interfaceDataType<T>- Returns:
- The default value if present, or
nullif no default value is specified for this data type. - See Also:
DataType.defaultValue(Field)
-
default_
Description copied from interface:DataTypeSpecify an expression to be applied as theDEFAULTvalue for this data type.[#5709] A
defaultedcolumn cannot have anDataType.identity().- Specified by:
default_in interfaceDataType<T>- See Also:
DataType.defaultValue(Field)
-
defaulted
Deprecated.Description copied from interface:DataTypeReturn a new data type like this, with a new defaultability. -
defaulted
public final boolean defaulted()Description copied from interface:DataTypeGet the defaultability of this data type. -
precision
public final int precision()Description copied from interface:DataTypeGet the precision of this data type. -
precision
Description copied from interface:DataTypeReturn a new data type like this, with a new precision value.This will have no effect if
DataType.hasPrecision()isfalseThis is the same as calling
DataType.precision(int, int)withscale == 0 -
precision
Description copied from interface:DataTypeReturn a new data type like this, with a new precision and scale value.This will have no effect if
DataType.hasPrecision()isfalse, or ifscale > 0andDataType.hasScale()isfalse -
hasPrecision
public final boolean hasPrecision()Description copied from interface:DataTypeWhether this data type has a precision.- Specified by:
hasPrecisionin interfaceDataType<T>- Returns:
- Whether this data type has a precision
-
precisionDefined
public final boolean precisionDefined()Description copied from interface:DataTypeWhether the precision returned byDataType.precision()is defined.The default precision is
0for all data types. If a data type does not have a precision (seeDataType.hasPrecision()), or if it was initialised without precision (e.g.SQLDataType.TIMESTAMP), then the precision is not defined.- Specified by:
precisionDefinedin interfaceDataType<T>
-
scale
public final int scale()Description copied from interface:DataTypeGet the scale of this data type. -
scale
Description copied from interface:DataTypeReturn a new data type like this, with a new scale value.This will have no effect if
DataType.hasScale()isfalse -
hasScale
public final boolean hasScale()Description copied from interface:DataTypeWhether this data type has a scale. -
scaleDefined
public final boolean scaleDefined()Description copied from interface:DataTypeWhether the precision returned byDataType.scale()is defined.The default scale is
0for all data types. If a data type does not have a scale (seeDataType.hasScale()), or if it was initialised without scale (e.g.SQLDataType.TIMESTAMP), then the scale is not defined.- Specified by:
scaleDefinedin interfaceDataType<T>
-
length
Description copied from interface:DataTypeReturn a new data type like this, with a new length value.This will have no effect if
DataType.hasLength()isfalse -
length
public final int length()Description copied from interface:DataTypeGet the length of this data type. -
hasLength
public final boolean hasLength()Description copied from interface:DataTypeWhether this data type has a length. -
lengthDefined
public final boolean lengthDefined()Description copied from interface:DataTypeWhether the precision returned byDataType.length()is defined.The default length is
0for all data types. If a data type does not have a length (seeDataType.hasLength()), or if it was initialised without length (e.g.SQLDataType.TIMESTAMP), then the length is not defined.- Specified by:
lengthDefinedin interfaceDataType<T>
-
getSQLType
public int getSQLType()Description copied from interface:DataTypeGet JDBCTypesvalue.- Specified by:
getSQLTypein interfaceDataType<T>
-
getSQLType
Description copied from interface:DataTypeGet the dialect-specific JDBCTypesvalue.- Specified by:
getSQLTypein interfaceDataType<T>
-
getDomain
Description copied from interface:DataTypeGet the defining DOMAIN type orNULLif there is no such type. -
getConverter
Description copied from interface:DataTypeGet the converter associated with this data type.- Specified by:
getConverterin interfaceDataType<T>
-
getTypeName
Description copied from interface:DataTypeRetrieve the dialect-specific type name associated with this data type.- Specified by:
getTypeNamein interfaceDataType<T>
-
getTypeName
Description copied from interface:DataTypeRetrieve the dialect-specific type name associated with this data type.- Specified by:
getTypeNamein interfaceDataType<T>
-
getCastTypeName
Description copied from interface:DataTypeRetrieve 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))
- Specified by:
getCastTypeNamein interfaceDataType<T>
-
getCastTypeName
Description copied from interface:DataTypeRetrieve 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))
- Specified by:
getCastTypeNamein interfaceDataType<T>
-
getArrayType
Description copied from interface:DataTypeRetrieve the Java type associated with ARRAYs of this data type.- Specified by:
getArrayTypein interfaceDataType<T>
-
getArrayDataType
Description copied from interface:DataTypeRetrieve the data type for an ARRAY of this data type.- Specified by:
getArrayDataTypein interfaceDataType<T>
-
getArrayComponentType
Description copied from interface:DataTypeRetrieve the Java component type if this is an ARRAY type, ornull, otherwise.- Specified by:
getArrayComponentTypein interfaceDataType<T>
-
getArrayComponentDataType
Description copied from interface:DataTypeRetrieve the Java component data type if this is an ARRAY type, ornull, otherwise.- Specified by:
getArrayComponentDataTypein interfaceDataType<T>
-
getRow
Description copied from interface:DataTypeGet the nested record'sRowdefinition, if this is aDataType.isRecord(), or aDataType.isMultiset(), orNULLotherwise. -
getRecordType
Description copied from interface:DataTypeGet the nested record's record type definition, if this is aDataType.isRecord(), or aDataType.isMultiset(), orNULLotherwise.- Specified by:
getRecordTypein interfaceDataType<T>
-
asArrayDataType
Description copied from interface:DataTypeRetrieve the data type for an Oracle-style ARRAY of this data type.- Specified by:
asArrayDataTypein interfaceDataType<T>
-
asEnumDataType
Description copied from interface:DataTypeRetrieve the data type for a given enum data type.- Specified by:
asEnumDataTypein interfaceDataType<T>
-
asConvertedDataType
Description copied from interface:DataTypeRetrieve the data type for a given converter.- Specified by:
asConvertedDataTypein interfaceDataType<T>
-
asConvertedDataType
Description copied from interface:DataTypeRetrieve the data type for a given binding.- Specified by:
asConvertedDataTypein interfaceDataType<T>
-
convert
Description copied from interface:DataTypeConvert an arbitrary object into<T>.See
Convert#convert(Object, Class)for details about conversion rules. Notice this does not pass through anyConfiguration.converterProvider(). -
convert
Description copied from interface:DataTypeConvert an arbitrary set of objects into<T>.See
Convert#convert(Object, Class)for details about conversion rules. Notice this does not pass through anyConfiguration.converterProvider(). -
convert
Description copied from interface:DataTypeConvert an arbitrary set of objects into<T>.See
Convert#convert(Object, Class)for details about conversion rules. Notice this does not pass through anyConfiguration.converterProvider(). -
isNumeric
public final boolean isNumeric()Description copied from interface:DataTypeWhether this data type is any numeric data type.This applies to any of these types:
- Specified by:
isNumericin interfaceDataType<T>- See Also:
DataType.isNumeric()
-
isInteger
public final boolean isInteger()Description copied from interface:DataTypeWhether this data type is any integer data type.This applies to any of these types:
-
isString
public final boolean isString()Description copied from interface:DataTypeWhether this data type is any character data type.This applies to any of these types:
-
isNString
public final boolean isNString()Description copied from interface:DataTypeWhether this data type is any national character data type.This applies to any of these types:
-
isDateTime
public final boolean isDateTime()Description copied from interface:DataTypeWhether this data type is any date or time type.This applies to any of these types.
- Specified by:
isDateTimein interfaceDataType<T>- See Also:
DataType.isDate()
-
isDate
public final boolean isDate()Description copied from interface:DataTypeWhether this data type is any date type.This applies to any of these types.
-
isTimestamp
public final boolean isTimestamp()Description copied from interface:DataTypeWhether this data type is any timestamp type.This applies to any of these types.
- Specified by:
isTimestampin interfaceDataType<T>
-
isTime
public final boolean isTime()Description copied from interface:DataTypeWhether this data type is any time type.This applies to any of these types.
-
isTemporal
public final boolean isTemporal()Description copied from interface:DataTypeWhether this data type is any date or time type.This applies to any of these types.
-
SQLDataType.DATE -
SQLDataType.TIME -
SQLDataType.TIMESTAMP -
SQLDataType.LOCALDATE -
SQLDataType.LOCALTIME -
SQLDataType.LOCALDATETIME -
SQLDataType.OFFSETTIME -
SQLDataType.OFFSETDATETIME -
YearToSecond -
YearToMonth -
DayToSecond
This is a combination of
DataType.isDateTime()orDataType.isInterval()- Specified by:
isTemporalin interfaceDataType<T>
-
-
isInterval
public final boolean isInterval()Description copied from interface:DataTypeWhether this data type is any interval type.This applies to any of these types.
- Specified by:
isIntervalin interfaceDataType<T>
-
isLob
public final boolean isLob()Description copied from interface:DataTypeWhether this data type is best deserialised as aLOB.This applies to any of these types.
-
isBinary
public final boolean isBinary()Description copied from interface:DataTypeWhether this data type is any binary type.This applies to any of these types.
-
isArray
public final boolean isArray()Description copied from interface:DataTypeWhether this data type is an array type. -
isEmbeddable
public final boolean isEmbeddable()Description copied from interface:DataTypeWhether this data type is an embeddable type.- Specified by:
isEmbeddablein interfaceDataType<T>
-
isUDT
public final boolean isUDT()Description copied from interface:DataTypeWhether this data type is a UDT type. -
isRecord
public boolean isRecord()Description copied from interface:DataTypeWhether this data type is a nested record type.This is true for anonymous, structural nested record types constructed with
DSL.row(SelectField...)or for nominal nested record types, such asDataType.isUDT()orDataType.isEmbeddable(). -
isMultiset
public boolean isMultiset()Description copied from interface:DataTypeWhether this data type is a nested collection type.This is true for anonymous, structural nested collection types constructed with
DSL.multiset(Select)orDSL.multisetAgg(Field...).- Specified by:
isMultisetin interfaceDataType<T>
-
isEnum
public final boolean isEnum()Description copied from interface:DataTypeWhether this data type is an enum type. -
isJSON
public final boolean isJSON()Description copied from interface:DataTypeWhether this data type is a JSON type. -
isXML
public final boolean isXML()Description copied from interface:DataTypeWhether this data type is an XML type. -
accept
Description copied from interface:QueryPartInternalThisQueryPartcanacceptaContextobject in order to render a SQL string or to bind its variables.- Specified by:
acceptin interfaceQueryPartInternal
-
toString
Description copied from interface:QueryPartRender a SQL string representation of thisQueryPart.For improved debugging, this renders a SQL string of this
QueryPartwith inlined bind variables. If thisQueryPartisAttachable, then the attachedConfigurationmay be used for rendering the SQL string, includingSQLDialectandSettings. Do note that mostQueryPartinstances are not attached to aConfiguration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database. -
hashCode
public int hashCode()Description copied from interface:QueryPartGenerate a hash code from thisQueryPart.In general,
QueryParthash codes are the same as the hash codes generated fromQueryPart.toString(). This guarantees consistent behaviour withQueryPart.equals(Object)Some
QueryPartimplementations may choose to override this behaviour for improved performance, asQueryPart.toString()is an expensive operation, if called many times. -
equals
Description copied from interface:QueryPartCheck whether thisQueryPartcan be considered equal to anotherQueryPart.In general,
QueryPartequality is defined in terms ofQueryPart.toString()equality. In other words, two query parts are considered equal if their rendered SQL (with inlined bind variables) is equal. This means that the two query parts do not necessarily have to be of the same type.Some
QueryPartimplementations may choose to override this behaviour for improved performance, asQueryPart.toString()is an expensive operation, if called many times. -
getName
Description copied from interface:NamedThe unqualified name of this object. -
getQualifiedName
Description copied from interface:NamedThe qualified name of this object.- Specified by:
getQualifiedNamein interfaceNamed
-
getUnqualifiedName
Description copied from interface:NamedThe unqualified name of this object.- Specified by:
getUnqualifiedNamein interfaceNamed
-
getComment
Description copied from interface:NamedThe comment on this object.This is the same as calling
Named.getCommentPart()and thenComment.getComment().- Specified by:
getCommentin interfaceNamed
-
getCommentPart
Description copied from interface:NamedThe comment on this object as aQueryPart.- Specified by:
getCommentPartin interfaceNamed
-
clauses
Deprecated.- 3.11.0 - [#8179] - This functionality will be removed in the future.Description copied from interface:QueryPartInternalTheClauses that are represented by this query part.QueryParts can specify severalClauses for which an event will be emittedbefore(in forward order) andafter(in reverse order) visiting the the query part throughContext.visit(QueryPart)This method is for JOOQ INTERNAL USE only. Do not reference directly
- Specified by:
clausesin interfaceQueryPartInternal- Returns:
- The
Clauses represented by this query part ornullor an empty array if this query part does not represent a clause.
-
rendersContent
Subclasses may override this- Specified by:
rendersContentin interfaceQueryPartInternal
-
declaresFields
public boolean declaresFields()Subclasses may override this- Specified by:
declaresFieldsin interfaceQueryPartInternal
-
declaresTables
public boolean declaresTables()Subclasses may override this- Specified by:
declaresTablesin interfaceQueryPartInternal
-
declaresWindows
public boolean declaresWindows()Subclasses may override this- Specified by:
declaresWindowsin interfaceQueryPartInternal
-
declaresCTE
public boolean declaresCTE()Subclasses may override this- Specified by:
declaresCTEin interfaceQueryPartInternal
-
declaresParameters
Subclasses may override this- Specified by:
declaresParametersin interfaceQueryPartInternal
-
generatesCast
public boolean generatesCast()Subclasses may override this- Specified by:
generatesCastin interfaceQueryPartInternal
-
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
create
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()andConfiguration.dsl()instead.Internal convenience method -
translate
Internal convenience method
-