|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.io.DBAccess
org.deegree_impl.io.OracleSpatialAccess
This class extends the DBAccess class to read fields from a oracle spatial table. this may or may not include geometries. if the reques result contains one or more geometries they can be accessed as table column(s) or as OGC WKBs. ------------------------------------------------------------------------
Field Summary | |
private java.lang.String |
sdoVersion
|
private int[] |
struct
|
Fields inherited from class org.deegree_impl.io.DBAccess |
con |
Constructor Summary | |
OracleSpatialAccess(java.sql.Connection con,
boolean autoCommit,
java.lang.String sdoVersion)
constructor |
|
OracleSpatialAccess(java.sql.Connection con,
java.lang.String sdoVersion)
constructor |
|
OracleSpatialAccess(java.lang.String driver,
java.lang.String logon,
java.util.Properties properties,
boolean autoCommit,
java.lang.String sdoVersion)
|
|
OracleSpatialAccess(java.lang.String driver,
java.lang.String logon,
java.util.Properties properties,
java.lang.String sdoVersion)
|
|
OracleSpatialAccess(java.lang.String driver,
java.lang.String logon,
java.lang.String user,
java.lang.String password,
boolean autoCommit,
java.lang.String sdoVersion)
|
|
OracleSpatialAccess(java.lang.String driver,
java.lang.String logon,
java.lang.String user,
java.lang.String password,
java.lang.String sdoVersion)
|
Method Summary | |
java.lang.Object |
performQuery(java.lang.String query,
int startFeature,
int maxFeatures)
perfomrs a general query against a database. |
byte[][][] |
performWKBQuery(java.lang.String query)
Performs a query against a oracle spatial database. |
byte[][][] |
performWKBQuery(java.lang.String query,
int startFeature,
int maxFeatures)
Performs a query against a oracle spatial database. |
private java.sql.PreparedStatement |
reformatStatement(java.lang.String query)
reformates the select statement to an prepared statement. this method will be called if the select statement contains a geometry operator |
Methods inherited from class org.deegree_impl.io.DBAccess |
commit, escape, executeStatement, getColumnTypes, getColumnTypesAsInt, getConnection, getDataBaseVendor, kill, mapTypes, performInsert, performInsert, performQuery, performTableQuery, performTableQuery, performUpdate, rollback, setAutoCommit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String sdoVersion
private int[] struct
Constructor Detail |
public OracleSpatialAccess(java.sql.Connection con, java.lang.String sdoVersion)
con
- connection to a oracle database with spatial extension.sdoVersion
- version of the spatial extensionpublic OracleSpatialAccess(java.sql.Connection con, boolean autoCommit, java.lang.String sdoVersion) throws java.sql.SQLException
con
- connection to a oracle database with spatial extension.public OracleSpatialAccess(java.lang.String driver, java.lang.String logon, java.lang.String user, java.lang.String password, java.lang.String sdoVersion) throws java.sql.SQLException, java.lang.Exception
driver
- name of the jdbc driverlogon
- address of the database (and additional parameters)user
- password
- sdoVersion
- version of the spatial data objects (depends on
the used spatial driver/lib)
java.sql.SQLException
java.lang.Exception
public OracleSpatialAccess(java.lang.String driver, java.lang.String logon, java.util.Properties properties, java.lang.String sdoVersion) throws java.sql.SQLException, java.lang.Exception
driver
- name of the jdbc driverlogon
- address of the database (and additional parameters)properties
- additional propertiessdoVersion
-
java.sql.SQLException
java.lang.Exception
public OracleSpatialAccess(java.lang.String driver, java.lang.String logon, java.lang.String user, java.lang.String password, boolean autoCommit, java.lang.String sdoVersion) throws java.sql.SQLException, java.lang.Exception
driver
- name of the jdbc driverlogon
- address of the database (and additional parameters)user
- password
- autoCommit
- sdoVersion
- version of the spatial data objects (depends on
the used spatial driver/lib)
java.sql.SQLException
java.lang.Exception
public OracleSpatialAccess(java.lang.String driver, java.lang.String logon, java.util.Properties properties, boolean autoCommit, java.lang.String sdoVersion) throws java.sql.SQLException, java.lang.Exception
driver
- name of the jdbc driverlogon
- address of the database (and additional parameters)properties
- autoCommit
- sdoVersion
- version of the spatial data objects (depends on
the used spatial driver/lib)
java.sql.SQLException
java.lang.Exception
Method Detail |
public java.lang.Object performQuery(java.lang.String query, int startFeature, int maxFeatures) throws java.sql.SQLException, java.lang.Exception
performQuery
in class DBAccess
query
- the query parameter contains the query to perform.maxFeatures
- the maximum amount of features that should be
returned by the request. if maxFeatures is <= 0 all
features will be returned.startFeature
- index of the feature the query starts
java.sql.SQLException
- will be thrown if the submitted query
can't be parsed to a valid sql-statement.
java.lang.Exception
private java.sql.PreparedStatement reformatStatement(java.lang.String query) throws java.sql.SQLException
java.sql.SQLException
public byte[][][] performWKBQuery(java.lang.String query) throws java.lang.Exception
query
- the query parameter contains the query to perform.
java.sql.SQLException
- will be thrown if the result aren't a wkb's
java.lang.Exception
public byte[][][] performWKBQuery(java.lang.String query, int startFeature, int maxFeatures) throws java.lang.Exception
query
- the query parameter contains the query to perform.maxFeatures
- the maximum amount of features that should be
returned by the request. if maxFeatures is <= 0 all
features will be returned.
java.lang.Exception
- will be thrown if the result aren't a wkb's
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |