Java Doc for OracleDatastore.java in  » GIS » deegree » org » deegree » io » datastore » sql » oracle » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » deegree » org.deegree.io.datastore.sql.oracle 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.io.datastore.Datastore
      org.deegree.io.datastore.sql.AbstractSQLDatastore
         org.deegree.io.datastore.sql.oracle.OracleDatastore

OracleDatastore
public class OracleDatastore extends AbstractSQLDatastore (Code)
Datastore implementation for Oracle Spatial database systems. Supports Oracle Spatial for Oracle 10g.
author:
   Markus Schneider
author:
   Torsten Friebe
author:
   last edited by: $Author: apoth $
version:
   $Revision: 9342 $, $Date: 2007-12-27 04:32:57 -0800 (Thu, 27 Dec 2007) $


Field Summary
final protected static  ILoggerLOG
    


Method Summary
public  SQLFunctionCallbuildSRSTransformCall(MappedGeometryPropertyType geoProperty, String targetSRS)
     Returns an SQLFunctionCall that refers to the given MappingGeometryField in the specified target SRS using a database specific SQL function.
public  StringbuildSRSTransformCall(String geomIdentifier, int nativeSRSCode)
    
protected  booleancanTransformTo(String targetSRS)
     Returns whether the datastore is capable of performing a native coordinate transformation (using an SQL function call for example) into the given SRS.
public  GeometryconvertDBToDeegreeGeometry(Object value, CoordinateSystem targetCS, Connection conn)
     Converts an Oracle specific geometry Object from the ResultSet to a deegree Geometry.
public  STRUCTconvertDeegreeToDBGeometry(Geometry geometry, int nativeSRSCode, Connection conn)
     Converts a deegree Geometry to an Oracle specific geometry object.
public  ObjectconvertFromDBType(Object rsObject, int sqlTypeCode)
     Converts the given object from a java.sql.ResultSet column to the common type to be used as a feature property.
public static  StringfromOracleSRIDCode(int srid)
    
public  intgetNativeSRSCode(String srsName)
    
public static  intgetOracleSRIDCode(String code)
    
public  ObjectgetSequenceNextVal(Connection conn, String sequence)
     Returns the next value of the given SQL sequence.
public  WhereBuildergetWhereBuilder(MappedFeatureType[] rootFts, String[] aliases, Filter filter, SortProperty[] sortProperties, TableAliasGenerator aliasGenerator, VirtualContentProvider vcProvider)
     Returns a specific WhereBuilder implementation for Oracle Spatial.
public  PreparedStatementprepareStatement(Connection conn, StatementBuffer statementBuffer)
     Converts the StatementBuffer into a PreparedStatement , which is initialized and ready to be performed.
protected  QuerytransformQuery(Query query)
     Transforms the incoming Query so that the CoordinateSystem of all spatial arguments (BBOX, etc.) in the Filter match the SRS of the targeted MappingGeometryField s.

NOTE: If this transformation can be performed by the backend (e.g.

protected  FeatureCollectiontransformResult(FeatureCollection fc, String targetSRS)
     Transforms the FeatureCollection so that the geometries of all contained geometry properties use the requested SRS.

Field Detail
LOG
final protected static ILogger LOG(Code)





Method Detail
buildSRSTransformCall
public SQLFunctionCall buildSRSTransformCall(MappedGeometryPropertyType geoProperty, String targetSRS) throws DatastoreException(Code)
Returns an SQLFunctionCall that refers to the given MappingGeometryField in the specified target SRS using a database specific SQL function.
Parameters:
  geoProperty - geometry property
Parameters:
  targetSRS - target spatial reference system (usually "EPSG:XYZ") an SQLFunctionCall that refers to the geometry in the specified srs
throws:
  DatastoreException -



buildSRSTransformCall
public String buildSRSTransformCall(String geomIdentifier, int nativeSRSCode) throws DatastoreException(Code)



canTransformTo
protected boolean canTransformTo(String targetSRS)(Code)
Returns whether the datastore is capable of performing a native coordinate transformation (using an SQL function call for example) into the given SRS.
Parameters:
  targetSRS - target spatial reference system (usually "EPSG:XYZ") true, if the datastore can perform the coordinate transformation, false otherwise



convertDBToDeegreeGeometry
public Geometry convertDBToDeegreeGeometry(Object value, CoordinateSystem targetCS, Connection conn) throws SQLException(Code)
Converts an Oracle specific geometry Object from the ResultSet to a deegree Geometry.
Parameters:
  value -
Parameters:
  targetCS -
Parameters:
  conn - corresponding deegree geometry
throws:
  SQLException -



convertDeegreeToDBGeometry
public STRUCT convertDeegreeToDBGeometry(Geometry geometry, int nativeSRSCode, Connection conn) throws DatastoreException(Code)
Converts a deegree Geometry to an Oracle specific geometry object.
Parameters:
  geometry -
Parameters:
  nativeSRSCode -
Parameters:
  conn - corresponding Oracle specific geometry object
throws:
  DatastoreException -



convertFromDBType
public Object convertFromDBType(Object rsObject, int sqlTypeCode) throws DatastoreException(Code)
Converts the given object from a java.sql.ResultSet column to the common type to be used as a feature property.

NOTE: String- and boolean-valued results have a special conversion handling:

  • Strings: because we encountered difficulties when inserting empty strings "" into String-type columns with NOT NULL constraints (for example in VARCHAR2 fields), "$EMPTY_STRING$" is used to mark them.
  • Boolean:because Oracle has no special boolean type, it is assumed that a CHAR(1) column is used instead (with values 'Y'=true and 'N'=false)

Parameters:
  rsObject -
Parameters:
  sqlTypeCode - an object that is suitable for a table column of the specified SQL type
throws:
  DatastoreException -



fromOracleSRIDCode
public static String fromOracleSRIDCode(int srid)(Code)

Parameters:
  srid - an EPSG code or "-1", if none was found



getNativeSRSCode
public int getNativeSRSCode(String srsName)(Code)



getOracleSRIDCode
public static int getOracleSRIDCode(String code)(Code)

Parameters:
  code - an EPSG code the oracle code as stored in srs_codes_oracle.properties



getSequenceNextVal
public Object getSequenceNextVal(Connection conn, String sequence) throws DatastoreException(Code)
Returns the next value of the given SQL sequence.
Parameters:
  conn - JDBC connection to be used.
Parameters:
  sequence - name of the SQL sequence next value of the given SQL sequence
throws:
  DatastoreException - if the value could not be retrieved



getWhereBuilder
public WhereBuilder getWhereBuilder(MappedFeatureType[] rootFts, String[] aliases, Filter filter, SortProperty[] sortProperties, TableAliasGenerator aliasGenerator, VirtualContentProvider vcProvider) throws DatastoreException(Code)
Returns a specific WhereBuilder implementation for Oracle Spatial.
Parameters:
  rootFts - involved (requested) feature types
Parameters:
  aliases - aliases for the feature types, may be null
Parameters:
  filter - filter that restricts the matched features
Parameters:
  sortProperties - sort criteria for the result, may be null or empty
Parameters:
  aliasGenerator - used to generate unique table aliases
Parameters:
  vcProvider - WhereBuilder implementation for Oracle Spatial
throws:
  DatastoreException -



prepareStatement
public PreparedStatement prepareStatement(Connection conn, StatementBuffer statementBuffer) throws SQLException(Code)
Converts the StatementBuffer into a PreparedStatement , which is initialized and ready to be performed. TODO remove this method (use super class method instead), change handling of JGeometry NOTE: String- and boolean-valued results have a special conversion handling:
  • Strings: because we encountered difficulties when inserting empty strings "" into String-type columns with NOT NULL constraints (for example in VARCHAR2 fields), "$EMPTY_STRING$" is used to mark them.
  • Boolean:because Oracle has no special boolean type, it is assumed that a CHAR(1) column is used instead (with values 'Y'=true and 'N'=false)

Parameters:
  conn - connection to be used to create the PreparedStatement
Parameters:
  statementBuffer - the PreparedStatment, ready to be performed
throws:
  SQLException - if a JDBC related error occurs



transformQuery
protected Query transformQuery(Query query)(Code)
Transforms the incoming Query so that the CoordinateSystem of all spatial arguments (BBOX, etc.) in the Filter match the SRS of the targeted MappingGeometryField s.

NOTE: If this transformation can be performed by the backend (e.g. by Oracle Spatial), this method should be overwritten to return the original input Query .
Parameters:
  query - query to be transformed query with spatial arguments transformed to target SRS




transformResult
protected FeatureCollection transformResult(FeatureCollection fc, String targetSRS)(Code)
Transforms the FeatureCollection so that the geometries of all contained geometry properties use the requested SRS.
Parameters:
  fc - feature collection to be transformed
Parameters:
  targetSRS - requested SRS transformed FeatureCollection



Fields inherited from org.deegree.io.datastore.sql.AbstractSQLDatastore
final protected static ILogger LOG(Code)(Java Doc)
final protected static int SRS_UNDEFINED(Code)(Java Doc)
protected DBConnectionPool pool(Code)(Java Doc)

Methods inherited from org.deegree.io.datastore.sql.AbstractSQLDatastore
protected Connection acquireConnection() throws DatastoreException(Code)(Java Doc)
public synchronized DatastoreTransaction acquireTransaction() throws DatastoreException(Code)(Java Doc)
public SQLFunctionCall buildSRSTransformCall(MappedGeometryPropertyType geoProperty, String targetSRS) throws DatastoreException(Code)(Java Doc)
public String buildSRSTransformCall(String geomIdentifier, int nativeSRSCode) throws DatastoreException(Code)(Java Doc)
public void close() throws DatastoreException(Code)(Java Doc)
public void configure(DatastoreConfiguration datastoreConfiguration) throws DatastoreException(Code)(Java Doc)
abstract public Geometry convertDBToDeegreeGeometry(Object value, CoordinateSystem targetSRS, Connection conn) throws SQLException(Code)(Java Doc)
abstract public Object convertDeegreeToDBGeometry(Geometry geometry, int nativeSRSCode, Connection conn) throws DatastoreException(Code)(Java Doc)
public Object convertFromDBType(Object rsObject, int sqlTypeCode) throws DatastoreException(Code)(Java Doc)
protected SQLTransaction createTransaction() throws DatastoreException(Code)(Java Doc)
public Set<FeatureId> determineFidsToLock(List<Lock> requestParts) throws DatastoreException(Code)(Java Doc)
public AnnotationDocument getAnnotationParser()(Code)(Java Doc)
public int getMaxValue(Connection conn, String tableName, String columnName) throws IdGenerationException(Code)(Java Doc)
public int getNativeSRSCode(String srsName) throws DatastoreException(Code)(Java Doc)
public Object getSequenceNextVal(Connection conn, String sequence) throws DatastoreException(Code)(Java Doc)
public WhereBuilder getWhereBuilder(MappedFeatureType[] rootFts, String[] aliases, Filter filter, SortProperty[] sortProperties, TableAliasGenerator aliasGenerator, VirtualContentProvider vcProvider) throws DatastoreException(Code)(Java Doc)
public FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts) throws DatastoreException, UnknownCRSException(Code)(Java Doc)
public FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts, DatastoreTransaction context) throws DatastoreException, UnknownCRSException(Code)(Java Doc)
protected FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts, Connection conn) throws DatastoreException, UnknownCRSException(Code)(Java Doc)
public PreparedStatement prepareStatement(Connection conn, StatementBuffer statementBuffer) throws SQLException, DatastoreException(Code)(Java Doc)
public void releaseConnection(Connection conn) throws DatastoreException(Code)(Java Doc)
public synchronized void releaseTransaction(DatastoreTransaction ta) throws DatastoreException(Code)(Java Doc)

Fields inherited from org.deegree.io.datastore.Datastore
final protected static ILogger LOG(Code)(Java Doc)

Methods inherited from org.deegree.io.datastore.Datastore
public DatastoreTransaction acquireTransaction() throws DatastoreException(Code)(Java Doc)
public void bindSchema(MappedGMLSchema schema) throws DatastoreException(Code)(Java Doc)
protected boolean canTransformTo(String targetSRS)(Code)(Java Doc)
abstract public void close() throws DatastoreException(Code)(Java Doc)
public void configure(DatastoreConfiguration config) throws DatastoreException(Code)(Java Doc)
public Set<FeatureId> determineFidsToLock(List<Lock> requestParts) throws DatastoreException(Code)(Java Doc)
abstract public AnnotationDocument getAnnotationParser()(Code)(Java Doc)
public DatastoreConfiguration getConfiguration()(Code)(Java Doc)
public MappedFeatureType getFeatureType(QualifiedName ftName)(Code)(Java Doc)
public MappedGMLSchema[] getSchemas()(Code)(Java Doc)
abstract public FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts) throws DatastoreException, UnknownCRSException(Code)(Java Doc)
abstract public FeatureCollection performQuery(Query query, MappedFeatureType[] rootFts, DatastoreTransaction context) throws DatastoreException, UnknownCRSException(Code)(Java Doc)
public void releaseTransaction(DatastoreTransaction ta) throws DatastoreException(Code)(Java Doc)
protected Query transformQuery(Query query)(Code)(Java Doc)
protected FeatureCollection transformResult(FeatureCollection fc, String targetSRS)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.