Source Code Cross Referenced for PhpbbPost.java in  » Forum » mvnforum-1.1 » org » mvnforum » phpbb2mvnforum » db » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Forum » mvnforum 1.1 » org.mvnforum.phpbb2mvnforum.db 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Header: /cvsroot/mvnforum/mvnforum/contrib/phpbb2mvnforum/src/org/mvnforum/phpbb2mvnforum/db/PhpbbPost.java,v 1.4 2007/01/15 10:27:33 dungbtm Exp $
003:         * $Author: dungbtm $
004:         * $Revision: 1.4 $
005:         * $Date: 2007/01/15 10:27:33 $
006:         *
007:         * ====================================================================
008:         *
009:         * Copyright (C) 2002-2007 by MyVietnam.net
010:         *
011:         * All copyright notices regarding mvnForum MUST remain 
012:         * intact in the scripts and in the outputted HTML.
013:         * The "powered by" text/logo with a link back to
014:         * http://www.mvnForum.com and http://www.MyVietnam.net in 
015:         * the footer of the pages MUST remain visible when the pages
016:         * are viewed on the internet or intranet.
017:         *
018:         * This program is free software; you can redistribute it and/or modify
019:         * it under the terms of the GNU General Public License as published by
020:         * the Free Software Foundation; either version 2 of the License, or
021:         * any later version.
022:         *
023:         * This program is distributed in the hope that it will be useful,
024:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
025:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
026:         * GNU General Public License for more details.
027:         *
028:         * You should have received a copy of the GNU General Public License
029:         * along with this program; if not, write to the Free Software
030:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
031:         *
032:         * Support can be obtained from support forums at:
033:         * http://www.mvnForum.com/mvnforum/index
034:         *
035:         * Correspondence and Marketing Questions can be sent to:
036:         * info at MyVietnam net
037:         *
038:         * @author: 
039:         */
040:        package org.mvnforum.phpbb2mvnforum.db;
041:
042:        import java.util.Collection;//for xml support
043:        import java.util.Iterator;//for xml support
044:
045:        /*
046:         * Included columns: post_id, topic_id, forum_id, poster_id, post_time, 
047:         *                   poster_ip, post_username, enable_bbcode, enable_html, enable_smilies, 
048:         *                   enable_sig, post_edit_time, post_edit_count
049:         * Excluded columns: 
050:         */
051:        public class PhpbbPost {
052:            private int post_id;
053:            private int topic_id;
054:            private int forum_id;
055:            private int poster_id;
056:            private int post_time;
057:            private String poster_ip;
058:            private String post_username;
059:            private int enable_bbcode;
060:            private int enable_html;
061:            private int enable_smilies;
062:            private int enable_sig;
063:            private int post_edit_time;
064:            private int post_edit_count;
065:
066:            public int getpost_id() {
067:                return post_id;
068:            }
069:
070:            public void setpost_id(int post_id) {
071:                this .post_id = post_id;
072:            }
073:
074:            public int gettopic_id() {
075:                return topic_id;
076:            }
077:
078:            public void settopic_id(int topic_id) {
079:                this .topic_id = topic_id;
080:            }
081:
082:            public int getforum_id() {
083:                return forum_id;
084:            }
085:
086:            public void setforum_id(int forum_id) {
087:                this .forum_id = forum_id;
088:            }
089:
090:            public int getposter_id() {
091:                return poster_id;
092:            }
093:
094:            public void setposter_id(int poster_id) {
095:                this .poster_id = poster_id;
096:            }
097:
098:            public int getpost_time() {
099:                return post_time;
100:            }
101:
102:            public void setpost_time(int post_time) {
103:                this .post_time = post_time;
104:            }
105:
106:            public String getposter_ip() {
107:                return poster_ip;
108:            }
109:
110:            public void setposter_ip(String poster_ip) {
111:                this .poster_ip = poster_ip;
112:            }
113:
114:            public String getpost_username() {
115:                return post_username;
116:            }
117:
118:            public void setpost_username(String post_username) {
119:                this .post_username = post_username;
120:            }
121:
122:            public int getenable_bbcode() {
123:                return enable_bbcode;
124:            }
125:
126:            public void setenable_bbcode(int enable_bbcode) {
127:                this .enable_bbcode = enable_bbcode;
128:            }
129:
130:            public int getenable_html() {
131:                return enable_html;
132:            }
133:
134:            public void setenable_html(int enable_html) {
135:                this .enable_html = enable_html;
136:            }
137:
138:            public int getenable_smilies() {
139:                return enable_smilies;
140:            }
141:
142:            public void setenable_smilies(int enable_smilies) {
143:                this .enable_smilies = enable_smilies;
144:            }
145:
146:            public int getenable_sig() {
147:                return enable_sig;
148:            }
149:
150:            public void setenable_sig(int enable_sig) {
151:                this .enable_sig = enable_sig;
152:            }
153:
154:            public int getpost_edit_time() {
155:                return post_edit_time;
156:            }
157:
158:            public void setpost_edit_time(int post_edit_time) {
159:                this .post_edit_time = post_edit_time;
160:            }
161:
162:            public int getpost_edit_count() {
163:                return post_edit_count;
164:            }
165:
166:            public void setpost_edit_count(int post_edit_count) {
167:                this .post_edit_count = post_edit_count;
168:            }
169:
170:            /*public String getXML() {
171:                StringBuffer xml = new StringBuffer(1024);
172:                xml.append("<phpbb_postsSection>\n");
173:                xml.append("  <Rows>\n");
174:                xml.append("    <Row>\n");
175:                xml.append("      <Column>\n");
176:                xml.append("        <Name>post_id</Name>\n");
177:                xml.append("        <Value>").append(String.valueOf(post_id)).append("</Value>\n");
178:                xml.append("      </Column>\n");
179:                xml.append("      <Column>\n");
180:                xml.append("        <Name>topic_id</Name>\n");
181:                xml.append("        <Value>").append(String.valueOf(topic_id)).append("</Value>\n");
182:                xml.append("      </Column>\n");
183:                xml.append("      <Column>\n");
184:                xml.append("        <Name>forum_id</Name>\n");
185:                xml.append("        <Value>").append(String.valueOf(forum_id)).append("</Value>\n");
186:                xml.append("      </Column>\n");
187:                xml.append("      <Column>\n");
188:                xml.append("        <Name>poster_id</Name>\n");
189:                xml.append("        <Value>").append(String.valueOf(poster_id)).append("</Value>\n");
190:                xml.append("      </Column>\n");
191:                xml.append("      <Column>\n");
192:                xml.append("        <Name>post_time</Name>\n");
193:                xml.append("        <Value>").append(String.valueOf(post_time)).append("</Value>\n");
194:                xml.append("      </Column>\n");
195:                xml.append("      <Column>\n");
196:                xml.append("        <Name>poster_ip</Name>\n");
197:                xml.append("        <Value>").append(String.valueOf(poster_ip)).append("</Value>\n");
198:                xml.append("      </Column>\n");
199:                xml.append("      <Column>\n");
200:                xml.append("        <Name>post_username</Name>\n");
201:                xml.append("        <Value>").append(String.valueOf(post_username)).append("</Value>\n");
202:                xml.append("      </Column>\n");
203:                xml.append("      <Column>\n");
204:                xml.append("        <Name>enable_bbcode</Name>\n");
205:                xml.append("        <Value>").append(String.valueOf(enable_bbcode)).append("</Value>\n");
206:                xml.append("      </Column>\n");
207:                xml.append("      <Column>\n");
208:                xml.append("        <Name>enable_html</Name>\n");
209:                xml.append("        <Value>").append(String.valueOf(enable_html)).append("</Value>\n");
210:                xml.append("      </Column>\n");
211:                xml.append("      <Column>\n");
212:                xml.append("        <Name>enable_smilies</Name>\n");
213:                xml.append("        <Value>").append(String.valueOf(enable_smilies)).append("</Value>\n");
214:                xml.append("      </Column>\n");
215:                xml.append("      <Column>\n");
216:                xml.append("        <Name>enable_sig</Name>\n");
217:                xml.append("        <Value>").append(String.valueOf(enable_sig)).append("</Value>\n");
218:                xml.append("      </Column>\n");
219:                xml.append("      <Column>\n");
220:                xml.append("        <Name>post_edit_time</Name>\n");
221:                xml.append("        <Value>").append(String.valueOf(post_edit_time)).append("</Value>\n");
222:                xml.append("      </Column>\n");
223:                xml.append("      <Column>\n");
224:                xml.append("        <Name>post_edit_count</Name>\n");
225:                xml.append("        <Value>").append(String.valueOf(post_edit_count)).append("</Value>\n");
226:                xml.append("      </Column>\n");
227:                xml.append("    </Row>\n");
228:                xml.append("  </Rows>\n");
229:                xml.append("</phpbb_postsSection>\n");
230:                return xml.toString();
231:            }*/
232:
233:            public static String getXML(Collection objphpbb_postsBeans) {
234:                StringBuffer xml = new StringBuffer(1024);
235:                Iterator iterator = objphpbb_postsBeans.iterator();
236:                xml.append("<phpbb_postsSection>\n");
237:                xml.append("  <Rows>\n");
238:                while (iterator.hasNext()) {
239:                    PhpbbPost objphpbb_postsBean = (PhpbbPost) iterator.next();
240:                    xml.append("    <Row>\n");
241:                    xml.append("      <Column>\n");
242:                    xml.append("        <Name>post_id</Name>\n");
243:                    xml.append("        <Value>").append(
244:                            String.valueOf(objphpbb_postsBean.post_id)).append(
245:                            "</Value>\n");
246:                    xml.append("      </Column>\n");
247:                    xml.append("      <Column>\n");
248:                    xml.append("        <Name>topic_id</Name>\n");
249:                    xml.append("        <Value>").append(
250:                            String.valueOf(objphpbb_postsBean.topic_id))
251:                            .append("</Value>\n");
252:                    xml.append("      </Column>\n");
253:                    xml.append("      <Column>\n");
254:                    xml.append("        <Name>forum_id</Name>\n");
255:                    xml.append("        <Value>").append(
256:                            String.valueOf(objphpbb_postsBean.forum_id))
257:                            .append("</Value>\n");
258:                    xml.append("      </Column>\n");
259:                    xml.append("      <Column>\n");
260:                    xml.append("        <Name>poster_id</Name>\n");
261:                    xml.append("        <Value>").append(
262:                            String.valueOf(objphpbb_postsBean.poster_id))
263:                            .append("</Value>\n");
264:                    xml.append("      </Column>\n");
265:                    xml.append("      <Column>\n");
266:                    xml.append("        <Name>post_time</Name>\n");
267:                    xml.append("        <Value>").append(
268:                            String.valueOf(objphpbb_postsBean.post_time))
269:                            .append("</Value>\n");
270:                    xml.append("      </Column>\n");
271:                    xml.append("      <Column>\n");
272:                    xml.append("        <Name>poster_ip</Name>\n");
273:                    xml.append("        <Value>").append(
274:                            String.valueOf(objphpbb_postsBean.poster_ip))
275:                            .append("</Value>\n");
276:                    xml.append("      </Column>\n");
277:                    xml.append("      <Column>\n");
278:                    xml.append("        <Name>post_username</Name>\n");
279:                    xml.append("        <Value>").append(
280:                            String.valueOf(objphpbb_postsBean.post_username))
281:                            .append("</Value>\n");
282:                    xml.append("      </Column>\n");
283:                    xml.append("      <Column>\n");
284:                    xml.append("        <Name>enable_bbcode</Name>\n");
285:                    xml.append("        <Value>").append(
286:                            String.valueOf(objphpbb_postsBean.enable_bbcode))
287:                            .append("</Value>\n");
288:                    xml.append("      </Column>\n");
289:                    xml.append("      <Column>\n");
290:                    xml.append("        <Name>enable_html</Name>\n");
291:                    xml.append("        <Value>").append(
292:                            String.valueOf(objphpbb_postsBean.enable_html))
293:                            .append("</Value>\n");
294:                    xml.append("      </Column>\n");
295:                    xml.append("      <Column>\n");
296:                    xml.append("        <Name>enable_smilies</Name>\n");
297:                    xml.append("        <Value>").append(
298:                            String.valueOf(objphpbb_postsBean.enable_smilies))
299:                            .append("</Value>\n");
300:                    xml.append("      </Column>\n");
301:                    xml.append("      <Column>\n");
302:                    xml.append("        <Name>enable_sig</Name>\n");
303:                    xml.append("        <Value>").append(
304:                            String.valueOf(objphpbb_postsBean.enable_sig))
305:                            .append("</Value>\n");
306:                    xml.append("      </Column>\n");
307:                    xml.append("      <Column>\n");
308:                    xml.append("        <Name>post_edit_time</Name>\n");
309:                    xml.append("        <Value>").append(
310:                            String.valueOf(objphpbb_postsBean.post_edit_time))
311:                            .append("</Value>\n");
312:                    xml.append("      </Column>\n");
313:                    xml.append("      <Column>\n");
314:                    xml.append("        <Name>post_edit_count</Name>\n");
315:                    xml.append("        <Value>").append(
316:                            String.valueOf(objphpbb_postsBean.post_edit_count))
317:                            .append("</Value>\n");
318:                    xml.append("      </Column>\n");
319:                    xml.append("    </Row>\n");
320:                }//while
321:                xml.append("  </Rows>\n");
322:                xml.append("</phpbb_postsSection>\n");
323:                return xml.toString();
324:            }
325:        } //end of class phpbb_postsBean
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.