IMetabaseUpdateContext.RegisterKeyChange

Syntax

RegisterKeyChange(ClassId: Integer; OldKey: Integer; NewKey: Integer; OldId: String; NewId: String; NewObject: IMetabaseObject);

Parameters

ClassId. The identifier of the destination repository class, to which the update object refers.

OldKey. The key of the source repository object, to which the object refers before update.

NewKey. The key of the destination repository object, to which the object refers after update.

OldId. The identifier of the source repository object, to which the object refers before updating.

NewId. The identifier of the destination repository object, to which the object refers after update.

NewObject. The consumer repository object, to which the object refers after updating.

Description

The RegisterKeyChange method redetermines the key of the repository object, to which the update object refers.

Comments

The RegisterKeyChange method redetermines the object, to which the update object refers, by replacing keys.

If you specify a non-existing object as the NewObject parameter, the repository object is updated without reconfiguring links. If the repository does not contain the object with the specified key, the links are reconfigured by identifiers.

One of available values of the MetabaseObjectClass is specified as the value of the ClassId parameter.

Example

The method use is given in the example for IMetabaseUpdateContext.RegisterHierarchyChange.

See also:

IMetabaseUpdateContext