Class Reference
%IPM.StudioDocument.Module
Server:appadmin-00044-deployment-6bf4cbc86d-9f4xc
Instance:IRIS
User:SuperUser
 
-
  [USER] >  [%IPM] >  [StudioDocument] >  [Module]
Private  Storage

stream class %IPM.StudioDocument.Module extends %IPM.StudioDocument.Abstract

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 11 1


Summary

Properties
%Location AtEnd Attributes Code CompileTime
Generated Id LastModified LineTerminator Locked
Name Size TimeStamp UpToDate

Methods
%AddToSaveSet %CheckUnique %ClassIsLatestVersion %ClassName
%ConstructClone %Delete %DeleteExtent %DeleteId
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Exists
%ExistsId %Extends %GetParameter %GetSwizzleObject
%Id %IsA %IsModified %IsNull
%KillExtent %LOBPrefetch %LocationSet %LockStream
%New %NormalizeObject %ObjectIsNull %ObjectModified
%ObjectSize %Oid %Open %OpenId
%OriginalNamespace %PackageName %ReleaseLock %Reload
%RemoveFromSaveSet %RollBack %Save %SerializeObject
%SetModified %UnlockStream %ValidateName %ValidateObject
AtEndGet AtEndSet Clear Compile
CompileDocument CompileTime CompileTimeGet CopyFrom
CopyFromAndSave Delete DeleteAttribute DeleteStream
Exists ExportToXML FindAt Flush
GetAttribute GetAttributeList GetOther GetPrevious
GetStreamId ImportFromXML ImportStream InputFromDevice
IsCharacter IsDefinedAttribute IsEnabled IsGenerated
IsMapped IsNull IsUpToDate ItemList
LastModifiedGet LineTerminatorSet ListClose ListExecute
ListFetch Load LocalizeDescription Lock
LockName MoveTo MoveToEnd NextAttribute
OnCompileDocument OnDelete OpenStream OutputToDevice
OutputToDeviceAt Read ReadLine ReadLineIntoStream
ReadSQL Rewind Save SaveAs
SaveStream Search SearchRegex SerializeToSyncSet
SetAttribute SetAttributeList SizeGet StreamOIDIsNull
SyncStreamIn TimeStamp TimeStampGet TranslateExportName
Unlock UnlockName UpToDateGet UpdatePersistentFromStream
Write WriteLine


Parameters

• parameter EXTENSION = ".ZPM";
• parameter INFOGLOBAL = "^IPM.StuDoc.Module";
• parameter STREAMCLASS = "%IPM.StudioDocument.ModuleStream";
Optional subclass of %IPM.StudioDocument.AbstractStream that stores code in a character stream.

Methods

• classmethod Delete(name As %String) as %Status
Delete the module definition name.
• classmethod Exists(name As %String) as %Boolean
Return 1 if the given document exists and 0 if it does not.
• method ExportToXML(flags As %String) as %Status
Export this document to the current device in XML format
• classmethod GetOther(Name As %String) as %String
Returns a comma-separated list of *individual* resources listed in the module manifest. This does not include packages or CSP/filesystem resources.
• method ImportFromXML(stream As %RegisteredObject, flags As %String) as %Status
Import from the stream in XML format
• classmethod ImportStream(pName As %String, pStream As %GlobalCharacterStream) as %Status
Save the module definition document from stream to database.
• method Load() as %Status
Load the module definition Name into the stream Code
• method OnCompileDocument(ByRef qstruct As %String) as %Status
• method Save() as %Status
Save the module definition document.
• classmethod TimeStamp(name As %String) as %TimeStamp [ SQLProc = ]
Return the timestamp of schema category 'name' in %TimeStamp format, i.e. $zdatetime($horolog,3). This is used to determine if the category has been updated on the server and so needs reloading into Studio. So the format should be $zdatetime($horolog,3), or "" if the category does not exist.
• classmethod UpdatePersistentFromStream(pStream As %IPM.StudioDocument.ModuleStream, Output pModule As %IPM.Storage.Module) as %Status

Queries

• query ItemList()
Selects name As %String, modified As %TimeStamp
SQL Query :
select Name, LastModifiedTimestamp from %IPM_StudioDocument.ModuleStream
union
select Name, LastModifiedTimestamp from %IPM_Storage.ModuleItem
where Name not in (select Name from %IPM_StudioDocument.ModuleStream)
Subclasses must override


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