|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.data.jdbc.JDBC1DataStore org.geotools.data.jdbc.JDBC2DataStore org.geotools.data.jdbc.JDBCDataStore org.geotools.data.oracle.OracleDataStore
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, TYPE_MAPPINGS, typeHandler |
Constructor Summary | |
OracleDataStore(ConnectionPool connectionPool,
JDBCDataStoreConfig config)
|
|
OracleDataStore(ConnectionPool connectionPool,
java.lang.String schemaName,
java.util.Map fidGeneration)
|
|
OracleDataStore(ConnectionPool connectionPool,
java.lang.String namespace,
java.lang.String schemaName,
java.util.Map fidGeneration)
|
Method Summary | |
protected boolean |
allowTable(java.lang.String tablename)
Crops non feature type tables. |
protected AttributeType |
buildAttributeType(java.sql.ResultSet rs)
Overrides the buildAttributeType method to check for SDO_GEOMETRY columns. |
protected JDBCFeatureWriter |
createFeatureWriter(FeatureReader fReader,
QueryData queryData)
Returns a Oracle text based feature writer that just issues the sql statements directly, as text. |
protected org.opengis.referencing.crs.CoordinateReferenceSystem |
determineCRS(int srid)
|
protected int |
determineSRID(java.lang.String tableName,
java.lang.String geometryColumnName)
Provides a hook for subclasses to determine the SRID of a geometry column. |
com.vividsolutions.jts.geom.Envelope |
getEnvelope(java.lang.String typeName)
Retrieve approx bounds of all Features. |
protected AttributeIO |
getGeometryAttributeIO(AttributeType type,
QueryData queryData)
Hook to create the geometry attribute IO for a vendor specific data source. |
SQLBuilder |
getSqlBuilder(java.lang.String typeName)
Hook for subclass to return a different sql builder. |
Methods inherited from class org.geotools.data.jdbc.JDBC2DataStore |
createConnection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OracleDataStore(ConnectionPool connectionPool, JDBCDataStoreConfig config) throws java.io.IOException
connectionPool
- config
-
java.io.IOException
public OracleDataStore(ConnectionPool connectionPool, java.lang.String schemaName, java.util.Map fidGeneration) throws java.io.IOException
connectionPool
-
DataSourceException
java.io.IOException
public OracleDataStore(ConnectionPool connectionPool, java.lang.String namespace, java.lang.String schemaName, java.util.Map fidGeneration) throws java.io.IOException
connectionPool
- namespace
-
DataSourceException
java.io.IOException
Method Detail |
protected boolean allowTable(java.lang.String tablename)
allowTable
in class JDBC1DataStore
tablename
- A table name to check.
JDBC1DataStore.allowTable(java.lang.String)
protected AttributeType buildAttributeType(java.sql.ResultSet rs) throws java.io.IOException
buildAttributeType
in class JDBC1DataStore
rs
- The ResultSet containing the result of a
DatabaseMetaData.getColumns call.
java.io.IOException
- If an error occurs processing the ResultSet.http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10826.pdf
TODO: Determine the specific type of the geometry.
protected org.opengis.referencing.crs.CoordinateReferenceSystem determineCRS(int srid) throws java.io.IOException
java.io.IOException
protected int determineSRID(java.lang.String tableName, java.lang.String geometryColumnName) throws java.io.IOException
JDBC1DataStore
This allows SRIDs to be determined in a Vendor specific way and to be cached by the default implementation. To retreive these srids, get the FeatureTypeInfo object for the table and call getSRID(geometryColumnName). This will allow storage of SRIDs for multiple geometry columns in each table.
If no SRID can be found, subclasses should return -1. The default implementation always returns -1.
determineSRID
in class JDBC1DataStore
tableName
- The name of the table to get the SRID for.geometryColumnName
- The name of the geometry column within the table to get SRID
for.
java.io.IOException
JDBC1DataStore.determineSRID(java.lang.String, java.lang.String)
public SQLBuilder getSqlBuilder(java.lang.String typeName) throws java.io.IOException
JDBC1DataStore
getSqlBuilder
in class JDBC1DataStore
typeName
- The typename for the sql builder.
java.io.IOException
- if anything goes wrong.JDBC1DataStore.getSqlBuilder(java.lang.String)
protected AttributeIO getGeometryAttributeIO(AttributeType type, QueryData queryData) throws java.io.IOException
JDBC1DataStore
getGeometryAttributeIO
in class JDBC1DataStore
type
- The AttributeType to read.queryData
- The connection holder
java.io.IOException
- DOCUMENT ME!JDBC1DataStore.getGeometryAttributeIO(org.geotools.feature.AttributeType, org.geotools.data.jdbc.QueryData)
protected JDBCFeatureWriter createFeatureWriter(FeatureReader fReader, QueryData queryData) throws java.io.IOException
createFeatureWriter
in class JDBC1DataStore
java.io.IOException
public com.vividsolutions.jts.geom.Envelope getEnvelope(java.lang.String typeName)
This result is suitable for a quick map display, illustrating the data. This value is often stored as metadata in databases such as oraclespatial.
getEnvelope
in class JDBC1DataStore
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |