org.geotools.data.jdbc
Class JDBCDataStore
Object
JDBC1DataStore
JDBC2DataStore
JDBCDataStore
- All Implemented Interfaces:
- DataAccess<SimpleFeatureType,SimpleFeature>, DataStore
- Direct Known Subclasses:
- DB2DataStore, PostgisDataStore
public abstract class JDBCDataStore
- extends JDBC2DataStore
Abstract class for JDBC (level2) based DataStore implementations.
This a convenience class that just extends JDBC2DataStore to keep
current datastores that use it happy.
Eventually datastores should extend one of JDBC1DataStore, or
JDBC2DataStore.
This class provides a default implementation of a JDBC data store. Support
for vendor specific JDBC data stores can be easily added to Geotools by
subclassing this class and overriding the hooks provided.
At a minimum subclasses should implement the following methods:
-
buildAttributeType(ResultSet)
- This
should be overriden to construct an attribute type that represents any
column types not supported by the default implementation, such as geometry
columns.
-
getGeometryAttributeIO(AttributeType, QueryData)
- Should be overriden to
provide a way to read/write geometries into the format of the database
Additionally subclasses can optionally override the following:
Additionally subclasses may want to set the value of:
-
sqlNameEscape - character (String) to surround names of SQL objects to
support mixed-case and non-English names.
- Author:
- Amr Alam, Refractions Research, Sean Geoghegan, Defence Science and Technology Organisation, Chris Holmes, TOPP, Andrea Aime
- Module:
Methods inherited from class JDBC1DataStore |
allowTable, allSameOrder, attributeNames, buildAttributeType, buildFIDMapper, buildFIDMapperFactory, buildSchema, createFeatureReader, createFeatureWriter, createLockingManager, createSchema, determineFidColumnName, determineSRID, executeQuery, executeQuery, getAttributeIO, getAttributeTypes, getConcurrency, getConnection, getDatabaseSchemaName, getEnvelope, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureSource, getFeatureTypeHandler, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFIDMapper, getFIDMapperFactory, getGeometryAttributeIO, getInfo, getJDBCFeatureReader, getLockingManager, getNames, getNameSpace, getResultSetType, getSchema, getSchema, getSqlBuilder, getSqlNameEscape, getSupportedHints, getTransactionIsolation, getTypeNames, getView, propertyNames, requireAutoCommit, setAutoCommit, setFIDMapper, setFIDMapperFactory, setSqlNameEscape, setTransactionIsolation, updateSchema, updateSchema |
JDBCDataStore
protected JDBCDataStore(DataSource dataSource,
JDBCDataStoreConfig config)
throws IOException
- Throws:
IOException
Copyright © 1996-2009 Geotools. All Rights Reserved.