org.deegree_impl.services.wfs
Class AbstractDataStore

java.lang.Object
  extended byorg.deegree_impl.services.wfs.AbstractDataStore
All Implemented Interfaces:
DataStore, java.util.EventListener, Handler
Direct Known Subclasses:
BNADataStore, GMLDBDataStore, MapInfoDataStore, MySQLDataStore, OracleDataStore, PointDBDataStore, PostgisDataStore, SDEDataStore, ShapeDataStore

public abstract class AbstractDataStore
extends java.lang.Object
implements DataStore, Handler

the class implements the methods of the DataStore interface thats implementation is common to all data stores and some additional methods that will be used if the data store is controlled using observer/event handling mechanism.

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

Version:
$Revision: 1.18 $ $Date: 2004/03/07 09:32:49 $

Author:
Andreas Poth

Field Summary
protected  DatastoreConfiguration config
           
private  java.util.List featureTypes
           
private  javax.swing.event.EventListenerList listenerList
           
protected  DBConnectionPool pool
           
 
Constructor Summary
protected AbstractDataStore(java.net.URL datastoreConfigSource)
          Creates a new AbstractDataStore object.
 
Method Summary
protected  void fireResponse(OGCWebServiceEvent event)
          notifies the registered WFSResponseListener that the peromance of request has been finished and submits the result.
 DatastoreConfiguration getConfiguration()
          returns the configuration of the datastore
 DBConnectionPool getConnectionPool()
           
 void handleRequest(OGCWebServiceEvent event)
          implements the handleRequest(..)
 void handleResponse(OGCWebServiceEvent event)
          handles the response of an OGC web service
 boolean isInterested(OGCWebServiceEvent event)
          returns true if the handler is interested in a event
 boolean isKnownFeatureType(java.lang.String featureType)
          returns true if the submitted feature type is known by the data store
 void registerFeatureType(java.lang.String featureType)
          registers a feature type to the data store.
 void registerHandler(Handler handler)
          registers a Handler so this Handler is able to act as a proxy to the registered handler
 void removeFeatureType(java.lang.String featureType)
          the inverse operation to registerFeatureType
 void removeHandler(Handler handler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.services.wfs.DataStore
describeFeatureType, getFeature, getFeatureWithLock, lockFeature, transaction
 

Field Detail

pool

protected DBConnectionPool pool

config

protected DatastoreConfiguration config

listenerList

private javax.swing.event.EventListenerList listenerList

featureTypes

private java.util.List featureTypes
Constructor Detail

AbstractDataStore

protected AbstractDataStore(java.net.URL datastoreConfigSource)
                     throws DataStoreException
Creates a new AbstractDataStore object.

Parameters:
datastoreConfigSource -
Throws:
DataStoreException
Method Detail

getConfiguration

public DatastoreConfiguration getConfiguration()
returns the configuration of the datastore


getConnectionPool

public DBConnectionPool getConnectionPool()
Returns:

registerFeatureType

public void registerFeatureType(java.lang.String featureType)
registers a feature type to the data store.

Specified by:
registerFeatureType in interface DataStore

removeFeatureType

public void removeFeatureType(java.lang.String featureType)
the inverse operation to registerFeatureType

Specified by:
removeFeatureType in interface DataStore
See Also:
registerFeatureType(String)

isKnownFeatureType

public boolean isKnownFeatureType(java.lang.String featureType)
returns true if the submitted feature type is known by the data store

Specified by:
isKnownFeatureType in interface DataStore

isInterested

public boolean isInterested(OGCWebServiceEvent event)
returns true if the handler is interested in a event

Specified by:
isInterested in interface Handler

registerHandler

public void registerHandler(Handler handler)
registers a Handler so this Handler is able to act as a proxy to the registered handler

Specified by:
registerHandler in interface Handler

removeHandler

public void removeHandler(Handler handler)
Specified by:
removeHandler in interface Handler
See Also:
registerHandler(Handler)

handleRequest

public void handleRequest(OGCWebServiceEvent event)
implements the handleRequest(..) method of the WFSRequestListener interface. The method will be call by the Dispatcher if a request against the WFS has been recieved.

Specified by:
handleRequest in interface Handler

handleResponse

public void handleResponse(OGCWebServiceEvent event)
Description copied from interface: Handler
handles the response of an OGC web service

Specified by:
handleResponse in interface Handler
Parameters:
event -

fireResponse

protected void fireResponse(OGCWebServiceEvent event)
notifies the registered WFSResponseListener that the peromance of request has been finished and submits the result.