KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > geinuke > vo > BlogPostVO


1
2
3  /*
4  -- GeiNuke --
5 Copyright (c) 2005 by Roberto Sidoti [geinuke@users.sourceforge.net]
6  http://www.hostingjava.it/-geinuke/
7
8 This file is part of GeiNuke.
9
10     GeiNuke is free software; you can redistribute it and/or modify
11     it under the terms of the GNU General Public License as published by
12     the Free Software Foundation; either version 2 of the License, or
13     (at your option) any later version.
14
15     GeiNuke is distributed in the hope that it will be useful,
16     but WITHOUT ANY WARRANTY; without even the implied warranty of
17     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18     GNU General Public License for more details.
19
20     You should have received a copy of the GNU General Public License
21     along with GeiNuke; if not, write to the Free Software
22     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 */

24 package com.geinuke.vo;
25
26 import java.io.Serializable JavaDoc;
27
28 import com.geinuke.util.collection.TreeArrayList;
29
30
31 public class BlogPostVO implements Serializable JavaDoc{
32     protected int bid=-1;
33     protected UserVO blogAuthor=null;
34     protected CategoryVO blogCategory=null;
35     protected long postTime=-1;
36     protected String JavaDoc BlogTitle=null;
37     protected String JavaDoc BlogText=null;
38     protected TreeArrayList comments=null;
39     /**
40      * @return Returns the bid.
41      */

42     public int getBid() {
43         return bid;
44     }
45     /**
46      * @param bid The bid to set.
47      */

48     public void setBid(int bid) {
49         this.bid = bid;
50     }
51     /**
52      * @return Returns the blogAuthor.
53      */

54     public UserVO getBlogAuthor() {
55         return blogAuthor;
56     }
57     /**
58      * @param blogAuthor The blogAuthor to set.
59      */

60     public void setBlogAuthor(UserVO blogAuthor) {
61         this.blogAuthor = blogAuthor;
62     }
63     /**
64      * @return Returns the blogText.
65      */

66     public String JavaDoc getBlogText() {
67         return BlogText;
68     }
69     /**
70      * @param blogText The blogText to set.
71      */

72     public void setBlogText(String JavaDoc blogText) {
73         BlogText = blogText;
74     }
75     /**
76      * @return Returns the blogTitle.
77      */

78     public String JavaDoc getBlogTitle() {
79         return BlogTitle;
80     }
81     /**
82      * @param blogTitle The blogTitle to set.
83      */

84     public void setBlogTitle(String JavaDoc blogTitle) {
85         BlogTitle = blogTitle;
86     }
87     /**
88      * @return Returns the postTime.
89      */

90     public long getPostTime() {
91         return postTime;
92     }
93     /**
94      * @param postTime The postTime to set.
95      */

96     public void setPostTime(long postTime) {
97         this.postTime = postTime;
98     }
99     /**
100      * @return Returns the blogCategory.
101      */

102     public CategoryVO getBlogCategory() {
103         return blogCategory;
104     }
105     /**
106      * @param blogCategory The blogCategory to set.
107      */

108     public void setBlogCategory(CategoryVO blogCategory) {
109         this.blogCategory = blogCategory;
110     }
111     /**
112      * @return Returns the comments.
113      */

114     public TreeArrayList getComments() {
115         return comments;
116     }
117     /**
118      * @param comments The comments to set.
119      */

120     public void setComments(TreeArrayList comments) {
121         this.comments = comments;
122     }
123 }
124
Popular Tags