| org.geotools.referencing.factory.epsg.ThreadedEpsgFactory org.geotools.referencing.factory.epsg.DefaultFactory org.geotools.referencing.factory.epsg.FactoryOnHSQL
FactoryOnHSQL | public class FactoryOnHSQL extends DefaultFactory (Code) | | 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
of the
.
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 (
HSQL.properties and
HSQL.data 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), it may be specified as a
nammed
.
since: 2.4 version: $Id: FactoryOnHSQL.java 27863 2007-11-12 20:34:34Z desruisseaux $ author: Martin Desruisseaux author: Didier Richard ThreadedHsqlEpsgFactory |
Constructor Summary | |
public | FactoryOnHSQL() Creates a new instance of this factory. | public | FactoryOnHSQL(Hints hints) Creates a new instance of this data source using the specified hints. |
DATABASE_NAME | final public static String DATABASE_NAME(Code) | | The database name.
|
DIRECTORY_KEY | final public static String DIRECTORY_KEY(Code) | | The key for fetching the database directory from
.
|
VERSION | final public static Version VERSION(Code) | | Current version of EPSG-HSQL plugin. This is usually the same version number than the
one in the EPSG database bundled in this plugin. However this field may contains
additional minor version number if there is some changes related to the EPSG-HSQL
plugin rather then the EPSG database itself (for example additional database index).
since: 2.4 |
FactoryOnHSQL | public FactoryOnHSQL()(Code) | | Creates a new instance of this factory. If the
is defined and contains
the name of a directory with a valid
, then the
database will be saved in that directory. Otherwise, a
temporary directory will be used.
|
FactoryOnHSQL | public FactoryOnHSQL(Hints hints)(Code) | | Creates a new instance of this data source using the specified hints. The priority
is set to a lower value than the
's one in order to give
precedence to the Access-backed database, if presents. Priorities are set that way
because:
- The MS-Access format is the primary EPSG database format.
- If a user downloads the MS-Access database himself, he probably wants to use it.
|
createBackingStore | protected AbstractAuthorityFactory createBackingStore(Hints hints) throws SQLException(Code) | | Returns the backing-store factory for HSQL syntax. If the cached tables are not available,
they will be created now from the SQL scripts bundled in this plugin.
Parameters: hints - A map of hints, including the low-level factories to use for CRS creation. The EPSG factory using HSQL syntax. throws: SQLException - if connection to the database failed. |
|
|