org.geotools.referencing.factory.epsg
Class FactoryUsingOracleSQL

java.lang.Object
  extended by org.geotools.factory.AbstractFactory
      extended by org.geotools.referencing.factory.ReferencingFactory
          extended by org.geotools.referencing.factory.AbstractAuthorityFactory
              extended by org.geotools.referencing.factory.DirectAuthorityFactory
                  extended by org.geotools.referencing.factory.epsg.DirectEpsgFactory
                      extended by org.geotools.referencing.factory.epsg.FactoryUsingSQL
                          extended by org.geotools.referencing.factory.epsg.FactoryUsingAnsiSQL
                              extended by org.geotools.referencing.factory.epsg.FactoryUsingOracleSQL
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, Factory, org.opengis.referencing.AuthorityFactory, org.opengis.referencing.crs.CRSAuthorityFactory, org.opengis.referencing.cs.CSAuthorityFactory, org.opengis.referencing.datum.DatumAuthorityFactory, org.opengis.referencing.operation.CoordinateOperationAuthorityFactory

Deprecated. Please use OracleDialectEpsgFactory.

public class FactoryUsingOracleSQL
extends FactoryUsingAnsiSQL

An EPSG factory suitable for Oracle SQL syntax.

Since:
2.1
Version:
$Id: FactoryUsingOracleSQL.java 30691 2008-06-13 13:20:02Z acuster $
Author:
John Grange

Field Summary
 
Fields inherited from class org.geotools.referencing.factory.epsg.FactoryUsingAnsiSQL
map
 
Fields inherited from class org.geotools.referencing.factory.DirectAuthorityFactory
factories
 
Fields inherited from class org.geotools.referencing.factory.ReferencingFactory
LOGGER
 
Fields inherited from class org.geotools.factory.AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
 
Constructor Summary
FactoryUsingOracleSQL(Hints userHints, java.sql.Connection connection)
          Deprecated. Constructs an authority factory using the specified connection.
FactoryUsingOracleSQL(Hints userHints, java.sql.Connection connection, java.lang.String epsgSchema)
          Deprecated. Constructs an authority factory using the specified connection to an EPSG database and a database schema.
 
Method Summary
protected  java.lang.String adaptSQL(java.lang.String statement)
          Deprecated. Modifies the given SQL string to be suitable for an Oracle databases.
 
Methods inherited from class org.geotools.referencing.factory.epsg.FactoryUsingAnsiSQL
setSchema
 
Methods inherited from class org.geotools.referencing.factory.epsg.DirectEpsgFactory
createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createDatum, createEllipsoid, createExtent, createFromCoordinateReferenceSystemCodes, createObject, createOperationMethod, createParameterDescriptor, createPrimeMeridian, createUnit, dispose, finalize, getAuthority, getAuthorityCodes, getBackingStoreDescription, getConnection, getDescriptionText, getIdentifiedObjectFinder, getImplementationHints, getValidationQuery, isConnectionValid, isPrimaryKey, setValidationQuery, shutdown
 
Methods inherited from class org.geotools.referencing.factory.AbstractAuthorityFactory
createCartesianCS, createCompoundCRS, createCylindricalCS, createDerivedCRS, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createPolarCS, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createVerticalCRS, createVerticalCS, createVerticalDatum, noSuchAuthorityCode, trimAuthority
 
Methods inherited from class org.geotools.referencing.factory.ReferencingFactory
ensureNonNull, getVendor
 
Methods inherited from class org.geotools.factory.AbstractFactory
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opengis.referencing.crs.CRSAuthorityFactory
createCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
 
Methods inherited from interface org.opengis.referencing.cs.CSAuthorityFactory
createCartesianCS, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createVerticalCS
 
Methods inherited from interface org.opengis.referencing.datum.DatumAuthorityFactory
createEngineeringDatum, createGeodeticDatum, createImageDatum, createTemporalDatum, createVerticalDatum
 
Methods inherited from interface org.opengis.referencing.Factory
getVendor
 

Constructor Detail

FactoryUsingOracleSQL

public FactoryUsingOracleSQL(Hints userHints,
                             java.sql.Connection connection)
Deprecated. 
Constructs an authority factory using the specified connection.

Parameters:
userHints - The underlying factories used for objects creation.
connection - The connection to the underlying EPSG database.

FactoryUsingOracleSQL

public FactoryUsingOracleSQL(Hints userHints,
                             java.sql.Connection connection,
                             java.lang.String epsgSchema)
Deprecated. 
Constructs an authority factory using the specified connection to an EPSG database and a database schema. If the database schema is not supplied, or it is null or an empty string, then the tables are assumed to be in the same schema as the user which is being used to connect to the database. You MUST ensure that the connecting user has permissions to select from all the tables in the epsg user schema.

Parameters:
userHints - The underlying factories used for objects creation.
connection - The connection to the underlying EPSG database.
epsgSchema - The database schema in which the epsg tables are stored (optional).
Method Detail

adaptSQL

protected java.lang.String adaptSQL(java.lang.String statement)
Deprecated. 
Modifies the given SQL string to be suitable for an Oracle databases. This removes " AS " elements from the SQL statements as these don't work in oracle.

Overrides:
adaptSQL in class FactoryUsingAnsiSQL
Parameters:
statement - The statement in MS-Access syntax.
Returns:
The SQL statement to use, suitable for an Oracle database.


Copyright © 1996-2010 Geotools. All Rights Reserved.