org.geotools.data.simple
Interface SimpleFeatureStore

All Superinterfaces:
FeatureSource<SimpleFeatureType,SimpleFeature>, FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource
All Known Subinterfaces:
SimpleFeatureLocking
All Known Implementing Classes:
AbstractFeatureLocking, AbstractFeatureStore, ArcSdeFeatureStore, ContentFeatureStore, DirectoryFeatureLocking, DirectoryFeatureStore, JDBCFeatureStore, OracleTransformFeatureStore, PropertyFeatureStore, TransformFeatureStore, WFSFeatureStore

public interface SimpleFeatureStore
extends FeatureStore<SimpleFeatureType,SimpleFeature>, SimpleFeatureSource


Method Summary
 SimpleFeatureCollection getFeatures()
          Retrieves all features in the form of a FeatureCollection.
 SimpleFeatureCollection getFeatures(Filter filter)
          Retrieves features, in the form of a FeatureCollection, based on an OGC Filter.
 SimpleFeatureCollection getFeatures(Query query)
          Retrieves features, in the form of a FeatureCollection, based on a Query.
 void modifyFeatures(String[] names, Object[] attributeValues, Filter filter)
           
 void modifyFeatures(String name, Object attributeValue, Filter filter)
           
 
Methods inherited from interface FeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from interface FeatureSource
addFeatureListener, getBounds, getBounds, getCount, getDataStore, getInfo, getName, getQueryCapabilities, getSchema, getSupportedHints, removeFeatureListener
 

Method Detail

modifyFeatures

void modifyFeatures(String name,
                    Object attributeValue,
                    Filter filter)
                    throws IOException
Throws:
IOException

modifyFeatures

void modifyFeatures(String[] names,
                    Object[] attributeValues,
                    Filter filter)
                    throws IOException
Throws:
IOException

getFeatures

SimpleFeatureCollection getFeatures()
                                    throws IOException
Description copied from interface: FeatureSource
Retrieves all features in the form of a FeatureCollection.

The following statements are equivalent:


     featureSource.getFeatures();
     featureSource.getFeatures(Filter.INCLUDE);
     featureSource.getFeatures(Query.ALL);
 

Specified by:
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Specified by:
getFeatures in interface SimpleFeatureSource
Returns:
features retrieved by the Query
Throws:
IOException - if the underlying data source cannot be accessed.

getFeatures

SimpleFeatureCollection getFeatures(Filter filter)
                                    throws IOException
Description copied from interface: FeatureSource
Retrieves features, in the form of a FeatureCollection, based on an OGC Filter.

Specified by:
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Specified by:
getFeatures in interface SimpleFeatureSource
Parameters:
filter - the filter to select features; must not be null (use Filter.INCLUDE instead)
Returns:
features retrieved by the Filter
Throws:
IOException - if the underlying data source cannot be accessed.
See Also:
Filter

getFeatures

SimpleFeatureCollection getFeatures(Query query)
                                    throws IOException
Description copied from interface: FeatureSource
Retrieves features, in the form of a FeatureCollection, based on a Query.

Specified by:
getFeatures in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Specified by:
getFeatures in interface SimpleFeatureSource
Parameters:
query - DataAccess query for requested information, such as typeName, maxFeatures and filter.
Returns:
features retrieved by the Query
Throws:
IOException - if the underlying data source cannot be accessed.
See Also:
Query


Copyright © 1996-2014 Geotools. All Rights Reserved.