org.geotools.data.property
Class PropertyFeatureSource

Object
  extended by AbstractFeatureSource
      extended by AbstractFeatureStore
          extended by AbstractFeatureLocking
              extended by PropertyFeatureSource
All Implemented Interfaces:
FeatureLocking<SimpleFeatureType,SimpleFeature>, FeatureSource<SimpleFeatureType,SimpleFeature>, FeatureStore<SimpleFeatureType,SimpleFeature>

public class PropertyFeatureSource
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
 
Method Summary
 void addFeatureListener(FeatureListener listener)
          Adds a listener to the list that's notified each time a change to the FeatureStore occurs.
 ReferencedEnvelope getBounds()
          Retrieve Bounds of all Features.
 int getCount(Query query)
          Retrieve total number of Query results.
 DataStore getDataStore()
          Overrides to explicitly type narrow the return type to DataStore
 SimpleFeatureType getSchema()
          Retrieves the featureType that features extracted from this datasource will be created with.
 void removeFeatureListener(FeatureListener listener)
          Removes a listener from the list that's notified each time a change to the FeatureStore occurs.
 
Methods inherited from class AbstractFeatureLocking
lockFeatures, lockFeatures, lockFeatures, setFeatureLock, unLockFeatures, unLockFeatures, unLockFeatures
 
Methods inherited from class AbstractFeatureStore
addFeatures, addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from class AbstractFeatureSource
getBounds, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSupportedHints, namedQuery
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface FeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from interface FeatureSource
getBounds, getFeatures, getFeatures, getFeatures, getInfo, getName, getQueryCapabilities, getSupportedHints
 

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:
DataStore implementing this FeatureStore

addFeatureListener

public void addFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Adds a listener to the list that's notified each time a change to the FeatureStore occurs.

Parameters:
listener - FeatureListener

removeFeatureListener

public void removeFeatureListener(FeatureListener listener)
Description copied from interface: FeatureSource
Removes a listener from the list that's notified each time a change to the FeatureStore occurs.

Parameters:
listener - FeatureListener

getSchema

public SimpleFeatureType getSchema()
Description copied from interface: FeatureSource
Retrieves the featureType that features extracted from this datasource will be created with.

The schema returned is the LCD supported by all available Features. In the common case of shapfiles and database table this schema will match that of every feature available. In the degenerate GML case this will simply reflect the gml:AbstractFeatureType.

Returns:
the schema of features created by this datasource.

getCount

public int getCount(Query query)
Description copied from class: AbstractFeatureSource
Retrieve total number of Query results.

Currently returns -1, consider getFeatures( query ).getCount() instead.

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

Specified by:
getCount in interface FeatureSource<SimpleFeatureType,SimpleFeature>
Overrides:
getCount in class AbstractFeatureSource
Parameters:
query - Query we are requesting the count of
Returns:
-1 representing the lack of an optimization

getBounds

public ReferencedEnvelope getBounds()
Description copied from class: AbstractFeatureSource
Retrieve Bounds of all Features.

Currently returns null, consider getFeatures().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
Returns:
null representing the lack of an optimization


Copyright © 1996-2010 Geotools. All Rights Reserved.