org.geotools.data.geomedia
Class GeoMediaDataStore

java.lang.Object
  extended byorg.geotools.data.jdbc.JDBC1DataStore
      extended byorg.geotools.data.jdbc.JDBC2DataStore
          extended byorg.geotools.data.jdbc.JDBCDataStore
              extended byorg.geotools.data.geomedia.GeoMediaDataStore
All Implemented Interfaces:
DataStore

public class GeoMediaDataStore
extends JDBCDataStore

Geomedia data store implementation

Version:
1.0
Author:
Julian J. Ray

Field Summary
 
Fields inherited from class org.geotools.data.jdbc.JDBC2DataStore
connectionPool
 
Fields inherited from class org.geotools.data.jdbc.JDBC1DataStore
allowWriteOnVolatileFIDs, config, listenerManager, sqlNameEscape, typeHandler
 
Constructor Summary
GeoMediaDataStore(ConnectionPool connectionPool)
          Creates a new GeoMediaDataStore instance
 
Method Summary
protected  boolean allowTable(java.lang.String tablename)
          Returns feature tables which have been entered into the GeoMedia metadata table.
protected  AttributeType buildAttributeType(java.sql.ResultSet rs)
          Overrides the buildAttributeType method to check for GDO_GEOMETRY columns.
protected  AttributeIO getGeometryAttributeIO(AttributeType type, QueryData queryData)
          Hook to create the geometry attribute IO for a vendor specific data source.
 void readMetadata()
          Reads the GeoMedia GFeatures table and caches metadata information.
 
Methods inherited from class org.geotools.data.jdbc.JDBC2DataStore
createConnection
 
Methods inherited from class org.geotools.data.jdbc.JDBC1DataStore
allSameOrder, attributeNames, buildFIDMapperFactory, buildSchema, createFeatureReader, createFeatureWriter, createLockingManager, createSchema, determineFidColumnName, determineSRID, executeQuery, getAttributeIO, getAttributeTypes, getConcurrency, getConnection, getEnvelope, getFeatureReader, getFeatureReader, getFeatureSource, getFeatureTypeHandler, getFeatureWriter, getFeatureWriter, getFeatureWriterAppend, getFIDMapper, getFIDMapperFactory, getJDBCFeatureReader, getLockingManager, getNameSpace, getResultSetType, getSchema, getSqlBuilder, getSqlNameEscape, getTypeNames, getView, setAutoCommit, setFIDMapper, setFIDMapperFactory, setSqlNameEscape, updateSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoMediaDataStore

public GeoMediaDataStore(ConnectionPool connectionPool)
                  throws java.io.IOException
Creates a new GeoMediaDataStore instance

Parameters:
connectionPool - ConnectionPool
Throws:
java.io.IOException
Method Detail

readMetadata

public void readMetadata()
                  throws DataSourceException
Reads the GeoMedia GFeatures table and caches metadata information. If the metadata has already been read, it is overwritten. Used to update the DataStore if changes have been made by GeoMedia.

Throws:
DataSourceException

allowTable

protected boolean allowTable(java.lang.String tablename)
Returns feature tables which have been entered into the GeoMedia metadata table.

Overrides:
allowTable in class JDBC1DataStore
Parameters:
tablename - String - the table to test
Returns:
boolean - true if the table is a spatial table, false otherwise.

buildAttributeType

protected AttributeType buildAttributeType(java.sql.ResultSet rs)
                                    throws java.io.IOException
Overrides the buildAttributeType method to check for GDO_GEOMETRY columns. This function fromes any GeoMedia managed columns which do not contain spatial data such as GDO_GEOMETRY_XHI and spatial indexes.

Overrides:
buildAttributeType in class JDBC1DataStore
Parameters:
rs - ResultSet
Returns:
AttributeType
Throws:
java.sql.SQLException
DataSourceException
java.io.IOException - If an error occurs processing the ResultSet.
See Also:
org.geolbs.data.jdbc.JDBCDataStore#buildAttributeType(java.sql.ResultSet)

getGeometryAttributeIO

protected AttributeIO getGeometryAttributeIO(AttributeType type,
                                             QueryData queryData)
                                      throws java.io.IOException
Description copied from class: JDBC1DataStore
Hook to create the geometry attribute IO for a vendor specific data source.

Specified by:
getGeometryAttributeIO in class JDBC1DataStore
Parameters:
type - The AttributeType to read.
queryData - The connection holder
Returns:
The AttributeIO that will read and write the geometry from the results.
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
JDBC1DataStore.getGeometryAttributeIO(org.geotools.feature.AttributeType, org.geotools.data.jdbc.QueryData)


Copyright © GeoTools. All Rights Reserved.