org.geotools.data.jdbc
Class JDBCFeatureCollection

java.lang.Object
  extended byorg.geotools.data.store.DataFeatureCollection
      extended byorg.geotools.data.DefaultFeatureResults
          extended byorg.geotools.data.jdbc.JDBCFeatureCollection
All Implemented Interfaces:
java.util.Collection, Feature, FeatureCollection, FeatureResults, ResourceCollection
Direct Known Subclasses:
PostgisFeatureCollection

public class JDBCFeatureCollection
extends DefaultFeatureResults


Nested Class Summary
 
Nested classes inherited from class org.geotools.feature.Feature
Feature.NULL
 
Field Summary
protected  JDBCFeatureSource featureSource
          The logger for the filter module.
 boolean isOptimized
           
 
Fields inherited from class org.geotools.data.DefaultFeatureResults
query
 
Constructor Summary
JDBCFeatureCollection(JDBCFeatureSource source, Query query)
           
 
Method Summary
 void accepts(FeatureVisitor visitor, ProgressListener progress)
          Accepts FeatureVisitors.
 int getCount()
          Performs optimized count if possible.
 FeatureReader reader()
          JDBCDataStore has a more direct query method
 
Methods inherited from class org.geotools.data.DefaultFeatureResults
collection, getBounds, getSchema, getTransaction
 
Methods inherited from class org.geotools.data.store.DataFeatureCollection
add, addAll, addListener, clear, close, close, closeIterator, contains, containsAll, features, fireChange, fireChange, fireChange, getAttribute, getAttribute, getAttributes, getDefaultGeometry, getFeatureType, getID, getNumberOfAttributes, getParent, isEmpty, iterator, openIteartor, purge, remove, removeAll, removeListener, retainAll, setAttribute, setAttribute, setDefaultGeometry, setParent, size, sort, sort, subCollection, toArray, toArray, writer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

featureSource

protected JDBCFeatureSource featureSource
The logger for the filter module.


isOptimized

public boolean isOptimized
Constructor Detail

JDBCFeatureCollection

public JDBCFeatureCollection(JDBCFeatureSource source,
                             Query query)
Method Detail

reader

public FeatureReader reader()
                     throws java.io.IOException
JDBCDataStore has a more direct query method

Specified by:
reader in interface FeatureResults
Overrides:
reader in class DefaultFeatureResults
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getCount

public int getCount()
             throws java.io.IOException
Performs optimized count if possible.

Specified by:
getCount in interface FeatureResults
Overrides:
getCount in class DefaultFeatureResults
Returns:
Throws:
java.io.IOException
See Also:
DefaultFeatureResults.getCount()

accepts

public void accepts(FeatureVisitor visitor,
                    ProgressListener progress)
             throws java.io.IOException
Accepts FeatureVisitors.

Note for some FeatureCalc visitors an optimized code path will be used.

Specified by:
accepts in interface FeatureCollection
Overrides:
accepts in class DataFeatureCollection
Parameters:
visitor - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.