abstract persistent class %SYS.Namespace
extends %Persistent
classmethod Exists(NamespaceName As %String)
as %Boolean
classmethod GetGlobalDest(Namespace As %String = $zu(5), Global As %String = "^", Subscript As %String = "")
as %String
Returns the system^directory where ^[Namespace]Global(Subscript) is mapped to.
If Subscript is missing, it returns the location for ^[Namespace]Global.
If Global is missing, it returns the default global location for Namespace.
This API support multi-level subscripts mapping, for example, pass "abc",1,2 in Subscript will check
the destination of Gloal("abc",1,2).
If the system is the same as the local system, then system is set to "".
classmethod GetRoutineDest(Namespace As %String = $zu(5), Routine As %String = "", Type As %String = "INT")
as %String
Returns the system^directory where Routine is mapped to in this Namespace.
If Routine is missing, it returns the default routine location for Namespace.
The allowed types are: INC, INT, MAC and OBJ.
If the system is the same as the local system, then system is set to "".
classmethod ListAll(Output array)
as %Status
The ListAll method quickly returns a list of all the
namespaces in the current process.
The parameter array is a local array
name passed by reference. On return from ListAll, the subscripts
of the array parameter will be the namespace names of
the current process. Each subscripted entry in array
will contain the empty string.
Each explicit namespace is returned using the local namespace name as
the subscript string.
Each implicit namespace is returned using a subscript string that contains a
caret ^, followed by the system name, followed by another caret ^,
followed by the name of directory containing the database file. If
the implicit namespace is local then the system name is the empty string
and the subscript string starts with two adjacent carets ^^.
query List(Remote As %Boolean, DontConnect As %Boolean)
Selects
Nsp As %String, Status As %String, Remote As %Boolean
Returns a list of namespaces defined on the system.
Parameters:
Remote - 0/1 whether to return any remotely mapped namespaces or not.
DontConnect - 0/1 whether to connect to remote system or not if a connection
has not been made yet.
Return values:
Status - (0/1) Whether the namespace is available or not.
Remote - (0/1) Whether the namespace is mapped to a remote ECP system.