Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [EnsLib] >  [REST] >  [DynamicObjVDoc]
Private  Storage   

serial class EnsLib.REST.DynamicObjVDoc extends %SerialObject, Ens.VDoc.Interface

Abstract persistent VDoc document wrapper class for arbitrary %DynamicObject instances This class is used internally by InterSystems IRIS.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 6


Summary

Properties
DocType DocTypeCategory DocTypeName Identifier
IsMutable Name Obj OriginalDocId
Source TimeCreated TypeVersion UserValues

Methods
%AddToSaveSet %AddToSyncSet %ClassIsLatestVersion %ClassName
%ConstructClone %Delete %DeleteId %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends %GetParameter
%GetSwizzleObject %IsA %IsModified %IsNull
%New %NormalizeObject %ObjectIsNull %ObjectModified
%OnBeforeAddToSync %OnDetermineClass %OnNew %Open
%OpenId %OriginalNamespace %PackageName %RemoveFromSaveSet
%ResolveConcurrencyConflict %SerializeObject %SetModified %SyncObjectIn
%SyncTransport %ValidateObject CopyValues DrawFormButtons
DrawHTMLContentsForm DrawHTMLForm EnumerateDocTypesClose EnumerateDocTypesExecute
EnumerateDocTypesFetch EnumerateTypeCategoriesClose EnumerateTypeCategoriesExecute EnumerateTypeCategoriesFetch
EnumerateVDocsClose EnumerateVDocsExecute EnumerateVDocsFetch GetAlias
GetContentArray GetManagerLinks GetNewManagerLinks GetNextIndex
GetValueAt IsMutableSet LogicalToOdbc ObjGet
ObjSet OdbcToLogical PokeDocType SetValueAt
TypeVersionGet Validate getTestNewArg


Properties

• property Obj as %DynamicAbstractObject [ Transient ];
The in-memory object that VDoc property paths will be evaluated against; may be a DynamicArray or a DynamicObject

Methods

• method %DispatchMethod(Method As %String, Args...)
Is used to implement an unknown method call. It is also used to resolve an unknown multidimensional property reference (to get the value of a property) because that syntax is identical to a method call.
• method %OnNew(initvalue As %DynamicObject) as %Status
This callback method is invoked by the %New method to provide notification that a new instance of an object is being created.

If this method returns an error then the object will not be created.

It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:

Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.

• method GetValueAt(pPropertyPath As %String, pFormat As %String = "", Output pStatus As %Status) as %String
Return the value of the designated virtual property.
pPropertyPath contains a text expression representing the address within the document of the value of interest.
pFormat contains additional context that may be used to influence the form of the result value
If no value can be found matching pPropertyPath in the current document an empty string is returned and output argument pStatus returns status information explaining the failure
This is implemented by the document subclass.
• method ObjGet() as %DynamicObject
This is a Get accessor method for the Obj property.
• method ObjSet(pObj As %DynamicAbstractObject) as %Status
This is a Set accessor method for the Obj property.


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