org.geotools.referencing.factory.epsg
Class AccessDialectEpsgFactory

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.AbstractCachedAuthorityFactory
                  extended by org.geotools.referencing.factory.epsg.AbstractEpsgFactory
                      extended by org.geotools.referencing.factory.epsg.AccessDialectEpsgFactory
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 AccessDialectEpsgFactory
extends AbstractEpsgFactory

This factory uses the MS-Access dialect of SQL. Because the primary distribution format for the EPSG database is MS-Access there is very little work to do in our adaptSQL(java.lang.String) method.

Since:
2.4
Version:
$Id: AccessDialectEpsgFactory.java 30641 2008-06-12 17:42:27Z acuster $
Author:
Jody Garnett

Field Summary
 
Fields inherited from class org.geotools.referencing.factory.epsg.AbstractEpsgFactory
dataSource
 
Fields inherited from class org.geotools.referencing.factory.AbstractCachedAuthorityFactory
cache, 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
AccessDialectEpsgFactory(Hints userHints, java.sql.Connection connection)
          Constructs an authority factory using the specified connection.
 
Method Summary
protected  java.lang.String adaptSQL(java.lang.String statement)
          Invoked when a new PreparedStatement is about to be created from a SQL string.
 
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 org.geotools.referencing.factory.AbstractAuthorityFactory
createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
 
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.Factory
getVendor
 

Constructor Detail

AccessDialectEpsgFactory

public AccessDialectEpsgFactory(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.
Method Detail

adaptSQL

protected java.lang.String adaptSQL(java.lang.String statement)
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 AbstractEpsgFactory
Parameters:
statement - The statement in MS-Access syntax.
Returns:
The SQL statement to use. This implementation returns the string unchanged.


Copyright © 1996-2010 Geotools. All Rights Reserved.