|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.io.datastore.sql.transaction.delete.TableGraph
class TableGraph
Represents a operation on the relational (table) level. Contains explicit information on all table rows to be removed from the database and their foreign key references.
FeatureGraph
Constructor Summary | |
---|---|
TableGraph(FeatureGraph featureGraph,
DeleteHandler handler)
Creates a new DeleteGraph instance from the given FeatureGraph . |
Method Summary | |
---|---|
(package private) TableNode |
addNode(FeatureId fid)
|
(package private) TableNode |
addNode(String table,
Collection<KeyColumn> keyColumns)
|
(package private) TableNode |
findNode(FeatureId fid)
Returns the TableNode that represents the specified feature instance. |
(package private) TableNode |
findNode(String table,
Collection<KeyColumn> keyColumns)
|
(package private) TableNode |
findNode(TableNode newNode)
|
(package private) int |
getDeletableRootFeatureCount()
|
(package private) List<TableNode> |
getNodesInTopologicalOrder()
Returns the nodes of the graph in topological order, i.e. they may be deleted in that order without violating any foreign key constraints. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
TableGraph(FeatureGraph featureGraph, DeleteHandler handler) throws DatastoreException
DeleteGraph
instance from the given FeatureGraph
.
featureGraph
- handler
-
DatastoreException
Method Detail |
---|
int getDeletableRootFeatureCount()
TableNode findNode(FeatureId fid)
TableNode
that represents the specified feature instance.
fid
- FeatureId of the feature instance
TableNode findNode(TableNode newNode)
TableNode findNode(String table, Collection<KeyColumn> keyColumns)
TableNode addNode(FeatureId fid)
TableNode addNode(String table, Collection<KeyColumn> keyColumns)
List<TableNode> getNodesInTopologicalOrder()
NOTE: If the foreign key constraints constitute a cycle, no topological order is possible and
a RuntimeException
is thrown.
RuntimeException
- if no topological order is possible, i.e. if there is a cyclepublic String toString()
toString
in class Object
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net