| 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.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. | 
| 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. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | EJBQLDbPathTranslator. processTerminatingRelationship(DbRelationship relationship) | 
| Modifier and Type | Field and Description | 
|---|---|
| protected DbRelationship | DataObjectMatchTranslator. relationship | 
| Modifier and Type | Method and Description | 
|---|---|
| DbRelationship | DataObjectMatchTranslator. getRelationship() | 
| DbRelationship | JoinTreeNode. getRelationship() | 
| Modifier and Type | Method and 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. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected Map<DbEntity,List<DbRelationship>> | AshwoodEntitySorter. reflexiveDbEntities | 
| Modifier and Type | Method and Description | 
|---|---|
| T | BaseConfigurationNodeVisitor. visitDbRelationship(DbRelationship relationship) | 
| T | ConfigurationNodeVisitor. visitDbRelationship(DbRelationship relationship) | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | HSQLDBAdapter. createFkConstraint(DbRelationship rel)Adds an ADD CONSTRAINT clause to a relationship constraint. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | OpenBaseAdapter. createFkConstraint(DbRelationship rel)Returns a SQL string that can be used to create a foreign key constraint
 for the relationship. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | SQLiteAdapter. createFkConstraint(DbRelationship rel) | 
| Modifier and Type | Method and Description | 
|---|---|
| List<DbRelationship> | EJBQLCompiledExpression. getIncomingRelationships(String identifier)Returns a collection of relationships that joins identifier with a parent entity. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected DbRelationship | DbJoin. relationship | 
| Modifier and Type | Field and Description | 
|---|---|
| protected List<DbRelationship> | ObjRelationship. dbRelationships | 
| 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 | DbEntity. getRelationship(String relName) | 
| DbRelationship | DbRelationship. getReverseRelationship()Returns DbRelationship that is the opposite of this 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. | 
| 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
  dbRelationshipparameter. | 
| void | ObjRelationship. removeDbRelationship(DbRelationship dbRel)Removes the relationship  dbRelfrom the list of
 relationships. | 
| void | DbJoin. setRelationship(DbRelationship relationship) | 
| Constructor and Description | 
|---|
| DbJoin(DbRelationship relationship) | 
| DbJoin(DbRelationship relationship,
      String sourceName,
      String targetName) | 
Copyright © 2001–2023 Apache Cayenne. All rights reserved.