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

- Packages that use DbRelationship
  Package | Description
  --- | ---
  org.apache.cayenne | Contains persistence APIs directly accessible by users.
  org.apache.cayenne.access.translator.ejbql |
  org.apache.cayenne.access.translator.select |
  org.apache.cayenne.ashwood |
  org.apache.cayenne.configuration |
  org.apache.cayenne.configuration.xml |
  org.apache.cayenne.dba | Contains database adapter API (DbAdapter) and its default implementation.
  org.apache.cayenne.dba.hsqldb | HSQLDB DbAdapter.
  org.apache.cayenne.dba.openbase | OpenBase DbAdapter.
  org.apache.cayenne.dba.sqlite |
  org.apache.cayenne.ejbql |
  org.apache.cayenne.map | Contains O/R mapping classes that store relational database metadata information and map it to Java classes.

- - ### Uses of DbRelationship in org.apache.cayenne

    Methods in org.apache.cayenne with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `ObjectId` | DataRow.`createTargetObjectId​(String entityName, DbRelationship relationship)` | Returns an ObjectId of an object on the other side of the to-one relationship, for this DataRow representing a source of relationship.

  - ### Uses of DbRelationship in org.apache.cayenne.access.translator.ejbql

    Methods in org.apache.cayenne.access.translator.ejbql that return DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected DbRelationship` | EJBQLPathTranslator.`chooseDbRelationship​(ObjRelationship relationship)` | Checks if the object relationship is flattened and then chooses the corresponding db relationship.

    Methods in org.apache.cayenne.access.translator.ejbql with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected void` | EJBQLDbPathTranslator.`processTerminatingRelationship​(DbRelationship relationship)` |

  - ### Uses of DbRelationship in org.apache.cayenne.access.translator.select

    Fields in org.apache.cayenne.access.translator.select declared as DbRelationship
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected DbRelationship` | DataObjectMatchTranslator.`relationship` |

    Methods in org.apache.cayenne.access.translator.select that return DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `DbRelationship` | DataObjectMatchTranslator.`getRelationship()` |
    `DbRelationship` | JoinTreeNode.`getRelationship()` |

    Methods in org.apache.cayenne.access.translator.select with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | DefaultSelectTranslator.`dbRelationshipAdded​(DbRelationship relationship, JoinType joinType, String joinSplitAlias)` |
    `abstract void` | QueryAssembler.`dbRelationshipAdded​(DbRelationship relationship, JoinType joinType, String joinSplitAlias)` | Appends a join with given semantics to the query.
    `protected void` | QualifierTranslator.`processRelTermination​(DbRelationship rel, JoinType joinType, String joinSplitAlias)` |
    `protected void` | QueryAssemblerHelper.`processRelTermination​(DbRelationship rel, JoinType joinType, String joinSplitAlias)` | Handles case when a DB_NAME expression ends with relationship.
    `void` | DataObjectMatchTranslator.`setRelationship​(DbRelationship rel, String joinSplitAlias)` | Initializes itself to do translation of the match ending with a DbRelationship.

  - ### Uses of DbRelationship in org.apache.cayenne.ashwood

    Fields in org.apache.cayenne.ashwood with type parameters of type DbRelationship
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected Map<DbEntity,​List<DbRelationship>>` | AshwoodEntitySorter.`reflexiveDbEntities` |

  - ### Uses of DbRelationship in org.apache.cayenne.configuration

    Methods in org.apache.cayenne.configuration with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | BaseConfigurationNodeVisitor.`visitDbRelationship​(DbRelationship relationship)` |
    `T` | ConfigurationNodeVisitor.`visitDbRelationship​(DbRelationship relationship)` |
    `Void` | EmptyConfigurationNodeVisitor.`visitDbRelationship​(DbRelationship relationship)` |

  - ### Uses of DbRelationship in org.apache.cayenne.configuration.xml

    Methods in org.apache.cayenne.configuration.xml that return DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `DbRelationship` | DbRelationshipHandler.`getDbRelationship()` |

  - ### Uses of DbRelationship in org.apache.cayenne.dba

    Methods in org.apache.cayenne.dba with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | AutoAdapter.`createFkConstraint​(DbRelationship rel)` |
    `String` | DbAdapter.`createFkConstraint​(DbRelationship rel)` | Returns a SQL string that can be used to create a foreign key constraint for the relationship, or null if foreign keys are not supported.
    `String` | JdbcAdapter.`createFkConstraint​(DbRelationship rel)` | Returns a SQL string that can be used to create a foreign key constraint for the relationship.

  - ### Uses of DbRelationship in org.apache.cayenne.dba.hsqldb

    Methods in org.apache.cayenne.dba.hsqldb with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | HSQLDBAdapter.`createFkConstraint​(DbRelationship rel)` | Adds an ADD CONSTRAINT clause to a relationship constraint.

  - ### Uses of DbRelationship in org.apache.cayenne.dba.openbase

    Methods in org.apache.cayenne.dba.openbase with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | OpenBaseAdapter.`createFkConstraint​(DbRelationship rel)` | Returns a SQL string that can be used to create a foreign key constraint for the relationship.

  - ### Uses of DbRelationship in org.apache.cayenne.dba.sqlite

    Methods in org.apache.cayenne.dba.sqlite with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | SQLiteAdapter.`createFkConstraint​(DbRelationship rel)` |

  - ### Uses of DbRelationship in org.apache.cayenne.ejbql

    Methods in org.apache.cayenne.ejbql that return types with arguments of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<DbRelationship>` | EJBQLCompiledExpression.`getIncomingRelationships​(String identifier)` | Returns a collection of relationships that joins identifier with a parent entity.

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

    Fields in org.apache.cayenne.map declared as DbRelationship
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected DbRelationship` | DbJoin.`relationship` |

    Fields in org.apache.cayenne.map with type parameters of type DbRelationship
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected List<DbRelationship>` | ObjRelationship.`dbRelationships` |

    Methods in org.apache.cayenne.map that return DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `DbRelationship` | DbRelationship.`createReverseRelationship()` | Creates a new relationship with the same set of joins, but going in the opposite direction.
    `DbRelationship` | DbEntity.`getRelationship​(String relName)` |
    `DbRelationship` | DbJoin.`getRelationship()` |
    `DbRelationship` | DbRelationship.`getReverseRelationship()` | Returns DbRelationship that is the opposite of this DbRelationship.

    Methods in org.apache.cayenne.map that return types with arguments of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `List<DbRelationship>` | ObjRelationship.`getDbRelationships()` | Returns an immutable list of underlying DbRelationships.
    `Map<String,​DbRelationship>` | DbEntity.`getRelationshipMap()` |
    `Collection<DbRelationship>` | DbEntity.`getRelationships()` | Returns a Collection of relationships from this entity or inherited.
    `PathComponent<DbAttribute,​DbRelationship>` | DbEntity.`lastPathComponent​(Expression path, Map aliasMap)` |
    `Iterable<PathComponent<DbAttribute,​DbRelationship>>` | DbEntity.`resolvePath​(Expression pathExp, Map aliasMap)` | Returns an Iterable instance over expression path components based on this entity.

    Methods in org.apache.cayenne.map with parameters of type DbRelationship
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | ObjRelationship.`addDbRelationship​(DbRelationship dbRel)` | Appends a DbRelationship to the existing list of DbRelationships.
    `ObjRelationship` | ObjEntity.`getRelationshipForDbRelationship​(DbRelationship dbRelationship)` | Returns ObjRelationship of this entity that maps to `dbRelationship` parameter.
    `void` | ObjRelationship.`removeDbRelationship​(DbRelationship dbRel)` | Removes the relationship `dbRel` from the list of relationships.
    `void` | DbJoin.`setRelationship​(DbRelationship relationship)` |

    Constructors in org.apache.cayenne.map with parameters of type DbRelationship
    Constructor | Description
    --- | ---
    `DbJoin​(DbRelationship relationship)` |
    `DbJoin​(DbRelationship relationship, String sourceName, String targetName)` |