Ens.Projection.Protected
abstract class Ens.Projection.Protected extends %Projection.AbstractProjection
Base projection class for subclasses that should not execute CreateProjection() or RemoveProjection() when the target globals are unwritable due to the database being in read-only mode. Any subclass must implement OnCreateProjection() and OnRemoveProjection().Method Inventory
Parameters
parameter PROTECTEDGLOBALS;
A comma-separated list of global names to be protected from writes when the database is read-only.
Methods
final classmethod CreateProjection(classname As %Library.String, ByRef parameters As %Library.String, modified As %Library.String, qstruct As %Library.String) as %Status
Inherited description: This method is called by the Class Compiler whenever an associated
class has finished compiling. classname contains the name of
the associated class while parameters contains an array of the
projection parameters subscripted by parameter name. Also the special parameter value
parameters("%qstruct") contains a merge of the qstruct array this projection is being
compiled with. The modified is always blank.
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.
This method, instead of CreateProjection(), needs to be implemented in subclasses.
This method, instead of RemoveProjection(), needs to be implemented in subclasses.
final classmethod RemoveProjection(classname As %Library.String, ByRef parameters As %Library.String, recompile As %Library.Boolean, modified As %Library.String, qstruct As %Library.String) as %Status
Inherited description: This method is called by the Class Compiler whenever an associated
class is either a) about to be recompiled, or b) about to be deleted.
classname contains the name of the associated class while
parameters contains an array of the projection parameters
subscripted by parameter name. Also the special parameter value
parameters("%qstruct") contains a merge of the qstruct array this projection is being
compiled with. recompile is true (1) if the
associated class is about to be recompiled. The modified is always blank.
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.
Any errors reported by this method are reported by the Class Compiler but do not effect class compilation in any way.
classmethod isProtected() as %Boolean
This method checks if the current global database is read-only
and if any of the global(s) listed in PROTECTEDGLOBALS
is located in the current global database and returns true if so.
Inherited Members
Inherited Methods
- %ClassIsLatestVersion()
- %ClassName()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %New()
- %OriginalNamespace()
- %PackageName()
- %SetModified()
- AddToManifest()
- EndCompile()
- QueueClass()
- RemoveFromManifest()
- RemoveFromQueue()
- SetQueueFlag()
- getDefaultParam()
- getROOTDIR()