Package | Description |
---|---|
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 |
Modifier and Type | Interface and Description |
---|---|
interface |
PathComponent<T extends Attribute,U extends Relationship>
A component in a path chain.
|
Modifier and Type | Class and Description |
---|---|
class |
DbRelationship
A DbRelationship is a descriptor of a database inter-table relationship based
on one or more primary key/foreign key pairs.
|
class |
ObjRelationship
Describes an association between two Java classes mapped as source and target
ObjEntity.
|
Modifier and Type | Field and Description |
---|---|
protected SortedMap<String,Relationship> |
Entity.relationships |
Modifier and Type | Method and Description |
---|---|
<T extends Attribute,U extends Relationship> |
Entity.lastPathComponent(Expression path,
Map aliasMap)
Convenience method returning the last component in the path iterator.
|
abstract <T extends Attribute,U extends Relationship> |
Entity.resolvePath(Expression pathExp,
Map aliasMap)
Returns an Iterable over the path components with elements represented as
PathComponent instances, encapsulating a relationship, an attribute or a
subpath alias. |
Modifier and Type | Method and Description |
---|---|
Relationship |
Entity.getAnyRelationship(Entity targetEntity)
Returns a relationship that has a specified entity as a target.
|
Relationship |
Entity.getRelationship(String relName)
Returns relationship with name
relName . |
abstract Relationship |
Relationship.getReverseRelationship()
Returns a "complimentary" relationship going in the opposite direction.
|
Modifier and Type | Method and Description |
---|---|
SortedMap<String,? extends Relationship> |
Entity.getRelationshipMap()
Returns an unmodifiable map of relationships sorted by name.
|
Collection<? extends Relationship> |
Entity.getRelationships()
Returns an unmodifiable collection of Relationships that exist in this entity.
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.addRelationship(Relationship relationship)
Adds new relationship to the entity.
|
Modifier and Type | Field and Description |
---|---|
protected Relationship |
RelationshipEvent.relationship |
Modifier and Type | Method and Description |
---|---|
Relationship |
RelationshipEvent.getRelationship()
Returns relationship associated with this event.
|
Modifier and Type | Method and Description |
---|---|
void |
RelationshipEvent.setRelationship(Relationship relationship)
Sets relationship associated with this event.
|
Constructor and Description |
---|
RelationshipEvent(Object src,
Relationship rel,
Entity entity)
Creates a Relationship change event.
|
RelationshipEvent(Object src,
Relationship rel,
Entity entity,
int id)
Creates a Relationship event of a specified type.
|
RelationshipEvent(Object src,
Relationship rel,
Entity entity,
String oldName)
Creates a Relationship name change event.
|
Copyright © 2001–2023 Apache Cayenne. All rights reserved.