Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [%iKnow] >  [Objects] >  [Utils]
Private  Storage   

This class groups a few methods to exploit the wrapper objects in the %iKnow.Objects package.

Note: This class is deprecated. See %iKnow.Tables.Utils for a more flexible and customizable way of projecting iKnow domain contents to SQL

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
5


Summary

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
AddAllMetrics AddMetricAsColumn GenerateAllObjectsForDomain GenerateObjectForDomain


Methods

• classmethod AddAllMetrics(pDomainId As %Integer, pPackageName As %String, pAddIndex As %Boolean = 1) as %Status

Adds columns for all registered metrics to the generated objects in pPackageName.

See also %iKnow.Metrics.Metric.

• classmethod AddMetricAsColumn(pDomainId As %Integer, pMetricId As %Integer, pPackageName As %String, pAddIndex As %Boolean = 1, pTargetTypes As %List = "", pCompile As %Boolean = 1) as %Status

Adds columns for a given Custom Metric to the generated objects in pPackageName, optionally restricted to the target types in pTargetTypes.

See also %iKnow.Metrics.Metric.

deprecatedclassmethod GenerateAllObjectsForDomain(pDomainId As %Integer, pPackageName As %String, pOverwriteExisting As %Boolean = 1, pGenerateMetadataColumns As %Boolean = 1, pGenerateDictionaryObjects As %Boolean = 1, pGenerateMetadataObjects As %Boolean = 1, pGenerateVirtualObjects As %Boolean = 0, Output pCompileErrors="", pGenerateCcObjects As %Boolean = 1, pVerbose As %Boolean = 1) as %Status

Creates object wrappers for all domain-specific objects in the %iKnow.Objects package, filtered to those inside the domain identified by pDomainId. Objects are created into the package pPackageName and will contain all mappable indices, including some bitmap indices that aren't available in the %iKnow.Objects.* originals.

• classmethod GenerateObjectForDomain(pDomainId As %Integer, pObjectName As %String, pClassName As %String = "User.Source", pOverwriteExisting As %Boolean = 0, Output pCompileErrors="", pGeneratedBy As %String = "", pCompile As %Boolean = 1, pObjectsPackage As %String = "", pVerbose As %Boolean = 1, pSourceClass As %String = "", pSourceClassHasSourceID As %Boolean = 1) as %Status

This utility method generates a copy of a class from the %iKnow.Objects package, hardcoding a particular domain ID. This will ensure any queries/operation directed at this object/table, will only access entries from that particular domain.

If pPackageName is non-null, it will also rewrite any references to other %iKnow.Objects entries to correspondingly named classes in pPackageName



Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.