Skip to main content

%Dictionary.CompiledTrigger

Class %Dictionary.CompiledTrigger Extends (%Persistent, %Dictionary.CompiledTriggerQuery) [ StorageStrategy = custom, System = 2 ]

Parameters

SQLENABLED

Parameter SQLENABLED = 1;

Properties

parent

Relationship parent As %Dictionary.CompiledClass [ Cardinality = parent, Inverse = Triggers ];

Pointer to the containing parent object

%isDefined

Property %isDefined As %RawString [ MultiDimensional, Private, Transient ];

Stores the DEFINED state of each attribute.

Code

Property Code As %RawString;

The code that is executed when the trigger is fired.

CodeMode

Property CodeMode As %RawString;

Specifies how a given method is implemented: lines of code to be compiled, or a method that will generate the resulting method or object.

CompilerGenerated

Property CompilerGenerated As %Boolean;

CompilerGenerated

Deprecated

Property Deprecated As %Boolean;

True if this trigger is deprecated.

Description

Property Description As %RawString;

Specifies a description of the SQL trigger.

Event

Property Event As %RawString;

Specifies the SQL event that will fire the trigger.

Final

Property Final As %Boolean;

Specifies that subclasses cannot override the definition of the SQL trigger.

Foreach

Property Foreach As %RawString;

Indicates if the trigger will be invoked for each row, for rows and objects, or for each statement

Id

Property Id As %Integer;

Id

InheritedId

Property InheritedId As %Boolean;

InheritedId

Internal

Property Internal As %Boolean;

If true, then do not display this item in automatic documentation.

KeywordError

Property KeywordError As %Boolean;

KeywordError

KeywordModified

Property KeywordModified As %Boolean;

KeywordModified

Language

Property Language As %RawString [ SqlFieldName = _Language ];

The language used to implement this trigger.

Name

Property Name As %Dictionary.Identifier [ Required ];

The name of the SQL trigger.

NewTable

Property NewTable As %RawString;

The name of the SQL table that holds old values for the trigger.

NotInheritable

Property NotInheritable As %Boolean;

NotInheritable

OldTable

Property OldTable As %RawString;

The name of the SQL table that holds old values for the trigger.

Order

Property Order As %Integer;

In the case of multiple triggers for the same EVENT and TIME, specifies the order in which the triggers should be fired.

Origin

Property Origin As %RawString;

Origin

SequenceNumber

Property SequenceNumber As %Integer;

SequenceNumber

SqlName

Property SqlName As %RawString;

Specifies an alternate name when this trigger is used by SQL.

TagGenerator

Property TagGenerator As %RawString;

TagGenerator

Time

Property Time As %RawString [ SqlFieldName = _Time ];

Specifies whether the trigger is fired before or after the EVENT.

UpdateColumnList

Property UpdateColumnList As %RawString;

Specifies one or more columns whose modification causes the trigger to be pulled by SQL.

Triggers

OnInsertUpdate

Trigger OnInsertUpdate [ Event = INSERT/UPDATE ]

OnDelete

Trigger OnDelete [ Event = DELETE ]

Methods

%OnNew

Method %OnNew(name As %String) As %Status [ Private ]

%LockId

ClassMethod %LockId(id As %String, shared As %Boolean = 0, timeout As %Integer) As %Status

%UnlockId

ClassMethod %UnlockId(id As %String, shared As %Boolean = 0, immediate As %Boolean = 0) As %Status

%Exists

ClassMethod %Exists(oid As %ObjectIdentity) As %Boolean

%LoadData

Method %LoadData(id As %String) As %Status [ Private ]

%SaveData

Method %SaveData(id As %String) As %Status [ Private ]

%DeleteData

ClassMethod %DeleteData(id As %String, concurrency As %Integer) As %Status [ Private ]

CodeSet

Method CodeSet(value As %String = "") As %Status

CodeReset

Method CodeReset()

CodeIsDefined

Method CodeIsDefined() As %Boolean

CodeModeSet

Method CodeModeSet(value As %String = "") As %Status

CodeModeReset

Method CodeModeReset()

CodeModeIsDefined

Method CodeModeIsDefined() As %Boolean

DeprecatedSet

Method DeprecatedSet(value As %String = "") As %Status

DeprecatedReset

Method DeprecatedReset()

DeprecatedIsDefined

Method DeprecatedIsDefined() As %Boolean

DescriptionSet

Method DescriptionSet(value As %String = "") As %Status

DescriptionReset

Method DescriptionReset()

DescriptionIsDefined

Method DescriptionIsDefined() As %Boolean

EventSet

Method EventSet(value As %String = "") As %Status

EventReset

Method EventReset()

EventIsDefined

Method EventIsDefined() As %Boolean

FinalSet

Method FinalSet(value As %String = "") As %Status

FinalReset

Method FinalReset()

FinalIsDefined

Method FinalIsDefined() As %Boolean

ForeachSet

Method ForeachSet(value As %String = "") As %Status

ForeachReset

Method ForeachReset()

ForeachIsDefined

Method ForeachIsDefined() As %Boolean

InternalSet

Method InternalSet(value As %String = "") As %Status

InternalReset

Method InternalReset()

InternalIsDefined

Method InternalIsDefined() As %Boolean

LanguageSet

Method LanguageSet(value As %String = "") As %Status

LanguageReset

Method LanguageReset()

LanguageIsDefined

Method LanguageIsDefined() As %Boolean

NameSet

Method NameSet(value As %String = "") As %Status

NameReset

Method NameReset()

NameIsDefined

Method NameIsDefined() As %Boolean

NewTableSet

Method NewTableSet(value As %String = "") As %Status

NewTableReset

Method NewTableReset()

NewTableIsDefined

Method NewTableIsDefined() As %Boolean

OldTableSet

Method OldTableSet(value As %String = "") As %Status

OldTableReset

Method OldTableReset()

OldTableIsDefined

Method OldTableIsDefined() As %Boolean

OrderSet

Method OrderSet(value As %String = "") As %Status

OrderReset

Method OrderReset()

OrderIsDefined

Method OrderIsDefined() As %Boolean

SequenceNumberSet

Method SequenceNumberSet(value As %String = "") As %Status

SequenceNumberReset

Method SequenceNumberReset()

SequenceNumberIsDefined

Method SequenceNumberIsDefined() As %Boolean

SqlNameSet

Method SqlNameSet(value As %String = "") As %Status

SqlNameReset

Method SqlNameReset()

SqlNameIsDefined

Method SqlNameIsDefined() As %Boolean

TimeSet

Method TimeSet(value As %String = "") As %Status

TimeReset

Method TimeReset()

TimeIsDefined

Method TimeIsDefined() As %Boolean

UpdateColumnListSet

Method UpdateColumnListSet(value As %String = "") As %Status

UpdateColumnListReset

Method UpdateColumnListReset()

UpdateColumnListIsDefined

Method UpdateColumnListIsDefined() As %Boolean

parentOnDelete

ClassMethod parentOnDelete(id As %String, concurrency As %Integer) As %Status