ObjectRelation

MCM module
ObjectRelation extension

ObjectRelation can be used to create relations between objects in the CHAOS database. The relation can optionally be annotated with metadata.

ObjectRelation/Set

Sets a relation between two Objects, optionally with metadata tied to the connection.

Parameters:
  • object1Guid – GUID of the first object of the relation
  • object2Guid – GUID of the second object of the relation
  • objectRelationTypeID – ID of the type of the relation
  • sequence (integer, optional) –
  • metadataGuid (optional) – GUID of the metadata
  • metadataSchemaGuid (optional) – the GUID of the MetadataSchema the metadata conforms to
  • languageCode – language of the metadata as a language code
  • metadataXml – metadata for the relation
Returns:

The number of affected rows in the database

Annotating the relation with metadata is optional and thus metadataXml and languageCode can be empty.

ObjectRelation/Delete

Delete a relation between two Objects.

Parameters:
  • object1Guid – GUID of the first object of the relation
  • object2Guid – GUID of the second object of the relation
  • objectRelationTypeID – ID of the type of the relation
Returns:

The number of affected rows in the database