org.deegree.metadata.persistence
Interface MetadataStoreProvider

All Known Implementing Classes:
ISOMetadataStoreProvider

public interface MetadataStoreProvider

Implementations plug-in MetadataStores.

Version:
$Revision: 27989 $, $Date: 2010-11-10 17:59:10 +0100 (Mi, 10. Nov 2010) $
Author:
Steffen Thomas, last edited by: $Author: sthomas $

Method Summary
 java.lang.String getConfigNamespace()
          Returns the namespace for configurations documents that this provider handles.
 java.net.URL getConfigSchema()
          Returns the URL for retrieving the configuration document schema.
 java.net.URL getConfigTemplate()
          Returns the URL for retrieving the configuration document template.
 java.lang.String[] getCreateStatements(java.net.URL configURL)
           
 java.lang.String[] getDefaultCreateStatements()
           
 java.lang.String[] getDropStatements(java.net.URL configURL)
           
 MetadataStore getMetadataStore(java.net.URL configURL)
          Creates a new MetadataStore instance from the given configuration document.
 

Method Detail

getConfigNamespace

java.lang.String getConfigNamespace()
Returns the namespace for configurations documents that this provider handles.

Returns:
the namespace for configurations documents, never null

getConfigSchema

java.net.URL getConfigSchema()
Returns the URL for retrieving the configuration document schema.

Returns:
the URL for retrieving the configuration document schema, may be null

getConfigTemplate

java.net.URL getConfigTemplate()
Returns the URL for retrieving the configuration document template.

Returns:
the URL for retrieving the configuration document template, may be null

getMetadataStore

MetadataStore getMetadataStore(java.net.URL configURL)
                               throws MetadataStoreException
Creates a new MetadataStore instance from the given configuration document.

Parameters:
configURL - location of the configuration document, must not be null
Returns:
new feature store instance, configured, not initialized yet
Throws:
MetadataStore - if the configuration contains an error or creation fails
MetadataStoreException

getCreateStatements

java.lang.String[] getCreateStatements(java.net.URL configURL)
                                       throws java.io.UnsupportedEncodingException,
                                              java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

getDefaultCreateStatements

java.lang.String[] getDefaultCreateStatements()
                                              throws java.io.UnsupportedEncodingException,
                                                     java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException

getDropStatements

java.lang.String[] getDropStatements(java.net.URL configURL)
                                     throws java.io.UnsupportedEncodingException,
                                            java.io.IOException
Throws:
java.io.UnsupportedEncodingException
java.io.IOException


Copyright © 2011. All Rights Reserved.