Home > Class Reference > %SYS namespace > %DeepSee.Session

%DeepSee.Session

class %DeepSee.Session extends %Library.RegisteredObject

This class provides the API for DeepSee sessions. An instance of this class represents the current session.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property sessionId as %String;
Id for this session.
Property methods: sessionIdDisplayToLogical(), sessionIdGet(), sessionIdIsValid(), sessionIdLogicalToDisplay(), sessionIdLogicalToOdbc(), sessionIdNormalize(), sessionIdSet()

Methods (Including Private)

classmethod %CreateSession(pSessionId As %String = "", Output pSC As %Status) as Session [ Language = objectscript ]
Create a new DeepSee session. If pSessionId is provided, then it used, otherwise $J is used.
method %EndSession() as %Status [ Language = objectscript ]
Terminate this DeepSee session and remove all definitions associated with it.
method %GetSessionId() as %Status [ Language = objectscript ]
Get the session ID for this session.
private method %OnClose() as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %Close() method to provide notification that the current object is being closed.

The return value of this method is ignored.

private method %OnNew() as %Status [ Language = objectscript ]
Inherited description: 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.

classmethod %ResumeSession(pSessionId As %String = "", Output pSC As %Status) as Session [ Language = objectscript ]
Resume a previously running session.
method %SuspendSession() as %Status [ Language = objectscript ]
Suspend the currently running session.

Inherited Members

Inherited Methods (Including Private)