KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > pojo > test > NetworkAdmin


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.cache.pojo.test;
8
9 /**
10  * Sample object that contains administration details.
11  * <p>This object is used to illustrate the pojo cache capability of PojoCache. Note the absence of <code>Serializable</code>
12  * interface.</p>
13  *
14  * @author <a HREF="mailto:ben.wang@jboss.com">Ben Wang</a>
15  */

16 // We are using JDK1.5 annotation.
17
@org.jboss.cache.pojo.annotation.Replicable
18 public class NetworkAdmin
19 {
20    String JavaDoc id_;
21
22    public String JavaDoc getId()
23    {
24       return id_;
25    }
26
27    public void setId(String JavaDoc id)
28    {
29       id_ = id;
30    }
31
32    public String JavaDoc toString()
33    {
34       StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
35       sb.append(" id = ").append(getId());
36       return sb.toString();
37    }
38
39 }
40
Popular Tags