Home > Class Reference > %SYS namespace > %Library.TriggerDefinition

%Library.TriggerDefinition

persistent class %Library.TriggerDefinition extends %Library.AbstractDefinition

SQL Table Name: %Library.TriggerDefinition

Note: The class definition classes in the %Library package have been superceded by those in the %Dictionary package.

This class represents a specific SQL trigger description for a class contained within the Class Dictionary.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property ClassName as %RawString;
A string containing the name of the class the SQL trigger belongs to.
Property methods: ClassNameGet(), ClassNameIsValid(), ClassNameSet()
property Code as %RawString;
A string containing the code for the SQL trigger.
Property methods: CodeGet(), CodeIsValid(), CodeSet()
property Deprecated as %RawString;
A flag indicating if this trigger is deprecated (1) or not (0).
Property methods: DeprecatedGet(), DeprecatedIsValid(), DeprecatedSet()
property Description as %RawString;
A string containing a description of the SQL trigger.
Property methods: DescriptionGet(), DescriptionIsValid(), DescriptionSet()
property Event as %RawString;
A string containing the name of event the trigger is associated with. This can be "INSERT", "UPDATE", or "DELETE".
Property methods: EventGet(), EventIsValid(), EventSet()
property Internal as %RawString;
A flag indicating whether the trigger is internal (1) or not (0).
Property methods: InternalGet(), InternalIsValid(), InternalSet()
property Name as %RawString;
A string containing the name of the SQL trigger.
Property methods: NameGet(), NameIsValid(), NameSet()
property Order as %RawString;
A number indicating the order in which the trigger should be fired.
Property methods: OrderGet(), OrderIsValid(), OrderSet()
property SequenceNumber as %RawString;
Sequence number used to determine order of this item in Studio editor and in XML export format.
Property methods: SequenceNumberGet(), SequenceNumberIsValid(), SequenceNumberSet()
property Time as %RawString [ InitialExpression = "BEFORE" ];
A string containing the name of event modifier for the trigger. This can be "BEFORE" or "AFTER".
Property methods: TimeGet(), TimeIsValid(), TimeSet()

Methods (Including Private)

private classmethod %DeleteData(id As %String, concurrency As %Integer) as %Status [ Language = objectscript ]
Inherited description: This method is normally generated by the storage class for persistent classes using %Storage.Persistent or %Storage.SQL. Persistent classes using some other storage class, such as %Library.CustomStorage must override this method.
private method %LoadData(id As %String) as %Status [ Language = objectscript ]
Inherited description: %LoadData() - loads an object from storage. This method is implemented by the storage class.
private method %OnNew(initvalue As %String) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %New() method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

private method %OnValidateObject() as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %ValidateObject() method to provide notification that the current object is being validated.

If this method returns an error then %ValidateObject() will fail.

private method %SaveData(id As %String) as %Status [ Language = objectscript ]
Inherited description: %SaveData() - saves an object to disk, checks uniqueness and referential integrity constraints, and maintains index structures. This method is implemented by the storage class.

Inherited Members

Inherited Methods (Including Private)

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (%Library.AbstractDefinition)

^%Library.AbstractDefinitionD(ID)
=
%%CLASSNAME
Feedback