public abstract class AbstractEpsgMediator extends AbstractAuthorityMediator
DataSource docs needed:
AbstractAuthorityMediator.WorkerSafeRunnable
Modifier and Type | Field and Description |
---|---|
protected DataSource |
datasource |
static int |
PRIORITY
The default priority level for this factory.
|
factories
hints, MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY, priority
Constructor and Description |
---|
AbstractEpsgMediator()
No argument constructor - must not fail for factory finder registration.
|
AbstractEpsgMediator(Hints hints) |
AbstractEpsgMediator(Hints hints,
DataSource datasource) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Clean up the object pool of workers (since we are shutting down).
|
Citation |
getAuthority()
The authority body of the objects this factory provides.
|
protected Connection |
getConnection() |
InternationalString |
getDescriptionText(String code)
Gets a description of the object corresponding to a code.
|
boolean |
isConnected()
True if this mediator is currently connected to one or more workers.
|
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, validateWorker
createEngineeringCRS, createExtent, createOperationMethod, createParameterDescriptor, noSuchAuthorityCode
ensureNonNull, getVendor
addImplementationHints, equals, getImplementationHints, getPriority, hashCode, onDeregistration, onRegistration, toString
createEngineeringCRS
getImplementationHints
public static final int PRIORITY
protected DataSource datasource
public AbstractEpsgMediator()
public AbstractEpsgMediator(Hints hints) throws FactoryException
FactoryException
public AbstractEpsgMediator(Hints hints, DataSource datasource)
protected Connection getConnection() throws SQLException
SQLException
public Citation getAuthority()
AbstractAuthorityMediator
getAuthority
in interface AuthorityFactory
getAuthority
in class AbstractAuthorityMediator
public void dispose() throws FactoryException
AbstractAuthorityMediator
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().
dispose
in class AbstractAuthorityMediator
FactoryException
- if an error occured while disposing the factory.public boolean isConnected()
AbstractAuthorityMediator
isConnected
in class AbstractAuthorityMediator
public InternationalString getDescriptionText(String code) throws FactoryException
getDescriptionText
in interface AuthorityFactory
getDescriptionText
in class AbstractAuthorityMediator
code
- Value allocated by authority.null
if the object corresponding to the
specified code
has no description.NoSuchAuthorityCodeException
- if the specified code
was not found.FactoryException
- if the query failed for some other reason.Copyright © 1996–2019 Geotools. All rights reserved.