Revision fe43cd3b
Added by Andreas Müller over 8 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java | ||
---|---|---|
59 | 59 |
import eu.etaxonomy.cdm.model.name.HomotypicalGroup; |
60 | 60 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
61 | 61 |
import eu.etaxonomy.cdm.model.reference.Reference; |
62 |
import eu.etaxonomy.cdm.strategy.cache.common.IIdentifiableEntityCacheStrategy;
|
|
62 |
import eu.etaxonomy.cdm.strategy.cache.taxon.ITaxonCacheStrategy;
|
|
63 | 63 |
import eu.etaxonomy.cdm.strategy.cache.taxon.TaxonBaseDefaultCacheStrategy; |
64 | 64 |
|
65 | 65 |
/** |
... | ... | |
93 | 93 |
@ClassBridge(impl = GroupByTaxonClassBridge.class), |
94 | 94 |
@ClassBridge(impl = TaxonRelationshipClassBridge.class) |
95 | 95 |
}) |
96 |
public class Taxon extends TaxonBase<IIdentifiableEntityCacheStrategy<Taxon>> |
|
96 |
public class Taxon |
|
97 |
extends TaxonBase<ITaxonCacheStrategy<Taxon>> |
|
97 | 98 |
implements IRelated<RelationshipBase>, IDescribable<TaxonDescription>, Cloneable{ |
99 |
|
|
98 | 100 |
private static final long serialVersionUID = -584946869762749006L; |
99 | 101 |
private static final Logger logger = Logger.getLogger(Taxon.class); |
100 | 102 |
|
... | ... | |
282 | 284 |
ReflectionUtils.setField(field, description, null); |
283 | 285 |
descriptions.remove(description); |
284 | 286 |
} |
285 |
|
|
286 |
|
|
287 |
|
|
288 |
|
|
287 | 289 |
public void removeDescription(TaxonDescription description, boolean removeElements){ |
288 | 290 |
if (removeElements){ |
289 | 291 |
Set<DescriptionElementBase> elements = new HashSet<DescriptionElementBase>(description.getElements()); |
... | ... | |
1849 | 1851 |
public void clearDescriptions() { |
1850 | 1852 |
this.descriptions = new HashSet<TaxonDescription>(); |
1851 | 1853 |
} |
1852 |
|
|
1854 |
|
|
1853 | 1855 |
@Override |
1854 |
public void setCacheStrategy(IIdentifiableEntityCacheStrategy<Taxon> cacheStrategy){
|
|
1856 |
public void setCacheStrategy(ITaxonCacheStrategy<Taxon> cacheStrategy){
|
|
1855 | 1857 |
this.cacheStrategy = cacheStrategy; |
1856 | 1858 |
} |
1857 | 1859 |
} |
Also available in: Unified diff
Implement taggedTitle for taxon base #5229