3 * Copyright (C) 2009 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
.database
.update
;
12 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
13 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
20 public interface ITermUpdater
extends IUpdater
<ITermUpdater
>{
23 * Invokes this CDM term updater and updates the schema up to the current CDM
24 * term version. Throws an exception if this updaters target version does
25 * not equal the current CDM schema version.
31 boolean invoke(ICdmDataSource datasource
, IProgressMonitor monitor
) throws Exception
;
34 * Invokes this CDM term updater and updates the terms up to the given
35 * target version. Throws an exception if this updaters target version does
36 * not equal the given target version.
37 * @param targetVersion
43 boolean invoke(String targetVersion
, ICdmDataSource datasource
, IProgressMonitor monitor
) throws Exception
;
46 public String
getTargetVersion();