org.geotools.data.property
Class PropertyFeatureSource

java.lang.Object
  extended byorg.geotools.data.AbstractFeatureSource
      extended byorg.geotools.data.AbstractFeatureStore
          extended byorg.geotools.data.AbstractFeatureLocking
              extended byorg.geotools.data.property.PropertyFeatureSource
All Implemented Interfaces:
FeatureLocking, FeatureSource, FeatureStore

public class PropertyFeatureSource
extends AbstractFeatureLocking


Nested Class Summary
 
Nested classes inherited from class org.geotools.data.FeatureLocking
FeatureLocking.Response
 
Field Summary
 
Fields inherited from class org.geotools.data.AbstractFeatureStore
transaction
 
Method Summary
 void addFeatureListener(FeatureListener listener)
          Adds a listener to the list that's notified each time a change to the FeatureStore occurs.
 com.vividsolutions.jts.geom.Envelope getBounds()
          Gets the bounding box of this datasource.
 int getCount(Query query)
          Gets the number of the features that would be returned by this query.
 DataStore getDataStore()
          Access to the DataStore implementing this FeatureStore.
 FeatureType 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 org.geotools.data.AbstractFeatureLocking
lockFeatures, lockFeatures, lockFeatures, setFeatureLock, unLockFeatures, unLockFeatures, unLockFeatures
 
Methods inherited from class org.geotools.data.AbstractFeatureStore
addFeatures, getTransaction, modifyFeatures, modifyFeatures, removeFeatures, setFeatures, setTransaction
 
Methods inherited from class org.geotools.data.AbstractFeatureSource
getBounds, getFeatures, getFeatures, getFeatures, namedQuery
 
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
getBounds, getFeatures, getFeatures, getFeatures
 

Method Detail

getDataStore

public DataStore getDataStore()
Description copied from interface: FeatureSource
Access to the DataStore implementing this FeatureStore.

You may use this to access such as namespace provided by DataStore.

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 FeatureType 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 interface: FeatureSource
Gets the number of the features that would be returned by this query.

If getBounds(Query) returns -1 due to expense consider using getFeatures(Query).getCount() as a an alternative.

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

getBounds

public com.vividsolutions.jts.geom.Envelope getBounds()
Description copied from interface: FeatureSource
Gets the bounding box of this datasource.

With getBounds(Query) this becomes a convenience method for getBounds(Query.ALL), that is the bounds for all features contained here.

If getBounds() returns null due to expense consider using getFeatures().getBounds() as a an alternative.

Specified by:
getBounds in interface FeatureSource
Overrides:
getBounds in class AbstractFeatureSource
Returns:
null representing the lack of an optimization


Copyright © GeoTools. All Rights Reserved.