1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.cdm.model.common;
|
12
|
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import javax.persistence.Transient;
|
16
|
|
17
|
import org.apache.log4j.Logger;
|
18
|
|
19
|
/**
|
20
|
* @author n.hoffmann
|
21
|
* @created Aug 14, 2009
|
22
|
* @version 1.0
|
23
|
*/
|
24
|
|
25
|
|
26
|
public class UuidAndTitleCache<T extends ICdmBase> {
|
27
|
@SuppressWarnings("unused")
|
28
|
private static final Logger logger = Logger .getLogger(UuidAndTitleCache.class);
|
29
|
|
30
|
Class<T> type;
|
31
|
UUID uuid;
|
32
|
String titleCache;
|
33
|
|
34
|
public UuidAndTitleCache(Class<T> type, UUID uuid, String titleCache) {
|
35
|
this(uuid, titleCache);
|
36
|
this.type = type;
|
37
|
}
|
38
|
|
39
|
/**
|
40
|
* @param uuid2
|
41
|
* @param string
|
42
|
*/
|
43
|
public UuidAndTitleCache(UUID uuid, String titleCache) {
|
44
|
this.uuid = uuid;
|
45
|
this.titleCache = titleCache;
|
46
|
}
|
47
|
|
48
|
/**
|
49
|
* @return the titleCache
|
50
|
*/
|
51
|
public String getTitleCache() {
|
52
|
return titleCache;
|
53
|
}
|
54
|
|
55
|
/**
|
56
|
* @return the uuid
|
57
|
*/
|
58
|
public UUID getUuid() {
|
59
|
return uuid;
|
60
|
}
|
61
|
|
62
|
public Class<T> getType(){
|
63
|
return type;
|
64
|
}
|
65
|
|
66
|
}
|