KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > vo > PrivMsg


1 /*
2  * Created on 05/05/2005
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package org.javabb.vo;
8
9 import java.io.Serializable JavaDoc;
10 import java.util.Date JavaDoc;
11
12 /**
13  * @author Lucas
14  *
15  * TODO To change the template for this generated type comment go to
16  * Window - Preferences - Java - Code Style - Code Templates
17  */

18 public class PrivMsg extends VOObject implements Serializable JavaDoc {
19     
20     private User userFrom;
21     private User userTo;
22     private String JavaDoc topic;
23     private String JavaDoc text;
24     private Date JavaDoc data;
25     private Integer JavaDoc allowBBCode = new Integer JavaDoc(0);
26     private Integer JavaDoc allowSmiles = new Integer JavaDoc(0);
27     private Integer JavaDoc attachSign = new Integer JavaDoc(0);
28     private Integer JavaDoc read = new Integer JavaDoc(0);
29     
30     public PrivMsg() {
31         
32     }
33     
34     public PrivMsg(PrivMsg p) {
35         setAllowBBCode(p.getAllowBBCode());
36         setAllowSmiles(p.getAllowSmiles());
37         setAttachSign(p.getAttachSign());
38         setData(p.getData());
39         setId(p.getId());
40         setText(p.getText());
41         setTopic(p.getTopic());
42         setUserFrom(p.getUserFrom());
43         setUserTo(p.getUserTo());
44         setRead(p.getRead());
45     }
46     
47     /**
48      * @param long1
49      */

50     public PrivMsg(Long JavaDoc id) {
51         setId(id);
52     }
53
54     public Long JavaDoc getIdMsg() {
55         return getId();
56     }
57     
58     public void setIdMsg(Long JavaDoc id) {
59         setId(id);
60     }
61
62     /**
63      * @return Returns the allowBBCode.
64      */

65     public Integer JavaDoc getAllowBBCode() {
66         return allowBBCode;
67     }
68     /**
69      * @param allowBBCode The allowBBCode to set.
70      */

71     public void setAllowBBCode(Integer JavaDoc allowBBCode) {
72         this.allowBBCode = allowBBCode;
73     }
74     /**
75      * @return Returns the allowSmiles.
76      */

77     public Integer JavaDoc getAllowSmiles() {
78         return allowSmiles;
79     }
80     /**
81      * @param allowSmiles The allowSmiles to set.
82      */

83     public void setAllowSmiles(Integer JavaDoc allowSmiles) {
84         this.allowSmiles = allowSmiles;
85     }
86     /**
87      * @return Returns the attachSign.
88      */

89     public Integer JavaDoc getAttachSign() {
90         return attachSign;
91     }
92     /**
93      * @param attachSign The attachSign to set.
94      */

95     public void setAttachSign(Integer JavaDoc attachSign) {
96         this.attachSign = attachSign;
97     }
98     /**
99      * @return Returns the data.
100      */

101     public Date JavaDoc getData() {
102         return data;
103     }
104     /**
105      * @param data The data to set.
106      */

107     public void setData(Date JavaDoc data) {
108         this.data = data;
109     }
110     /**
111      * @return Returns the text.
112      */

113     public String JavaDoc getText() {
114         return text;
115     }
116     /**
117      * @param text The text to set.
118      */

119     public void setText(String JavaDoc text) {
120         this.text = text;
121     }
122     /**
123      * @return Returns the topic.
124      */

125     public String JavaDoc getTopic() {
126         return topic;
127     }
128     /**
129      * @param topic The topic to set.
130      */

131     public void setTopic(String JavaDoc topic) {
132         this.topic = topic;
133     }
134     /**
135      * @return Returns the userFrom.
136      */

137     public User getUserFrom() {
138         return userFrom;
139     }
140     /**
141      * @param userFrom The userFrom to set.
142      */

143     public void setUserFrom(User userFrom) {
144         this.userFrom = userFrom;
145     }
146     /**
147      * @return Returns the userTo.
148      */

149     public User getUserTo() {
150         return userTo;
151     }
152     /**
153      * @param userTo The userTo to set.
154      */

155     public void setUserTo(User userTo) {
156         this.userTo = userTo;
157     }
158
159     /**
160      * @return Returns the read.
161      */

162     public Integer JavaDoc getRead() {
163         return read;
164     }
165     /**
166      * @param read The read to set.
167      */

168     public void setRead(Integer JavaDoc read) {
169         this.read = read;
170     }
171 }
172
Popular Tags