deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.io.datastore.sql.transaction.delete
Class FeatureGraph

java.lang.Object
  extended by org.deegree.io.datastore.sql.transaction.delete.FeatureGraph

public class FeatureGraph
extends Object

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.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
DeleteHandler, FeatureNode

Constructor Summary
FeatureGraph(List<FeatureId> rootFids, DeleteHandler handler)
          Creates a new FeatureGraph instance for the given root FeatureIds and the specified DeleteHandler.
FeatureGraph(Set<FeatureId> rootFids, LockHandler handler)
          Creates a new FeatureGraph instance for the given root FeatureIds and the specified LockHandler.
 
Method Summary
 Set<FeatureId> getAllFids()
          Returns the FeatureIds 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)  List<FeatureNode> getRootNodes()
          Returns the FeatureNodes that represent all root features that have been targeted for deletion.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureGraph

FeatureGraph(List<FeatureId> rootFids,
             DeleteHandler handler)
       throws DatastoreException
Creates a new FeatureGraph instance for the given root FeatureIds and the specified DeleteHandler.

Parameters:
rootFids - ids of the feature instances to be deleted
handler - associated DeleteHandler
Throws:
DatastoreException

FeatureGraph

public FeatureGraph(Set<FeatureId> rootFids,
                    LockHandler handler)
             throws DatastoreException
Creates a new FeatureGraph instance for the given root FeatureIds and the specified LockHandler.

Parameters:
rootFids - ids of the feature instances to be locked
handler - associated LockHandler
Throws:
DatastoreException
Method Detail

getAllFids

public Set<FeatureId> getAllFids()
Returns the FeatureIds of all features contained in the graph.

Returns:
the FeatureIds of all features contained in the graph

getNode

FeatureNode getNode(FeatureId fid)
Returns the FeatureNode that represents the feature with the given FeatureId.

Parameters:
fid - id of the feature to look up
Returns:
the corresponding FeatureNode if it exists in the graph, null otherwise

getRootNodes

List<FeatureNode> getRootNodes()
Returns the FeatureNodes that represent all root features that have been targeted for deletion.

Returns:
FeatureNode representing all root features

toString

public String toString()
Overrides:
toString in class Object

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org