deegree 2.5 (2011/06/29 09:44 build-8-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 java.lang.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(java.util.List<FeatureId> rootFids, DeleteHandler handler)
          Creates a new FeatureGraph instance for the given root FeatureIds and the specified DeleteHandler.
FeatureGraph(java.util.Set<FeatureId> rootFids, LockHandler handler)
          Creates a new FeatureGraph instance for the given root FeatureIds and the specified LockHandler.
 
Method Summary
 java.util.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)  java.util.List<FeatureNode> getRootNodes()
          Returns the FeatureNodes 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

FeatureGraph(java.util.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(java.util.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 java.util.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

java.util.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

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