Skip to content

TCheckConstraint

Record-level constraint definition.

Declaration

Source position: db.pas line 1295

type

  TCheckConstraint = class(TCollectionItem)
  public
    procedure Assign;
  published
    property CustomConstraint: string; {rw}
    property ErrorMessage: string; {rw}
    property FromDictionary: Boolean; {rw}
    property ImportedConstraint: string; {rw}
  end;

Description

TCheckConstraint can be used to store the definition of a record-level constraint. It does not enforce the constraint, it only stores the constraint's definition. The constraint can come from several sources: an imported constraints from the database, usually stored in the TCheckConstraint.ImportedConstraint property , or a constraint enforced by the user on a particular dataset instance stored in TCheckConstraint.CustomConstraint

Properties

Member Visibility Description
CustomConstraint published User-defined constraint.
ErrorMessage published Message to display when the constraint is violated.
FromDictionary published True if the constraint is imported from a datadictionary.
ImportedConstraint published Constraint imported from the database engine.
See all Properties

Methods

Member Visibility Description
Assign public Assign one constraint to another.
See all Methods

See also

Name Description
TCheckConstraints Set of record-level constraints.
TCheckConstraint.ImportedConstraint Constraint imported from the database engine.
TCheckConstraint.CustomConstraint User-defined constraint.