1 5 package org.exoplatform.services.communication.forum.hibernate; 6 7 import java.util.Date ; 8 import org.exoplatform.services.communication.forum.Topic; 9 10 19 public class TopicImpl implements Topic { 20 private String id ; 21 private String forumId ; 22 private String owner ; 23 private Date createdDate ; 24 private String modifiedBy ; 25 private Date modifiedDate ; 26 private String lastPostBy ; 27 private Date lastPostDate ; 28 private String topic ; 29 private String description ; 30 private int postCount ; 31 32 public TopicImpl() { 33 } 34 35 38 public String getId() { return id ; } 39 public void setId(String s) { id = s ; } 40 41 44 public String getForumId() { return forumId ; } 45 public void setForumId(String id) { forumId = id ; } 46 47 50 public String getOwner() { return owner ; } 51 public void setOwner(String s) { owner = s ; } 52 53 56 public Date getCreatedDate() { return createdDate ; } 57 public void setCreatedDate(Date d) { createdDate = d ; } 58 59 public long getCreatedDateINT11() { return createdDate.getTime() ; } 60 public void setCreatedDateINT11(long d) { createdDate = new Date (d * 1000) ; } 61 62 65 public String getModifiedBy() { return modifiedBy ; } 66 public void setModifiedBy(String s) { modifiedBy = s ;} 67 68 71 public Date getModifiedDate() { return modifiedDate ; } 72 public void setModifiedDate(Date d) { modifiedDate = d ;} 73 74 public long getModifiedDateINT11() { return modifiedDate.getTime() ; } 75 public void setModifiedDateINT11(long d) { modifiedDate = new Date (d * 1000) ;} 76 77 80 public String getLastPostBy() { return lastPostBy ; } 81 public void setLastPostBy(String s) { lastPostBy = s ;} 82 85 public Date getLastPostDate() { return lastPostDate ; } 86 public void setLastPostDate(Date d) { lastPostDate = d ;} 87 88 91 public String getTopic() { return topic ; } 92 public void setTopic(String s) { topic = s ; } 93 94 97 public String getDescription() { return description ; } 98 public void setDescription(String s) { description = s; } 99 100 103 public int getPostCount() { return postCount ; } 104 public void setPostCount(int num) { postCount = num ; } 105 void addPostCount(int num) { postCount += num; } 106 } 107 | Popular Tags |