org.vfny.geoserver.global
Class GeoServerFeatureLocking

java.lang.Object
  extended byorg.vfny.geoserver.global.GeoServerFeatureSource
      extended byorg.vfny.geoserver.global.GeoServerFeatureStore
          extended byorg.vfny.geoserver.global.GeoServerFeatureLocking
All Implemented Interfaces:
org.geotools.data.FeatureLocking, org.geotools.data.FeatureSource, org.geotools.data.FeatureStore

public class GeoServerFeatureLocking
extends GeoServerFeatureStore
implements org.geotools.data.FeatureLocking

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.


Nested Class Summary
 
Nested classes inherited from class org.geotools.data.FeatureLocking
org.geotools.data.FeatureLocking.Response
 
Field Summary
 
Fields inherited from class org.vfny.geoserver.global.GeoServerFeatureSource
source
 
Method Summary
 int lockFeature(org.geotools.feature.Feature feature)
          A custom hack for PostgisFeatureLocking?
 int lockFeatures()
          DOCUMENT ME!
 int lockFeatures(org.geotools.filter.Filter filter)
          DOCUMENT ME!
 int lockFeatures(org.geotools.data.Query query)
          DOCUMENT ME!
 void setFeatureLock(org.geotools.data.FeatureLock lock)
           Description ...
 void unLockFeatures()
          DOCUMENT ME!
 void unLockFeatures(org.geotools.filter.Filter filter)
          DOCUMENT ME!
 void unLockFeatures(org.geotools.data.Query query)
           
 
Methods inherited from class org.vfny.geoserver.global.GeoServerFeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
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.FeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from interface org.geotools.data.FeatureSource
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getSchema, removeFeatureListener
 

Method Detail

setFeatureLock

public void setFeatureLock(org.geotools.data.FeatureLock lock)

Description ...

Specified by:
setFeatureLock in interface org.geotools.data.FeatureLocking
Parameters:
lock -
Throws:
java.lang.UnsupportedOperationException - DOCUMENT ME!
See Also:
org.vfny.geoserver.global.GeoServerFeatureStore#setFeatureLock(org.geotools.data.FeatureLock)

lockFeatures

public int lockFeatures(org.geotools.data.Query query)
                 throws java.io.IOException
DOCUMENT ME!

Specified by:
lockFeatures in interface org.geotools.data.FeatureLocking
Parameters:
query - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
org.geotools.data.DataSourceException - DOCUMENT ME!

lockFeature

public int lockFeature(org.geotools.feature.Feature feature)
                throws java.io.IOException
A custom hack for PostgisFeatureLocking?

Parameters:
feature - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

lockFeatures

public int lockFeatures(org.geotools.filter.Filter filter)
                 throws java.io.IOException
DOCUMENT ME!

Specified by:
lockFeatures in interface org.geotools.data.FeatureLocking
Parameters:
filter - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

lockFeatures

public int lockFeatures()
                 throws java.io.IOException
DOCUMENT ME!

Specified by:
lockFeatures in interface org.geotools.data.FeatureLocking
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

unLockFeatures

public void unLockFeatures()
                    throws java.io.IOException
DOCUMENT ME!

Specified by:
unLockFeatures in interface org.geotools.data.FeatureLocking
Throws:
java.io.IOException - DOCUMENT ME!

unLockFeatures

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

Specified by:
unLockFeatures in interface org.geotools.data.FeatureLocking
Parameters:
filter - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

unLockFeatures

public void unLockFeatures(org.geotools.data.Query query)
                    throws java.io.IOException
Specified by:
unLockFeatures in interface org.geotools.data.FeatureLocking
Throws:
java.io.IOException