org.deegree.feature.persistence.sql
Class SQLFeatureStoreProvider

java.lang.Object
  extended by org.deegree.feature.persistence.sql.SQLFeatureStoreProvider
All Implemented Interfaces:
ExtendedResourceProvider<FeatureStore>, ResourceProvider, FeatureStoreProvider

public class SQLFeatureStoreProvider
extends Object
implements FeatureStoreProvider

FeatureStoreProvider for SQLFeatureStore implementations.

This FeatureStoreProvider needs registered SQLDialectProvider implementations in order to actually create SQLFeatureStore instances.

Version:
$Revision: 32102 $, $Date: 2011-10-05 17:54:40 +0200 (Wed, 05 Oct 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
SQLFeatureStoreProvider()
           
 
Method Summary
 SQLFeatureStore create(URL configURL)
           
 String getConfigNamespace()
          Returns the namespace for configuration documents that this provider handles.
 URL getConfigSchema()
          Returns the URL for retrieving the configuration document schema.
 String[] getDDL()
          Returns the SQL statements for creating the database tables.
 Class<? extends ResourceManager>[] getDependencies()
           
 void init(DeegreeWorkspace workspace)
          Will be called before any call to #create.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFeatureStoreProvider

public SQLFeatureStoreProvider()
Method Detail

getConfigNamespace

public String getConfigNamespace()
Description copied from interface: ResourceProvider
Returns the namespace for configuration documents that this provider handles.

Specified by:
getConfigNamespace in interface ResourceProvider
Returns:
the namespace for configuration documents, never null

getConfigSchema

public URL getConfigSchema()
Description copied from interface: ResourceProvider
Returns the URL for retrieving the configuration document schema.

Specified by:
getConfigSchema in interface ResourceProvider
Returns:
the URL for retrieving the configuration document schema, may be null

create

public SQLFeatureStore create(URL configURL)
                       throws ResourceInitException
Specified by:
create in interface ExtendedResourceProvider<FeatureStore>
Returns:
a new resource created from the configuration url, never null
Throws:
ResourceInitException

getDDL

public String[] getDDL()
Returns the SQL statements for creating the database tables.

Returns:
the SQL statements for creating the database tables, never null

init

public void init(DeegreeWorkspace workspace)
Description copied from interface: ExtendedResourceProvider
Will be called before any call to #create.

Specified by:
init in interface ExtendedResourceProvider<FeatureStore>

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Specified by:
getDependencies in interface ExtendedResourceProvider<FeatureStore>
Returns:
dependencies as resource manager classes, never null


Copyright © 2011. All Rights Reserved.