1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| package org.jboss.cache.pojo.impl; |
8 |
| |
9 |
| import org.jboss.cache.Fqn; |
10 |
| |
11 |
| import java.io.Serializable; |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| |
18 |
| public class PojoReference implements Serializable |
19 |
| { |
20 |
| |
21 |
| public static final String KEY = InternalConstant.POJOCACHE_KEY_PREFIX + "PojoReference"; |
22 |
| static final long serialVersionUID = 6492134565825613209L; |
23 |
| |
24 |
| |
25 |
| private Fqn internalFqn_ = null; |
26 |
| private Class clazz_ = null; |
27 |
| |
28 |
7630
| public PojoReference()
|
29 |
| { |
30 |
| } |
31 |
| |
32 |
7630
| public void setFqn(Fqn fqn)
|
33 |
| { |
34 |
7630
| internalFqn_ = fqn;
|
35 |
| } |
36 |
| |
37 |
17536
| public Fqn getFqn()
|
38 |
| { |
39 |
17536
| return internalFqn_;
|
40 |
| } |
41 |
| |
42 |
7630
| public void setPojoClass(Class clazz)
|
43 |
| { |
44 |
7630
| clazz_ = clazz;
|
45 |
| } |
46 |
| |
47 |
6316
| public Class getPojoClass()
|
48 |
| { |
49 |
6316
| return clazz_;
|
50 |
| } |
51 |
| |
52 |
135
| public String toString()
|
53 |
| { |
54 |
135
| StringBuffer buf = new StringBuffer();
|
55 |
135
| buf.append("Internal Fqn --> ").append(internalFqn_);
|
56 |
135
| return buf.toString();
|
57 |
| } |
58 |
| } |