KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mvnforum > phpbb2mvnforum > db > PhpbbPrivmMsgs


1 package org.mvnforum.phpbb2mvnforum.db;
2
3 //import java.sql.*; // @todo: uncomment as needed
4
import java.util.Collection JavaDoc;//for xml support
5
import java.util.Iterator JavaDoc;//for xml support
6

7 /*
8  * Included columns: privmsgs_id, privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid,
9  * privmsgs_date, privmsgs_ip, privmsgs_enable_bbcode, privmsgs_enable_html, privmsgs_enable_smilies,
10  * privmsgs_attach_sig
11  * Excluded columns:
12  */

13 public class PhpbbPrivmMsgs {
14     private int privmsgs_id;
15     private int privmsgs_type;
16     private String JavaDoc privmsgs_subject;
17     private int privmsgs_from_userid;
18     private int privmsgs_to_userid;
19     private long privmsgs_date;
20     private String JavaDoc privmsgs_ip;
21     private int privmsgs_enable_bbcode;
22     private int privmsgs_enable_html;
23     private int privmsgs_enable_smilies;
24     private int privmsgs_attach_sig;
25
26     public int getprivmsgs_id() {
27         return privmsgs_id;
28     }
29     public void setprivmsgs_id(int privmsgs_id) {
30         this.privmsgs_id = privmsgs_id;
31     }
32
33     public int getprivmsgs_type() {
34         return privmsgs_type;
35     }
36     public void setprivmsgs_type(int privmsgs_type) {
37         this.privmsgs_type = privmsgs_type;
38     }
39
40     public String JavaDoc getprivmsgs_subject() {
41         return privmsgs_subject;
42     }
43     public void setprivmsgs_subject(String JavaDoc privmsgs_subject) {
44         this.privmsgs_subject = privmsgs_subject;
45     }
46
47     public int getprivmsgs_from_userid() {
48         return privmsgs_from_userid;
49     }
50     public void setprivmsgs_from_userid(int privmsgs_from_userid) {
51         this.privmsgs_from_userid = privmsgs_from_userid;
52     }
53
54     public int getprivmsgs_to_userid() {
55         return privmsgs_to_userid;
56     }
57     public void setprivmsgs_to_userid(int privmsgs_to_userid) {
58         this.privmsgs_to_userid = privmsgs_to_userid;
59     }
60
61     public long getprivmsgs_date() {
62         return privmsgs_date;
63     }
64     public void setprivmsgs_date(long privmsgs_date) {
65         this.privmsgs_date = privmsgs_date;
66     }
67
68     public String JavaDoc getprivmsgs_ip() {
69         return privmsgs_ip;
70     }
71     public void setprivmsgs_ip(String JavaDoc privmsgs_ip) {
72         this.privmsgs_ip = privmsgs_ip;
73     }
74
75     public int getprivmsgs_enable_bbcode() {
76         return privmsgs_enable_bbcode;
77     }
78     public void setprivmsgs_enable_bbcode(int privmsgs_enable_bbcode) {
79         this.privmsgs_enable_bbcode = privmsgs_enable_bbcode;
80     }
81
82     public int getprivmsgs_enable_html() {
83         return privmsgs_enable_html;
84     }
85     public void setprivmsgs_enable_html(int privmsgs_enable_html) {
86         this.privmsgs_enable_html = privmsgs_enable_html;
87     }
88
89     public int getprivmsgs_enable_smilies() {
90         return privmsgs_enable_smilies;
91     }
92     public void setprivmsgs_enable_smilies(int privmsgs_enable_smilies) {
93         this.privmsgs_enable_smilies = privmsgs_enable_smilies;
94     }
95
96     public int getprivmsgs_attach_sig() {
97         return privmsgs_attach_sig;
98     }
99     public void setprivmsgs_attach_sig(int privmsgs_attach_sig) {
100         this.privmsgs_attach_sig = privmsgs_attach_sig;
101     }
102
103     public String JavaDoc getXML() {
104         StringBuffer JavaDoc xml = new StringBuffer JavaDoc(1024);
105         xml.append("<phpbb_privmsgsSection>\n");
106         xml.append(" <Rows>\n");
107         xml.append(" <Row>\n");
108         xml.append(" <Column>\n");
109         xml.append(" <Name>privmsgs_id</Name>\n");
110         xml.append(" <Value>").append(String.valueOf(privmsgs_id)).append("</Value>\n");
111         xml.append(" </Column>\n");
112         xml.append(" <Column>\n");
113         xml.append(" <Name>privmsgs_type</Name>\n");
114         xml.append(" <Value>").append(String.valueOf(privmsgs_type)).append("</Value>\n");
115         xml.append(" </Column>\n");
116         xml.append(" <Column>\n");
117         xml.append(" <Name>privmsgs_subject</Name>\n");
118         xml.append(" <Value>").append(String.valueOf(privmsgs_subject)).append("</Value>\n");
119         xml.append(" </Column>\n");
120         xml.append(" <Column>\n");
121         xml.append(" <Name>privmsgs_from_userid</Name>\n");
122         xml.append(" <Value>").append(String.valueOf(privmsgs_from_userid)).append("</Value>\n");
123         xml.append(" </Column>\n");
124         xml.append(" <Column>\n");
125         xml.append(" <Name>privmsgs_to_userid</Name>\n");
126         xml.append(" <Value>").append(String.valueOf(privmsgs_to_userid)).append("</Value>\n");
127         xml.append(" </Column>\n");
128         xml.append(" <Column>\n");
129         xml.append(" <Name>privmsgs_date</Name>\n");
130         xml.append(" <Value>").append(String.valueOf(privmsgs_date)).append("</Value>\n");
131         xml.append(" </Column>\n");
132         xml.append(" <Column>\n");
133         xml.append(" <Name>privmsgs_ip</Name>\n");
134         xml.append(" <Value>").append(String.valueOf(privmsgs_ip)).append("</Value>\n");
135         xml.append(" </Column>\n");
136         xml.append(" <Column>\n");
137         xml.append(" <Name>privmsgs_enable_bbcode</Name>\n");
138         xml.append(" <Value>").append(String.valueOf(privmsgs_enable_bbcode)).append("</Value>\n");
139         xml.append(" </Column>\n");
140         xml.append(" <Column>\n");
141         xml.append(" <Name>privmsgs_enable_html</Name>\n");
142         xml.append(" <Value>").append(String.valueOf(privmsgs_enable_html)).append("</Value>\n");
143         xml.append(" </Column>\n");
144         xml.append(" <Column>\n");
145         xml.append(" <Name>privmsgs_enable_smilies</Name>\n");
146         xml.append(" <Value>").append(String.valueOf(privmsgs_enable_smilies)).append("</Value>\n");
147         xml.append(" </Column>\n");
148         xml.append(" <Column>\n");
149         xml.append(" <Name>privmsgs_attach_sig</Name>\n");
150         xml.append(" <Value>").append(String.valueOf(privmsgs_attach_sig)).append("</Value>\n");
151         xml.append(" </Column>\n");
152         xml.append(" </Row>\n");
153         xml.append(" </Rows>\n");
154         xml.append("</phpbb_privmsgsSection>\n");
155         return xml.toString();
156     }
157
158     public static String JavaDoc getXML(Collection JavaDoc objphpbb_privmsgsBeans) {
159         StringBuffer JavaDoc xml = new StringBuffer JavaDoc(1024);
160         Iterator JavaDoc iterator = objphpbb_privmsgsBeans.iterator();
161         xml.append("<phpbb_privmsgsSection>\n");
162         xml.append(" <Rows>\n");
163         while (iterator.hasNext()) {
164             PhpbbPrivmMsgs objphpbb_privmsgsBean = (PhpbbPrivmMsgs)iterator.next();
165             xml.append(" <Row>\n");
166             xml.append(" <Column>\n");
167             xml.append(" <Name>privmsgs_id</Name>\n");
168             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_id)).append("</Value>\n");
169             xml.append(" </Column>\n");
170             xml.append(" <Column>\n");
171             xml.append(" <Name>privmsgs_type</Name>\n");
172             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_type)).append("</Value>\n");
173             xml.append(" </Column>\n");
174             xml.append(" <Column>\n");
175             xml.append(" <Name>privmsgs_subject</Name>\n");
176             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_subject)).append("</Value>\n");
177             xml.append(" </Column>\n");
178             xml.append(" <Column>\n");
179             xml.append(" <Name>privmsgs_from_userid</Name>\n");
180             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_from_userid)).append("</Value>\n");
181             xml.append(" </Column>\n");
182             xml.append(" <Column>\n");
183             xml.append(" <Name>privmsgs_to_userid</Name>\n");
184             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_to_userid)).append("</Value>\n");
185             xml.append(" </Column>\n");
186             xml.append(" <Column>\n");
187             xml.append(" <Name>privmsgs_date</Name>\n");
188             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_date)).append("</Value>\n");
189             xml.append(" </Column>\n");
190             xml.append(" <Column>\n");
191             xml.append(" <Name>privmsgs_ip</Name>\n");
192             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_ip)).append("</Value>\n");
193             xml.append(" </Column>\n");
194             xml.append(" <Column>\n");
195             xml.append(" <Name>privmsgs_enable_bbcode</Name>\n");
196             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_enable_bbcode)).append("</Value>\n");
197             xml.append(" </Column>\n");
198             xml.append(" <Column>\n");
199             xml.append(" <Name>privmsgs_enable_html</Name>\n");
200             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_enable_html)).append("</Value>\n");
201             xml.append(" </Column>\n");
202             xml.append(" <Column>\n");
203             xml.append(" <Name>privmsgs_enable_smilies</Name>\n");
204             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_enable_smilies)).append("</Value>\n");
205             xml.append(" </Column>\n");
206             xml.append(" <Column>\n");
207             xml.append(" <Name>privmsgs_attach_sig</Name>\n");
208             xml.append(" <Value>").append(String.valueOf(objphpbb_privmsgsBean.privmsgs_attach_sig)).append("</Value>\n");
209             xml.append(" </Column>\n");
210             xml.append(" </Row>\n");
211         }//while
212
xml.append(" </Rows>\n");
213         xml.append("</phpbb_privmsgsSection>\n");
214         return xml.toString();
215     }
216 } //end of class phpbb_privmsgsBean
217
Popular Tags