Top Description Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractKey<R extends org.jooq.Record>

extends AbstractNamed
implements Key<R extends Record>, UEmpty
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.Key, org.jooq.Named
Known Direct Subclasses
org.jooq.impl.ReferenceImpl, org.jooq.impl.MetaImpl.MetaUniqueKey, org.jooq.impl.UniqueKeyImpl
Static Imports
org.jooq.impl.Tools.anyMatch

Common base class for Key's
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final boolean
private final TableField<R, ?>[]
fields

Deprecated as a consequence of TableField being deprecated.
private final Table<R>

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractKey(Table<R> table, TableField<R, ?>[] fields, boolean enforced)

Deprecated as a consequence of TableField being deprecated.
pack-priv
AbstractKey(Table<R> table, Name name, TableField<R, ?>[] fields, boolean enforced)

Deprecated as a consequence of TableField being deprecated.

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 Constraint
constraint()

Implements org.jooq.Key.constraint.

Deprecated as a consequence of Constraint being deprecated.
Get this KEY as a formal Constraint specification.
pack-priv abstract ConstraintEnforcementStep
constraint0()

Deprecated as a consequence of ConstraintEnforcementStep being deprecated.
public final boolean
enforced()

Implements org.jooq.Key.enforced.

Whether this key is being enforced.
private final Constraint
enforced(ConstraintEnforcementStep key)

Deprecated as a consequence of ConstraintEnforcementStep and Constraint being deprecated.
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 List<TableField<R, ?>>
getFields()

Implements org.jooq.Key.getFields.

The fields that make up the KEY
public final TableField<R, ?>[]
getFieldsArray()

Implements org.jooq.Key.getFieldsArray.

Deprecated as a consequence of TableField being deprecated.
The fields that make up the KEY
public final Table<R>
getTable()

Implements org.jooq.Key.getTable.

The Key's owner table
public int
hashCode()

Overrides org.jooq.impl.AbstractNamed.hashCode.

Implements org.jooq.QueryPart.hashCode.

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

Implements org.jooq.Key.nullable.

Whether this key is (partially) nullable.
public String
toString()

Overrides org.jooq.impl.AbstractQueryPart.toString.

Implements org.jooq.QueryPart.toString.

Render a SQL string representation of this QueryPart.
Inherited from org.jooq.impl.AbstractNamed:
$namefindfindfindAllfindAllfindIgnoreCasefindIgnoreCasegetCommentgetCommentPartgetNamegetQualifiedNamegetUnqualifiedNamenameOrDefaultqualify

Field Detail

enforcedback to summary
private final boolean enforced
fieldsback to summary
private final TableField<R, ?>[] fields

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

tableback to summary
private final Table<R> table

Constructor Detail

AbstractKeyback to summary
pack-priv AbstractKey(Table<R> table, TableField<R, ?>[] fields, boolean enforced)

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

AbstractKeyback to summary
pack-priv AbstractKey(Table<R> table, Name name, TableField<R, ?>[] fields, boolean enforced)

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

Method Detail

acceptback to summary
public final void accept(Context<?> ctx)

Implements org.jooq.QueryPartInternal.accept.

Doc from org.jooq.QueryPartInternal.accept.

This QueryPart can accept a Context object in order to render a SQL string or to bind its variables.

Annotations
@Override
constraintback to summary
public final Constraint constraint()

Implements org.jooq.Key.constraint.

Doc from org.jooq.Key.constraint.

Deprecated

as a consequence of Constraint being deprecated. See corresponding docs for further information.

Get this KEY as a formal Constraint specification.

Annotations
@Override
constraint0back to summary
pack-priv abstract ConstraintEnforcementStep constraint0()

Deprecated

as a consequence of ConstraintEnforcementStep being deprecated. See corresponding docs for further information.

enforcedback to summary
public final boolean enforced()

Implements org.jooq.Key.enforced.

Doc from org.jooq.Key.enforced.

Whether this key is being enforced.

Annotations
@Override
enforcedback to summary
private final Constraint enforced(ConstraintEnforcementStep key)

Deprecated

as a consequence of ConstraintEnforcementStep and Constraint being deprecated. See corresponding docs for further information.

equalsback to summary
public boolean equals(Object obj)

Overrides org.jooq.impl.AbstractNamed.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
obj:Object

The other QueryPart

Returns:boolean

Whether the two query parts are equal

Annotations
@Override
getFieldsback to summary
public final List<TableField<R, ?>> getFields()

Implements org.jooq.Key.getFields.

Doc from org.jooq.Key.getFields.

The fields that make up the KEY

Annotations
@Override
getFieldsArrayback to summary
public final TableField<R, ?>[] getFieldsArray()

Implements org.jooq.Key.getFieldsArray.

Doc from org.jooq.Key.getFieldsArray.

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The fields that make up the KEY

Annotations
@Override
getTableback to summary
public final Table<R> getTable()

Implements org.jooq.Key.getTable.

Doc from org.jooq.Key.getTable.

The Key's owner table

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides org.jooq.impl.AbstractNamed.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
nullableback to summary
public final boolean nullable()

Implements org.jooq.Key.nullable.

Doc from org.jooq.Key.nullable.

Whether this key is (partially) nullable.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.jooq.impl.AbstractQueryPart.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