Package org.apache.sis.internal.metadata.sql
package org.apache.sis.internal.metadata.sql
A set of helper classes for SQL handling in the Apache SIS implementation.
Do not use!
This package is for internal use by SIS only. Classes in this package
may change in incompatible ways in any future version without notice.
Declaring the data source in a web container
TheInitializer.getDataSource()
method gets the unique,
SIS-wide, data source for JDBC connection to the $SIS_DATA/Databases/SpatialMetadata
.
The method Javadoc describes the steps for fetching that data source.
When used in a JavaEE container, the data source can be configured as below:
Make the JDBC driver available to the web container and its applications. On Tomcat, this is accomplished by installing the driver's JAR files into the
$CATALINA_HOME/lib
directory (source).If using Derby, copy
derby.war
into the$CATALINA_HOME/webapps
directory and specify the directory where the Derby databases are located:Declare the JNDI name in application
WEB-INF/web.xml
file:Configure the data source in
$CATALINA_HOME/conf/context.xml
or in applicationMETA-INF/context.xml
file (change attribute values as needed for the chosen JDBC driver):If using Derby, go to
localhost:8080/derby/derbynet
.
- Since:
- 0.7
- Version:
- 1.2
-
ClassDescriptionThe SQL dialect used by a connection.Manages the unique
DataSource
instance to the$SIS_DATA/Databases/SpatialMetadata
database.A JNDI listener for being informed of changes in theDataSource
associated to"jdbc/SpatialMetadata"
.A data source for a database stored locally in the$SIS_DATA
directory.Column names used in database reflection API.Run SQL scripts.Utility methods for building SQL statements.Utilities relative to the SQL language.Information about the syntax to use for building SQL statements.Maps a few basic Java types to JDBC types.