Package 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
- 
Field SummaryFields Modifier and Type Field Description protected ObjEntityentityprotected ExpressionnormalizedQualifierprotected Collection<EntityInheritanceTree>subentities
- 
Constructor SummaryConstructors Constructor Description EntityInheritanceTree(ObjEntity entity)
- 
Method SummaryModifier and Type Method Description voidaddChildNode(EntityInheritanceTree node)Collection<ObjAttribute>allAttributes()Collection<ObjRelationship>allRelationships()Collection<ObjEntity>allSubEntities()Returns a collection containing this inheritance tree node entity and all its subentities.protected voidappendDeclaredAttributes(Collection<ObjAttribute> c)protected voidappendDeclaredRelationships(Collection<ObjRelationship> c)ObjEntityentityMatchingRow(DataRow row)Returns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow.Collection<EntityInheritanceTree>getChildren()intgetChildrenCount()ExpressiongetDbQualifier()Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.ObjEntitygetEntity()ExpressionqualifierForEntityAndSubclasses()Returns a qualifier Expression that matches root entity of this tree and all its subentities.
- 
Field Details- 
entity
- 
subentities
- 
normalizedQualifier
 
- 
- 
Constructor Details- 
EntityInheritanceTree
 
- 
- 
Method Details- 
qualifierForEntityAndSubclassesReturns a qualifier Expression that matches root entity of this tree and all its subentities.
- 
entityMatchingRowReturns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow.
- 
getDbQualifierReturns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.- Since:
- 3.0
 
- 
addChildNode
- 
getChildrenCountpublic int getChildrenCount()
- 
getChildren
- 
getEntity
- 
allSubEntitiesReturns a collection containing this inheritance tree node entity and all its subentities.- Since:
- 3.0
 
- 
allAttributes
- 
allRelationships
- 
appendDeclaredAttributes
- 
appendDeclaredRelationships
 
-