org.deegree.metadata.persistence
Interface MetadataStore

All Known Implementing Classes:
ISOMetadataStore

public interface MetadataStore

Base interface of the MetadataStore persistence layer, provides access to stored MetadataStore instances and their schemas.

NOTE: One MetadataStore instance corresponds to one metadata format (e.g. DublinCore, MD_Metadata (ISO TC211), SV_Service (ISO TC211)).

Version:
$Revision: 28177 $, $Date: 2010-11-14 19:41:32 +0100 (So, 14. Nov 2010) $
Author:
Steffen Thomas, Markus Schneider, last edited by: $Author: sthomas $

Method Summary
 MetadataStoreTransaction acquireTransaction()
          Acquires transactional access to the metadata store.
 void destroy()
          Called by the container to indicate that this MetadataStore instance is being taken out of service.
 java.lang.String getConnId()
          Returns the JDBC connection id.
 MetadataResultSet getRecords(MetadataQuery query)
          Exports the XML for the requested records.
 MetadataResultSet getRecordsById(java.util.List<java.lang.String> idList)
          Exports the records by the requested identifier.
 void init()
          Called by the container to indicate that this MetadataStore instance is being placed into service.
 void setupMetametadata()
           
 

Method Detail

init

void init()
          throws MetadataStoreException
Called by the container to indicate that this MetadataStore instance is being placed into service.

Throws:
MetadataStoreException - if the initialization fails

destroy

void destroy()
Called by the container to indicate that this MetadataStore instance is being taken out of service.


getConnId

java.lang.String getConnId()
Returns the JDBC connection id.

Returns:
the JDBC connection id, never null

setupMetametadata

void setupMetametadata()
                       throws MetadataStoreException
Throws:
MetadataStoreException

getRecords

MetadataResultSet getRecords(MetadataQuery query)
                             throws MetadataStoreException
Exports the XML for the requested records.

Parameters:
query - MetadataQuery
Throws:
MetadataStoreException

getRecordsById

MetadataResultSet getRecordsById(java.util.List<java.lang.String> idList)
                                 throws MetadataStoreException
Exports the records by the requested identifier.

Parameters:
idList - list of the requested identifiers
Throws:
MetadataStoreException

acquireTransaction

MetadataStoreTransaction acquireTransaction()
                                            throws MetadataStoreException
Acquires transactional access to the metadata store.

Returns:
transaction object that allows to perform transactions operations on the metadata store, never null
Throws:
MetadataStoreException - if the transactional access could not be acquired or is not implemented for this MetadataStore


Copyright © 2011. All Rights Reserved.