Package org.apache.cayenne.map
Class EntityInheritanceTree
java.lang.Object
org.apache.cayenne.map.EntityInheritanceTree
A tree structure representing inheritance hierarchy of an ObjEntity and its
subentities.
- Since:
- 1.1
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ObjEntity
protected Expression
protected EntityInheritanceTree
protected Collection
<EntityInheritanceTree> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns a collection containing this inheritance tree node entity and all its subentities.protected void
protected void
entityMatchingRow
(DataRow row) Returns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow.int
Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.Returns a qualifier Expression that matches root entity of this tree and all its subentities.
-
Field Details
-
entity
-
parent
-
subentities
-
normalizedQualifier
-
-
Constructor Details
-
EntityInheritanceTree
-
-
Method Details
-
qualifierForEntityAndSubclasses
Returns a qualifier Expression that matches root entity of this tree and all its subentities. -
entityMatchingRow
Returns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow. -
getDbQualifier
Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier.- Since:
- 3.0
-
addChildNode
-
getChildrenCount
public int getChildrenCount() -
getChildren
-
getEntity
-
allSubEntities
Returns a collection containing this inheritance tree node entity and all its subentities.- Since:
- 3.0
-
allAttributes
-
allRelationships
-
appendDeclaredAttributes
-
appendDeclaredRelationships
-