KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > forum > hibernate > PostImpl


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.communication.forum.hibernate;
6
7 import java.util.Date JavaDoc;
8 import org.exoplatform.services.communication.forum.Post;
9 /**
10  * Created by The eXo Platform SARL .
11  * Author : Tuan Nguyen
12  * tuan08@users.sourceforge.net
13  * Date: Jun 14, 2003
14  * Time: 1:12:22 PM
15  *
16  * @hibernate.class table="FORUM_POST"
17  */

18 public class PostImpl implements Post {
19   private String JavaDoc id ;
20   private String JavaDoc topicId ;
21   private String JavaDoc forumId ;
22   private String JavaDoc owner ;
23   private Date JavaDoc createdDate ;
24   private String JavaDoc modifiedBy ;
25   private Date JavaDoc modifiedDate ;
26   private String JavaDoc subject ;
27   private String JavaDoc message ;
28   private String JavaDoc remoteAddr ;
29  
30   public PostImpl() {
31   }
32
33   /**
34    * @hibernate.id generator-class="assigned" unsaved-value="null"
35    ***/

36   public String JavaDoc getId() { return id ; }
37   public void setId(String JavaDoc s) { id = s ; }
38
39   /**
40    * @hibernate.property
41    **/

42   public String JavaDoc getTopicId() { return topicId ; }
43   public void setTopicId(String JavaDoc id) { topicId = id ; }
44   
45   /**
46    * @hibernate.property
47    **/

48   public String JavaDoc getForumId() { return forumId ; }
49   public void setForumId(String JavaDoc id) { forumId = id ; }
50   
51   /**
52    * @hibernate.property
53    **/

54   public String JavaDoc getOwner() { return owner ; }
55   public void setOwner(String JavaDoc s) { owner = s ; }
56
57   /**
58    * @hibernate.property
59    **/

60   public Date JavaDoc getCreatedDate() { return createdDate ; }
61   public void setCreatedDate(Date JavaDoc d) { createdDate = d ; }
62
63   public long getCreatedDateINT11() { return createdDate.getTime() ; }
64   public void setCreatedDateINT11(long d) { createdDate = new Date JavaDoc(d * 1000) ; }
65
66   /**
67    * @hibernate.property
68    **/

69   public String JavaDoc getModifiedBy() { return modifiedBy ; }
70   public void setModifiedBy(String JavaDoc s) { modifiedBy = s ;}
71
72   /**
73    * @hibernate.property
74    **/

75   public Date JavaDoc getModifiedDate() { return modifiedDate ; }
76   public void setModifiedDate(Date JavaDoc d) { modifiedDate = d ;}
77
78   public long getModifiedDateINT11() { return modifiedDate.getTime() ; }
79   public void setModifiedDateINT11(long d) { modifiedDate = new Date JavaDoc(d * 1000) ; }
80   
81   /**
82    * @hibernate.property
83    **/

84   public String JavaDoc getSubject() { return subject ;}
85   public void setSubject(String JavaDoc s) { subject = s ; }
86
87   /**
88    * @hibernate.property length="65535" type="org.exoplatform.services.database.impl.TextClobType"
89    **/

90   public String JavaDoc getMessage() { return message ; }
91   public void setMessage(String JavaDoc s) { message = s ; }
92
93   /**
94    * @hibernate.property
95    **/

96   public String JavaDoc getRemoteAddr() { return remoteAddr ;}
97   public void setRemoteAddr(String JavaDoc s) { remoteAddr = s ;}
98 }
99
Popular Tags