org.geotools.data.shapefile
Class ShapefileFeatureLocking

Object
  extended by AbstractFeatureSource
      extended by AbstractFeatureStore
          extended by AbstractFeatureLocking
              extended by ShapefileFeatureLocking
All Implemented Interfaces:
FeatureLocking<SimpleFeatureType,SimpleFeature>, FeatureSource<SimpleFeatureType,SimpleFeature>, FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureLocking, SimpleFeatureSource, SimpleFeatureStore

public class ShapefileFeatureLocking
extends AbstractFeatureLocking


Nested Class Summary
 
Nested classes/interfaces inherited from interface FeatureLocking
FeatureLocking.Response
 
Field Summary
 
Fields inherited from class AbstractFeatureStore
transaction
 
Fields inherited from class AbstractFeatureSource
hints, queryCapabilities
 
Constructor Summary
ShapefileFeatureLocking(ShapefileDataStore shapefileDataStore, Set hints, SimpleFeatureType featureType)
           
 
Method Summary
 void addFeatureListener(FeatureListener listener)
          Registers a listening object that will be notified of changes to this FeatureSource.
 ReferencedEnvelope getBounds(Query query)
          Retrieve Bounds of Query results.
 DataStore getDataStore()
          Overrides to explicitly type narrow the return type to DataStore
 ResourceInfo getInfo()
          Returns information describing this FeatureSource which may include title, description and spatial parameters.
 SimpleFeatureType getSchema()
          Retrieves the schema (feature type) that will apply to features retrieved from this FeatureSource.
 void removeFeatureListener(FeatureListener listener)
          Removes an object from this FeatureSource's listeners.
 
Methods inherited from class AbstractFeatureLocking
lockFeatures, lockFeatures, lockFeatures, setFeatureLock, unLockFeatures, unLockFeatures, unLockFeatures
 
Methods inherited from class AbstractFeatureStore
addFeatures, addFeatures, getTransaction, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from class AbstractFeatureSource
getBounds, getCount, getFeatures, getFeatures, getFeatures, getName, getQueryCapabilities, getSupportedHints, namedQuery
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface SimpleFeatureStore
getFeatures, getFeatures, getFeatures, modifyFeatures, modifyFeatures
 
Methods inherited from interface FeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from interface FeatureSource
getBounds, getCount, getName, getQueryCapabilities, getSupportedHints
 

Constructor Detail

ShapefileFeatureLocking

public ShapefileFeatureLocking(ShapefileDataStore shapefileDataStore,
                               Set hints,
                               SimpleFeatureType featureType)
Method Detail

getDataStore

public DataStore getDataStore()
Description copied from class: AbstractFeatureSource
Overrides to explicitly type narrow the return type to DataStore

Specified by:
getDataStore in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Specified by:
getDataStore in class AbstractFeatureSource
Returns:
the data source providing this FeatureSource

addFeatureListener

public void addFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Registers a listening object that will be notified of changes to this FeatureSource.

Parameters:
listener - the new listener

removeFeatureListener

public void removeFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Removes an object from this FeatureSource's listeners.

Parameters:
listener - the listener to remove

getSchema

public SimpleFeatureType getSchema()
Description copied from interface: FeatureSource
Retrieves the schema (feature type) that will apply to features retrieved from this FeatureSource.

For a homogeneous data source such as a shapefile or a database table, this schema be that of all features. For a heterogeneous data source, e.g. a GML document, the schema returned is the lowest common denominator across all features.

Returns:
the schema that will apply to features retrieved from this FeatureSource

getBounds

public ReferencedEnvelope getBounds(Query query)
                             throws IOException
Description copied from class: AbstractFeatureSource
Retrieve Bounds of Query results.

Currently returns null, consider getFeatures( query ).getBounds() instead.

Subclasses may override this method to perform the appropriate optimization for this result.

Specified by:
getBounds in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Overrides:
getBounds in class AbstractFeatureSource
Parameters:
query - Query we are requesting the bounds of
Returns:
null representing the lack of an optimization
Throws:
IOException - on any errors calculating the bounds

getInfo

public ResourceInfo getInfo()
Description copied from interface: FeatureSource
Returns information describing this FeatureSource which may include title, description and spatial parameters. Note that in the returned ResourceInfo object, the distinction between feature name and schema (feature type) name applies as discussed for FeatureSource.getName().

Specified by:
getInfo in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Overrides:
getInfo in class AbstractFeatureSource


Copyright © 1996-2013 Geotools. All Rights Reserved.