IMetabaseObjectInstance.Flush

Syntax

Flush;

Description

The Flush method clears cache of the repository objects instance.

Comments

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

Example

Executing the example requires that the repository contains a parameterized 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 cache of the table dictionary is cleared only by the first parameter.

See also:

IMetabaseObjectInstance