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 |
DbAttribute
A DbAttribute defines a descriptor for a single database table column.
|
class |
EmbeddedAttribute
An attribute of the ObjEntity that maps to an embeddable class.
|
class |
ObjAttribute
An ObjAttribute is a mapping descriptor of a Java class property.
|
Modifier and Type | Field and Description |
---|---|
protected SortedMap<String,Attribute> |
Entity.attributes |
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 |
---|---|
Attribute |
Entity.getAttribute(String attributeName)
Returns attribute with name
attributeName or null if no attribute
with this name exists. |
Modifier and Type | Method and Description |
---|---|
SortedMap<String,? extends Attribute> |
Entity.getAttributeMap()
Returns an unmodifiable sorted map of entity attributes.
|
Collection<? extends Attribute> |
Entity.getAttributes()
Returns an unmodifiable collection of entity attributes.
|
Modifier and Type | Method and Description |
---|---|
void |
Entity.addAttribute(Attribute attribute)
Adds new attribute to the entity, setting its parent entity to be this object.
|
void |
Entity.updateAttribute(Attribute attribute) |
Modifier and Type | Field and Description |
---|---|
protected Attribute |
AttributeEvent.attribute |
Modifier and Type | Method and Description |
---|---|
Attribute |
AttributeEvent.getAttribute()
Get attribute (obj or db).
|
Modifier and Type | Method and Description |
---|---|
void |
AttributeEvent.setAttribute(Attribute attribute)
Sets the attribute.
|
Constructor and Description |
---|
AttributeEvent(Object src,
Attribute attr,
Entity entity)
Creates a Attribute change event.
|
AttributeEvent(Object src,
Attribute attr,
Entity entity,
int id)
Creates a Attribute event of a specified type.
|
AttributeEvent(Object src,
Attribute attr,
Entity entity,
String oldName)
Creates a Attribute name change event.
|
Copyright © 2001–2023 Apache Cayenne. All rights reserved.