1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.persistence.dao.hibernate.name;
|
11
|
|
12
|
import java.util.List;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.name.BotanicalName;
|
15
|
import eu.etaxonomy.cdm.strategy.TaggedText;
|
16
|
import eu.etaxonomy.cdm.strategy.cache.name.INonViralNameCacheStrategy;
|
17
|
|
18
|
public class TestingBotanicalNameCacheStrategy implements
|
19
|
INonViralNameCacheStrategy<BotanicalName> {
|
20
|
|
21
|
public String getAuthorshipCache(BotanicalName nonViralName) {
|
22
|
return "test.botanical.authorshipCache"+ nonViralName.getId();
|
23
|
}
|
24
|
|
25
|
public String getLastEpithet(BotanicalName taxonNameBase) {
|
26
|
return "test.botanical.lastEpithet"+ taxonNameBase.getId();
|
27
|
}
|
28
|
|
29
|
public String getNameCache(BotanicalName taxonNameBase) {
|
30
|
return "test.botanical.nameCache"+ taxonNameBase.getId();
|
31
|
}
|
32
|
|
33
|
public String getFullTitleCache(BotanicalName taxonNameBase) {
|
34
|
return "test.botanical.fullTitleCache"+ taxonNameBase.getId();
|
35
|
}
|
36
|
|
37
|
|
38
|
public String getTitleCache(BotanicalName object) {
|
39
|
return "test.botanical.titleCache"+ object.getId();
|
40
|
}
|
41
|
|
42
|
|
43
|
|
44
|
public List<Object> getTaggedNameDeprecated(BotanicalName taxonNameBase) {
|
45
|
// TODO Auto-generated method stub
|
46
|
return null;
|
47
|
}
|
48
|
|
49
|
@Override
|
50
|
public List<TaggedText> getTaggedTitle(BotanicalName taxonName) {
|
51
|
// TODO Auto-generated method stub
|
52
|
return null;
|
53
|
}
|
54
|
|
55
|
@Override
|
56
|
public List<TaggedText> getTaggedFullTitle(BotanicalName taxonName) {
|
57
|
// TODO Auto-generated method stub
|
58
|
return null;
|
59
|
}
|
60
|
|
61
|
@Override
|
62
|
public List<TaggedText> getTaggedName(BotanicalName taxonName) {
|
63
|
// TODO Auto-generated method stub
|
64
|
return null;
|
65
|
}
|
66
|
|
67
|
}
|