|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.sql.transaction.delete.FeatureGraph
public class FeatureGraph
Used to determine the structure of features and subfeatures that have to be deleted by a Delete
operation.
When features are selected for deletion, all of their descendant subfeatures will be deleted as well, except for those features that have superfeatures which are not descendants of the features to be deleted.
DeleteHandler
,
FeatureNode
Constructor Summary | |
---|---|
FeatureGraph(java.util.List<FeatureId> rootFids,
DeleteHandler handler)
Creates a new FeatureGraph instance for the given root FeatureId s and the specified
DeleteHandler . |
|
FeatureGraph(java.util.Set<FeatureId> rootFids,
LockHandler handler)
Creates a new FeatureGraph instance for the given root FeatureId s and the specified
LockHandler . |
Method Summary | |
---|---|
java.util.Set<FeatureId> |
getAllFids()
Returns the FeatureId s of all features contained in the graph. |
(package private) FeatureNode |
getNode(FeatureId fid)
Returns the FeatureNode that represents the feature with the given FeatureId . |
(package private) java.util.List<FeatureNode> |
getRootNodes()
Returns the FeatureNode s that represent all root features that have been targeted for deletion. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
FeatureGraph(java.util.List<FeatureId> rootFids, DeleteHandler handler) throws DatastoreException
FeatureGraph
instance for the given root FeatureId
s and the specified
DeleteHandler
.
rootFids
- ids of the feature instances to be deletedhandler
- associated DeleteHandler
DatastoreException
public FeatureGraph(java.util.Set<FeatureId> rootFids, LockHandler handler) throws DatastoreException
FeatureGraph
instance for the given root FeatureId
s and the specified
LockHandler
.
rootFids
- ids of the feature instances to be lockedhandler
- associated LockHandler
DatastoreException
Method Detail |
---|
public java.util.Set<FeatureId> getAllFids()
FeatureId
s of all features contained in the graph.
FeatureId
s of all features contained in the graphFeatureNode getNode(FeatureId fid)
FeatureNode
that represents the feature with the given FeatureId
.
fid
- id of the feature to look up
FeatureNode
if it exists in the graph, null otherwisejava.util.List<FeatureNode> getRootNodes()
FeatureNode
s that represent all root features that have been targeted for deletion.
FeatureNode
representing all root featurespublic java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org