Uses of Class
org.apache.cayenne.map.ObjRelationship
Package
Description
Contains O/R mapping classes that store relational database
metadata information and map it to Java classes.
Defines standard queries supported by Cayenne and extension mechanism to create
custom queries.
General utility classes.
-
Uses of ObjRelationship 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.protected void
EJBQLPathTranslator.processTerminatingRelationship
(ObjRelationship relationship) -
Uses of ObjRelationship in org.apache.cayenne.ashwood
Modifier and TypeMethodDescriptionprotected Persistent
AshwoodEntitySorter.findReflexiveMaster
(Persistent object, ObjRelationship toOneRel, String targetEntityName) -
Uses of ObjRelationship in org.apache.cayenne.configuration
Modifier and TypeMethodDescriptionBaseConfigurationNodeVisitor.visitObjRelationship
(ObjRelationship relationship) ConfigurationNodeVisitor.visitObjRelationship
(ObjRelationship relationship) EmptyConfigurationNodeVisitor.visitObjRelationship
(ObjRelationship relationship) -
Uses of ObjRelationship in org.apache.cayenne.configuration.xml
-
Uses of ObjRelationship in org.apache.cayenne.map
Modifier and TypeMethodDescriptionObjRelationship.createReverseRelationship()
Creates a complimentary reverse relationship from target entity to the source entity.ObjRelationship.getClientRelationship()
Returns an ObjAttribute stripped of any server-side information, such as DbAttribute mapping.ObjEntity.getRelationship
(String name) Returns a named Relationship that either belongs to this ObjEntity or is inherited.ObjEntity.getRelationshipForDbRelationship
(DbRelationship dbRelationship) Returns ObjRelationship of this entity that maps todbRelationship
parameter.ObjRelationship.getReverseRelationship()
Returns a "complimentary" ObjRelationship going in the opposite direction.Modifier and TypeMethodDescriptionEntityInheritanceTree.allRelationships()
ObjEntity.getDeclaredRelationships()
Returns a Collection of all relationships that belong to this ObjEntity, excluding inherited attributes.ObjEntity.getRelationshipMap()
ObjEntity.getRelationships()
ObjEntity.lastPathComponent
(Expression path, Map aliasMap) ObjEntity.resolvePath
(Expression pathExp, Map aliasMap) Returns an Iterable instance over expression path components based on this entity.Modifier and TypeMethodDescriptionprotected void
EntityInheritanceTree.appendDeclaredRelationships
(Collection<ObjRelationship> c) -
Uses of ObjRelationship in org.apache.cayenne.query
Modifier and TypeFieldDescriptionprotected ObjRelationship
PrefetchSelectQuery.lastPrefetchHint
Stores the last ObjRelationship in the prefetch path.Modifier and TypeMethodDescriptionPrefetchSelectQuery.getLastPrefetchHint()
Returns last incoming ObjRelationship in the prefetch relationship chain.RelationshipQuery.getRelationship
(EntityResolver resolver) Returns a non-null relationship object for this query.Modifier and TypeMethodDescriptionvoid
PrefetchSelectQuery.setLastPrefetchHint
(ObjRelationship relationship) ModifierConstructorDescriptionPrefetchSelectQuery
(String prefetchPath, ObjRelationship lastPrefetchHint) Creates a new disjoint prefetch select query. -
Uses of ObjRelationship in org.apache.cayenne.reflect
Modifier and TypeMethodDescriptionArcProperty.getRelationship()
Returns a relationship associated with this arc.BaseArcProperty.getRelationship()
Modifier and TypeMethodDescriptionprotected Accessor
PersistentDescriptorFactory.createMapKeyAccessor
(ObjRelationship relationship, ClassDescriptor targetDescriptor) Creates an accessor to read a map key for a given relationship.protected abstract void
PersistentDescriptorFactory.createToManyCollectionProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract void
PersistentDescriptorFactory.createToManyListProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract void
PersistentDescriptorFactory.createToManyMapProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract void
PersistentDescriptorFactory.createToManySetProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected abstract void
PersistentDescriptorFactory.createToOneProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) -
Uses of ObjRelationship in org.apache.cayenne.reflect.generic
Modifier and TypeMethodDescriptionprotected void
DataObjectDescriptorFactory.createToManyCollectionProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
DataObjectDescriptorFactory.createToManyListProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
DataObjectDescriptorFactory.createToManyMapProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
DataObjectDescriptorFactory.createToManySetProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
DataObjectDescriptorFactory.createToOneProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) -
Uses of ObjRelationship in org.apache.cayenne.reflect.valueholder
Modifier and TypeMethodDescriptionprotected void
ValueHolderDescriptorFactory.createToManyCollectionProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
ValueHolderDescriptorFactory.createToManyListProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
ValueHolderDescriptorFactory.createToManyMapProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
ValueHolderDescriptorFactory.createToManySetProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) protected void
ValueHolderDescriptorFactory.createToOneProperty
(PersistentDescriptor descriptor, ObjRelationship relationship) -
Uses of ObjRelationship in org.apache.cayenne.util
Modifier and TypeMethodDescriptionvoid
DeleteRuleUpdater.objRelationshipAdded
(ObjRelationship rel) void
EntityMergeListener.objRelationshipAdded
(ObjRelationship rel) Invoked when a missing relationship in ObjEntity is completed from DbEntitystatic void
DeleteRuleUpdater.updateObjRelationship
(ObjRelationship rel) Updates delete rules for specified relationship