Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%DeepSee] >  [Sets] >  [ArraySetRepository]
Private  Storage   

This class is a simple implementation of ISeetRepository interface. Sets are stored as collection objects in a persitent class. This is suitable for sets of limited size (the limit is the same as for the number of items in an Array collection. This class cannot be used directly, user needs to subclass.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
4 13 1


Summary

Properties
Annotation AnnotationArray Name

Methods
%AddToSaveSet %AddToSyncSet %BuildIndices %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 %KillExtent
%LockExtent %LockId %New %NormalizeObject
%ObjectIsNull %ObjectModified %Oid %OnBeforeAddToSync
%OnDetermineClass %Open %OpenId %OriginalNamespace
%PackageName %PurgeIndices %Reload %RemoveFromSaveSet
%ResolveConcurrencyConflict %RollBack %Save %SaveDirect
%SerializeObject %SetModified %SortBegin %SortEnd
%SyncObjectIn %SyncTransport %UnlockExtent %UnlockId
%ValidateObject CreateSet DeleteById DeleteByName
GetById GetByName GetFilteredNames GetIdSet
GetNames IdExists NameExists SaveSet

Subclasses

Properties

• property Annotation as %Binary(MAXLEN="");
• property AnnotationArray as array of %List(STORAGEDEFAULT="list");
• property Name as %String(MAXLEN=127);

Methods

• classmethod CreateSet(set As %DeepSee.Sets.ISet, name As %String = "", ByRef status As %Status) as %RawString
Creates a new set. Throws an error if a set with the same name exists
• classmethod DeleteById(id As %RawString) as %Status
• classmethod DeleteByName(name As %String) as %Status
• classmethod GetById(id As %RawString) as %DeepSee.Sets.ISet
• classmethod GetByName(name As %String) as %DeepSee.Sets.ISet
• classmethod GetFilteredNames(key As %String, predicate As %String, ByRef status As %Status) as %DeepSee.Sets.ISet
This method returns a set of all the names satisfying the filter condition
• classmethod GetIdSet() as %DeepSee.Sets.ISet
This method returns a set consisting of all the IDs of saved sets
• classmethod GetNames() as %DeepSee.Sets.ISet
This method returns a set consisting of all the names of saved sets
• classmethod IdExists(id As %RawString) as %Boolean
• classmethod NameExists(name As %String) as %Boolean
• classmethod SaveSet(set As %DeepSee.Sets.ISet, name As %String = "", ByRef status As %Status) as %RawString
Saves a set with a given name. If necessary creates a new set. If a set with the same name exists then the existing set is deleted and a new created. This is functionaly equivalent to update.

This method returns an id for a saved set, if name is specified it should be unique. Empty names are covenient for automatically created sets, they should be retrived bi ids.


Indices

•index (NameIdx on Name) [Unique];


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