Project

General

Profile

Revision a94f8d8f

IDa94f8d8f965107cdd8353e0464243cc9adf8c62f
Parent a5902245
Child aeb812fd

Added by Andreas Müller over 1 year ago

fix CacheUpdater

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/operation/CacheUpdater.java
15 15
import eu.etaxonomy.cdm.model.common.TermBase;
16 16
import eu.etaxonomy.cdm.model.common.TermVocabulary;
17 17
import eu.etaxonomy.cdm.model.description.DescriptionBase;
18
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
18 19
import eu.etaxonomy.cdm.model.description.FeatureTree;
19 20
import eu.etaxonomy.cdm.model.description.PolytomousKey;
20 21
import eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity;
......
97 98
			//TermBase
98 99
			if (DefinedTermBase.class.isAssignableFrom(clazz)){
99 100
				getTermService().updateCaches((Class) clazz, null, null, null);
100
			}else if (FeatureTree.class.isAssignableFrom(clazz)){
101
				getFeatureTreeService().updateCaches((Class) clazz, null, null, null);
102 101
			}else if (TermVocabulary.class.isAssignableFrom(clazz)){
103 102
				getVocabularyService().updateCaches((Class) clazz, null, null, null);
104 103
			}
......
120 119
				getCollectionService().updateCaches((Class) clazz, null, null, null);
121 120
			}else if (Reference.class.isAssignableFrom(clazz)){
122 121
				getReferenceService().updateCaches((Class) clazz, null, null, null);
122
			//Occurrence
123 123
			}else if (SpecimenOrObservationBase.class.isAssignableFrom(clazz)){
124 124
				getOccurrenceService().updateCaches((Class) clazz, null, null, null);
125 125
			}
......
140 140
            else if (PolytomousKey.class.isAssignableFrom(clazz)){
141 141
                getPolytomousKeyService().updateCaches((Class) clazz, null, null, null);
142 142
            }
143
            //DescriptiveDataSet
144
            else if (DescriptiveDataSet.class.isAssignableFrom(clazz)){
145
                getDescriptiveDataSetService().updateCaches((Class) clazz, null, null, null);
146
            }
147
            //FeatureTree
148
            else if (FeatureTree.class.isAssignableFrom(clazz)){
149
                getFeatureTreeService().updateCaches((Class) clazz, null, null, null);
150
            }
143 151
			//unknown class
144 152
			else {
145 153
				String warning = "Unknown identifable entity subclass + " + clazz.getName();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)