DocBook|Search
Class Reference
%iKnow.Objects.Utils
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%iKnow] >  [Objects] >  [Utils]
Private  Storage  

class %iKnow.Objects.Utils extends %RegisteredObject

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3


Summary

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


Methods

• classmethod 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="") 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 soime 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 = "") 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