KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > pojos > WebsiteDisplayData


1 /*
2  * Created on Apr 15, 2003
3  */

4 package org.roller.pojos;
5
6
7 /**
8  * For most popular website display on Roller main page.
9  * The id property is the website's name.
10  *
11  * @author David M Johnson
12  *
13  * @ejb:bean name="WebsiteDisplayData"
14  * @struts.form include-all="true"
15  */

16 public class WebsiteDisplayData extends PersistentObject
17 {
18     static final long serialVersionUID = 5264701383470813687L;
19     
20     private String JavaDoc mId;
21     private String JavaDoc mUserName = null;
22     private String JavaDoc mWebsiteName = null;
23     private Integer JavaDoc mHits = new Integer JavaDoc(0);
24
25     /**
26      *
27      */

28     public WebsiteDisplayData()
29     {
30         super();
31     }
32
33     /**
34      *
35      */

36     public WebsiteDisplayData(String JavaDoc id, String JavaDoc userName, String JavaDoc websiteName, Integer JavaDoc hits)
37     {
38         super();
39         mId = id;
40         mUserName = userName;
41         mWebsiteName = websiteName;
42         mHits = hits;
43     }
44
45     /**
46      * No-op.
47      * @see org.roller.pojos.PersistentObject#setData(org.roller.pojos.PersistentObject)
48      */

49     public void setData(PersistentObject vo)
50     {
51     }
52
53     /**
54      * @ejb:persistent-field
55      */

56     public String JavaDoc getId()
57     {
58         return mId;
59     }
60
61     /**
62      * @see org.roller.pojos.PersistentObject#setId(java.lang.String)
63      */

64     public void setId(String JavaDoc id)
65     {
66         mId = id;
67     }
68
69
70     /**
71      * @ejb:persistent-field
72      */

73     public String JavaDoc getUserName()
74     {
75         return mUserName;
76     }
77
78     /**
79      * @param string
80      */

81     public void setUserName(String JavaDoc string)
82     {
83         mUserName = string;
84     }
85
86     /**
87      * @ejb:persistent-field
88      */

89     public Integer JavaDoc getHits()
90     {
91         return mHits;
92     }
93
94     /**
95      * @param integer
96      */

97     public void setHits(Integer JavaDoc integer)
98     {
99         mHits = integer;
100     }
101
102
103     /**
104      * @return Returns the title.
105      */

106     public String JavaDoc getWebsiteName()
107     {
108         return mWebsiteName;
109     }
110     
111     /**
112      * @param title The title to set.
113      */

114     public void setWebsiteName(String JavaDoc name)
115     {
116         mWebsiteName = name;
117     }
118 }
119
Popular Tags