Project

General

Profile

Download (1.7 KB) Statistics
| Branch: | Tag: | Revision:
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.ZoologicalName;
15
import eu.etaxonomy.cdm.strategy.TaggedText;
16
import eu.etaxonomy.cdm.strategy.cache.name.INonViralNameCacheStrategy;
17

    
18
public class TestingZoologicalNameCacheStrategy implements
19
		INonViralNameCacheStrategy<ZoologicalName> {
20
	
21
	public String getAuthorshipCache(ZoologicalName nonViralName) {
22
		return "test.zoological.authorshipCache"+ nonViralName.getId();
23
	}
24

    
25
	public String getLastEpithet(ZoologicalName taxonNameBase) {
26
		return "test.zoological.lastEpithet"+ taxonNameBase.getId();
27
	}
28
	
29
	public String getNameCache(ZoologicalName taxonNameBase) {
30
		return "test.zoological.nameCache"+ taxonNameBase.getId();
31
	}
32

    
33
	public String getFullTitleCache(ZoologicalName taxonNameBase) {
34
		return "test.zoological.fullTitleCache"+ taxonNameBase.getId();
35
	}
36

    
37

    
38
	public String getTitleCache(ZoologicalName object) {
39
		return "test.zoological.titleCache"+ object.getId();
40
	}
41

    
42

    
43
	@Override
44
	public List<Object> getTaggedName(ZoologicalName taxonNameBase) {
45
		// TODO Auto-generated method stub
46
		return null;
47
	}
48
	
49
	@Override
50
	public List<TaggedText> getTaggedTitle(ZoologicalName taxonName) {
51
		// TODO Auto-generated method stub
52
		return null;
53
	}
54

    
55
	@Override
56
	public List<TaggedText> getTaggedFullTitle(ZoologicalName taxonName) {
57
		// TODO Auto-generated method stub
58
		return null;
59
	}
60

    
61

    
62
}
(4-4/5)