Uses of Class
org.apache.cayenne.map.DbRelationship
Package
Description
Contains persistence APIs directly accessible by users.
Contains database adapter API (DbAdapter) and its default implementation.
HSQLDB DbAdapter.
OpenBase DbAdapter.
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
-
Uses of DbRelationship in org.apache.cayenne
Modifier and TypeMethodDescriptionDataRow.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
Modifier and TypeMethodDescriptionprotected DbRelationship
EJBQLPathTranslator.chooseDbRelationship
(ObjRelationship relationship) Checks if the object relationship is flattened and then chooses the corresponding db relationship.Modifier and TypeMethodDescriptionprotected void
EJBQLDbPathTranslator.processTerminatingRelationship
(DbRelationship relationship) -
Uses of DbRelationship in org.apache.cayenne.ashwood
Modifier and TypeFieldDescriptionprotected Map
<DbEntity, List<DbRelationship>> AshwoodEntitySorter.reflexiveDbEntities
-
Uses of DbRelationship in org.apache.cayenne.configuration
Modifier and TypeMethodDescriptionBaseConfigurationNodeVisitor.visitDbRelationship
(DbRelationship relationship) ConfigurationNodeVisitor.visitDbRelationship
(DbRelationship relationship) EmptyConfigurationNodeVisitor.visitDbRelationship
(DbRelationship relationship) -
Uses of DbRelationship in org.apache.cayenne.configuration.xml
-
Uses of DbRelationship in org.apache.cayenne.dba
Modifier and TypeMethodDescriptionAutoAdapter.createFkConstraint
(DbRelationship rel) 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.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
Modifier and TypeMethodDescriptionHSQLDBAdapter.createFkConstraint
(DbRelationship rel) Adds an ADD CONSTRAINT clause to a relationship constraint. -
Uses of DbRelationship in org.apache.cayenne.dba.openbase
Modifier and TypeMethodDescriptionOpenBaseAdapter.createFkConstraint
(DbRelationship rel) Deprecated.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
-
Uses of DbRelationship in org.apache.cayenne.ejbql
Modifier and TypeMethodDescriptionEJBQLCompiledExpression.getIncomingRelationships
(String identifier) Returns a collection of relationships that joins identifier with a parent entity. -
Uses of DbRelationship in org.apache.cayenne.map
Modifier and TypeMethodDescriptionDbRelationship.createReverseRelationship()
Creates a new relationship with the same set of joins, but going in the opposite direction.DbEntity.getRelationship
(String relName) DbJoin.getRelationship()
DbRelationship.getReverseRelationship()
Returns DbRelationship that is the opposite of this DbRelationship.Modifier and TypeMethodDescriptionObjRelationship.getDbRelationships()
Returns an immutable list of underlying DbRelationships.DbEntity.getRelationshipMap()
DbEntity.getRelationships()
Returns a Collection of relationships from this entity or inherited.DbEntity.lastPathComponent
(Expression path, Map aliasMap) DbEntity.resolvePath
(Expression pathExp, Map aliasMap) Returns an Iterable instance over expression path components based on this entity.Modifier and TypeMethodDescriptionvoid
ObjRelationship.addDbRelationship
(DbRelationship dbRel) Appends a DbRelationship to the existing list of DbRelationships.ObjEntity.getRelationshipForDbRelationship
(DbRelationship dbRelationship) Returns ObjRelationship of this entity that maps todbRelationship
parameter.void
ObjRelationship.removeDbRelationship
(DbRelationship dbRel) Removes the relationshipdbRel
from the list of relationships.void
DbJoin.setRelationship
(DbRelationship relationship) ModifierConstructorDescriptionDbJoin
(DbRelationship relationship) DbJoin
(DbRelationship relationship, String sourceName, String targetName)