Skip to main content


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


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.


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(), InventoryRecordIndexExists(), 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()


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.


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


Gray indicates storage defined by superclasses.

Storage Model: CacheStorage (Inventory.Component)


Storage Model: CacheStorage (Inventory.Component)


Storage Model: CacheStorage (Inventory.RoutineComponent)

FeedbackOpens in a new tab