Skip to main content

Ens.SourceControl.DataDocument

stream class Ens.SourceControl.DataDocument extends %Studio.AbstractDocument

Used to map Interoperability tables to abstract documents. Each abstract document with name .SDD represents a persistent Interoperability class. Make sure the global @..#GLOBAL@(..#SUBSCRIPT,,"time") is set to the up-to-date timestamp. If you want to group data by a certain property, set @..#GLOBAL@(..#SUBSCRIPT,,"grouping") to the property name, so you will get documents with name in format -.SDD.

Method Inventory

Parameters

parameter EXTENSION = .SDD;
SourceControl Data Document
parameter GLOBAL = ^Ens.Configuration;
Global location where the abstract document information, including timestamps, is stored.
parameter GROUPDELIMITER = -;

Methods

classmethod CompileTime(pName As %String) as %TimeStamp
Return the compile time of routine 'pName' in %TimeStamp format. The format should be $zdatetime($horolog,3), or "" if the routine does not exist.
classmethod Exists(pName As %String) as %Boolean
Return 1 if time is defined for the class (e.g. Ens.Config.DefaultSettings).
method ExportToXML(flags As %String) as %Status
Export this document to the current device in XML format
classmethod GetGrouping(className As %String) as %TimeStamp
classmethod GetTimestamp(className As %String) as %TimeStamp
method ImportFromXML(stream As %RegisteredObject, flags As %String) as %Status
Import from the stream in XML format
classmethod IsMapped(name As %String, ByRef sourcedb As %String) as %Boolean
Return true if this is mapped from a database other than the default routine database and zero otherwise. Also set the source database in sourcedb.
classmethod ListClose(ByRef qHandle As %Binary) as %Status
classmethod ListExecute(ByRef qHandle As %Binary, Directory As %String = "", Flat As %Boolean = "", System As %Boolean = "") as %Status
classmethod ListFetch(ByRef qHandle As %Binary, ByRef Row As %List, ByRef AtEnd As %Integer = 0) as %Status
method Load() as %Status
Load the table data into the stream ..Code
method Lock(flags As %String) as %Status
Lock the current document. If it fails then return a status code of the error, otherise return $$$OK
classmethod LockName(name As %String) as %Status
Lock a document by name.
method Save() as %Status
Inherited description: Save the routine stored in Code
classmethod SetGrouping(className As %String, grouping As %String)
classmethod TimeStamp(pName As %String) as %TimeStamp
Return the timestamp of text document 'pName' in %TimeStamp format, i.e. $zdatetime($horolog,3). This is used to determine if the document 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.
method Unlock(flags As %String) as %Status
Unlock the current document.
classmethod UnlockName(name As %String) as %Status
Unlock a document by name.
classmethod UpdateTimestamp(className As %String)

Queries

query List(Directory As %String, Flat As %Boolean, System As %Boolean)
Selects name As %String, modified As %TimeStamp, size As %Integer, directory As %String

Inherited Members

Inherited Properties

Inherited Methods

Subclasses

FeedbackOpens in a new tab