|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Relationship | |
---|---|
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.event | |
org.apache.cayenne.util | General utility classes. |
Uses of Relationship in org.apache.cayenne.map |
---|
Classes in org.apache.cayenne.map with type parameters of type Relationship | |
---|---|
interface |
PathComponent<T extends Attribute,U extends Relationship>
A component in a path chain. |
Subclasses of Relationship in org.apache.cayenne.map | |
---|---|
class |
DbRelationship
A DbRelationship is a descriptor of a database inter-table relationship based on one or more primary key/foreign key pairs. |
class |
DbRelationshipDetected
A subclass of DbRelationship to hold some extra runtime information. |
class |
ObjRelationship
Describes an association between two Java classes mapped as source and target ObjEntity. |
Fields in org.apache.cayenne.map with type parameters of type Relationship | |
---|---|
protected java.util.SortedMap<java.lang.String,Relationship> |
Entity.relationships
|
Methods in org.apache.cayenne.map with type parameters of type Relationship | ||
---|---|---|
|
Entity.lastPathComponent(Expression path,
java.util.Map aliasMap)
Convenience method returning the last component in the path iterator. |
|
abstract
|
Entity.resolvePath(Expression pathExp,
java.util.Map aliasMap)
Returns an Iterable over the path components with elements represented as PathComponent instances, encapsulating a relationship, an attribute or a
subpath alias. |
Methods in org.apache.cayenne.map that return Relationship | |
---|---|
Relationship |
Entity.getAnyRelationship(Entity targetEntity)
Returns a relationship that has a specified entity as a target. |
Relationship |
Entity.getRelationship(java.lang.String relName)
Returns relationship with name relName . |
Relationship |
ObjEntity.getRelationship(java.lang.String name)
Returns a named Relationship that either belongs to this ObjEntity or is inherited. |
abstract Relationship |
Relationship.getReverseRelationship()
Returns a "complimentary" relationship going in the opposite direction. |
Methods in org.apache.cayenne.map that return types with arguments of type Relationship | |
---|---|
java.util.SortedMap<java.lang.String,? extends Relationship> |
Entity.getRelationshipMap()
Returns an unmodifiable map of relationships sorted by name. |
java.util.Collection<? extends Relationship> |
Entity.getRelationships()
Returns an unmodifiable collection of Relationships that exist in this entity. |
Methods in org.apache.cayenne.map with parameters of type Relationship | |
---|---|
void |
Entity.addRelationship(Relationship relationship)
Adds new relationship to the entity. |
Uses of Relationship in org.apache.cayenne.map.event |
---|
Fields in org.apache.cayenne.map.event declared as Relationship | |
---|---|
protected Relationship |
RelationshipEvent.relationship
|
Methods in org.apache.cayenne.map.event that return Relationship | |
---|---|
Relationship |
RelationshipEvent.getRelationship()
Returns relationship associated with this event. |
Methods in org.apache.cayenne.map.event with parameters of type Relationship | |
---|---|
void |
RelationshipEvent.setRelationship(Relationship relationship)
Sets relationship associated with this event. |
Constructors in org.apache.cayenne.map.event with parameters of type Relationship | |
---|---|
RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity)
Creates a Relationship change event. |
|
RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity,
int id)
Creates a Relationship event of a specified type. |
|
RelationshipEvent(java.lang.Object src,
Relationship rel,
Entity entity,
java.lang.String oldName)
Creates a Relationship name change event. |
Uses of Relationship in org.apache.cayenne.util |
---|
Methods in org.apache.cayenne.util that return Relationship | |
---|---|
static Relationship |
NamedObjectFactory.createRelationship(Entity srcEnt,
Entity targetEnt,
boolean toMany)
Creates a relationship using an appropriate factory class. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |