Package org.jooq

Interface Constraint

  • All Superinterfaces:
    FieldOrConstraint, Named, QueryPart,
    All Known Subinterfaces:
    ConstraintFinalStep, ConstraintForeignKeyOnStep, ConstraintTypeStep

    public interface Constraint
    extends FieldOrConstraint
    A DDL constraint.

    Constraint definitions can be used in DDL statements in order to specify the constraint, or in some DML statements that reference a given constraint.


     // Assuming import static org.jooq.impl.DSL.*;
            .unique(ACTOR.FIRST_NAME, ACTOR.LAST_NAME))

    Instances can be created using DSL.constraint(Name) and overloads.

    Lukas Eder