class %Library.ConstraintRelationship
extends %ConstraintAbstract
Member class for relationship referential constraints and referential integrity actions. A
relationship triggers a foreign key constraint based on the 1-cardinality relationship with a
target key of %1. %1 is the implied unique key generated from the object ID (SQL ROWID).
Parameters
|
Properties
|
Methods
|
Queries
|
Indices
|
ForeignKeys
|
Triggers
|
|
|
4
|
|
|
|
|
classmethod Check(id As %CacheString = "", lockonly As %Boolean = 0)
as %Status
Method to Check foreign key for existence. If lock is TRUE then the object referenced by
the key value is also locked. If the reference does not exist or, if locking is requested and the lock fails
then an error message is returned.
classmethod Delete(id As %CacheString = "", concurrency As %Integer = -1)
as %Status