| org.geotools.data.sql.SqlDataStore
All known Subclasses: org.geotools.data.geometryless.JDBCDataStore,
SqlDataStore | public interface SqlDataStore extends DataStore(Code) | | An extension to the
org.geotools.data.DataStore interface that adds
the ability of registering a FeatureType as a SQL SELECT construct
against featuretypes and/or normal table like data that the DataStore could deal with.
A DataStore implementing this interface does not necesarilly has to be backed
by a RDBMS. Implementing this interface only means that the DataStore _is able_ to
expose a non existent FeatureType in its backend, by somehow executing the
SQL STATEMENT represented by the sql selct object model passed to
SqlDataStore.registerView(String,PlainSelect) or
SqlDataStore.registerView(String,Union) .
Implementing datastores are free to support only a subset of the SQL constructs
that may be used to create a full SELECT statement.
author: Gabriel Roldan, Axios Engineering version: $Id: SqlDataStore.java 25699 2007-05-31 15:55:07Z desruisseaux $ since: 2.3.x |
Method Summary | |
void | registerView(String typeName, String sqlQuery) | void | registerView(String typeName, SelectBody select) Indicates to this DataStore that it has to expose a FeatureType named
typeName whose schema is to be determined by the sql like
query select , and that query has to be used to retrieve
content, plus any filter given over the feature type. |
registerView | void registerView(String typeName, String sqlQuery) throws IOException, UnsupportedOperationException(Code) | | Creates an in-process data view against one or more actual FeatureTypes
of this DataStore, which will be advertised as typeName
Parameters: typeName - the name of the view's FeatureType. Parameters: sqlQuery - a full SQL query which will act as the view definition. throws: IOException - |
registerView | void registerView(String typeName, SelectBody select) throws IOException, UnsupportedOperationException(Code) | | Indicates to this DataStore that it has to expose a FeatureType named
typeName whose schema is to be determined by the sql like
query select , and that query has to be used to retrieve
content, plus any filter given over the feature type.
On registering a view, an implementing datastore must ensure that it
supports all the constructs provided in the query definition and that
it is valid against its domain of AttributeTypes (i.e., could execute
the query to ensure the backend can deal with it)
Parameters: typeName - Parameters: select - either an instance of PlainSelect or Union throws: IOException - throws: UnsupportedOperationException - if the select constructtype is not supported or contains components that are not supported (for example, subselects, etc) |
|
|