Sign in Join
FPDoc Onlineexperiment

TCheckConstraint class

In unit DB

Record-level constraint definition.

Declaration

pascal
TCheckConstraint = class(TCollectionItem)

Inheritance

  1. TCheckConstraint
  2. TCollectionItem
  3. TPersistent
  4. TObject

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 ImportedConstraint property , or a constraint enforced by the user on a particular dataset instance stored in CustomConstraint

See also

Properties

CustomConstraintpublishedUser-defined constraint.
ErrorMessagepublishedMessage to display when the constraint is violated.
FromDictionarypublishedTrue if the constraint is imported from a datadictionary.
ImportedConstraintpublishedConstraint imported from the database engine.

Methods

AssignpublicAssign one constraint to another.

Inherited

From TCollectionItem (13)

Changed Collection Create Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.