1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2009 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.database.update;
|
11
|
|
12
|
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor;
|
13
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
14
|
|
15
|
/**
|
16
|
* @author a.mueller
|
17
|
* @date 09.2010
|
18
|
*
|
19
|
*/
|
20
|
public interface ITermUpdater extends IUpdater<ITermUpdater>{
|
21
|
|
22
|
/**
|
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.
|
26
|
* @param datasource
|
27
|
* @param monitor
|
28
|
* @return
|
29
|
* @throws Exception
|
30
|
*/
|
31
|
boolean invoke(ICdmDataSource datasource, IProgressMonitor monitor) throws Exception;
|
32
|
|
33
|
/**
|
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
|
38
|
* @param datasource
|
39
|
* @param monitor
|
40
|
* @return
|
41
|
* @throws Exception
|
42
|
*/
|
43
|
boolean invoke(String targetVersion, ICdmDataSource datasource, IProgressMonitor monitor) throws Exception;
|
44
|
|
45
|
|
46
|
public String getTargetVersion();
|
47
|
|
48
|
}
|