Skip to main content

Inventory.RoutineComponent

persistent class Inventory.RoutineComponent extends Inventory.Component, Inventory.Hashable

SQL Table Name: Inventory.RoutineComponent

RoutineComponent is a subclass of Component. An instance represents a routine.

It contains properties representing the routine's name, size, an optional InventoryRecord, and a SHA1 hash of the routine's compiled code.

Property Inventory

Method Inventory

Parameters

parameter XMLNAME = RoutineComponent;
The element name used in the XML representation of the component.
parameter XMLTYPE = RoutineComponent;
The identifier used to distinguish the type of this component in the XML representation.

Properties

property InventoryRecord as %String (MAXLEN = 256);
The contents of an optional tagged comment inside the routine represented by this RoutineComponent, used to track its origins.
Property methods: InventoryRecordDisplayToLogical(), InventoryRecordGet(), InventoryRecordGetStored(), InventoryRecordIsValid(), InventoryRecordLogicalToDisplay(), InventoryRecordLogicalToOdbc(), InventoryRecordNormalize(), InventoryRecordSet()
property Size as %Integer;
The size of the compiled code, in bytes, of the routine represented by this RoutineComponent.
Property methods: SizeDisplayToLogical(), SizeGet(), SizeGetStored(), SizeIsValid(), SizeLogicalToDisplay(), SizeNormalize(), SizeSet(), SizeXSDToLogical()

Methods

method FindInventoryRecord(rtnData As %String)
Scans the routine represented by this RoutineComponent for a comment string beginning with ";; ISC-TAG:". If present, sets the InventoryRecord property of this object to the remainder of the string.
method GenerateSHA1Hash(string As %String)
Retrieve the system-generated CRC for the routine and store it as the SHA1Hash property of this object.
string is assumed to be the value of the ^rOBJ node of the routine.

Indexes

index ($RoutineComponent on ) [Extent, Type = bitmap];
index (InventoryRecordIndex on InventoryRecord);
Index methods: InventoryRecordIndexExists()
index (ScanSHA1Index on Scan,SHA1Hash);
Index methods: ScanSHA1IndexExists()

Inherited Members

Inherited Properties

Inherited Methods

Storage

Gray indicates storage defined by superclasses.

Storage Model: Storage (Inventory.Component)

^SYS("Inventory","ComponentD")(ID)
=
%%CLASSNAME
Name
ParentComponent
Scan

Storage Model: Storage (Inventory.Component)

^SYS("Inventory","ComponentD")(ID,"SubComponents",n)
=
SubComponents(n)

Storage Model: Storage (Inventory.RoutineComponent)

^SYS("Inventory","ComponentD")(ID,"RoutineComponent")
=
SHA1Hash
InventoryRecord
Size
FeedbackOpens in a new tab