IMetabaseObjectInstance.Flush

Syntax

Flush;

Description

The Flush method flushes cache of the repository objects instance.

Comments

Use of this method increases productivity when working with instances of the object opened by the specified parameter.

Example

Executing the example requires that the repository contains a parametric table dictionary with the OBJ_TBL_DICT identifier. The first parameter of this dictionary must be of real type.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    Mb: IMetabase;
    Obj: IMetabaseObject;
    ParamVals: IMetabaseObjectParamValues;
    ObjI: IMetabaseObjectInstance;
Begin
    Mb := MetabaseClass.Active;
    Obj := Mb.ItemById("OBJ_TBL_DICT").Bind;
    ParamVals := Obj.Params.CreateEmptyValues;
    ParamVals.Item(0).Value := 66;
    ObjI := Obj.Open(ParamVals);
    ObjI.Flush;
End Sub UserProc;

After executing the example the table dictionary cache is flushed only by the first parameter.

See also:

IMetabaseObjectInstance