org.geotools.referencing.factory.epsg
Class OracleDialectEpsgFactory
java.lang.Object
org.geotools.factory.AbstractFactory
org.geotools.referencing.factory.ReferencingFactory
org.geotools.referencing.factory.AbstractAuthorityFactory
org.geotools.referencing.factory.AbstractCachedAuthorityFactory
org.geotools.referencing.factory.epsg.AbstractEpsgFactory
org.geotools.referencing.factory.epsg.AnsiDialectEpsgFactory
org.geotools.referencing.factory.epsg.OracleDialectEpsgFactory
- All Implemented Interfaces:
- javax.imageio.spi.RegisterableService, BufferedFactory, 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
public class OracleDialectEpsgFactory
- extends AnsiDialectEpsgFactory
An EPSG factory suitable for Oracle SQL syntax.
- Since:
- 2.4
- Version:
- $Id: OracleDialectEpsgFactory.java 30691 2008-06-13 13:20:02Z acuster $
- Author:
- John Grange
Constructor Summary |
OracleDialectEpsgFactory(Hints userHints,
java.sql.Connection connection)
Constructs an authority factory using the specified connection. |
OracleDialectEpsgFactory(Hints userHints,
java.sql.Connection connection,
java.lang.String epsgSchema)
Constructs an authority factory using the specified connection to an EPSG database
and a database schema. |
OracleDialectEpsgFactory(Hints userHints,
javax.sql.DataSource datasource)
Constructs an authority factory using the specified datasource. |
Method Summary |
protected java.lang.String |
adaptSQL(java.lang.String statement)
Modifies the given SQL string to be suitable for an Oracle databases. |
Methods inherited from class org.geotools.referencing.factory.epsg.AbstractEpsgFactory |
connect, disconnect, dispose, finalize, generateAuthorityCodes, generateCoordinateOperation, generateCoordinateReferenceSystem, generateCoordinateSystem, generateCoordinateSystemAxis, generateDatum, generateEllipsoid, generateExtent, generateFromCoordinateReferenceSystemCodes, generateObject, generateOperationMethod, generateParameterDescriptor, generatePrimeMeridian, generateUnit, getAuthority, getBackingStoreDescription, getConnection, getDescriptionText, getImplementationHints, isPrimaryKey, shutdown |
Methods inherited from class org.geotools.referencing.factory.AbstractCachedAuthorityFactory |
createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringCRS, createEngineeringDatum, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, getAuthorityCodes, getIdentifiedObjectFinder, noSuchAuthorityCode, toKey, trimAuthority |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.referencing.Factory |
getVendor |
OracleDialectEpsgFactory
public OracleDialectEpsgFactory(Hints userHints,
java.sql.Connection connection)
- 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.
OracleDialectEpsgFactory
public OracleDialectEpsgFactory(Hints userHints,
javax.sql.DataSource datasource)
- Constructs an authority factory using the specified datasource.
- Parameters:
userHints
- The underlying factories used for objects creation.datasource
- The datasource of the underlying EPSG database.
OracleDialectEpsgFactory
public OracleDialectEpsgFactory(Hints userHints,
java.sql.Connection connection,
java.lang.String epsgSchema)
- 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).
adaptSQL
protected java.lang.String adaptSQL(java.lang.String statement)
- 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 AnsiDialectEpsgFactory
- 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.