Method Summary |
|
protected AttributeType | buildAttributeType(ResultSet rs) Handles DB2-specific geometry types. |
protected FIDMapperFactory | buildFIDMapperFactory(JDBCDataStoreConfig config) Creates a DB2-specific FIDMapperFactory.
Parameters: config - not used. |
protected JDBCFeatureWriter | createFeatureWriter(FeatureReader featureReader, QueryData queryData) Overrides the method in JDBCDataStore so that a DB2FeatureWriter is
created. |
protected int | determineSRID(String tableName, String geometryColumnName) Get the SRID associated with a geometry column.
The value returned is the EPSG coordinate system identifier, not the DB2
srs_id.
Parameters: tableName - The name of the table to get the SRID for. Parameters: geometryColumnName - The name of the geometry column within thetable to get SRID for. |
protected QueryData | executeQuery(FeatureTypeInfo featureTypeInfo, String tableName, String sqlQuery, Transaction transaction, boolean forWrite) Overrides the method in JDBCDataStore because it includes
PostGIS-specific handling to setAutoCommit(false) which causes problems
for DB2 because the transaction is still uncommitted when the
connection is closed.
Parameters: featureTypeInfo - Parameters: tableName - Parameters: sqlQuery - The SQL query to execute. Parameters: transaction - The Transaction is included here for handlingtransaction connections at a later stage. |
String | getDbURL() Gets the database URL. |
public FeatureReader | getFeatureReader(FeatureType requestType, Filter filter, Transaction transaction) This is a public entry point to the DataStore. |
public FeatureSource | getFeatureSource(String typeName) Gets a DB2-specific feature source. |
protected FeatureTypeHandler | getFeatureTypeHandler(JDBCDataStoreConfig config) Create a DB2-specific FeatureTypeHandler.
Parameters: config - a JDBCDataStoreConfig. |
protected AttributeIO | getGeometryAttributeIO(AttributeType type, QueryData queryData) Gets the handler to convert a geometry database value to a JTS geometry.
Parameters: type - not used. Parameters: queryData - not used. |
DB2SpatialCatalog | getSpatialCatalog() Gets the instance of the DB2SpatialCatalog associated with this data
store. |
public SQLBuilder | getSqlBuilder(String typeName) Gets the DB2-specific SQL builder object.
Parameters: typeName - Name of the type to build the SQL for. |
public String | getTableSchema() Gets the table schema associated with this data store. |
public String[] | getTypeNames() Gets the names of tables (types) that contain a spatial column. |
public void | refreshCatalog() Reloads the spatial catalog from the database. |