1 2 23 package com.geinuke.vo; 24 25 import java.io.Serializable ; 26 import java.util.Date ; 27 import java.util.GregorianCalendar ; 28 29 41 42 public class CommentVO implements Serializable { 43 public static final String CAT_NEWS="NEWS"; 44 public static final String CAT_WIKI="WIKI"; 45 public static final String CAT_FORUMS="FORUMS"; 46 public static final String CAT_BLOG="BLOG"; 47 protected int CId=-1; 48 protected int XId=-1; 49 protected int UId=1; 50 protected int link=-1; 51 protected String comType=null; 52 protected String subject=null; 53 protected String text=null; 54 protected long time=0; 55 56 57 58 61 public int getCId() { 62 return CId; 63 } 64 67 public void setCId(int id) { 68 CId = id; 69 } 70 73 public String getComType() { 74 return comType; 75 } 76 79 public void setComType(String comType) { 80 this.comType = comType; 81 } 82 85 public int getLink() { 86 return link; 87 } 88 91 public void setLink(int link) { 92 this.link = link; 93 } 94 97 public String getSubject() { 98 return subject; 99 } 100 103 public void setSubject(String subject) { 104 this.subject = subject; 105 } 106 109 public String getText() { 110 return text; 111 } 112 115 public void setText(String text) { 116 this.text = text; 117 } 118 121 public long getTime() { 122 return time; 123 } 124 127 public void setTime(long time) { 128 this.time = time; 129 } 130 133 public int getXId() { 134 return XId; 135 } 136 139 public void setXId(int id) { 140 XId = id; 141 } 142 143 public GregorianCalendar getDateTime() { 144 GregorianCalendar gc=null; 145 Date d=new Date (this.time); 146 gc=new GregorianCalendar (); 147 gc.setTime(d); 148 149 150 return gc; 151 } 152 155 public int getUId() { 156 return UId; 157 } 158 161 public void setUId(int id) { 162 UId = id; 163 } 164 } 165 | Popular Tags |