1 7 package org.jboss.cache.pojo.test; 8 9 import java.util.Date ; 10 11 18 @org.jboss.cache.pojo.annotation.Replicable 20 public class NetworkElement 21 { 22 int id_; 24 int type_; 26 String name_; 27 int status_; 28 Date startDate_; 29 NetworkNode parentNode_; 30 31 public int getId() 32 { 33 return id_; 34 } 35 36 public void setId(int id) 37 { 38 id_ = id; 39 } 40 41 public int getType() 42 { 43 return type_; 44 } 45 46 public void setType(int type) 47 { 48 type_ = type; 49 } 50 51 public String getName() 52 { 53 return name_; 54 } 55 56 public void setName(String name) 57 { 58 name_ = name; 59 } 60 61 public int getStatus() 62 { 63 return status_; 64 } 65 66 public void setStatus(int status) 67 { 68 status_ = status; 69 } 70 71 public Date getStartDate() 72 { 73 return startDate_; 74 } 75 76 public void setStartDate(Date startDate) 77 { 78 startDate_ = startDate; 79 } 80 81 public NetworkNode getParentNode() 82 { 83 return parentNode_; 84 } 85 86 public void setParentNode(NetworkNode parentNode) 87 { 88 parentNode_ = parentNode; 89 } 90 91 public String toString() 92 { 93 StringBuffer sb = new StringBuffer (); 94 sb.append(" name= ").append(getName()).append(" status= ").append(getStatus()); 95 sb.append(" parentNode= ").append(getParentNode().getName()); 96 return sb.toString(); 97 } 98 99 } 100 | Popular Tags |