Fixes an issue where update of title caches did not work for cloned instances.
[cdmlib.git] / cdmlib-model / src / main / java / eu / etaxonomy / cdm / model / common / UuidAndTitleCache.java
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 org.apache.log4j.Logger;
16
17 /**
18 * @author n.hoffmann
19 * @created Aug 14, 2009
20 * @version 1.0
21 */
22 public class UuidAndTitleCache<T extends ICdmBase> {
23 private static final Logger logger = Logger
24 .getLogger(UuidAndTitleCache.class);
25
26 Class<T> type;
27 UUID uuid;
28 String titleCache;
29
30 public UuidAndTitleCache(Class<T> type, UUID uuid, String titleCache) {
31 this(uuid, titleCache);
32 }
33
34 /**
35 * @param uuid2
36 * @param string
37 */
38 public UuidAndTitleCache(UUID uuid, String titleCache) {
39 this.uuid = uuid;
40 this.titleCache = titleCache;
41 }
42
43 /**
44 * @return the titleCache
45 */
46 public String getTitleCache() {
47 return titleCache;
48 }
49
50 /**
51 * @return the uuid
52 */
53 public UUID getUuid() {
54 return uuid;
55 }
56
57 public Class<T> getType(){
58 return type;
59 }
60
61 }