ICubeMetaUpdateEx.UpdateMode

Syntax

UpdateMode: CubeLoadClearMode;

Description

The UpdateMode property determines a mode of updating the existing time series database.

Comments

The property is relevant if the TargetRubricator property is specified, and the CopyData property is set to True. The UpdateMode property is set to CubeLoadClearMode.Default_ by default; data and metadata of all objects included to the copying object will be updated. By changing the UpdateMode property the user can change the mode of changing objects responsible for storing information in data series.

Example

Executing the example requires that the repository contains a time series database with the OBJ_RUBRICATOR identifier and an MDM repository with the MDM identifier, in which the required dictionaries are stored. Also, there is a rub_v1.zip file, in which the time series database is saved, and based on which the OBJ_RUBRICATOR time series will be updated.

Sub UserProc;
Var
    MB: IMetabase;
    RubUpdateEx: ICubeMetaUpdateEx;
Begin
    MB := MetabaseClass.Active;
    RubUpdateEx := New CubeMetaUpdateClass.Create;
    RubUpdateEx.Metabase := MB;
    RubUpdateEx.TargetRubricator := MB.ItemById("OBJ_RUBRICATOR").Edit As IRubricator;
    RubUpdateEx.RdsDatabase := MB.ItemById("RDS").Bind As IRdsDatabase;
    RubUpdateEx.CopyData := True;
    RubUpdateEx.CopyExtraObjects := True;
    RubUpdateEx.UpdateMode := CubeLoadClearMode.MetadataOnly;
    RubUpdateEx.Load("c:\rub_v1.zip");
    RubUpdateEx.Apply(Null);
End Sub UserProc;

On executing the example the instance of the object that is used to copy time series databases will be created. By using this object after setting the parameters in correspondence with the information loaded from the file the metadata of the series in the OBJ_RUBRICATOR time series database will be updated.

See also:

ICubeMetaUpdateEx