org.geotools.referencing.factory.epsg
Class AccessDataSource

Object
  extended by CommonDataSource
      extended by DataSource
          extended by AccessDataSource
All Implemented Interfaces:
Serializable, Referenceable, DataSource

Deprecated. Replaced by FactoryOnAccess.

public class AccessDataSource
extends DataSource
implements DataSource

Connection to the EPSG database in MS-Access format using JDBC-ODBC bridge. The EPSG database can be downloaded from http://www.epsg.org. The JDBC-ODBC bridge is a documented feature of Sun's J2SE distribution. See New data source implementations in the JDBC-ODBC bridge.

Just having this class accessible in the classpath, together with the registration in the META-INF/services/ directory, is suffisient to get a working EPSG authority factory backed by this database. Vendors can create a copy of this class, modify it and bundle it with their own distribution if they want to connect their users to an other database (for example a PostgreSQL database reachable on internet).

Since:
2.1
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form
Module:

Constructor Summary
AccessDataSource()
          Deprecated. Creates a new instance of this data source
 
Method Summary
 AbstractAuthorityFactory createFactory(Hints hints)
          Deprecated. Open a connection and creates an EPSG factory for it.
 int getPriority()
          Deprecated. Returns the priority for this data source.
 
Methods inherited from class DataSource
getConnection, getConnection, getReference
 
Methods inherited from class CommonDataSource
getAttributes, getCharSet, getDatabaseName, getDataSourceName, getDescription, getLoginTimeout, getLogWriter, getPassword, getPortNumber, getRoleName, getTracer, getUser, setCharSet, setDatabaseName, setDataSourceName, setDescription, setLoginTimeout, setLogWriter, setPassword, setPortNumber, setRoleName, setUser
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface DataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
 

Constructor Detail

AccessDataSource

public AccessDataSource()
Deprecated. 
Creates a new instance of this data source

Method Detail

getPriority

public int getPriority()
Deprecated. 
Returns the priority for this data source. The default implementation returns NORMAL_PRIORITY - 10.


createFactory

public AbstractAuthorityFactory createFactory(Hints hints)
                                       throws SQLException
Deprecated. 
Open a connection and creates an EPSG factory for it.

Parameters:
hints - A map of hints, including the low-level factories to use for CRS creation.
Returns:
The EPSG factory using MS-Access SQL syntax.
Throws:
SQLException - if connection to the database failed.


Copyright © 1996-2009 Geotools. All Rights Reserved.