org.deegree_impl.services.wfs
Class AbstractGetFeature

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.deegree_impl.services.wfs.WFSMainLoop
          extended byorg.deegree_impl.services.wfs.AbstractGetFeature
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
BNADataStore.CGetFeature, DBGetFeature, MapInfoDataStore.CGetFeature, SDEDataStore.CGetFeature, ShapeDataStore.CGetFeature

public abstract class AbstractGetFeature
extends WFSMainLoop

class defining the basic processing of a getFeature request

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

Version:
$Revision: 1.28 $ $Date: 2004/05/14 07:48:22 $

Author:
Andreas Poth

Field Summary
protected  DatastoreConfiguration config
           
 
Fields inherited from class org.deegree_impl.services.wfs.WFSMainLoop
parent, request
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected AbstractGetFeature(AbstractDataStore parent, OGCWebServiceRequest request)
           
 
Method Summary
protected  OGCWebServiceResponse[] createResponse(java.util.HashMap map, java.lang.String[] affectedFeatureTypes)
          create a response object from the GMLFeatureCollections store into the submitted HashMap
protected  java.lang.String[] getAffectedFeatureTypes(WFSQuery[] queries)
          return the names of the feature types affected by a Query
protected  java.lang.String getAffectedFields(java.lang.String table, FeatureType ft, WFSQuery query)
          the method returns a comma-seperated list of fields, that are affected by a WFSQuery against the subbmitted table.
private  java.lang.String getTableName(FeatureType ft, java.lang.String prop)
          extracts the table name from a property. it is assumed that the property name is constructed like this: table.propertyname or schema.table.propertyname.
 
Methods inherited from class org.deegree_impl.services.wfs.WFSMainLoop
performRequest, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

config

protected DatastoreConfiguration config
Constructor Detail

AbstractGetFeature

protected AbstractGetFeature(AbstractDataStore parent,
                             OGCWebServiceRequest request)
Method Detail

getAffectedFeatureTypes

protected java.lang.String[] getAffectedFeatureTypes(WFSQuery[] queries)
return the names of the feature types affected by a Query


getAffectedFields

protected java.lang.String getAffectedFields(java.lang.String table,
                                             FeatureType ft,
                                             WFSQuery query)
                                      throws java.lang.Exception
the method returns a comma-seperated list of fields, that are affected by a WFSQuery against the subbmitted table. If all fields of the submitted table shall be selected to method just returns "*".

example:

"table1.ID,table1.NAME,table1.VALUE"

Throws:
java.lang.Exception

getTableName

private java.lang.String getTableName(FeatureType ft,
                                      java.lang.String prop)
extracts the table name from a property. it is assumed that the property name is constructed like this: table.propertyname or schema.table.propertyname. if no table is specified with a property name, the name of the feature types master table will be returned.


createResponse

protected OGCWebServiceResponse[] createResponse(java.util.HashMap map,
                                                 java.lang.String[] affectedFeatureTypes)
                                          throws java.lang.Exception
create a response object from the GMLFeatureCollections store into the submitted HashMap

Throws:
java.lang.Exception