KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mvnforum > phpbb2mvnforum > db > jdbc > DAOFactory


1 package org.mvnforum.phpbb2mvnforum.db.jdbc;
2
3 import org.mvnforum.phpbb2mvnforum.db.CategoryDAO;
4 import org.mvnforum.phpbb2mvnforum.db.ForumDAO;
5 import org.mvnforum.phpbb2mvnforum.db.MemberDAO;
6 import org.mvnforum.phpbb2mvnforum.db.MessageDAO;
7 import org.mvnforum.phpbb2mvnforum.db.PhpbbAuthAccessDAO;
8 import org.mvnforum.phpbb2mvnforum.db.PhpbbCategoriesDAO;
9 import org.mvnforum.phpbb2mvnforum.db.PhpbbForumDAO;
10 import org.mvnforum.phpbb2mvnforum.db.PhpbbGroupDAO;
11 import org.mvnforum.phpbb2mvnforum.db.PhpbbPostDAO;
12 import org.mvnforum.phpbb2mvnforum.db.PhpbbPostTextDAO;
13 import org.mvnforum.phpbb2mvnforum.db.PhpbbPrivmMsgsDAO;
14 import org.mvnforum.phpbb2mvnforum.db.PhpbbPrivmMsgsTextDAO;
15 import org.mvnforum.phpbb2mvnforum.db.PhpbbRanksDAO;
16 import org.mvnforum.phpbb2mvnforum.db.PhpbbTopicsDAO;
17 import org.mvnforum.phpbb2mvnforum.db.PhpbbTopicsWatchDAO;
18 import org.mvnforum.phpbb2mvnforum.db.PhpbbUserDAO;
19 import org.mvnforum.phpbb2mvnforum.db.PhpbbUserGroupDAO;
20 import org.mvnforum.phpbb2mvnforum.db.PostDAO;
21 import org.mvnforum.phpbb2mvnforum.db.ThreadDAO;
22
23 import com.mvnforum.db.GroupPermissionDAO;
24 import com.mvnforum.db.GroupsDAO;
25 import com.mvnforum.db.MemberPermissionDAO;
26 import com.mvnforum.db.MessageFolderDAO;
27 import com.mvnforum.db.RankDAO;
28 import com.mvnforum.db.WatchDAO;
29
30
31 public class DAOFactory {
32     
33     private PhpbbUserDAO phpUserDAO = null;
34     private PhpbbCategoriesDAO phpbbCategoriesDAO = null;
35     private PhpbbForumDAO phpbbForumDAO = null;
36     private PhpbbPostDAO phpbbPostDAO = null;
37     private PhpbbPostTextDAO phpbbPostTextDAO = null;
38     private PhpbbTopicsDAO phpbbTopicsDAO = null;
39     private PhpbbPrivmMsgsDAO phpbbPrivmMsgsDAO = null;
40     private PhpbbPrivmMsgsTextDAO phpbbPrivmMsgsTextDAO = null;
41     private PhpbbGroupDAO phpbbGroupDAO = null;
42     private PhpbbUserGroupDAO phpbbUserGroupDAO = null;
43     private PhpbbTopicsWatchDAO phpbbTopicsWatchDAO = null;
44     private PhpbbRanksDAO phpbbRanksDAO = null;
45     private PhpbbAuthAccessDAO phpbbAuthAccessDAO = null;
46     
47     private CategoryDAO categoryDAO = null;
48     private ForumDAO forumDAO = null;
49     private PostDAO postDAO = null;
50     private MemberDAO memberDAO = null;
51     private ThreadDAO threadDAO = null;
52     private MessageDAO messageDAO = null;
53     private RankDAO rankDAO = null;
54     private GroupsDAO groupsDAO = null;
55     private MessageFolderDAO messageFolderDAO = null;
56     private MemberPermissionDAO memberPermissionDAO = null;
57     private WatchDAO watchDAO = null;
58     private GroupPermissionDAO groupPermissionDAO = null;
59     
60     private CategoryDAO categoryDAOXML = null;
61     private ForumDAO forumDAOXML = null;
62     private PostDAO postDAOXML = null;
63     private ThreadDAO threadDAOXML = null;
64
65     public DAOFactory() {
66         super();
67         // TODO Auto-generated constructor stub
68
phpUserDAO = new PhpbbUserDAOImpl();
69         phpbbCategoriesDAO = new PhpbbCategoriesDAOImpl();
70         phpbbForumDAO = new PhpbbForumDAOImpl();
71         phpbbPostDAO = new PhpbbPostDAOImpl();
72         phpbbPostTextDAO = new PhpbbPostTextDAOImpl();
73         phpbbTopicsDAO = new PhpbbTopicsDAOImpl();
74         phpbbPrivmMsgsDAO = new PhpbbPrivmMsgsDAOImpl();
75         phpbbPrivmMsgsTextDAO = new PhpbbPrivmMsgsTextDAOImpl();
76         phpbbGroupDAO = new PhpbbGroupDAOImpl();
77         phpbbUserGroupDAO = new PhpbbUserGroupDAOImpl();
78         phpbbTopicsWatchDAO = new PhpbbTopicsWatchDAOImpl();
79         phpbbRanksDAO = new PhpbbRanksDAOImpl ();
80         phpbbAuthAccessDAO = new PhpbbAuthAccessDAOImpl ();
81         
82         categoryDAO = new CategoryDAOImplJDBC();
83         forumDAO = new ForumDAOImplJDBC();
84         postDAO = new PostDAOImplJDBC();
85         memberDAO = new MemberDAOImplJDBC();
86         threadDAO = new ThreadDAOImplJDBC();
87         messageDAO = new MessageDAOImplJDBC();
88         rankDAO = new RankDAOImplJDBC();
89         groupsDAO = new GroupsDAOImplJDBC ();
90         messageFolderDAO = new MessageFolderDAOImplJDBC ();
91         memberPermissionDAO = new MemberPermissionDAOImplJDBC ();
92         watchDAO = new WatchDAOImplJDBC ();
93         groupPermissionDAO = new GroupPermissionDAOImplJDBC ();
94         
95         categoryDAOXML = new CategoryDAOImplXML();
96         forumDAOXML = new ForumDAOImplXML();
97         postDAOXML = new PostDAOImplXML();
98         threadDAOXML = new ThreadDAOImplXML();
99     }
100
101     public PhpbbUserDAO getPhpUserDAO() {
102         return phpUserDAO;
103     }
104
105     public CategoryDAO getCategoryDAO() {
106         return categoryDAO;
107     }
108
109     public void setCategoryDAO(CategoryDAO categoryDAO) {
110         this.categoryDAO = categoryDAO;
111     }
112
113     public void setPhpUserDAO(PhpbbUserDAO phpUserDAO) {
114         this.phpUserDAO = phpUserDAO;
115     }
116
117     public PhpbbCategoriesDAO getPhpbbCategoriesDAO() {
118         return phpbbCategoriesDAO;
119     }
120
121     public void setPhpbbCategoriesDAO(PhpbbCategoriesDAO phpbbCategoriesDAO) {
122         this.phpbbCategoriesDAO = phpbbCategoriesDAO;
123     }
124
125     public PhpbbForumDAO getPhpbbForumDAO() {
126         return phpbbForumDAO;
127     }
128
129     public void setPhpbbForumDAO(PhpbbForumDAO phpbbForumDAO) {
130         this.phpbbForumDAO = phpbbForumDAO;
131     }
132
133     public PhpbbPostDAO getPhpbbPostDAO() {
134         return phpbbPostDAO;
135     }
136
137     public void setPhpbbPostDAO(PhpbbPostDAO phpbbPostDAO) {
138         this.phpbbPostDAO = phpbbPostDAO;
139     }
140
141     public ForumDAO getForumDAO() {
142         return forumDAO;
143     }
144
145     public void setForumDAO(ForumDAO forumDAO) {
146         this.forumDAO = forumDAO;
147     }
148
149     public PhpbbPostTextDAO getPhpbbPostTextDAO() {
150         return phpbbPostTextDAO;
151     }
152
153     public void setPhpbbPostTextDAO(PhpbbPostTextDAO phpbbPostTextDAO) {
154         this.phpbbPostTextDAO = phpbbPostTextDAO;
155     }
156
157     public PostDAO getPostDAO() {
158         return postDAO;
159     }
160
161     public void setPostDAO(PostDAO postDAO) {
162         this.postDAO = postDAO;
163     }
164
165     public MemberDAO getMemberDAO() {
166         return memberDAO;
167     }
168
169     public void setMemberDAO(MemberDAO memberDAO) {
170         this.memberDAO = memberDAO;
171     }
172
173     public PhpbbTopicsDAO getPhpbbTopicsDAO() {
174         return phpbbTopicsDAO;
175     }
176
177     public void setPhpbbTopicsDAO(PhpbbTopicsDAO phpbbTopicsDAO) {
178         this.phpbbTopicsDAO = phpbbTopicsDAO;
179     }
180
181     public ThreadDAO getThreadDAO() {
182         return threadDAO;
183     }
184
185     public void setThreadDAO(ThreadDAO threadDAO) {
186         this.threadDAO = threadDAO;
187     }
188
189     public PhpbbPrivmMsgsDAO getPhpbbPrivmMsgsDAO() {
190         return phpbbPrivmMsgsDAO;
191     }
192
193     public void setPhpbbPrivmMsgsDAO(PhpbbPrivmMsgsDAO phpbbPrivmMsgsDAO) {
194         this.phpbbPrivmMsgsDAO = phpbbPrivmMsgsDAO;
195     }
196
197     public PhpbbPrivmMsgsTextDAO getPhpbbPrivmMsgsTextDAO() {
198         return phpbbPrivmMsgsTextDAO;
199     }
200
201     public void setPhpbbPrivmMsgsTextDAO(PhpbbPrivmMsgsTextDAO phpbbPrivmMsgsTextDAO) {
202         this.phpbbPrivmMsgsTextDAO = phpbbPrivmMsgsTextDAO;
203     }
204
205     public MessageDAO getMessageDAO() {
206         return messageDAO;
207     }
208
209     public void setMessageDAO(MessageDAO messageDAO) {
210         this.messageDAO = messageDAO;
211     }
212
213     public CategoryDAO getCategoryDAOXML() {
214         return categoryDAOXML;
215     }
216
217     public void setCategoryDAOXML(CategoryDAO categoryDAOXML) {
218         this.categoryDAOXML = categoryDAOXML;
219     }
220
221     public ForumDAO getForumDAOXML() {
222         return forumDAOXML;
223     }
224
225     public void setForumDAOXML(ForumDAO forumDAOXML) {
226         this.forumDAOXML = forumDAOXML;
227     }
228
229     public PostDAO getPostDAOXML() {
230         return postDAOXML;
231     }
232
233     public void setPostDAOXML(PostDAO postDAOXML) {
234         this.postDAOXML = postDAOXML;
235     }
236
237     public ThreadDAO getThreadDAOXML() {
238         return threadDAOXML;
239     }
240
241     public void setThreadDAOXML(ThreadDAO threadDAOXML) {
242         this.threadDAOXML = threadDAOXML;
243     }
244
245     public PhpbbGroupDAO getPhpbbGroupDAO() {
246         return phpbbGroupDAO;
247     }
248
249     public void setPhpbbGroupDAO(PhpbbGroupDAO phpbbGroupDAO) {
250         this.phpbbGroupDAO = phpbbGroupDAO;
251     }
252
253     public PhpbbUserGroupDAO getPhpbbUserGroupDAO() {
254         return phpbbUserGroupDAO;
255     }
256
257     public void setPhpbbUserGroupDAO(PhpbbUserGroupDAO phpbbUserGroupDAO) {
258         this.phpbbUserGroupDAO = phpbbUserGroupDAO;
259     }
260
261     public PhpbbTopicsWatchDAO getPhpbbTopicsWatchDAO() {
262         return phpbbTopicsWatchDAO;
263     }
264
265     public void setPhpbbTopicsWatchDAO(PhpbbTopicsWatchDAO phpbbTopicsWatchDAO) {
266         this.phpbbTopicsWatchDAO = phpbbTopicsWatchDAO;
267     }
268
269     public RankDAO getRankDAO() {
270         return rankDAO;
271     }
272
273     public void setRankDAO(RankDAO rankDAO) {
274         this.rankDAO = rankDAO;
275     }
276
277     public GroupsDAO getGroupsDAO() {
278         return groupsDAO;
279     }
280
281     public void setGroupsDAO(GroupsDAO groupsDAO) {
282         this.groupsDAO = groupsDAO;
283     }
284
285     public MessageFolderDAO getMessageFolderDAO() {
286         return messageFolderDAO;
287     }
288
289     public void setMessageFolderDAO(MessageFolderDAO messageFolderDAO) {
290         this.messageFolderDAO = messageFolderDAO;
291     }
292
293     public MemberPermissionDAO getMemberPermissionDAO() {
294         return memberPermissionDAO;
295     }
296
297     public void setMemberPermissionDAO(MemberPermissionDAO memberPermissionDAO) {
298         this.memberPermissionDAO = memberPermissionDAO;
299     }
300
301     public WatchDAO getWatchDAO() {
302         return watchDAO;
303     }
304
305     public void setWatchDAO(WatchDAO watchDAO) {
306         this.watchDAO = watchDAO;
307     }
308
309     public PhpbbRanksDAO getPhpbbRanksDAO() {
310         return phpbbRanksDAO;
311     }
312
313     public void setPhpbbRanksDAO(PhpbbRanksDAO phpbbRanksDAO) {
314         this.phpbbRanksDAO = phpbbRanksDAO;
315     }
316
317     public GroupPermissionDAO getGroupPermissionDAO() {
318         return groupPermissionDAO;
319     }
320
321     public void setGroupPermissionDAO(GroupPermissionDAO groupPermissionDAO) {
322         this.groupPermissionDAO = groupPermissionDAO;
323     }
324
325     public PhpbbAuthAccessDAO getPhpbbAuthAccessDAO() {
326         return phpbbAuthAccessDAO;
327     }
328
329     public void setPhpbbAuthAccessDAO(PhpbbAuthAccessDAO phpbbAuthAccessDAO) {
330         this.phpbbAuthAccessDAO = phpbbAuthAccessDAO;
331     }
332
333     
334 }
335
Popular Tags