HealthShare Health Connect 2021.1Opens in a new window > Class Reference > %SYS namespace > Inventory.DatabaseComponent


persistent class Inventory.DatabaseComponent extends Inventory.FileComponent

SQL Table Name: Inventory.DatabaseComponent

DatabaseComponent is a subclass of FileComponent. An instance represents a IRIS.DAT database file.

In addition to the properties of a FileComponent, it also contains the name of the database and the database's routines as subcomponents.

Property Inventory (Including Private)

Method Inventory (Including Private)


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

Properties (Including Private)

property DatabaseName as %String;
The name of this database in the installed configuration.
Property methods: DatabaseNameDisplayToLogical(), DatabaseNameGet(), DatabaseNameGetStored(), DatabaseNameIndexExists(), DatabaseNameIsValid(), DatabaseNameLogicalToDisplay(), DatabaseNameLogicalToOdbc(), DatabaseNameNormalize(), DatabaseNameSet()

Methods (Including Private)

private classmethod GetDatabaseName(datFile As %String) as %String [ Language = objectscript ]
Given a IRIS.DAT file name as datFile, returns the name of the corresponding database in the active configuration, or the empty string if there is no such database.
method Init(scan As Scan, fileName As %String) as DatabaseComponent [ Language = objectscript ]
Initializes and saves this DatabaseComponent, recording scan as the Scan property, and scanning fileName for its DatabaseName and routines.

The saved DatabaseComponent is returned.

private method ScanRoutinesAndClasses() as %Status [ Language = objectscript ]
Scan the routines of the database into the SubComponents property of this DatabaseComponent. If the database is not the manager's database, then system routines are skipped.


index (DatabaseNameIndex on DatabaseName);
Index methods: DatabaseNameIndexExists()

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)


Gray indicates storage defined by superclasses.

Storage Model: Storage (Inventory.Component)


Storage Model: Storage (Inventory.Component)


Storage Model: Storage (Inventory.FileComponent)


Storage Model: Storage (Inventory.DatabaseComponent)

FeedbackOpens in a new window