Top Description Methods
org.jooq

public Interface ConstraintEnforcementStep

extends ConstraintFinalStep
Known Direct Subinterfaces
org.jooq.ConstraintForeignKeyOnStep
Static Imports
org.jooq.SQLDialect.MYSQL

Deprecated

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

The step in the Constraint construction DSL API that allows for adding ENFORCED and NOT ENFORCED clauses.

Referencing XYZ*Step types directly from client code

It is usually not recommended to reference any XYZ*Step types directly from client code, or assign them to local variables. When writing dynamic SQL, creating a statement's components dynamically, and passing them to the DSL API statically is usually a better choice. See the manual's section about dynamic SQL for details: https://www.jooq.org/doc/latest/manual/sql-building/dynamic-sql.

Drawbacks of referencing the XYZ*Step types directly:

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull ConstraintFinalStep
enforced()

Deprecated as a consequence of ConstraintFinalStep being deprecated.
Add the ENFORCED clause to the constraint.
public @NotNull ConstraintFinalStep
notEnforced()

Deprecated as a consequence of ConstraintFinalStep being deprecated.
Add the NOT ENFORCED clause to the constraint.

Method Detail

enforcedback to summary
public @NotNull ConstraintFinalStep enforced()

Deprecated

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

Add the ENFORCED clause to the constraint.

Annotations
@NotNull
@Support:MYSQL
notEnforcedback to summary
public @NotNull ConstraintFinalStep notEnforced()

Deprecated

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

Add the NOT ENFORCED clause to the constraint.

Annotations
@NotNull
@Support:MYSQL