org.deegree_impl.services.wfs.mapinfo
Class MapInfoDataStore

java.lang.Object
  extended byorg.deegree_impl.services.wfs.AbstractDataStore
      extended byorg.deegree_impl.services.wfs.mapinfo.MapInfoDataStore
All Implemented Interfaces:
DataStore, java.util.EventListener, Handler

public class MapInfoDataStore
extends AbstractDataStore

The class provides reading and writing access to ESRI shapefiles. The access is capsulated within the query and transaction mechanism described at the OGC WFS specifications.

The data store uses a cache for keeping features once read from a shapefile in memory to provide a much faster access to them. The cache can be configured through the configuration XML-document that also contains the names and locations of the shapes handled by an instance of the MapInfoDataStore.

Version:
$Revision: 1.7 $ $Date: 2004/05/10 08:41:07 $
Author:
Andreas Poth, Markus Schneider

Nested Class Summary
private  class MapInfoDataStore.CDescribeFeatureType
          inner interface defining the processing of a DescribeFeatureType request
private  class MapInfoDataStore.CGetFeature
          inner interface defining the processing of a getFeature request
(package private)  class MapInfoDataStore.CGetFeatureWithLock
          class defining the processing of a getFeature request
private  class MapInfoDataStore.CLockFeature
          inner interface defining the processing of a lockFeature request
private  class MapInfoDataStore.CTransaction
          inner interface defining the processing of a transaction request
 
Field Summary
 
Fields inherited from class org.deegree_impl.services.wfs.AbstractDataStore
config, pool
 
Constructor Summary
MapInfoDataStore(java.net.URL config)
           
 
Method Summary
 void describeFeatureType(WFSDescribeFeatureTypeRequest request)
          returns the describtion of one or more feature types
 void getFeature(WFSGetFeatureRequest request)
          returns the features that matches the submitted request
 void getFeatureWithLock(WFSGetFeatureWithLockRequest request)
          same as getFeature(..)
 void lockFeature(WFSLockFeatureRequest request)
          performs the locking/unlocking of one or more features.
 void transaction(WFSTransactionRequest request)
          performs a transaction against the data store.
 
Methods inherited from class org.deegree_impl.services.wfs.AbstractDataStore
fireResponse, getConfiguration, getConnectionPool, handleRequest, handleResponse, isInterested, isKnownFeatureType, registerFeatureType, registerHandler, removeFeatureType, removeHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapInfoDataStore

public MapInfoDataStore(java.net.URL config)
                 throws DataStoreException
Method Detail

describeFeatureType

public void describeFeatureType(WFSDescribeFeatureTypeRequest request)
returns the describtion of one or more feature types

Parameters:
request - conainting the list of feature types that should be described

getFeature

public void getFeature(WFSGetFeatureRequest request)
returns the features that matches the submitted request

Parameters:
request - containing the request for zero, one or more features. The request, may contains a filter that describes the request more detailed

getFeatureWithLock

public void getFeatureWithLock(WFSGetFeatureWithLockRequest request)
same as getFeature(..) but locking the feature during processing.

Parameters:
request - containing the request for zero, one or more features. The request, may contains a filter that describes the request more detailed.
See Also:
getFeature(WFSGetFeatureRequest)

transaction

public void transaction(WFSTransactionRequest request)
performs a transaction against the data store. This could be an update, an insert or a delete of one or more features.

Parameters:
request - containing the transaction instruction(s)

lockFeature

public void lockFeature(WFSLockFeatureRequest request)
performs the locking/unlocking of one or more features.

Parameters:
request - the features that should be (un)locked