Class Reference
IRIS for UNIX 2019.4
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%SYSTEM] >  [Context] >  [DBMSSession]
Private  Storage   

class %SYSTEM.Context.DBMSSession extends %SystemBase

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 21


Summary

Properties
context

Methods
CLEAR_ALL_CONTEXT CLEAR_CONTEXT CLEAR_IDENTIFIER CLOSE_DATABASE_LINK
FREE_UNUSED_USER_MEMORY IS_ROLE_ENABLED IS_SESSION_ALIVE LIST_CONTEXT
RESET_PACKAGE SESSION_TRACE_DISABLE SESSION_TRACE_ENABLE SET_CONTEXT
SET_IDENTIFIER SET_NLS SET_ROLE SET_SQL_TRACE
SWITCH_CURRENT_CONSUMER_GROUP SYS_CONTEXT UNIQUE_SESSION_ID getContext
setContext


Properties

• property context as %RawString [ MultiDimensional ];

Methods

• classmethod CLEAR_ALL_CONTEXT() [ SQLProc = CLEAR_ALL_CONTEXT ]
Clears all context information
• classmethod CLEAR_CONTEXT() [ SQLProc = CLEAR_CONTEXT ]
Clears the context
• classmethod CLEAR_IDENTIFIER() [ SQLProc = CLEAR_IDENTIFIER ]
Clears the identifier
• classmethod CLOSE_DATABASE_LINK() [ SQLProc = CLOSE_DATABASE_LINK ]
Closes database link
• classmethod FREE_UNUSED_USER_MEMORY() [ SQLProc = FREE_UNUSED_USER_MEMORY ]
Lets you reclaim unused memory after performing operations requiring large amounts of memory
• classmethod IS_ROLE_ENABLED() [ SQLProc = IS_ROLE_ENABLED ]
Determines if the named role is enabled for the session.
• classmethod IS_SESSION_ALIVE() [ SQLProc = IS_SESSION_ALIVE ]
Determines if the specified session is active
• classmethod LIST_CONTEXT() [ SQLProc = LIST_CONTEXT ]
Returns a list of active namespace and context for the current session
• classmethod RESET_PACKAGE() [ SQLProc = RESET_PACKAGE ]
De-instantiates all packages in the session
• classmethod SESSION_TRACE_DISABLE() [ SQLProc = SESSION_TRACE_DISABLE ]
Resets the session-level SQL trace for the session from which it was called.
• classmethod SESSION_TRACE_ENABLE() [ SQLProc = SESSION_TRACE_ENABLE ]
Enables session-level SQL trace for the invoking session
• classmethod SET_CONTEXT(namespace As %String(MAXLEN=30), attribute As %String(MAXLEN=30), value As %String(MAXLEN=4096)) as %String [ SQLProc = SET_CONTEXT ]
Sets or resets the value of a context attribute
• classmethod SET_IDENTIFIER() [ SQLProc = SET_IDENTIFIER ]
Sets the identifier
• classmethod SET_NLS() [ SQLProc = SET_NLS ]
Sets Globalization Support (NLS)
• classmethod SET_ROLE() [ SQLProc = SET_ROLE ]
Sets role
• classmethod SET_SQL_TRACE() [ SQLProc = SET_SQL_TRACE ]
Turns tracing on or off
• classmethod SWITCH_CURRENT_CONSUMER_GROUP() [ SQLProc = SWITCH_CURRENT_CONSUMER_GROUP ]
Facilitates changing the current resource consumer group of a user's current session
• classmethod SYS_CONTEXT(context As %String(MAXLEN=220), parameterName As %String(MAXLEN=220)) as %String [ SQLProc = SYS_CONTEXT ]
• classmethod UNIQUE_SESSION_ID() [ SQLProc = UNIQUE_SESSION_ID ]
Returns an identifier that is unique for all sessions currently connected to this database
• method getContext(context, parameterName) as %String
• method setContext(context, parameterName, value) as %String


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