org.deegree_impl.services.wfs.protocol
Class WFSInsert_Impl

java.lang.Object
  extended byorg.deegree_impl.services.wfs.protocol.WFSInsert_Impl
All Implemented Interfaces:
WFSInsert, WFSOperation

class WFSInsert_Impl
extends java.lang.Object
implements WFSInsert

Defines the insert operation for the WFS.

-----------------------------------------------------

Version:
$Revision: 1.3 $ $Date: 2003/11/26 17:05:37 $
Author:
Katharina Lupp, Andreas Poth

Field Summary
private  java.util.ArrayList features
           
private  java.util.ArrayList featuretypes
           
private  java.lang.String handle
           
 
Fields inherited from interface org.deegree.services.wfs.protocol.WFSOperation
OPERATION_DELETE, OPERATION_INSERT, OPERATION_LOCK, OPERATION_QUERY, OPERATION_UPDATE
 
Constructor Summary
(package private) WFSInsert_Impl(GMLFeature[] features, java.lang.String handle)
          constructor initializing the class with the
 
Method Summary
 void addFeatures(GMLFeature features)
          adds the
 GMLFeature[] getFeatures()
          returns a list of the feature that should be inserted into the data store
 GMLFeature[] getFeatures(java.lang.String featureType)
          returns a list of the feature that belongs to the submitted feature type
 java.lang.String[] getFeatureTypes()
          returns the names of the feature types affected by the insertion.
 java.lang.String getHandle()
          the handle acts as an identifier for an operation
 void setFeatures(GMLFeature[] features)
          sets the
 void setHandle(java.lang.String handle)
          the handle acts as an identifier for an operation
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

features

private java.util.ArrayList features

featuretypes

private java.util.ArrayList featuretypes

handle

private java.lang.String handle
Constructor Detail

WFSInsert_Impl

WFSInsert_Impl(GMLFeature[] features,
               java.lang.String handle)
constructor initializing the class with the

Method Detail

getFeatures

public GMLFeature[] getFeatures(java.lang.String featureType)
returns a list of the feature that belongs to the submitted feature type

Specified by:
getFeatures in interface WFSInsert

getFeatures

public GMLFeature[] getFeatures()
returns a list of the feature that should be inserted into the data store

Specified by:
getFeatures in interface WFSInsert

addFeatures

public void addFeatures(GMLFeature features)
adds the


setFeatures

public void setFeatures(GMLFeature[] features)
sets the


getHandle

public java.lang.String getHandle()
the handle acts as an identifier for an operation

Specified by:
getHandle in interface WFSInsert

setHandle

public void setHandle(java.lang.String handle)
the handle acts as an identifier for an operation


getFeatureTypes

public java.lang.String[] getFeatureTypes()
returns the names of the feature types affected by the insertion. Notice that the WFS spec allowes features of different types to be inserted within one operation. This may cause problems if the features are stored within different datastores and the insertion for one of the datastores fails. So it seems to be more appropiate to use just features of one type within one insertion.

Specified by:
getFeatureTypes in interface WFSInsert

toString

public java.lang.String toString()