Top Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractQueryPart

extends Object
implements QueryPartInternal
Class Inheritance
All Implemented Interfaces
org.jooq.QueryPartInternal, org.jooq.QueryPart, java.io.Serializable
Known Direct Subclasses
org.jooq.impl.AbstractQueryPartMap, org.jooq.impl.AbstractRow, org.jooq.impl.Cast.CastNative, org.jooq.impl.CharacterSetImpl, org.jooq.impl.CollationImpl, org.jooq.impl.CommentImpl, org.jooq.impl.JSONEntryImpl, org.jooq.impl.JSONNull, org.jooq.impl.JSONReturning, org.jooq.impl.JSONTable.JSONTableColumn, org.jooq.impl.KeywordImpl, org.jooq.impl.Tools.DataKeyScopeStackPart, org.jooq.impl.WindowDefinitionImpl, org.jooq.impl.WindowSpecificationImpl, org.jooq.impl.WithImpl, org.jooq.impl.WrappedList, org.jooq.impl.XMLAttributesImpl, org.jooq.impl.XMLTable.XMLTableColumn, org.jooq.impl.Limit, org.jooq.impl.PrivilegeImpl, org.jooq.impl.QualifiedAsteriskImpl, org.jooq.impl.QualifiedAsteriskProxy, org.jooq.impl.QuantifiedArray, org.jooq.impl.SortFieldImpl, org.jooq.impl.SQLConcatenationImpl, org.jooq.impl.SQLImpl, org.jooq.impl.AbstractAttachableQueryPart, org.jooq.impl.AbstractDelegatingQuery, org.jooq.impl.AbstractDMLQueryAsResultQuery, org.jooq.impl.CustomQueryPart, org.jooq.impl.FieldMapsForInsert, org.jooq.impl.FieldsImpl, org.jooq.impl.ForLock, org.jooq.impl.AbstractStatement, org.jooq.impl.Alias, org.jooq.impl.TupleImpl2, org.jooq.impl.ArrayTableEmulation, org.jooq.impl.AsteriskImpl, org.jooq.impl.DerivedColumnListImpl, org.jooq.impl.QuantifiedSelectImpl, org.jooq.impl.QueryPartCollectionView, org.jooq.impl.AbstractName, org.jooq.impl.AbstractNamed
Static Imports
org.jooq.impl.Tools.CONFIG

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private static final JooqLogger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Clause[]
clauses(Context<?> ctx)

Implements org.jooq.QueryPartInternal.clauses.

Deprecated - 3.11.0 - [#8179] - This functionality will be removed in the future.
The Clauses that are represented by this query part.
pack-priv Configuration
protected final DSLContext
create()

Deprecated - 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.
Internal convenience method
protected final DSLContext
create(Configuration configuration)

Deprecated - 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.
Internal convenience method
protected final DSLContext
create(Context<?> ctx)

Deprecated - 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.
Internal convenience method
public boolean
declaresCTE()

Implements org.jooq.QueryPartInternal.declaresCTE.

Subclasses may override this
public boolean
declaresFields()

Implements org.jooq.QueryPartInternal.declaresFields.

Subclasses may override this
public boolean
declaresTables()

Implements org.jooq.QueryPartInternal.declaresTables.

Subclasses may override this
public boolean
declaresWindows()

Implements org.jooq.QueryPartInternal.declaresWindows.

Subclasses may override this
public boolean
equals(Object
The other QueryPart
that
)

Overrides java.lang.Object.equals.

Implements org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.
public boolean
generatesCast()

Implements org.jooq.QueryPartInternal.generatesCast.

Subclasses may override this
public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.
private void
public boolean
rendersContent(Context<?> ctx)

Implements org.jooq.QueryPartInternal.rendersContent.

Subclasses may override this
public String
toString()

Overrides java.lang.Object.toString.

Implements org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.
protected final DataAccessException
translate(String sql, SQLException e)

Internal convenience method

private void
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

logback to summary
private static final JooqLogger log

Constructor Detail

AbstractQueryPartback to summary
pack-priv AbstractQueryPart()

Method Detail

clausesback to summary
public Clause[] clauses(Context<?> ctx)

Implements org.jooq.QueryPartInternal.clauses.

Doc from org.jooq.QueryPartInternal.clauses.

Deprecated

- 3.11.0 - [#8179] - This functionality will be removed in the future.

The Clauses that are represented by this query part.

QueryParts can specify several Clauses for which an event will be emitted before (in forward order) and after (in reverse order) visiting the the query part through Context#visit(QueryPart)

This method is for JOOQ INTERNAL USE only. Do not reference directly

Returns:Clause[]

The Clauses represented by this query part or null or an empty array if this query part does not represent a clause.

Annotations
@Deprecated
@Override
configurationback to summary
pack-priv Configuration configuration()
createback to summary
protected final DSLContext create()

Deprecated

- 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.

Internal convenience method

Annotations
@Deprecated
createback to summary
protected final DSLContext create(Configuration configuration)

Deprecated

- 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.

Internal convenience method

Annotations
@Deprecated
createback to summary
protected final DSLContext create(Context<?> ctx)

Deprecated

- 3.11.0 - [#6722] - Use Attachable#configuration() and Configuration#dsl() instead.

Internal convenience method

Annotations
@Deprecated
declaresCTEback to summary
public boolean declaresCTE()

Implements org.jooq.QueryPartInternal.declaresCTE.

Subclasses may override this

Annotations
@Override
declaresFieldsback to summary
public boolean declaresFields()

Implements org.jooq.QueryPartInternal.declaresFields.

Subclasses may override this

Annotations
@Override
declaresTablesback to summary
public boolean declaresTables()

Implements org.jooq.QueryPartInternal.declaresTables.

Subclasses may override this

Annotations
@Override
declaresWindowsback to summary
public boolean declaresWindows()

Implements org.jooq.QueryPartInternal.declaresWindows.

Subclasses may override this

Annotations
@Override
equalsback to summary
public boolean equals(Object that)

Overrides java.lang.Object.equals.

Implements org.jooq.QueryPart.equals.

Doc from org.jooq.QueryPart.equals.

Check whether this QueryPart can be considered equal to another QueryPart.

In general, QueryPart equality is defined in terms of 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, as toString() is an expensive operation, if called many times.

Parameters
that:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

Annotations
@Override
generatesCastback to summary
public boolean generatesCast()

Implements org.jooq.QueryPartInternal.generatesCast.

Subclasses may override this

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.jooq.QueryPart.hashCode.

Doc from org.jooq.QueryPart.hashCode.

Generate a hash code from this QueryPart.

In general, QueryPart hash codes are the same as the hash codes generated from toString(). This guarantees consistent behaviour with equals(Object)

Some QueryPart implementations may choose to override this behaviour for improved performance, as toString() is an expensive operation, if called many times.

Returns:int

The QueryPart hash code

Annotations
@Override
readObjectback to summary
private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException
rendersContentback to summary
public boolean rendersContent(Context<?> ctx)

Implements org.jooq.QueryPartInternal.rendersContent.

Subclasses may override this

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Implements org.jooq.QueryPart.toString.

Doc from org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.

For improved debugging, this renders a SQL string of this QueryPart with inlined bind variables. If this QueryPart is Attachable, then the attached Configuration may be used for rendering the SQL string, including SQLDialect and Settings. Do note that most QueryPart instances are not attached to a Configuration, and thus there is no guarantee that the SQL string will make sense in the context of a specific database.

Returns:String

A SQL string representation of this QueryPart

Annotations
@Override
translateback to summary
protected final DataAccessException translate(String sql, SQLException e)

Internal convenience method

writeObjectback to summary
private void writeObject(ObjectOutputStream oos) throws IOException