|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFeatureSource
AbstractFeatureStore
AbstractFeatureLocking
PropertyFeatureStore
public class PropertyFeatureStore
Implementation used for writeable property files. Supports limited caching of number of features and bounds.
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)
Registers a listening object that will be notified of changes to this FeatureSource . |
ReferencedEnvelope |
getBounds()
Retrieve Bounds of all Features. |
ReferencedEnvelope |
getBounds(Query query)
Retrieve Bounds of Query results. |
int |
getCount(Query query)
Retrieve total number of Query results. |
PropertyDataStore |
getDataStore()
Overrides to explicitly type narrow the return type to DataStore |
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 |
---|
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 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 |
---|
getInfo, getName, getQueryCapabilities, getSupportedHints |
Method Detail |
---|
public PropertyDataStore getDataStore()
AbstractFeatureSource
DataStore
getDataStore
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getDataStore
in class AbstractFeatureSource
FeatureSource
public void addFeatureListener(FeatureListener listener)
FeatureSource
FeatureSource
.
listener
- the new listenerpublic void removeFeatureListener(FeatureListener listener)
FeatureSource
FeatureSource's
listeners.
listener
- the listener to removepublic SimpleFeatureType getSchema()
FeatureSource
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.
FeatureSource
public int getCount(Query query) throws IOException
AbstractFeatureSource
Currently returns -1, consider getFeatures( query ).getCount() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
getCount
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getCount
in class AbstractFeatureSource
query
- Query we are requesting the count of
IOException
- if there are errors getting the countpublic ReferencedEnvelope getBounds(Query query) throws IOException
AbstractFeatureSource
Currently returns null, consider getFeatures( query ).getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
getBounds
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getBounds
in class AbstractFeatureSource
query
- Query we are requesting the bounds of
IOException
- on any errors calculating the boundspublic ReferencedEnvelope getBounds()
AbstractFeatureSource
Currently returns null, consider getFeatures().getBounds() instead.
Subclasses may override this method to perform the appropriate optimization for this result.
getBounds
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
getBounds
in class AbstractFeatureSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |