org.vfny.geoserver.global
Class GeoServerFeatureStore

java.lang.Object
  extended byorg.vfny.geoserver.global.GeoServerFeatureSource
      extended byorg.vfny.geoserver.global.GeoServerFeatureStore
All Implemented Interfaces:
org.geotools.data.FeatureSource
Direct Known Subclasses:
GeoServerFeatureLocking

public class GeoServerFeatureStore
extends GeoServerFeatureSource
implements org.geotools.data.FeatureSource

GeoServer wrapper for backend Geotools2 DataStore.

Support FeatureSource decorator for FeatureTypeInfo that takes care of mapping the FeatureTypeInfo's FeatureSource with the schema and definition query configured for it.

Because GeoServer requires that attributes always be returned in the same order we need a way to smoothly inforce this. Could we use this class to do so? It would need to support writing and locking though.


Field Summary
 
Fields inherited from class org.vfny.geoserver.global.GeoServerFeatureSource
source
 
Method Summary
 java.util.Set addFeatures(org.geotools.data.FeatureReader reader)
          addFeatures purpose.
 org.geotools.data.Transaction getTransaction()
          DOCUMENT ME!
 void modifyFeatures(org.geotools.feature.AttributeType[] type, java.lang.Object[] value, org.geotools.filter.Filter filter)
          DOCUMENT ME!
 void modifyFeatures(org.geotools.feature.AttributeType type, java.lang.Object value, org.geotools.filter.Filter filter)
          DOCUMENT ME!
 void removeFeatures(org.geotools.filter.Filter filter)
          DOCUMENT ME!
 void setFeatures(org.geotools.data.FeatureReader reader)
          DOCUMENT ME!
 void setTransaction(org.geotools.data.Transaction transaction)
          DOCUMENT ME!
 
Methods inherited from class org.vfny.geoserver.global.GeoServerFeatureSource
addFeatureListener, create, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getSchema, makeDefinitionFilter, makeDefinitionQuery, removeFeatureListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.data.FeatureSource
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getSchema, removeFeatureListener
 

Method Detail

addFeatures

public java.util.Set addFeatures(org.geotools.data.FeatureReader reader)
                          throws java.io.IOException
addFeatures purpose.

Description ...

Parameters:
reader - Reader over Feature to be added
Returns:
Set of FIDs added
Throws:
java.io.IOException - If contents of reader could not be added

removeFeatures

public void removeFeatures(org.geotools.filter.Filter filter)
                    throws java.io.IOException
DOCUMENT ME!

Parameters:
filter - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

modifyFeatures

public void modifyFeatures(org.geotools.feature.AttributeType[] type,
                           java.lang.Object[] value,
                           org.geotools.filter.Filter filter)
                    throws java.io.IOException
DOCUMENT ME!

Parameters:
type - DOCUMENT ME!
value - DOCUMENT ME!
filter - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

modifyFeatures

public void modifyFeatures(org.geotools.feature.AttributeType type,
                           java.lang.Object value,
                           org.geotools.filter.Filter filter)
                    throws java.io.IOException
DOCUMENT ME!

Parameters:
type - DOCUMENT ME!
value - DOCUMENT ME!
filter - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setFeatures

public void setFeatures(org.geotools.data.FeatureReader reader)
                 throws java.io.IOException
DOCUMENT ME!

Parameters:
reader - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

setTransaction

public void setTransaction(org.geotools.data.Transaction transaction)
DOCUMENT ME!

Parameters:
transaction - DOCUMENT ME!

getTransaction

public org.geotools.data.Transaction getTransaction()
DOCUMENT ME!

Returns:
DOCUMENT ME!