Home > Class Reference > %SYS namespace > %Studio.ProjectItem

%Studio.ProjectItem

persistent class %Studio.ProjectItem extends %Library.Persistent, %XML.Adaptor

SQL Table Name: %Studio.ProjectItem

Represents an item within a Studio Project.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property Name as %String (MAXLEN = 512, XMLNAME = "name", XMLPROJECTION = "attribute") [ Required ];
The name of the project item. For example if the class is called 'csp.loop' then this is 'csp.loop'. If the routine is 'TEST.INT' this is 'TEST.INT'.
Property methods: NameDisplayToLogical(), NameGet(), NameGetStored(), NameIdxCheck(), NameIdxDelete(), NameIdxExists(), NameIdxOpen(), NameIdxSQLCheckUnique(), NameIdxSQLExists(), NameIdxSQLFindPKeyByConstraint(), NameIdxSQLFindRowIDByConstraint(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
relationship Project as Project [ Required , Inverse = Items , Cardinality = parent ];
Property methods: ProjectCheck(), ProjectDelete(), ProjectGet(), ProjectGetObject(), ProjectGetObjectId(), ProjectGetStored(), ProjectGetSwizzled(), ProjectIsValid(), ProjectNewObject(), ProjectOnDelete(), ProjectRClose(), ProjectRExec(), ProjectRFetch(), ProjectRelate(), ProjectSQLCompute(), ProjectSet(), ProjectSetObject(), ProjectSetObjectId(), ProjectUnRelate(), ProjectUnSwizzle()
property Type as %String (XMLNAME = "type", XMLPROJECTION = "attribute") [ Required ];
Type of item in this project. Can be one of MAC, CSP, CLS, GBL, PKG, DIR or a user defined type. Note that MAC covers all routines types, such as INT, INC, BAS, MVB, MVI and MAC routines, the type of routine is put in the Name, such as 'TEST.INT'.
Property methods: TypeDisplayToLogical(), TypeGet(), TypeGetStored(), TypeIsValid(), TypeLogicalToDisplay(), TypeLogicalToOdbc(), TypeNormalize(), TypeSet()

Methods (Including Private)

private method %OnAddToSaveSet(depth As %Integer = 3, insert As %Integer = 0, callcount As %Integer = 0) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked when the current object is added to the SaveSet, either because %Save() was invoked on this object or on an object that references this object. %OnAddToSaveSet can modify the current object. It can also add other objects to the current SaveSet by invoking %AddToSaveSet or remove objects by calling %RemoveFromSaveSet.

If this method returns an error status then %Save() will fail and the transaction will be rolled back.

private method %OnBeforeSave(insert As %Boolean) as %Status [ Language = objectscript ]
Inherited description: This callback method is invoked by the %Save() method to provide notification that the object is being saved. It is called before any data is written to disk.

insert will be set to 1 if this object is being saved for the first time.

If this method returns an error then the call to %Save() will fail.

Indexes

index (NameIdx on Name,Type) [IdKey, Type = key];
Index methods: NameIdxCheck(), NameIdxDelete(), NameIdxExists(), NameIdxOpen(), NameIdxSQLCheckUnique(), NameIdxSQLExists(), NameIdxSQLFindPKeyByConstraint(), NameIdxSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods (Including Private)

Storage

Storage Model: Storage (%Studio.ProjectItem)

{%%PARENT}("Items")(ID)
=
%%CLASSNAME