|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.map.EntityInheritanceTree
public class EntityInheritanceTree
A tree structure representing inheritance hierarchy of an ObjEntity and its subentities.
| Field Summary | |
|---|---|
protected ObjEntity |
entity
|
protected Expression |
normalizedQualifier
|
protected java.util.Collection<EntityInheritanceTree> |
subentities
|
| Constructor Summary | |
|---|---|
EntityInheritanceTree(ObjEntity entity)
|
|
| Method Summary | |
|---|---|
void |
addChildNode(EntityInheritanceTree node)
|
java.util.Collection<ObjAttribute> |
allAttributes()
|
java.util.Collection<ObjRelationship> |
allRelationships()
|
java.util.Collection<ObjEntity> |
allSubEntities()
Returns a collection containing this inheritance tree node entity and all its subentities. |
protected void |
appendDeclaredAttributes(java.util.Collection<ObjAttribute> c)
|
protected void |
appendDeclaredRelationships(java.util.Collection<ObjRelationship> c)
|
ObjEntity |
entityMatchingRow(DataRow row)
Returns the deepest possible entity in the inheritance hierarchy that can be used to create objects from a given DataRow. |
java.util.Collection<EntityInheritanceTree> |
getChildren()
|
int |
getChildrenCount()
|
Expression |
getDbQualifier()
Returns entity qualifier expressed as DB path qualifier or null if entity has no qualifier. |
ObjEntity |
getEntity()
|
Expression |
qualifierForEntityAndSubclasses()
Returns a qualifier Expression that matches root entity of this tree and all its subentities. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ObjEntity entity
protected java.util.Collection<EntityInheritanceTree> subentities
protected Expression normalizedQualifier
| Constructor Detail |
|---|
public EntityInheritanceTree(ObjEntity entity)
| Method Detail |
|---|
public Expression qualifierForEntityAndSubclasses()
public ObjEntity entityMatchingRow(DataRow row)
public Expression getDbQualifier()
public void addChildNode(EntityInheritanceTree node)
public int getChildrenCount()
public java.util.Collection<EntityInheritanceTree> getChildren()
public ObjEntity getEntity()
public java.util.Collection<ObjEntity> allSubEntities()
public java.util.Collection<ObjAttribute> allAttributes()
public java.util.Collection<ObjRelationship> allRelationships()
protected void appendDeclaredAttributes(java.util.Collection<ObjAttribute> c)
protected void appendDeclaredRelationships(java.util.Collection<ObjRelationship> c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||