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
.v33_34
;
12 import java
.util
.ArrayList
;
13 import java
.util
.List
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdater
;
18 import eu
.etaxonomy
.cdm
.database
.update
.ITermUpdaterStep
;
19 import eu
.etaxonomy
.cdm
.database
.update
.TermUpdaterBase
;
20 import eu
.etaxonomy
.cdm
.database
.update
.v31_33
.TermUpdater_31_33
;
27 public class TermUpdater_33_34
extends TermUpdaterBase
implements ITermUpdater
{
28 @SuppressWarnings("unused")
29 private static final Logger logger
= Logger
.getLogger(TermUpdater_33_34
.class);
31 public static final String startTermVersion
= "3.3.0.0.201309240000";
32 private static final String endTermVersion
= "3.4.0.0.201407010000";
34 // *************************** FACTORY **************************************/
36 public static TermUpdater_33_34
NewInstance(){
37 return new TermUpdater_33_34(startTermVersion
, endTermVersion
);
40 // *************************** CONSTRUCTOR ***********************************/
42 protected TermUpdater_33_34(String startTermVersion
, String endTermVersion
) {
43 super(startTermVersion
, endTermVersion
);
48 protected List
<ITermUpdaterStep
> getUpdaterList() {
49 List
<ITermUpdaterStep
> list
= new ArrayList
<ITermUpdaterStep
>();
52 // UUID uuidTerm = UUID.fromString("8810d1ba-6a34-4ae3-a355-919ccd1cd1a5");
53 // String description = "Rank ''Proles''. Note: This rank is not compliant with the current nomenclatural codes";
54 // String label = "Proles";
55 // String abbrev = "prol.";
56 // String dtype = Rank.class.getSimpleName();
57 // boolean isOrdered = true;
58 // UUID uuidVocabulary = UUID.fromString("ef0d1ce1-26e3-4e83-b47b-ca74eed40b1b");
59 // UUID uuidAfterTerm = UUID.fromString("bff22f84-553a-4429-a4e7-c4b3796c3a18");
60 // UUID uuidLang = Language.uuidEnglish;
61 // RankClass rankClass = RankClass.Infraspecific;
62 // String stepName = "Add 'proles' rank to ranks";
63 // TermType termType = TermType.Rank;
64 // list.add( SingleTermUpdater.NewInstance(stepName, termType, uuidTerm, abbrev, description, label, abbrev, dtype, uuidVocabulary, uuidLang, isOrdered, uuidAfterTerm).setRankClass(rankClass));
66 //there are some more new vocabularies, but we trust that the term initializer will
67 //initialize and persist them correctly
73 public ITermUpdater
getNextUpdater() {
78 public ITermUpdater
getPreviousUpdater() {
79 return TermUpdater_31_33
.NewInstance();