Inventory.DatabaseComponent
Class Inventory.DatabaseComponent Extends FileComponent
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.
Parameters
XMLNAME
Parameter XMLNAME = "DatabaseComponent";
The element name used in the XML representation of the component.
XMLTYPE
Parameter XMLTYPE = "DatabaseComponent";
The identifier used to distinguish the type of this component in the XML representation.
Properties
DatabaseName
Property DatabaseName As %String;
The name of this database in the installed configuration.
Methods
GetDatabaseName
ClassMethod GetDatabaseName(datFile As %String) As %String [ Private ]
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.
Init
Method Init(scan As Scan, fileName As %String) As DatabaseComponent
Initializes and saves this DatabaseComponent, recording scan as the Scan property, and scanning fileName for its DatabaseName and routines.
The saved DatabaseComponent is returned.
ScanRoutinesAndClasses
Method ScanRoutinesAndClasses() As %Status [ Private ]
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.