org.geotools.data.db2
Class DB2FeatureSource
Object
JDBCFeatureSource
DB2FeatureSource
- All Implemented Interfaces:
- FeatureSource<SimpleFeatureType,SimpleFeature>
public class DB2FeatureSource
- extends JDBCFeatureSource
DB2 Feature Source implementation. Overrides functionality in
JDBCFeatureSource to provide more efficient or more appropriate DB2-specific
implementation.
- Author:
- David Adler - IBM Corporation
- Module:
trunk/gt/modules
(gt-modules.jar
) (Maven report) (SVN head)
Constructor Summary |
DB2FeatureSource(DB2DataStore dataStore,
SimpleFeatureType featureType)
Constructs a feature source based on a DB2 data store for a specified
feature type. |
Methods inherited from class JDBCFeatureSource |
addFeatureListener, close, close, close, count, getBounds, getConnection, getCount, getDataStore, getFeatures, getFeatures, getFeatures, getInfo, getJDBCDataStore, getName, getQueryCapabilities, getSchema, getSupportedHints, getTransaction, removeFeatureListener |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DB2FeatureSource
public DB2FeatureSource(DB2DataStore dataStore,
SimpleFeatureType featureType)
- Constructs a feature source based on a DB2 data store for a specified
feature type.
- Parameters:
dataStore
- featureType
-
closeAll
protected void closeAll(ResultSet rs,
Statement stmt,
Connection conn,
Transaction transaction,
SQLException e)
- Closes everything associated with a query, the ResultSet, Statement and
Connection.
- Parameters:
rs
- the ResultSetstmt
- the Statementconn
- the Connectiontransaction
- the Transactione
- the SQLException, if any, or null
getBounds
public ReferencedEnvelope getBounds(Query query)
throws IOException
- Gets the bounds of the feature using the specified query.
- Specified by:
getBounds
in interface FeatureSource<SimpleFeatureType,SimpleFeature>
- Overrides:
getBounds
in class JDBCFeatureSource
- Parameters:
query
- a query object.
- Returns:
- the envelope representing the bounds of the features.
- Throws:
IOException
- if there was an encoder problem.
DataSourceException
- if there was an error executing the query to get the bounds.
Copyright © 1996-2009 Geotools. All Rights Reserved.