org.geotools.referencing.factory.epsg
Class HSQLDataSource

java.lang.Object
  extended byorg.hsqldb.jdbc.jdbcDataSource
      extended byorg.geotools.referencing.factory.epsg.HSQLDataSource
All Implemented Interfaces:
DataSource, javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable

public class HSQLDataSource
extends org.hsqldb.jdbc.jdbcDataSource
implements DataSource

Connection to the EPSG database in HSQL database engine format using JDBC. The EPSG database can be downloaded from http://www.epsg.org. The SQL scripts (modified for the HSQL syntax as explained here) are bundled into this plugin. The database version is given in the edition attribute of the authority. The HSQL database is read only.

Implementation note

The SQL scripts are executed the first time a connection is required. The database is then created as cached tables ( and files) in a temporary directory. Future connections to the EPSG database while reuse the cached tables, if available. Otherwise, the scripts will be executed again in order to recreate them.

If the EPSG database should be created in a different directory (or already exists in that directory), this directory can be specified in two ways:

Since:
2.2
Version:
$Id: HSQLDataSource.java 18669 2006-03-14 23:27:27Z desruisseaux $
Author:
Martin Desruisseaux, Didier Richard
See Also:
Serialized Form

Field Summary
static java.lang.String DATABASE_NAME
          The database name.
static java.lang.String DIRECTORY_KEY
          The key for fetching the database directory from system properties.
 
Fields inherited from interface org.geotools.referencing.factory.epsg.DataSource
MAXIMUM_PRIORITY,