Project

General

Profile

Revision be4d3325

IDbe4d3325b2222b5d68da21ae7129843fc8057ba3
Parent 3b49207d
Child 8641421a

Added by Andreas Müller over 1 year ago

cleanup

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/DbImportAnnotationMapper.java
181 181

  
182 182

  
183 183
	//not used
184
	/* (non-Javadoc)
185
	 * @see eu.etaxonomy.cdm.io.common.CdmSingleAttributeMapperBase#getTypeClass()
186
	 */
187 184
	@Override
188 185
    public Class<String> getTypeClass(){
189 186
		return String.class;
190 187
	}
191

  
192

  
193

  
194

  
195

  
196 188
}
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/DbImportExtensionMapper.java
38 38
 */
39 39
public class DbImportExtensionMapper extends DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>, IdentifiableEntity>
40 40
        implements IDbImportMapper<DbImportStateBase<?,?>,IdentifiableEntity>{
41

  
41 42
	private static final Logger logger = Logger.getLogger(DbImportExtensionMapper.class);
42 43

  
43 44
//************************** FACTORY METHODS ***************************************************************/
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/common/EnumeratedTermVoc.java
112 112
//******************* DELEGATE CLASS NETHODS ************************
113 113

  
114 114

  
115
	public static <S extends IEnumTerm<?>> IEnumTerm<?> addTerm(Class<? extends IEnumTerm<?>> clazz, S term, UUID uuid, String defaultString, String key, S parent){
115
	public static <S extends IEnumTerm<?>> IEnumTerm addTerm(Class<? extends IEnumTerm<?>> clazz, S term, UUID uuid, String defaultString, String key, S parent){
116 116
		if (vocsMap.get(clazz) == null){
117 117
			vocsMap.put(clazz, new EnumeratedTermVoc<>());
118 118
		}
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/metadata/CdmMetaData.java
58 58
	 * be handled by SCHEMA_VALIDATION.UPDATE
59 59
	 * The last number represents the date of change.
60 60
	 */
61
	private static final String dbSchemaVersion = "5.5.0.0.20190122";
61
	private static final String dbSchemaVersion = "5.5.0.0.20190221";
62 62
//  private static final String dbSchemaVersion = "4.7.0.0.201710040000";
63 63
//  private static final String dbSchemaVersion = "5.0.0.0.20180514";
64 64

  
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/reference/IAuthoredPublicationBase.java
20 20
public interface IAuthoredPublicationBase
21 21
       extends IPublicationBase, IWithAuthorAndDate{
22 22

  
23

  
24 23
}
cdmlib-model/src/test/java/eu/etaxonomy/cdm/model/common/DefinedTermBaseTest.java
1 1
/**
2 2
 * Copyright (C) 2007 EDIT
3
 * European Distributed Institute of Taxonomy 
3
 * European Distributed Institute of Taxonomy
4 4
 * http://www.e-taxonomy.eu
5
 * 
5
 *
6 6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
 * See LICENSE.TXT at the top of this package for the full license terms.
8 8
 */
......
10 10
package eu.etaxonomy.cdm.model.common;
11 11

  
12 12
import org.apache.log4j.Logger;
13
import org.junit.Test;
14 13

  
15 14
import eu.etaxonomy.cdm.test.unit.EntityTestBase;
16 15

  
17 16
public class DefinedTermBaseTest extends EntityTestBase {
18
	private static Logger logger = Logger.getLogger(DefinedTermBaseTest.class);
17
	@SuppressWarnings("unused")
18
    private static Logger logger = Logger.getLogger(DefinedTermBaseTest.class);
19 19

  
20 20
	/** ******* TEST ************************************ */
21 21

  
22
	@Test
23
	public final void testInitTermList() {
24
		logger.warn("Not yet implemented"); // TODO
25
	}
26 22

  
27
	@Test
28
	public final void testFindByUuid() {
29
		logger.warn("Not yet implemented"); // TODO
30
	}
31 23

  
32
	@Test
33
	public final void testIsInitialized() {
34
		logger.warn("Not yet implemented"); // TODO
35
	}
36

  
37
	@Test
38
	public final void testGetDefinedTerms() {
39
		logger.warn("Not yet implemented"); // TODO
40
	}
41

  
42
	@Test
43
	public final void testDefinedTermBase() {
44
		logger.warn("Not yet implemented"); // TODO
45
	}
46

  
47
	@Test
48
	public final void testDefinedTermBaseStringString() {
49
		logger.warn("Not yet implemented"); // TODO
50
	}
51

  
52
	@Test
53
	public final void testReadCsvLineListOfString() {
54
		logger.warn("Not yet implemented"); // TODO
55
	}
56

  
57
	@Test
58
	public final void testReadCsvLineListOfStringLanguage() {
59
		logger.warn("Not yet implemented"); // TODO
60
	}
61

  
62
	@Test
63
	public final void testWriteCsvLine() {
64
		logger.warn("Not yet implemented"); // TODO
65
	}
66

  
67
	@Test
68
	public final void testGetKindOf() {
69
		logger.warn("Not yet implemented"); // TODO
70
	}
71

  
72
	@Test
73
	public final void testSetKindOf() {
74
		logger.warn("Not yet implemented"); // TODO
75
	}
76

  
77
	@Test
78
	public final void testGetGeneralizationOf() {
79
		logger.warn("Not yet implemented"); // TODO
80
	}
81

  
82
	@Test
83
	public final void testSetGeneralizationOf() {
84
		logger.warn("Not yet implemented"); // TODO
85
	}
86

  
87
	@Test
88
	public final void testGetPartOf() {
89
		logger.warn("Not yet implemented"); // TODO
90
	}
91

  
92
	@Test
93
	public final void testSetPartOf() {
94
		logger.warn("Not yet implemented"); // TODO
95
	}
96

  
97
	@Test
98
	public final void testGetIncludes() {
99
		logger.warn("Not yet implemented"); // TODO
100
	}
101

  
102
	@Test
103
	public final void testSetIncludes() {
104
		logger.warn("Not yet implemented"); // TODO
105
	}
106

  
107
	@Test
108
	public final void testAddIncludes() {
109
		logger.warn("Not yet implemented"); // TODO
110
	}
111

  
112
	@Test
113
	public final void testRemoveIncludes() {
114
		logger.warn("Not yet implemented"); // TODO
115
	}
116

  
117
	@Test
118
	public final void testGetMedia() {
119
		logger.warn("Not yet implemented"); // TODO
120
	}
121

  
122
	@Test
123
	public final void testSetMedia() {
124
		logger.warn("Not yet implemented"); // TODO
125
	}
126

  
127
	@Test
128
	public final void testAddMedia() {
129
		logger.warn("Not yet implemented"); // TODO
130
	}
131

  
132
	@Test
133
	public final void testRemoveMedia() {
134
		logger.warn("Not yet implemented"); // TODO
135
	}
136

  
137
	@Test
138
	public final void testGetVocabulary() {
139
		logger.warn("Not yet implemented"); // TODO
140
	}
141

  
142
	@Test
143
	public final void testSetVocabulary() {
144
		logger.warn("Not yet implemented"); // TODO
145
	}
146 24
}
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/v50_51/SchemaUpdater_50_55.java
39 39
	@SuppressWarnings("unused")
40 40
	private static final Logger logger = Logger.getLogger(SchemaUpdater_50_55.class);
41 41
	private static final String startSchemaVersion = "5.0.0.0.20180514";
42
	private static final String endSchemaVersion = "5.5.0.0.20190122";
42
	private static final String endSchemaVersion = "5.5.0.0.20190221";
43 43

  
44 44
	// ********************** FACTORY METHOD *************************************
45 45

  
......
106 106
        step = ColumnAdder.NewIntegerInstance(stepName, tableName, newColumnName, INCLUDE_AUDIT, null, !NOT_NULL);
107 107
        stepList.add(step);
108 108

  
109
        //7682 update Point.precision from 0 to null
109
        //#7682 update Point.precision from 0 to null
110 110
        stepName = "update Point.precision from 0 to null";
111 111
        query = "UPDATE @@GatheringEvent@@ SET exactLocation_errorRadius = null WHERE exactLocation_errorRadius = 0 ";
112 112
        tableName = "GatheringEvent";
......
122 122
                columnName, INCLUDE_AUDIT);
123 123
        stepList.add(step);
124 124

  
125
        //7857 update name realtionships
125
        //#7857 update name realtionships
126 126
        updateNameRelationships(stepList);
127 127

  
128 128
        //#7683 allow null for ExternalLink_AUD.uuid
129 129
        stepName = "Allow null for ExternalLink_AUD.uuid ";
130 130
        columnName = "uuid";
131 131
        tableName = "ExternalLink_AUD";
132
        // TODO check non MySQL and with existing data (probably does not exist)
133 132
        step = ColumnTypeChanger.NewStringSizeInstance(stepName, tableName, columnName, 36, !INCLUDE_AUDIT);
134 133
        stepList.add(step);
135 134

  
136
        //7514 change symbols for pro parte synonyms and misapplied name relationship types
135
        //#7514 change symbols for pro parte synonyms and misapplied name relationship types
137 136
        updateConceptRelationshipSymbols(stepList);
138 137

  
139
        //8006
138
        //#8006
140 139
        updateTaxonRelationshipLabels(stepList);
141 140

  
142 141
        //#7372

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)