2 * Copyright (C) 2015 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.service
;
13 import eu
.etaxonomy
.cdm
.config
.CdmSourceException
;
14 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmMetaDataPropertyName
;
21 public interface IMetadataService
{
25 * Returns the CDM model schema version number
27 * @return the CDM model schema version number
28 * @throws CdmSourceException , incase of an underlying SQL error
30 public String
getDbSchemaVersion() throws CdmSourceException
;
33 * Returns a boolean flag to indicate whether the database is empty
35 * @return boolean flag to indicate whether the database is empty
36 * @throws CdmSourceException , incase of an underlying SQL error
38 public boolean isDbEmpty() throws CdmSourceException
;
41 * Returns metadata corresponding to the underlying data source
44 * @throws CdmSourceException
46 public Map
<CdmMetaDataPropertyName
, String
> getCdmMetadataMap() throws CdmSourceException
;