- 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
ConstructorDescriptionDefaultDataType(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, ornull
if 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, ornull
if 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 DSLContext
create()
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()
andConfiguration.dsl()
instead.protected DSLContext
create(Configuration configuration)
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()
andConfiguration.dsl()
instead.protected DSLContext
Deprecated.- 3.11.0 - [#6722] - UseAttachable.configuration()
andConfiguration.dsl()
instead.boolean
Subclasses may override thisboolean
Subclasses may override thisboolean
Subclasses may override thisboolean
Subclasses may override thisboolean
Subclasses may override thisdefault_()
The expression to be applied as theDEFAULT
value for this data type.Specify an expression to be applied as theDEFAULT
value for this data type.Specify an expression to be applied as theDEFAULT
value for this data type.boolean
Get the defaultability of this data type.defaulted(boolean d)
Deprecated.The expression to be applied as theDEFAULT
value for this data type.defaultValue(Field<T> d)
Specify an expression to be applied as theDEFAULT
value for this data type.defaultValue(T d)
Specify an expression to be applied as theDEFAULT
value for this data type.boolean
Check whether thisQueryPart
can be considered equal to anotherQueryPart
.boolean
Subclasses 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 orNULL
if 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()
, orNULL
otherwise.getRow()
Get the nested record'sRow
definition, if this is aDataType.isRecord()
, or aDataType.isMultiset()
, orNULL
otherwise.Get the standard SQL data type of this (dialect-specific) data type if available.int
Get JDBCTypes
value.int
getSQLType(Configuration configuration)
Get the dialect-specific JDBCTypes
value.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.int
hashCode()
Generate a hash code from thisQueryPart
.boolean
Whether this data type has a length.boolean
Whether this data type has a precision.boolean
hasScale()
Whether this data type has a scale.boolean
identity()
Get the identity flag of this data type.identity(boolean i)
Return a new data type like this, with a new identity flag.boolean
isArray()
Whether this data type is an array type.boolean
isBinary()
Whether this data type is any binary type.boolean
isDate()
Whether this data type is any date type.boolean
Whether this data type is any date or time type.boolean
Whether this data type is an embeddable type.boolean
isEnum()
Whether this data type is an enum type.boolean
Whether this data type is any integer data type.boolean
Whether this data type is any interval type.boolean
isJSON()
Whether this data type is a JSON type.boolean
isLob()
Whether this data type is best deserialised as aLOB
.boolean
Whether this data type is a nested collection type.boolean
Whether this data type is any national character data type.boolean
Whether this data type is any numeric data type.boolean
isRecord()
Whether this data type is a nested record type.boolean
isString()
Whether this data type is any character data type.boolean
Whether this data type is any date or time type.boolean
isTime()
Whether this data type is any time type.boolean
Whether this data type is any timestamp type.boolean
isUDT()
Whether this data type is a UDT type.boolean
isXML()
Whether this data type is an XML type.int
length()
Get the length of this data type.length(int l)
Return a new data type like this, with a new length value.boolean
Whether the precision returned byDataType.length()
is defined.static String
notNull()
Synonym forDataType.nullable(boolean)
, passingfalse
as an argument.null_()
Synonym forDataType.nullable(boolean)
, passingtrue
as an argument.Get the nullability of this data type.Return a new data type like this, with a new nullability.boolean
nullable()
Get the nullability of this data type.nullable(boolean n)
Return a new data type like this, with a new nullability.int
Get 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.boolean
Whether the precision returned byDataType.precision()
is defined.boolean
rendersContent(Context<?> ctx)
Subclasses may override thisint
scale()
Get the scale of this data type.scale(int s)
Return a new data type like this, with a new scale value.boolean
Whether the precision returned byDataType.scale()
is defined.toString()
Render a SQL string representation of thisQueryPart
.protected DataAccessException
translate(String sql, SQLException e)
Internal convenience methodMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jooq.DataType
asConvertedDataType, asConvertedDataTypeFrom, asConvertedDataTypeFrom, asConvertedDataTypeTo, asConvertedDataTypeTo
Methods 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:DataType
Get the nullability of this data type.- Returns:
- The nullability
-
collation
Description copied from interface:DataType
Get the collation of this data type, ornull
if there is no collation, or if the default collation applies. -
characterSet
Description copied from interface:DataType
Get the character set of this data type, ornull
if there is no character set, or if the default character set applies. -
identity
public final boolean identity()Description copied from interface:DataType
Get the identity flag of this data type.- Returns:
- The identity flag.
-
default_
Description copied from interface:DataType
The expression to be applied as theDEFAULT
value for this data type.- Returns:
- The default value if present, or
null
if no default value is specified for this data type. - See Also:
DataType.defaultValue(Field)
-
getSQLDataType
Description copied from interface:DataType
Get the standard SQL data type of this (dialect-specific) data type if available. -
getDataType
Description copied from interface:DataType
The dialect-specific data type representing this data type. -
getType
Description copied from interface:DataType
Retrieve the Java type associated with this data type. -
getBinding
Description copied from interface:DataType
Get the data type binding associated with this data type. -
getDialect
Description copied from interface:DataType
Retrieve 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:DataType
Return a new data type like this, with a new nullability.[#5709] A
nullable
column cannot have anDataType.identity()
.- Specified by:
nullability
in interfaceDataType<T>
- Parameters:
n
- The new nullability- Returns:
- The new data type
-
collation
Description copied from interface:DataType
Return a new data type like this, with a new collation. -
characterSet
Description copied from interface:DataType
Return a new data type like this, with a new character set.- Specified by:
characterSet
in interfaceDataType<T>
-
identity
Description copied from interface:DataType
Return 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:DataType
Specify an expression to be applied as theDEFAULT
value for this data type.A default value of a data type applies to DDL statements, such as
CREATE TABLE
ALTER TABLE
The distinct types of possible
DEFAULT
expressions is defined by the underlying database. Please refer to your database manual to learn what expressions are possible. -
nullable
Description copied from interface:DataType
Return a new data type like this, with a new nullability.This is the same as calling
DataType.nullability(Nullability)
with any ofNullability.NULL
orNullability.NOT_NULL
as an argument.[#5709] A
nullable
column cannot have anDataType.identity()
. -
nullable
public final boolean nullable()Description copied from interface:DataType
Get the nullability of this data type.This returns
true
by default, i.e. ifDataType.nullability()
isNullability.DEFAULT
. -
null_
Description copied from interface:DataType
Synonym forDataType.nullable(boolean)
, passingtrue
as an argument. -
notNull
Description copied from interface:DataType
Synonym forDataType.nullable(boolean)
, passingfalse
as an argument. -
defaultValue
Description copied from interface:DataType
Specify an expression to be applied as theDEFAULT
value for this data type.[#5709] A
defaulted
column cannot have anDataType.identity()
.This is an alias for
DataType.default_(Object)
.- Specified by:
defaultValue
in interfaceDataType<T>
- See Also:
DataType.defaultValue(Field)
-
defaultValue
Description copied from interface:DataType
Specify an expression to be applied as theDEFAULT
value for this data type.A default value of a data type applies to DDL statements, such as
CREATE TABLE
ALTER TABLE
The distinct types of possible
DEFAULT
expressions 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:
defaultValue
in interfaceDataType<T>
-
defaultValue
Description copied from interface:DataType
The expression to be applied as theDEFAULT
value for this data type.This is an alias for
DataType.default_()
.- Specified by:
defaultValue
in interfaceDataType<T>
- Returns:
- The default value if present, or
null
if no default value is specified for this data type. - See Also:
DataType.defaultValue(Field)
-
default_
Description copied from interface:DataType
Specify an expression to be applied as theDEFAULT
value for this data type.[#5709] A
defaulted
column cannot have anDataType.identity()
.- Specified by:
default_
in interfaceDataType<T>
- See Also:
DataType.defaultValue(Field)
-
defaulted
Deprecated.Description copied from interface:DataType
Return a new data type like this, with a new defaultability. -
defaulted
public final boolean defaulted()Description copied from interface:DataType
Get the defaultability of this data type. -
precision
public final int precision()Description copied from interface:DataType
Get the precision of this data type. -
precision
Description copied from interface:DataType
Return a new data type like this, with a new precision value.This will have no effect if
DataType.hasPrecision()
isfalse
This is the same as calling
DataType.precision(int, int)
withscale == 0
-
precision
Description copied from interface:DataType
Return a new data type like this, with a new precision and scale value.This will have no effect if
DataType.hasPrecision()
isfalse
, or ifscale > 0
andDataType.hasScale()
isfalse
-
hasPrecision
public final boolean hasPrecision()Description copied from interface:DataType
Whether this data type has a precision.- Specified by:
hasPrecision
in interfaceDataType<T>
- Returns:
- Whether this data type has a precision
-
precisionDefined
public final boolean precisionDefined()Description copied from interface:DataType
Whether the precision returned byDataType.precision()
is defined.The default precision is
0
for 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:
precisionDefined
in interfaceDataType<T>
-
scale
public final int scale()Description copied from interface:DataType
Get the scale of this data type. -
scale
Description copied from interface:DataType
Return 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:DataType
Whether this data type has a scale. -
scaleDefined
public final boolean scaleDefined()Description copied from interface:DataType
Whether the precision returned byDataType.scale()
is defined.The default scale is
0
for 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:
scaleDefined
in interfaceDataType<T>
-
length
Description copied from interface:DataType
Return 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:DataType
Get the length of this data type. -
hasLength
public final boolean hasLength()Description copied from interface:DataType
Whether this data type has a length. -
lengthDefined
public final boolean lengthDefined()Description copied from interface:DataType
Whether the precision returned byDataType.length()
is defined.The default length is
0
for 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:
lengthDefined
in interfaceDataType<T>
-
getSQLType
public int getSQLType()Description copied from interface:DataType
Get JDBCTypes
value.- Specified by:
getSQLType
in interfaceDataType<T>
-
getSQLType
Description copied from interface:DataType
Get the dialect-specific JDBCTypes
value.- Specified by:
getSQLType
in interfaceDataType<T>
-
getDomain
Description copied from interface:DataType
Get the defining DOMAIN type orNULL
if there is no such type. -
getConverter
Description copied from interface:DataType
Get the converter associated with this data type.- Specified by:
getConverter
in interfaceDataType<T>
-
getTypeName
Description copied from interface:DataType
Retrieve the dialect-specific type name associated with this data type.- Specified by:
getTypeName
in interfaceDataType<T>
-
getTypeName
Description copied from interface:DataType
Retrieve the dialect-specific type name associated with this data type.- Specified by:
getTypeName
in interfaceDataType<T>
-
getCastTypeName
Description copied from interface:DataType
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))
- Specified by:
getCastTypeName
in interfaceDataType<T>
-
getCastTypeName
Description copied from interface:DataType
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))
- Specified by:
getCastTypeName
in interfaceDataType<T>
-
getArrayType
Description copied from interface:DataType
Retrieve the Java type associated with ARRAYs of this data type.- Specified by:
getArrayType
in interfaceDataType<T>
-
getArrayDataType
Description copied from interface:DataType
Retrieve the data type for an ARRAY of this data type.- Specified by:
getArrayDataType
in interfaceDataType<T>
-
getArrayComponentType
Description copied from interface:DataType
Retrieve the Java component type if this is an ARRAY type, ornull
, otherwise.- Specified by:
getArrayComponentType
in interfaceDataType<T>
-
getArrayComponentDataType
Description copied from interface:DataType
Retrieve the Java component data type if this is an ARRAY type, ornull
, otherwise.- Specified by:
getArrayComponentDataType
in interfaceDataType<T>
-
getRow
Description copied from interface:DataType
Get the nested record'sRow
definition, if this is aDataType.isRecord()
, or aDataType.isMultiset()
, orNULL
otherwise. -
getRecordType
Description copied from interface:DataType
Get the nested record's record type definition, if this is aDataType.isRecord()
, or aDataType.isMultiset()
, orNULL
otherwise.- Specified by:
getRecordType
in interfaceDataType<T>
-
asArrayDataType
Description copied from interface:DataType
Retrieve the data type for an Oracle-style ARRAY of this data type.- Specified by:
asArrayDataType
in interfaceDataType<T>
-
asEnumDataType
Description copied from interface:DataType
Retrieve the data type for a given enum data type.- Specified by:
asEnumDataType
in interfaceDataType<T>
-
asConvertedDataType
Description copied from interface:DataType
Retrieve the data type for a given converter.- Specified by:
asConvertedDataType
in interfaceDataType<T>
-
asConvertedDataType
Description copied from interface:DataType
Retrieve the data type for a given binding.- Specified by:
asConvertedDataType
in interfaceDataType<T>
-
convert
Description copied from interface:DataType
Convert 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:DataType
Convert 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:DataType
Convert 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:DataType
Whether this data type is any numeric data type.This applies to any of these types:
- Specified by:
isNumeric
in interfaceDataType<T>
- See Also:
DataType.isNumeric()
-
isInteger
public final boolean isInteger()Description copied from interface:DataType
Whether this data type is any integer data type.This applies to any of these types:
-
isString
public final boolean isString()Description copied from interface:DataType
Whether this data type is any character data type.This applies to any of these types:
-
isNString
public final boolean isNString()Description copied from interface:DataType
Whether 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:DataType
Whether this data type is any date or time type.This applies to any of these types.
- Specified by:
isDateTime
in interfaceDataType<T>
- See Also:
DataType.isDate()
-
isDate
public final boolean isDate()Description copied from interface:DataType
Whether this data type is any date type.This applies to any of these types.
-
isTimestamp
public final boolean isTimestamp()Description copied from interface:DataType
Whether this data type is any timestamp type.This applies to any of these types.
- Specified by:
isTimestamp
in interfaceDataType<T>
-
isTime
public final boolean isTime()Description copied from interface:DataType
Whether this data type is any time type.This applies to any of these types.
-
isTemporal
public final boolean isTemporal()Description copied from interface:DataType
Whether 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:
isTemporal
in interfaceDataType<T>
-
-
isInterval
public final boolean isInterval()Description copied from interface:DataType
Whether this data type is any interval type.This applies to any of these types.
- Specified by:
isInterval
in interfaceDataType<T>
-
isLob
public final boolean isLob()Description copied from interface:DataType
Whether this data type is best deserialised as aLOB
.This applies to any of these types.
-
isBinary
public final boolean isBinary()Description copied from interface:DataType
Whether this data type is any binary type.This applies to any of these types.
-
isArray
public final boolean isArray()Description copied from interface:DataType
Whether this data type is an array type. -
isEmbeddable
public final boolean isEmbeddable()Description copied from interface:DataType
Whether this data type is an embeddable type.- Specified by:
isEmbeddable
in interfaceDataType<T>
-
isUDT
public final boolean isUDT()Description copied from interface:DataType
Whether this data type is a UDT type. -
isRecord
public boolean isRecord()Description copied from interface:DataType
Whether 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:DataType
Whether 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:
isMultiset
in interfaceDataType<T>
-
isEnum
public final boolean isEnum()Description copied from interface:DataType
Whether this data type is an enum type. -
isJSON
public final boolean isJSON()Description copied from interface:DataType
Whether this data type is a JSON type. -
isXML
public final boolean isXML()Description copied from interface:DataType
Whether this data type is an XML type. -
accept
Description copied from interface:QueryPartInternal
ThisQueryPart
canaccept
aContext
object in order to render a SQL string or to bind its variables.- Specified by:
accept
in interfaceQueryPartInternal
-
toString
Description copied from interface:QueryPart
Render a SQL string representation of thisQueryPart
.For improved debugging, this renders a SQL string of this
QueryPart
with inlined bind variables. If thisQueryPart
isAttachable
, then the attachedConfiguration
may be used for rendering the SQL string, includingSQLDialect
andSettings
. Do note that mostQueryPart
instances 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:QueryPart
Generate a hash code from thisQueryPart
.In general,
QueryPart
hash codes are the same as the hash codes generated fromQueryPart.toString()
. This guarantees consistent behaviour withQueryPart.equals(Object)
Some
QueryPart
implementations may choose to override this behaviour for improved performance, asQueryPart.toString()
is an expensive operation, if called many times. -
equals
Description copied from interface:QueryPart
Check whether thisQueryPart
can be considered equal to anotherQueryPart
.In general,
QueryPart
equality 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
QueryPart
implementations may choose to override this behaviour for improved performance, asQueryPart.toString()
is an expensive operation, if called many times. -
getName
Description copied from interface:Named
The unqualified name of this object. -
getQualifiedName
Description copied from interface:Named
The qualified name of this object.- Specified by:
getQualifiedName
in interfaceNamed
-
getUnqualifiedName
Description copied from interface:Named
The unqualified name of this object.- Specified by:
getUnqualifiedName
in interfaceNamed
-
getComment
Description copied from interface:Named
The comment on this object.This is the same as calling
Named.getCommentPart()
and thenComment.getComment()
.- Specified by:
getComment
in interfaceNamed
-
getCommentPart
Description copied from interface:Named
The comment on this object as aQueryPart
.- Specified by:
getCommentPart
in interfaceNamed
-
clauses
Deprecated.- 3.11.0 - [#8179] - This functionality will be removed in the future.Description copied from interface:QueryPartInternal
TheClause
s that are represented by this query part.QueryPart
s can specify severalClause
s 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:
clauses
in interfaceQueryPartInternal
- Returns:
- The
Clause
s represented by this query part ornull
or an empty array if this query part does not represent a clause.
-
rendersContent
Subclasses may override this- Specified by:
rendersContent
in interfaceQueryPartInternal
-
declaresFields
public boolean declaresFields()Subclasses may override this- Specified by:
declaresFields
in interfaceQueryPartInternal
-
declaresTables
public boolean declaresTables()Subclasses may override this- Specified by:
declaresTables
in interfaceQueryPartInternal
-
declaresWindows
public boolean declaresWindows()Subclasses may override this- Specified by:
declaresWindows
in interfaceQueryPartInternal
-
declaresCTE
public boolean declaresCTE()Subclasses may override this- Specified by:
declaresCTE
in interfaceQueryPartInternal
-
declaresParameters
Subclasses may override this- Specified by:
declaresParameters
in interfaceQueryPartInternal
-
generatesCast
public boolean generatesCast()Subclasses may override this- Specified by:
generatesCast
in 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
-