|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sun.jdbc.odbc.ee.CommonDataSource sun.jdbc.odbc.ee.DataSource org.geotools.referencing.factory.epsg.AccessDataSource
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 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).
Field Summary |
Fields inherited from interface org.geotools.referencing.factory.epsg.DataSource |
MAXIMUM_PRIORITY, MINIMUM_PRIORITY, NORMAL_PRIORITY |
Constructor Summary | |
AccessDataSource()
Creates a new instance of this data source |
Method Summary | |
AbstractAuthorityFactory |
createFactory(Hints hints)
Open a connection and creates an EPSG factory for it. |
int |
getPriority()
Returns the priority for this data source. |
Methods inherited from class sun.jdbc.odbc.ee.DataSource |
getConnection, getConnection, getReference |
Methods inherited from class sun.jdbc.odbc.ee.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.DataSource |
getConnection, getConnection, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
public AccessDataSource()
Method Detail |
public int getPriority()
NORMAL_PRIORITY - 10
.
getPriority
in interface DataSource
public AbstractAuthorityFactory createFactory(Hints hints) throws java.sql.SQLException
createFactory
in interface DataSource
hints
- A map of hints, including the low-level factories to use for CRS creation.
java.sql.SQLException
- if connection to the database failed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |