1 2 23 package com.geinuke.vo; 24 25 import java.io.Serializable ; 26 import java.util.ArrayList ; 27 import java.util.Date ; 28 import java.util.GregorianCalendar ; 29 30 import com.geinuke.util.collection.TreeArrayList; 31 32 33 34 public class NewsVO implements Serializable { 35 protected int nId=-1; 36 protected int uId=-1; 37 protected boolean enabled=false; 38 protected long time=0; 39 protected String title=null; 40 protected String bodyText=null; 41 protected String headText=null; 42 protected String notes=null; 43 protected ArrayList categories=null; 44 protected ArrayList topics=null; 45 protected TreeArrayList comments=null; 46 47 public NewsVO(){ 48 this.categories=new ArrayList (); 49 this.topics=new ArrayList (); 50 this.notes=""; 51 } 52 public ArrayList getCategories() { 53 return categories; 54 } 55 public void setCategories(ArrayList categories) { 56 this.categories = categories; 57 } 58 public int getNId() { 59 return nId; 60 } 61 public void setNId(int id) { 62 nId = id; 63 } 64 public String getNotes() { 65 return notes; 66 } 67 public void setNotes(String notes) { 68 this.notes = notes; 69 } 70 public String getTitle() { 71 return title; 72 } 73 public void setTitle(String title) { 74 this.title = title; 75 } 76 public ArrayList getTopics() { 77 return topics; 78 } 79 public void setTopics(ArrayList topics) { 80 this.topics = topics; 81 } 82 public String getBodyText() { 83 return bodyText; 84 } 85 public void setBodyText(String bodyText) { 86 this.bodyText = bodyText; 87 } 88 public String getHeadText() { 89 return headText; 90 } 91 public void setHeadText(String headText) { 92 this.headText = headText; 93 } 94 public boolean isEnabled() { 95 return enabled; 96 } 97 public void setEnabled(boolean enbled) { 98 this.enabled = enbled; 99 } 100 101 public long getTime() { 102 return time; 103 } 104 105 public GregorianCalendar getDateTime() { 106 GregorianCalendar gc=null; 107 Date d=new Date (this.time); 108 gc=new GregorianCalendar (); 109 gc.setTime(d); 110 111 112 return gc; 113 } 114 public void setTime(long time) { 115 this.time = time; 116 } 117 public int getUId() { 118 return uId; 119 } 120 public void setUId(int id) { 121 uId = id; 122 } 123 126 public TreeArrayList getComments() { 127 return comments; 128 } 129 132 public void setComments(TreeArrayList comments) { 133 this.comments = comments; 134 } 135 } 136 | Popular Tags |