%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.ExtensibleProperty 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.
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
- %AddToSaveSet()
- %AddToSyncSet()
- %BuildDeferredIndices()
- %BuildIndices()
- %BuildIndicesAsync()
- %BuildIndicesAsyncResponse()
- %CheckConstraints()
- %CheckConstraintsForExtent()
- %ClassIsLatestVersion()
- %ClassName()
- %ComposeOid()
- %ConstructClone()
- %Delete()
- %DeleteExtent()
- %DeleteId()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Exists()
- %ExistsId()
- %Extends()
- %GUID()
- %GUIDSet()
- %GetLock()
- %GetParameter()
- %GetSwizzleObject()
- %Id()
- %IsA()
- %IsModified()
- %IsNull()
- %JSONExport()
- %JSONExportToStream()
- %JSONExportToString()
- %JSONImport()
- %JSONMappingInfo()
- %JSONNew()
- %KillExtent()
- %LockExtent()
- %LockId()
- %New()
- %NormalizeObject()
- %ObjectIsNull()
- %ObjectModified()
- %Oid()
- %OnBeforeAddToSync()
- %OnDeleteFinally()
- %OnDetermineClass()
- %OnOpenFinally()
- %OnSaveFinally()
- %Open()
- %OpenId()
- %OriginalNamespace()
- %PackageName()
- %PurgeIndices()
- %Reload()
- %RemoveFromSaveSet()
- %ResolveConcurrencyConflict()
- %RollBack()
- %Save()
- %SaveDirect()
- %SerializeObject()
- %SetModified()
- %SortBegin()
- %SortEnd()
- %SyncObjectIn()
- %SyncTransport()
- %UnlockExtent()
- %UnlockId()
- %ValidateObject()