Top Fields Constructors Methods
org.jooq.impl

pack-priv final Class CheckImpl<R extends org.jooq.Record>

extends AbstractNamed
implements Check<R extends Record>, UNotYetImplemented
Class Inheritance
All Implemented Interfaces
org.jooq.impl.QOM.UNotYetImplemented, org.jooq.impl.QOM.UEmpty, org.jooq.QueryPart, java.io.Serializable, org.jooq.Check, org.jooq.Named
Imports
org.jooq.Check, .Condition, .Constraint, .ConstraintEnforcementStep, .Context, .Name, .Record, .Table, org.jooq.impl.QOM.UNotYetImplemented

Deprecated

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

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final Condition
condition

Deprecated as a consequence of Condition being deprecated.
pack-priv final boolean
pack-priv final Table<R>

Constructor Summary

AccessConstructor and Description
pack-priv
CheckImpl(Table<R> table, Condition condition, boolean enforced)

Deprecated as a consequence of Condition being deprecated.
pack-priv
CheckImpl(Table<R> table, Name name, Condition condition, boolean enforced)

Deprecated as a consequence of Condition 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 Condition
condition()

Implements org.jooq.Check.condition.

Deprecated as a consequence of Condition being deprecated.
The CHECK constraint's condition.
public final Constraint
constraint()

Implements org.jooq.Check.constraint.

Deprecated as a consequence of Constraint being deprecated.
Get this CHECK as a formal Constraint specification.
public final boolean
enforced()

Implements org.jooq.Check.enforced.

Whether this check 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 Table<R>
getTable()

Implements org.jooq.Check.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 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

conditionback to summary
pack-priv final Condition condition

Deprecated

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

enforcedback to summary
pack-priv final boolean enforced
tableback to summary
pack-priv final Table<R> table

Constructor Detail

CheckImplback to summary
pack-priv CheckImpl(Table<R> table, Condition condition, boolean enforced)

Deprecated

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

CheckImplback to summary
pack-priv CheckImpl(Table<R> table, Name name, Condition condition, boolean enforced)

Deprecated

as a consequence of Condition 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
conditionback to summary
public final Condition condition()

Implements org.jooq.Check.condition.

Doc from org.jooq.Check.condition.

Deprecated

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

The CHECK constraint's condition.

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

Implements org.jooq.Check.constraint.

Doc from org.jooq.Check.constraint.

Deprecated

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

Get this CHECK as a formal Constraint specification.

Annotations
@Override
enforcedback to summary
public final boolean enforced()

Implements org.jooq.Check.enforced.

Doc from org.jooq.Check.enforced.

Whether this check 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
getTableback to summary
public final Table<R> getTable()

Implements org.jooq.Check.getTable.

Doc from org.jooq.Check.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
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