com.im.df.api.ddl
Interface DFDataTree
- All Superinterfaces:
- DFItem, DFScriptParent, PropertiesEditingConfigurable
public interface DFDataTree
- extends DFScriptParent
Interface representing data tree. Data tree is a basic tree style sub-graph of the whole
schema's entity-relationships generic graph. DataTree is oriented graph and doesn't allow
to add cycles. DataTree always contains root vertex and zero or more edges going to next
vertexes. Each DFDataTree.Vertex represents one DFEntity and each DFDataTree.Edge
represents some DFRelationship.Direction.
It is possible to look at edges as a relation between master and detail entity (table).
|
Nested Class Summary |
static interface |
DFDataTree.Edge
This object represents an edge in datatree graph. |
static interface |
DFDataTree.Vertex
The Vertex in data tree graph. |
PROP_VIEWS
static final String PROP_VIEWS
- See Also:
- Constant Field Values
PROP_QUERIES
static final String PROP_QUERIES
- See Also:
- Constant Field Values
getRootVertex
DFDataTree.Vertex getRootVertex()
- Returns:
- The root vertex of this DFDataTree. Never return
null
as the root vertex is always defined.
getViews
DFContainer<DFView> getViews()
- Returns:
- The container of
DFViews which are based on this datatree. The Vertex object
is immutable, it cannot be changed once it's created. Only new edges can be added.
getQueries
DFContainer<DFQuery> getQueries()
- Returns:
- The container of persistent
DFQuerys.
getHandle
DFItem.Handle<DFDataTree> getHandle()
- Description copied from interface:
DFItem
- Returns a handle to the Item. The handle uniquely identifies the Item,
even though the schema data may be copied or otherwise replicated. Use
the Handle instead of DFItem.getId() when registering an Item in collections
that extend beyond the DFItem's parent Schema.
- Specified by:
getHandle in interface DFItem
- Returns:
- The handle to the DFItem.
getDefaultResultSet
DFResultSet getDefaultResultSet(boolean showAll,
DFEnvironmentRO env)
- Get a default DFResultSet for the given DFDataTree. This method just delegates the call to
DFSchemaDataProvider.getDefaultResultSet(DFDataTree, boolean, DFEnvironmentRO).
- Parameters:
showAll - If the result set is not initialized yet then: loads all rows if true otherwise
default result set is returned empty. If result set was already created before then this param is ignoredenv - The environment
- Returns:
- The instance of result set for this datatree
getSchema
DFSchema getSchema()
- Get owner of this datatree
- Specified by:
getSchema in interface DFScriptParent
- Returns:
- schema which owns this datatree