Class FactoryUsingSQL
- All Implemented Interfaces:
AuthorityFactory
,CRSAuthorityFactory
,CSAuthorityFactory
,DatumAuthorityFactory
,Factory
,CoordinateOperationAuthorityFactory
,Factory
,RegistrableFactory
- Direct Known Subclasses:
FactoryUsingAnsiSQL
Please use
AccessDialectEpsgFactory
.- Since:
- 2.1
- Author:
- Jody Garnett
-
Nested Class Summary
Nested classes/interfaces inherited from class DirectEpsgFactory
DirectEpsgFactory.OperationOrder
-
Field Summary
Fields inherited from class DirectEpsgFactory
ORDER_KEY
Fields inherited from class DirectAuthorityFactory
factories
Fields inherited from class ReferencingFactory
LOGGER
Fields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
-
Constructor Summary
ConstructorsConstructorDescriptionFactoryUsingSQL
(Hints userHints, Connection connection) Constructs an authority factory using the specified connection.FactoryUsingSQL
(Hints userHints, DataSource dataSource) Constructs an authority factory using the specified connection. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Invoked when a newPreparedStatement
is about to be created from a SQL string.Methods inherited from class 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, setOperationOrder, setValidationQuery, shutdown
Methods inherited from class 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 ReferencingFactory
ensureNonNull, getVendor
Methods inherited from class AbstractFactory
addImplementationHints, equals, getPriority, hashCode, onDeregistration, onRegistration, toString
Methods inherited from interface CRSAuthorityFactory
createCompoundCRS, createDerivedCRS, createEngineeringCRS, createGeocentricCRS, createGeographicCRS, createImageCRS, createProjectedCRS, createTemporalCRS, createVerticalCRS
Methods inherited from interface CSAuthorityFactory
createCartesianCS, createCylindricalCS, createEllipsoidalCS, createPolarCS, createSphericalCS, createTimeCS, createVerticalCS
Methods inherited from interface DatumAuthorityFactory
createEngineeringDatum, createGeodeticDatum, createImageDatum, createTemporalDatum, createVerticalDatum
-
Constructor Details
-
FactoryUsingSQL
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
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 Details
-
adaptSQL
Invoked when a newPreparedStatement
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 classDirectEpsgFactory
- Parameters:
statement
- The statement in MS-Access syntax.- Returns:
- The SQL statement to use. This implementation returns the string unchanged.
-