org.deegree.metadata.iso.persistence
Class ISOMetadataStoreProvider

java.lang.Object
  extended by org.deegree.metadata.iso.persistence.ISOMetadataStoreProvider
All Implemented Interfaces:
ExtendedResourceProvider<MetadataStore>, ResourceProvider, MetadataStoreProvider

public class ISOMetadataStoreProvider
extends Object
implements MetadataStoreProvider

MetadataStoreProvider for the ISOMetadataStore.

Version:
$Revision: 30800 $, $Date: 2011-05-12 16:49:44 +0200 (Do, 12. Mai 2011) $
Author:
Steffen Thomas, last edited by: $Author: lbuesching $

Constructor Summary
ISOMetadataStoreProvider()
           
 
Method Summary
 ISOMetadataStore 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[] getCreateStatements(ConnectionManager.Type dbType)
           
 Class<? extends ResourceManager>[] getDependencies()
           
 String[] getDropStatements(ConnectionManager.Type dbType)
           
 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

ISOMetadataStoreProvider

public ISOMetadataStoreProvider()
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

getCreateStatements

public String[] getCreateStatements(ConnectionManager.Type dbType)
                             throws UnsupportedEncodingException,
                                    IOException
Specified by:
getCreateStatements in interface MetadataStoreProvider
Throws:
UnsupportedEncodingException
IOException

getDropStatements

public String[] getDropStatements(ConnectionManager.Type dbType)
                           throws UnsupportedEncodingException,
                                  IOException
Specified by:
getDropStatements in interface MetadataStoreProvider
Throws:
UnsupportedEncodingException
IOException

create

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

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Specified by:
getDependencies in interface ExtendedResourceProvider<MetadataStore>
Returns:
dependencies as resource manager classes, 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<MetadataStore>


Copyright © 2011. All Rights Reserved.