Make it implement Serializable
[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.io.Serializable;
14 import java.util.UUID;
15
16 import org.apache.log4j.Logger;
17
18 /**
19 * @author n.hoffmann
20 * @created Aug 14, 2009
21 * @version 1.0
22 */
23
24
25 public class UuidAndTitleCache<T extends ICdmBase> implements Serializable {
26 /**
27 *
28 */
29 private static final long serialVersionUID = 3446993458279371682L;
30
31 @SuppressWarnings("unused")
32 private static final Logger logger = Logger .getLogger(UuidAndTitleCache.class);
33
34 Class<T> type;
35 UUID uuid;
36 String titleCache;
37
38 public UuidAndTitleCache(Class<T> type, UUID uuid, String titleCache) {
39 this(uuid, titleCache);
40 this.type = type;
41 }
42
43 /**
44 * @param uuid2
45 * @param string
46 */
47 public UuidAndTitleCache(UUID uuid, String titleCache) {
48 this.uuid = uuid;
49 this.titleCache = titleCache;
50 }
51
52 /**
53 * @return the titleCache
54 */
55 public String getTitleCache() {
56 return titleCache;
57 }
58
59 /**
60 * @return the uuid
61 */
62 public UUID getUuid() {
63 return uuid;
64 }
65
66 public Class<T> getType(){
67 return type;
68 }
69
70 }