Skip to main content

HS.Registry.Config

persistent class HS.Registry.Config extends %Library.Persistent, HS.Sync.BaseClass, %Library.GlobalIdentifier

SQL Table Name: HS_Registry.Config

General Area for storage of information Configuration items for things like: \General\ThisSystemOID = 1.2.3.4.5.6 \General\ThisOrganisationName = Company Name

Property Inventory

Method Inventory

Parameters

parameter SYNCORDER = 10;

Properties

property RegKey as %String (MAXLEN = 1000, TRUNCATE = 0);
Property methods: RegKeyDisplayToLogical(), RegKeyGet(), RegKeyGetStored(), RegKeyIndexExists(), RegKeyIsValid(), RegKeyLogicalToDisplay(), RegKeyLogicalToOdbc(), RegKeyNormalize(), RegKeySet()
property RegValue as %String (MAXLEN = 1000, TRUNCATE = 0);
Property methods: RegValueDisplayToLogical(), RegValueGet(), RegValueGetStored(), RegValueIsValid(), RegValueLogicalToDisplay(), RegValueLogicalToOdbc(), RegValueNormalize(), RegValueSet()

Methods

classmethod AddNewKey(pKey As %String = "", pValue As %String = "") as %Status
Add a key/value only if one doesn't exist
classmethod AddUpdateKeyValue(pKey As %String = "", pValue As %String = "") as %Status
Add or Update a key in the registry config
classmethod DeleteByName(KeyName As %String) as %Status
classmethod FindByName(KeyName As %String, ByRef RegValue, ByRef ID As %Integer) as %Status
classmethod GetKeyValue(KeyName As %String, pDefault As %String = "") as %String

Queries

query ConfigItems(pType As %Integer = "")
SQL Query:
SELECT %ID,RegKey as "Key",RegValue as "Value" FROM Config ORDER BY RegKey

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (RegKeyIndex on RegKey) [Data = RegValue];
Index methods: RegKeyIndexExists()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (HS.Registry.Config)

^HS.Registry.ConfigD(ID)
=
%%CLASSNAME
RegKey
RegValue
FeedbackOpens in a new tab