Package org.geotools.referencing.factory
Class AbstractEpsgMediator
Object
AbstractFactory
ReferencingFactory
AbstractAuthorityFactory
AbstractAuthorityMediator
AbstractEpsgMediator
- All Implemented Interfaces:
AuthorityFactory,CRSAuthorityFactory,CSAuthorityFactory,DatumAuthorityFactory,Factory,CoordinateOperationAuthorityFactory,BufferedFactory,Factory,RegistrableFactory
- Direct Known Subclasses:
HsqlDialectEpsgMediator
Abstract implementation for EPSG (has a DataSource reference inside).
DataSource docs needed:
- Author:
- Cory Horner (Refractions Research)
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAuthorityMediator
AbstractAuthorityMediator.WorkerSafeRunnable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DataSourcestatic final intThe default priority level for this factory.Fields inherited from class AbstractAuthorityMediator
factoriesFields inherited from class AbstractFactory
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority -
Constructor Summary
ConstructorsConstructorDescriptionNo argument constructor - must not fail for factory finder registration.AbstractEpsgMediator(Hints hints) AbstractEpsgMediator(Hints hints, DataSource datasource) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Clean up the object pool of workers (since we are shutting down).The authority body of the objects this factory provides.protected ConnectiongetDescriptionText(String code) Gets a description of the object corresponding to a code.booleanTrue if this mediator is currently connected to one or more workers.Methods inherited from class AbstractAuthorityMediator
activateWorker, completeHints, createCartesianCS, createCompoundCRS, createCoordinateOperation, createCoordinateReferenceSystem, createCoordinateSystem, createCoordinateSystemAxis, createCylindricalCS, createDatum, createDerivedCRS, createEllipsoid, createEllipsoidalCS, createEngineeringDatum, createFromCoordinateReferenceSystemCodes, createGeocentricCRS, createGeodeticDatum, createGeographicCRS, createImageCRS, createImageDatum, createObject, createPolarCS, createPrimeMeridian, createProjectedCRS, createSphericalCS, createTemporalCRS, createTemporalDatum, createTimeCS, createUnit, createVerticalCRS, createVerticalCS, createVerticalDatum, createWith, destroyWorker, getAuthorityCodes, getBackingStoreDescription, getIdentifiedObjectFinder, makeWorker, passivateWorker, toKey, trimAuthority, validateWorkerMethods inherited from class AbstractAuthorityFactory
createEngineeringCRS, createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCodeMethods inherited from class ReferencingFactory
ensureNonNull, getVendorMethods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toStringMethods inherited from interface CRSAuthorityFactory
createEngineeringCRSMethods inherited from interface Factory
getImplementationHints
-
Field Details
-
PRIORITY
public static final int PRIORITYThe default priority level for this factory.- See Also:
-
datasource
-
-
Constructor Details
-
AbstractEpsgMediator
public AbstractEpsgMediator()No argument constructor - must not fail for factory finder registration. -
AbstractEpsgMediator
- Throws:
FactoryException
-
AbstractEpsgMediator
-
-
Method Details
-
getConnection
- Throws:
SQLException
-
getAuthority
Description copied from class:AbstractAuthorityMediatorThe authority body of the objects this factory provides.- Specified by:
getAuthorityin interfaceAuthorityFactory- Specified by:
getAuthorityin classAbstractAuthorityMediator- Returns:
- The organization reponsible for definition of the database.
-
dispose
Description copied from class:AbstractAuthorityMediatorClean up the object pool of workers (since we are shutting down).Subclasses may wish to override this method if they have their own resources to clean up (like a database connection). If you do this please remember to call super.dispose().
- Overrides:
disposein classAbstractAuthorityMediator- Throws:
FactoryException- if an error occured while disposing the factory.
-
isConnected
public boolean isConnected()Description copied from class:AbstractAuthorityMediatorTrue if this mediator is currently connected to one or more workers.- Overrides:
isConnectedin classAbstractAuthorityMediator
-
getDescriptionText
Gets a description of the object corresponding to a code.- Specified by:
getDescriptionTextin interfaceAuthorityFactory- Specified by:
getDescriptionTextin classAbstractAuthorityMediator- Parameters:
code- Value allocated by authority.- Returns:
- A description of the object, or
nullif the object corresponding to the specifiedcodehas no description. - Throws:
NoSuchAuthorityCodeException- if the specifiedcodewas not found.FactoryException- if the query failed for some other reason.
-