# Uses of Class
org.apache.cayenne.map.Relationship

Packages that use Relationship
Package
Description
org.apache.cayenne.map
Contains O/R mapping classes that store relational database metadata information and map it to Java classes.
org.apache.cayenne.map.event

- ## Uses of Relationship in org.apache.cayenne.map

  Classes in org.apache.cayenne.map with type parameters of type Relationship
  Modifier and Type
  Class
  Description
  `class`
  `Attribute<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  Defines a property descriptor that is a part of an Entity.
  `class`
  `Entity<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  An Entity is an abstract descriptor for an entity mapping concept.
  `interface`
  `PathComponent<A extends Attribute,R extends Relationship>`
  A component in a path chain.
  `class`
  `Relationship<E extends Entity<E,A,R>,A extends Attribute<E,A,R>,R extends Relationship<E,A,R>>`
  Defines a relationship between two entities.
  Subclasses of Relationship in org.apache.cayenne.map
  Modifier and Type
  Class
  Description
  `class`
  `DbRelationship`
  A DbRelationship is a descriptor of a database inter-table relationship based on one or more primary key/foreign key pairs.
  `class`
  `ObjRelationship`
  Describes an association between two Java classes mapped as source and target ObjEntity.
  Methods in org.apache.cayenne.map that return Relationship
  Modifier and Type
  Method
  Description
  `abstract Relationship<E,A,R>`
  Relationship.`getReverseRelationship()`
  Returns a "complimentary" relationship going in the opposite direction.

- ## Uses of Relationship in org.apache.cayenne.map.event

  Fields in org.apache.cayenne.map.event declared as Relationship
  Modifier and Type
  Field
  Description
  `protected Relationship<?,?,?>`
  RelationshipEvent.`relationship`
  Methods in org.apache.cayenne.map.event that return Relationship
  Modifier and Type
  Method
  Description
  `Relationship<?,?,?>`
  RelationshipEvent.`getRelationship()`
  Returns relationship associated with this event.
  Methods in org.apache.cayenne.map.event with parameters of type Relationship
  Modifier and Type
  Method
  Description
  `void`
  RelationshipEvent.`setRelationship(Relationship<?,?,?> relationship)`
  Sets relationship associated with this event.
  Constructors in org.apache.cayenne.map.event with parameters of type Relationship
  Modifier
  Constructor
  Description
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity)`
  Creates a Relationship change event.
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity, int id)`
  Creates a Relationship event of a specified type.
  ``
  `RelationshipEvent(Object src, Relationship<?,?,?> rel, Entity<?,?,?> entity, String oldName)`
  Creates a Relationship name change event.