RelationshipCol Object

Meta Data Services Programming

Meta Data Services Programming

RelationshipCol Object

A relationship collection is the set of relationships that are attached to a particular source repository object. All of the relationships in the collection must conform to the same relationship type.

When to Use

Use this object to manage the relationships that belong to a particular relationship collection. With this object, you can:

  • Get a count of the number of relationships in the collection.

  • Add and remove relationships to and from the collection.

  • If the collection is sequenced, place a relationship in a specific place in the collection sequence.

  • Retrieve a specific relationship or target object from the collection.

  • Refresh the cached image of the collection.

  • Obtain the type of the collection.
Properties
Property Description
Count The count of the number of items in the collection
Item Retrieves the specified relationship or target object from the collection
Source The source object for the relationship collection
Type The object identifier for the definition object of the collection

Methods
Method Description
Add Adds a relationship to the collection
Insert Inserts a relationship into a specific place in a sequenced collection
Move Moves a relationship from one place to another in a sequenced collection
Refresh Refreshes the cached image of the collection
Remove Removes a relationship from the collection

See Also

RepositoryObject Object