org.deegree_impl.services.wfs.bna
Class BNADataStore

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

public class BNADataStore
extends AbstractDataStore

The class provides reading access to BNA files. The access is capsulated withing the query and transaction mechanism described at the OGC WFS specifications.

The data store uses a cache for keeping the entire featureset once read from a BNA file in memory to provide a much fast access to them.

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

This source was created by adapting ShapeDataStore.java

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

Version:
$Id: BNADataStore.java,v 1.4 2004/03/29 10:39:04 poth Exp $
Author:
Emanuele Tajariol

Nested Class Summary
private  class BNADataStore.CDescribeFeatureType
          inner interface defining the processing of a DescribeFeatureType request
private  class BNADataStore.CGetFeature
          inner interface defining the processing of a getFeature request
(package private)  class BNADataStore.CGetFeatureWithLock
          class defining the processing of a getFeature request
private  class BNADataStore.CLockFeature
          inner interface defining the processing of a lockFeature request
private  class BNADataStore.CTransaction
          inner interface defining the processing of a transaction request
 
Field Summary
protected  Cache_Impl cache
           
 
Fields inherited from class org.deegree_impl.services.wfs.AbstractDataStore
config, pool
 
Constructor Summary
BNADataStore(java.net.URL configUrl)
          Creates a new BNADataStore object.
 
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
 

Field Detail

cache

protected Cache_Impl cache
Constructor Detail

BNADataStore

public BNADataStore(java.net.URL configUrl)
             throws DataStoreException
Creates a new BNADataStore object.

Parameters:
configUrl -
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:
DataStore.describeFeatureType(WFSDescribeFeatureTypeRequest)

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