## 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 | Contains classes that make up Cayenne ORM stack.
  org.apache.cayenne.access.jdbc | Contains classes that handle JDBC interactions.
  org.apache.cayenne.access.trans | Provides translators for Cayenne queries.
  org.apache.cayenne.ashwood |
  org.apache.cayenne.configuration |
  org.apache.cayenne.dba | Contains database adapter API (DbAdapter) and its default implementation.
  org.apache.cayenne.dba.hsqldb | HSQLDB DbAdapter.
  org.apache.cayenne.dba.ingres |
  org.apache.cayenne.dba.mysql | MySQL 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.
  org.apache.cayenne.map.naming |
  org.apache.cayenne.merge |
  org.apache.cayenne.util | General utility classes.

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

    Methods in org.apache.cayenne with parameters of type DbRelationship
    Modifier and Type | Method and 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

    Methods in org.apache.cayenne.access with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `protected void` | DbLoader.`postprocessMasterDbRelationship(DbRelationship relationship, ExportedKey key)` Detects correct relationship multiplicity and "to dep pk" flag.

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

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

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

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

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

    Methods in org.apache.cayenne.access.trans with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | QueryAssembler.`dbRelationshipAdded(DbRelationship relationship, JoinType joinType, String joinSplitAlias)` Appends a join with given semantics to the query.
    `void` | SelectTranslator.`dbRelationshipAdded(DbRelationship relationship, JoinType joinType, String joinSplitAlias)`
    `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 and 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 and Description
    --- | ---
    `T` | BaseConfigurationNodeVisitor.`visitDbRelationship(DbRelationship relationship)`
    `T` | ConfigurationNodeVisitor.`visitDbRelationship(DbRelationship relationship)`

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

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

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

    Methods in org.apache.cayenne.dba.ingres with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `MergerToken` | IngresMergerFactory.`createAddRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `MergerToken` | IngresMergerFactory.`createDropRelationshipToDb(DbEntity entity, DbRelationship rel)`

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

    Methods in org.apache.cayenne.dba.mysql with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `MergerToken` | MySQLMergerFactory.`createDropRelationshipToDb(DbEntity entity, DbRelationship rel)`

  - ### 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 and Description
    --- | ---
    `MergerToken` | OpenBaseMergerFactory.`createDropRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `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 and 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 and 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

    Subclasses of DbRelationship in org.apache.cayenne.map
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DbRelationshipDetected` A subclass of `DbRelationship` to hold some extra runtime information.

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

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

    Methods in org.apache.cayenne.map that return DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `DbRelationship` | DbRelationship.`createReverseRelationship()` Creates a new relationship with the same set of joins, but going in the opposite direction.
    `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 and Description
    --- | ---
    `List<DbRelationship>` | ObjRelationship.`getDbRelationships()` Returns an immutable list of underlying DbRelationships.
    `SortedMap<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 and 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 and Description
    `DbJoin(DbRelationship relationship)`
    `DbJoin(DbRelationship relationship, String sourceName, String targetName)`

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

    Methods in org.apache.cayenne.map.naming with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `String` | BasicNamingStrategy.`createObjRelationshipName(DbRelationship dbRel)`
    `String` | NamingStrategy.`createObjRelationshipName(DbRelationship dbRel)` Creates new name for Obj Relationship

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

    Methods in org.apache.cayenne.merge that return DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `DbRelationship` | AddRelationshipToDb.`getRelationship()`
    `DbRelationship` | AddRelationshipToModel.`getRelationship()`
    `DbRelationship` | DropRelationshipToDb.`getRelationship()`
    `DbRelationship` | DropRelationshipToModel.`getRelationship()`

    Methods in org.apache.cayenne.merge with parameters of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `MergerToken` | MergerFactory.`createAddRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `MergerToken` | MergerFactory.`createAddRelationshipToModel(DbEntity entity, DbRelationship rel)`
    `MergerToken` | MergerFactory.`createDropRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `MergerToken` | MergerFactory.`createDropRelationshipToModel(DbEntity entity, DbRelationship rel)`
    `void` | ModelMergeDelegate.`dbRelationshipAdded(DbRelationship rel)`
    `void` | ModelMergeDelegate.`dbRelationshipRemoved(DbRelationship rel)`
    `protected void` | AbstractToModelToken.`remove(MergerContext mergerContext, DbRelationship rel, boolean reverse)`

    Constructors in org.apache.cayenne.merge with parameters of type DbRelationship
    Constructor and Description
    `AddRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `AddRelationshipToModel(DbEntity entity, DbRelationship rel)`
    `DropRelationshipToDb(DbEntity entity, DbRelationship rel)`
    `DropRelationshipToModel(DbEntity entity, DbRelationship rel)`

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

    Methods in org.apache.cayenne.util that return types with arguments of type DbRelationship
    Modifier and Type | Method and Description
    --- | ---
    `protected List<DbRelationship>` | EntityMergeSupport.`getRelationshipsToAdd(ObjEntity objEntity)`

Copyright © 2001–2018 Apache Cayenne. All rights reserved.