org.apache.cayenne.map
Class EntityInheritanceTree
java.lang.Object
org.apache.cayenne.map.EntityInheritanceTree
public class EntityInheritanceTree
- extends Object
A tree structure representing inheritance hierarchy
of an ObjEntity and its subentities.
- Since:
- 1.1
- Author:
- Andrus Adamchik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entity
protected ObjEntity entity
subentities
protected Collection subentities
normalizedQualifier
protected Expression normalizedQualifier
EntityInheritanceTree
public EntityInheritanceTree(ObjEntity entity)
qualifierForEntityAndSubclasses
public Expression qualifierForEntityAndSubclasses()
- Returns a qualifier Expression that matches root entity
of this tree and all its subentities.
entityMatchingRow
public ObjEntity entityMatchingRow(DataRow row)
- Returns the deepest possible entity in the inheritance hierarchy
that can be used to create objects from a given DataRow.
addChildNode
public void addChildNode(EntityInheritanceTree node)
getChildrenCount
public int getChildrenCount()
getChildren
public Collection getChildren()
getEntity
public ObjEntity getEntity()
allAttributes
public Collection allAttributes()
allRelationships
public Collection allRelationships()
appendDeclaredAttributes
protected void appendDeclaredAttributes(Collection c)
appendDeclaredRelationships
protected void appendDeclaredRelationships(Collection c)
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.