# Uses of Class
com.ads.api.beans.bgm.Relationship

Packages that use Relationship
Package
Description
com.ads.api.beans.bgm
Contains Collection Classes,Java Bean Classes which are specific to Catalogs, SubCatalogs of Catalogs,Business Terms,Associated BusinessTerms, Associated TechnicalMetadata and Associated Documents related to BusinessTerms.
com.ads.api.util
Contains Utility Classes, Collection Classes, Java Bean Classes which are specific to System, Environment, Table, Column, Mappings, Subject, KeyValue Pairs, ROle, Business Glossary Catalog, Document etc...

- ## Uses of Relationship in com.ads.api.beans.bgm

  Methods in com.ads.api.beans.bgm that return Relationship
  Modifier and Type
  Method
  Description
  `Relationship`
  Association.`getRelationship()`
  Returns the relationship details of the association object.
  Methods in com.ads.api.beans.bgm with parameters of type Relationship
  Modifier and Type
  Method
  Description
  `void`
  Association.`setRelationship(Relationship relationship)`
  Sets the relationship details as specified to the association object.

- ## Uses of Relationship in com.ads.api.util

  Methods in com.ads.api.util that return Relationship
  Modifier and Type
  Method
  Description
  `Relationship`
  RelationshipUtil.`getRelationship(int sourceObjectTypeId, int targetObjectTypeId, String title)`
  Returns the relationship object for the specified sourceObjectTypeId, targetObjectTypeId and title.
  `Relationship`
  RelationshipUtil.`getRelationship(int sourceObjectTypeId, int targetObjectTypeId, String title, APIConstants.RelationshipType relationshipType)`
  Returns the relationship object for the specified sourceObjectTypeId, targetObjectTypeId, title and relationshipType.
  Methods in com.ads.api.util that return types with arguments of type Relationship
  Modifier and Type
  Method
  Description
  `List<Relationship>`
  RelationshipUtil.`getRelationships()`
  Returns the list of all relationship objects present in the association.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(int sourceObjectTypeId)`
  Returns the list of relationship objects for the specified sourceObjectTypeId.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(int sourceObjectTypeId, int targetObjectTypeId)`
  Returns the list of relationship objects for the specified sourceObjectTypeId and targetObjectTypeId.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(int sourceObjectTypeId, String title)`
  Returns the list of relationship object for the specified title and sourceObjectTypeId.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(int sourceObjectTypeId, String title, APIConstants.RelationshipType relationshipType)`
  Returns the list of relationship objects for the specified sourceObjectTypeId, title and relationshipType.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(APIConstants.RelationshipType relationshipType)`
  Returns the list of relationship objects for the specified relationshipType.
  `List<Relationship>`
  RelationshipUtil.`getRelationships(APIConstants.RelationshipType relationshipType, String title)`
  Returns the list relationship objects for the specified relationshipType and title.