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 [ Language = objectscript ]
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 [ Language = objectscript ]
This callback method does the actual work of loading values from the source object.
method %OnNewSource(Output pSC As %Status = $$$OK) as %RegisteredObject [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
method OnLoadModel(pSource As %RegisteredObject) as %Status [ Language = objectscript ]
method OnNewSource(Output pSC As %Status = $$$OK) as %RegisteredObject [ Language = objectscript ]
method OnOpenSource(pID As %String) as %RegisteredObject [ Language = objectscript ]
method OnSaveSource(pSource As %RegisteredObject) as %Status [ Language = objectscript ]
method OnStoreModel(pSource As %RegisteredObject) as %Status [ Language = objectscript ]

Inherited Members

Inherited Properties

Inherited Methods

Subclasses

Feedback