Skip to main content

%pkg.isc.rest.abstractSingleton

abstract persistent class %pkg.isc.rest.abstractSingleton extends %Library.Persistent, %pkg.isc.json.adaptor

SQL Table Name: %pkg_isc_rest.abstractSingleton

Base abstract class for any singleton persistent class to extend to be used as part of %pkg.isc.rest.model.singleton. @API.Extensible

Property Inventory

Method Inventory

Properties

property Classname as %Dictionary.Classname (%JSONINCLUDE = "NONE") [ Final , InitialExpression = $ClassName() , Required , ReadOnly ];
Read only property to store the class name which serves as the IdKey of the singleton record.
Property methods: ClassnameGet(), ClassnameIsValid()

Methods

final classmethod GetSingletonRecord(pConcurrency As %Integer = -1, pSaveFirstInstance As %Boolean = 0) as %pkg.isc.rest.abstractSingleton
Returns the singleton record. If this is the singleton doesn't exist, will create a new singleton record.
pConcurrency specifies the concurrency argument to for %OpenId(). By default, uses DEFAULTCONCURRENCY
pSaveFirstInstance if set to 1, will then save the first instance of the singleton so as to make sure the storage global exists. By default it will only return and not save the singleton.

Indexes

index (IdKey on Classname) [IdKey, Type = key];
Index methods: IdKeyCheck(), IdKeyDelete(), IdKeyExists(), IdKeyOpen(), IdKeySQLCheckUnique(), IdKeySQLExists(), IdKeySQLFindPKeyByConstraint(), IdKeySQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab