Class HsqlDialectEpsgMediator
Object
AbstractFactory
ReferencingFactory
AbstractAuthorityFactory
AbstractAuthorityMediator
AbstractEpsgMediator
HsqlDialectEpsgMediator
- All Implemented Interfaces:
AuthorityFactory
,CRSAuthorityFactory
,CSAuthorityFactory
,DatumAuthorityFactory
,Factory
,CoordinateOperationAuthorityFactory
,BufferedFactory
,Factory
,RegistrableFactory
Mediator which delegates the creation of referencing objects to the HsqlDialectEpsgFactory.
- Author:
- Cory Horner (Refractions Research)
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractAuthorityMediator
AbstractAuthorityMediator.WorkerSafeRunnable
-
Field Summary
Fields inherited from class AbstractEpsgMediator
datasource, PRIORITY
Fields inherited from class AbstractAuthorityMediator
factories
Fields inherited from class AbstractFactory
MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this factory.HsqlDialectEpsgMediator
(int priority, DataSource datasource) Creates an HsqlDialectEpsgMediator with a 20 min timeout, single worker, and no cache.HsqlDialectEpsgMediator
(int priority, Hints hints, DataSource datasource) HsqlDialectEpsgMediator
(Hints hints) Creates a new instance of this data source using the specified hints. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Reinitialize an instance to be returned by the pool.protected void
Destroys an instance no longer needed by the pool.protected AbstractCachedAuthorityFactory
Creates an instance that can be returned by the pool.protected void
Uninitialize an instance to be returned to the pool.protected boolean
Ensures that the instance is safe to be returned by the pool.Methods inherited from class AbstractEpsgMediator
dispose, getAuthority, getConnection, getDescriptionText, isConnected
Methods inherited from class AbstractAuthorityMediator
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, getAuthorityCodes, getBackingStoreDescription, getIdentifiedObjectFinder, toKey, trimAuthority
Methods inherited from class AbstractAuthorityFactory
createEngineeringCRS, createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
Methods inherited from class ReferencingFactory
ensureNonNull, getVendor
Methods inherited from class AbstractFactory
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
Methods inherited from interface CRSAuthorityFactory
createEngineeringCRS
Methods inherited from interface Factory
getImplementationHints
-
Constructor Details
-
HsqlDialectEpsgMediator
Creates a new instance of this factory.- Throws:
FactoryException
-
HsqlDialectEpsgMediator
Creates a new instance of this data source using the specified hints. The priority is set to a lower value than the FactoryOnAccess's one in order to give precedence to the Access-backed database, if presents. Priorities are set that way because:- The MS-Access format is the primary EPSG database format.
- If a user downloads the MS-Access database himself, he probably wants to use it.
- Throws:
FactoryException
-
HsqlDialectEpsgMediator
Creates an HsqlDialectEpsgMediator with a 20 min timeout, single worker, and no cache. -
HsqlDialectEpsgMediator
-
-
Method Details
-
activateWorker
Reinitialize an instance to be returned by the pool.- Specified by:
activateWorker
in classAbstractAuthorityMediator
- Throws:
Exception
-
destroyWorker
Destroys an instance no longer needed by the pool.- Specified by:
destroyWorker
in classAbstractAuthorityMediator
- Throws:
Exception
-
makeWorker
Creates an instance that can be returned by the pool.- Specified by:
makeWorker
in classAbstractAuthorityMediator
- Throws:
Exception
-
passivateWorker
Uninitialize an instance to be returned to the pool.- Specified by:
passivateWorker
in classAbstractAuthorityMediator
- Throws:
Exception
-
validateWorker
Ensures that the instance is safe to be returned by the pool.- Specified by:
validateWorker
in classAbstractAuthorityMediator
-