|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCommonDataSource
DataSource
AccessDataSource
FactoryOnAccess
.
public class 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 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).
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 |
---|
public AccessDataSource()
Method Detail |
---|
public int getPriority()
NORMAL_PRIORITY - 10
.
public AbstractAuthorityFactory createFactory(Hints hints) throws SQLException
hints
- A map of hints, including the low-level factories to use for CRS creation.
SQLException
- if connection to the database failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |