org.geotools.referencing.factory.epsg
Class FactoryUsingSQL

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
All Implemented Interfaces:
javax.imageio.spi.RegisterableService, Factory, AuthorityFactory, CRSAuthorityFactory, CSAuthorityFactory, DatumAuthorityFactory, CoordinateOperationAuthorityFactory
Direct Known Subclasses:
FactoryUsingAnsiSQL

Deprecated. Please use AccessDialectEpsgFactory.

public class FactoryUsingSQL
extends DirectEpsgFactory

Please use AccessDialectEpsgFactory.

Since:
2.1
Version:
$Id$
Author:
Jody Garnett

Field Summary
 
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
FactoryUsingSQL(Hints userHints, java.sql.Connection connection)
          Deprecated. Constructs an authority factory using the specified connection.
FactoryUsingSQL(Hints userHints, javax.sql.DataSource dataSource)
          Deprecated. Constructs an authority factory using the specified connection.
 
Method Summary
protected  java.lang.String adaptSQL(java.lang.String statement)
          Deprecated. Invoked when a new PreparedStatement is about to be created from a SQL string.
 
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

FactoryUsingSQL

public FactoryUsingSQL(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.
Since:
2.2

FactoryUsingSQL

public FactoryUsingSQL(Hints userHints,
                       javax.sql.DataSource dataSource)
Deprecated. 
Constructs an authority factory using the specified connection.

Parameters:
userHints - The underlying factories used for objects creation.
dataSource - The connection to the underlying EPSG database.
Since:
2.5
Method Detail

adaptSQL

protected java.lang.String adaptSQL(java.lang.String statement)
Deprecated. 
Invoked when a new PreparedStatement is about to be created from a SQL string. Since the EPSG database is available mainly in MS-Access format, and this is the target of our super class, we have no work to do here.

Specified by:
adaptSQL in class DirectEpsgFactory
Parameters:
statement - The statement in MS-Access syntax.
Returns:
The SQL statement to use. This implementation returns the string unchanged.


Copyright © 1996-2014 Geotools. All Rights Reserved.