public class EntityInheritanceTree extends Object
Modifier and Type | Field and Description |
---|---|
protected ObjEntity |
entity |
protected Expression |
normalizedQualifier |
protected Collection<EntityInheritanceTree> |
subentities |
Constructor and Description |
---|
EntityInheritanceTree(ObjEntity entity) |
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(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 void |
appendDeclaredAttributes(Collection<ObjAttribute> c) |
protected void |
appendDeclaredRelationships(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.
|
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.
|
protected ObjEntity entity
protected Collection<EntityInheritanceTree> subentities
protected Expression normalizedQualifier
public EntityInheritanceTree(ObjEntity entity)
public Expression qualifierForEntityAndSubclasses()
public ObjEntity entityMatchingRow(DataRow row)
public Expression getDbQualifier()
public void addChildNode(EntityInheritanceTree node)
public int getChildrenCount()
public Collection<EntityInheritanceTree> getChildren()
public ObjEntity getEntity()
public Collection<ObjEntity> allSubEntities()
public Collection<ObjAttribute> allAttributes()
public Collection<ObjRelationship> allRelationships()
protected void appendDeclaredAttributes(Collection<ObjAttribute> c)
protected void appendDeclaredRelationships(Collection<ObjRelationship> c)
Copyright © 2001–2014 Apache Cayenne. All rights reserved.