Skip to main content

EnsLib.ITK.Setup.UI.AbstractModel

abstract class EnsLib.ITK.Setup.UI.AbstractModel extends %ZEN.DataModel.ObjectDataModel

Method Inventory

Parameters

parameter EDITRESOURCE = %Ens_ITK:WRITE;
parameter RESOURCE = %Ens_ITK:READ;

Methods

classmethod %OnDeleteSource(pID As %String) as %Status
This callback method is called when the DataModel is deleted. If implemented, it is responsible for making the appropriate deletes against the data source.
method %OnLoadModel(pSource As %RegisteredObject) as %Status
This callback method does the actual work of loading values from the source object.
method %OnNewSource(Output pSC As %Status = $$$OK) as %RegisteredObject
This callback method is invoked when a new instance of DataModel is required. If implemented, it returns a new instance of the data source object used by the DataModel.
The default implementation returns the DataModel itself as the source object (this allows for simple DataModel classes that have no actual source object).
method %OnOpenSource(pID As %Library.String, pConcurrency As %Library.Integer = -1, Output pSC As %Library.Status = $$$OK) as %RegisteredObject
This callback method is invoked when a DataModel is loaded into memory. If implemented, it loads an instance of the data source object used by the DataModel.
The default implementation returns the DataModel itself as the source object (this allows for simple DataModel classes that have no actual source object).
method %OnSaveSource(pSource As %RegisteredObject) as %Status
This callback method is called when the DataModel is saved. If implemented, it is responsible for saving changes to the data source.
method %OnStoreModel(pSource As %RegisteredObject) as %Status
This callback method does the actual work of copying values from the DataModel to the data source.
The default implementation is an expression method.
classmethod OnDeleteSource(pID As %String) as %Status
method OnLoadModel(pSource As %RegisteredObject) as %Status
method OnNewSource(Output pSC As %Status = $$$OK) as %RegisteredObject
method OnOpenSource(pID As %String) as %RegisteredObject
method OnSaveSource(pSource As %RegisteredObject) as %Status
method OnStoreModel(pSource As %RegisteredObject) as %Status

Inherited Members

Inherited Properties

Inherited Methods

Subclasses

FeedbackOpens in a new tab