1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| package org.jboss.cache.pojo.test; |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| |
17 |
| @org.jboss.cache.pojo.annotation.Replicable |
18 |
| public class Resource |
19 |
| { |
20 |
| String connection = null; |
21 |
| String name = null; |
22 |
| |
23 |
| |
24 |
| byte[] bin = null; |
25 |
| |
26 |
4
| public String getName()
|
27 |
| { |
28 |
4
| return name;
|
29 |
| } |
30 |
| |
31 |
2
| public void setName(String name)
|
32 |
| { |
33 |
2
| this.name = name;
|
34 |
| } |
35 |
| |
36 |
0
| public String getConnection()
|
37 |
| { |
38 |
0
| return connection;
|
39 |
| } |
40 |
| |
41 |
2
| public void setConnection(String connection)
|
42 |
| { |
43 |
2
| this.connection = connection;
|
44 |
| } |
45 |
| |
46 |
4
| public byte[] getByte()
|
47 |
| { |
48 |
4
| return bin;
|
49 |
| } |
50 |
| |
51 |
2
| public void setByte(byte[] b)
|
52 |
| { |
53 |
2
| bin = b;
|
54 |
| } |
55 |
| |
56 |
0
| public String toString()
|
57 |
| { |
58 |
0
| return "name=" + getName() + ", type=" + getConnection() + " bytes= " +bin.toString();
|
59 |
| } |
60 |
| } |