|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NetworkAdmin.java | - | 40% | 66.7% | 50% |
|
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 id_; | |
21 | ||
22 | 6 | public String getId() |
23 | { | |
24 | 6 | return id_; |
25 | } | |
26 | ||
27 | 7 | public void setId(String id) |
28 | { | |
29 | 7 | id_ = id; |
30 | } | |
31 | ||
32 | 0 | public String toString() |
33 | { | |
34 | 0 | StringBuffer sb = new StringBuffer(); |
35 | 0 | sb.append(" id = ").append(getId()); |
36 | 0 | return sb.toString(); |
37 | } | |
38 | ||
39 | } |
|