IMetabaseUpdateContext.RegisterKeyChange

Fore Syntax

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

Fore.NET Syntax

RegisterKeyChange(ClassId: integer; OldKey: uinteger; NewKey: uinteger; OldId: string; NewId: string; NewObject: Prognoz.Platform.Interop.Metabase.IMetabaseObject);

Parameters

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

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

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

OldId. The identifier of the provider repository object on which the object refers before updating.

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

NewObject. The consumer repository object on which the object refers after updating.

Description

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

Comments

The RegisterKeyChange method overrides the object on 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 references are reconfigured by identifiers.

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

Fore and Fore.NET Examples

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

See also:

IMetabaseUpdateContext