3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.service
;
14 import eu
.etaxonomy
.cdm
.config
.CdmSourceException
;
15 import eu
.etaxonomy
.cdm
.model
.metadata
.CdmMetaData
.MetaDataPropertyName
;
22 public interface IMetadataService
{
26 * Returns the CDM model schema version number
28 * @return the CDM model schema version number
29 * @throws CdmSourceException , incase of an underlying SQL error
31 public String
getDbSchemaVersion() throws CdmSourceException
;
34 * Returns a boolean flag to indicate whether the database is empty
36 * @return boolean flag to indicate whether the database is empty
37 * @throws CdmSourceException , incase of an underlying SQL error
39 public boolean isDbEmpty() throws CdmSourceException
;
42 * Returns metadata corresponding to the underlying data source
45 * @throws CdmSourceException
47 public Map
<MetaDataPropertyName
, String
> getCdmMetadataMap() throws CdmSourceException
;