001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.messageboards.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.messageboards.model.MBStatsUser;
036    import com.liferay.portlet.messageboards.service.MBBanLocalService;
037    import com.liferay.portlet.messageboards.service.MBBanService;
038    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
039    import com.liferay.portlet.messageboards.service.MBCategoryService;
040    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
041    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
042    import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
043    import com.liferay.portlet.messageboards.service.MBMessageFlagService;
044    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
045    import com.liferay.portlet.messageboards.service.MBMessageService;
046    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
047    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
048    import com.liferay.portlet.messageboards.service.MBThreadService;
049    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
050    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
051    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
052    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
053    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
054    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
055    import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
056    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
057    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
058    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
059    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
060    
061    import java.util.List;
062    
063    import javax.sql.DataSource;
064    
065    /**
066     * The base implementation of the message boards stats user local service.
067     *
068     * <p>
069     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.messageboards.service.impl.MBStatsUserLocalServiceImpl}.
070     * </p>
071     *
072     * <p>
073     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceUtil} to access the message boards stats user local service.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portlet.messageboards.service.impl.MBStatsUserLocalServiceImpl
078     * @see com.liferay.portlet.messageboards.service.MBStatsUserLocalServiceUtil
079     * @generated
080     */
081    public abstract class MBStatsUserLocalServiceBaseImpl
082            implements MBStatsUserLocalService {
083            /**
084             * Adds the message boards stats user to the database. Also notifies the appropriate model listeners.
085             *
086             * @param mbStatsUser the message boards stats user to add
087             * @return the message boards stats user that was added
088             * @throws SystemException if a system exception occurred
089             */
090            public MBStatsUser addMBStatsUser(MBStatsUser mbStatsUser)
091                    throws SystemException {
092                    mbStatsUser.setNew(true);
093    
094                    return mbStatsUserPersistence.update(mbStatsUser, false);
095            }
096    
097            /**
098             * Creates a new message boards stats user with the primary key. Does not add the message boards stats user to the database.
099             *
100             * @param statsUserId the primary key for the new message boards stats user
101             * @return the new message boards stats user
102             */
103            public MBStatsUser createMBStatsUser(long statsUserId) {
104                    return mbStatsUserPersistence.create(statsUserId);
105            }
106    
107            /**
108             * Deletes the message boards stats user with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param statsUserId the primary key of the message boards stats user to delete
111             * @throws PortalException if a message boards stats user with the primary key could not be found
112             * @throws SystemException if a system exception occurred
113             */
114            public void deleteMBStatsUser(long statsUserId)
115                    throws PortalException, SystemException {
116                    mbStatsUserPersistence.remove(statsUserId);
117            }
118    
119            /**
120             * Deletes the message boards stats user from the database. Also notifies the appropriate model listeners.
121             *
122             * @param mbStatsUser the message boards stats user to delete
123             * @throws SystemException if a system exception occurred
124             */
125            public void deleteMBStatsUser(MBStatsUser mbStatsUser)
126                    throws SystemException {
127                    mbStatsUserPersistence.remove(mbStatsUser);
128            }
129    
130            /**
131             * Performs a dynamic query on the database and returns the matching rows.
132             *
133             * @param dynamicQuery the dynamic query to search with
134             * @return the matching rows
135             * @throws SystemException if a system exception occurred
136             */
137            @SuppressWarnings("rawtypes")
138            public List dynamicQuery(DynamicQuery dynamicQuery)
139                    throws SystemException {
140                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery);
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns a range of the matching rows.
145             *
146             * <p>
147             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
148             * </p>
149             *
150             * @param dynamicQuery the dynamic query to search with
151             * @param start the lower bound of the range of model instances to return
152             * @param end the upper bound of the range of model instances to return (not inclusive)
153             * @return the range of matching rows
154             * @throws SystemException if a system exception occurred
155             */
156            @SuppressWarnings("rawtypes")
157            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
158                    throws SystemException {
159                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery, start,
160                            end);
161            }
162    
163            /**
164             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
165             *
166             * <p>
167             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
168             * </p>
169             *
170             * @param dynamicQuery the dynamic query to search with
171             * @param start the lower bound of the range of model instances to return
172             * @param end the upper bound of the range of model instances to return (not inclusive)
173             * @param orderByComparator the comparator to order the results by
174             * @return the ordered range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @SuppressWarnings("rawtypes")
178            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
179                    OrderByComparator orderByComparator) throws SystemException {
180                    return mbStatsUserPersistence.findWithDynamicQuery(dynamicQuery, start,
181                            end, orderByComparator);
182            }
183    
184            /**
185             * Counts the number of rows that match the dynamic query.
186             *
187             * @param dynamicQuery the dynamic query to search with
188             * @return the number of rows that match the dynamic query
189             * @throws SystemException if a system exception occurred
190             */
191            public long dynamicQueryCount(DynamicQuery dynamicQuery)
192                    throws SystemException {
193                    return mbStatsUserPersistence.countWithDynamicQuery(dynamicQuery);
194            }
195    
196            /**
197             * Gets the message boards stats user with the primary key.
198             *
199             * @param statsUserId the primary key of the message boards stats user to get
200             * @return the message boards stats user
201             * @throws PortalException if a message boards stats user with the primary key could not be found
202             * @throws SystemException if a system exception occurred
203             */
204            public MBStatsUser getMBStatsUser(long statsUserId)
205                    throws PortalException, SystemException {
206                    return mbStatsUserPersistence.findByPrimaryKey(statsUserId);
207            }
208    
209            /**
210             * Gets a range of all the message boards stats users.
211             *
212             * <p>
213             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
214             * </p>
215             *
216             * @param start the lower bound of the range of message boards stats users to return
217             * @param end the upper bound of the range of message boards stats users to return (not inclusive)
218             * @return the range of message boards stats users
219             * @throws SystemException if a system exception occurred
220             */
221            public List<MBStatsUser> getMBStatsUsers(int start, int end)
222                    throws SystemException {
223                    return mbStatsUserPersistence.findAll(start, end);
224            }
225    
226            /**
227             * Gets the number of message boards stats users.
228             *
229             * @return the number of message boards stats users
230             * @throws SystemException if a system exception occurred
231             */
232            public int getMBStatsUsersCount() throws SystemException {
233                    return mbStatsUserPersistence.countAll();
234            }
235    
236            /**
237             * Updates the message boards stats user in the database. Also notifies the appropriate model listeners.
238             *
239             * @param mbStatsUser the message boards stats user to update
240             * @return the message boards stats user that was updated
241             * @throws SystemException if a system exception occurred
242             */
243            public MBStatsUser updateMBStatsUser(MBStatsUser mbStatsUser)
244                    throws SystemException {
245                    mbStatsUser.setNew(false);
246    
247                    return mbStatsUserPersistence.update(mbStatsUser, true);
248            }
249    
250            /**
251             * Updates the message boards stats user in the database. Also notifies the appropriate model listeners.
252             *
253             * @param mbStatsUser the message boards stats user to update
254             * @param merge whether to merge the message boards stats user with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
255             * @return the message boards stats user that was updated
256             * @throws SystemException if a system exception occurred
257             */
258            public MBStatsUser updateMBStatsUser(MBStatsUser mbStatsUser, boolean merge)
259                    throws SystemException {
260                    mbStatsUser.setNew(false);
261    
262                    return mbStatsUserPersistence.update(mbStatsUser, merge);
263            }
264    
265            /**
266             * Gets the message boards ban local service.
267             *
268             * @return the message boards ban local service
269             */
270            public MBBanLocalService getMBBanLocalService() {
271                    return mbBanLocalService;
272            }
273    
274            /**
275             * Sets the message boards ban local service.
276             *
277             * @param mbBanLocalService the message boards ban local service
278             */
279            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
280                    this.mbBanLocalService = mbBanLocalService;
281            }
282    
283            /**
284             * Gets the message boards ban remote service.
285             *
286             * @return the message boards ban remote service
287             */
288            public MBBanService getMBBanService() {
289                    return mbBanService;
290            }
291    
292            /**
293             * Sets the message boards ban remote service.
294             *
295             * @param mbBanService the message boards ban remote service
296             */
297            public void setMBBanService(MBBanService mbBanService) {
298                    this.mbBanService = mbBanService;
299            }
300    
301            /**
302             * Gets the message boards ban persistence.
303             *
304             * @return the message boards ban persistence
305             */
306            public MBBanPersistence getMBBanPersistence() {
307                    return mbBanPersistence;
308            }
309    
310            /**
311             * Sets the message boards ban persistence.
312             *
313             * @param mbBanPersistence the message boards ban persistence
314             */
315            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
316                    this.mbBanPersistence = mbBanPersistence;
317            }
318    
319            /**
320             * Gets the message boards category local service.
321             *
322             * @return the message boards category local service
323             */
324            public MBCategoryLocalService getMBCategoryLocalService() {
325                    return mbCategoryLocalService;
326            }
327    
328            /**
329             * Sets the message boards category local service.
330             *
331             * @param mbCategoryLocalService the message boards category local service
332             */
333            public void setMBCategoryLocalService(
334                    MBCategoryLocalService mbCategoryLocalService) {
335                    this.mbCategoryLocalService = mbCategoryLocalService;
336            }
337    
338            /**
339             * Gets the message boards category remote service.
340             *
341             * @return the message boards category remote service
342             */
343            public MBCategoryService getMBCategoryService() {
344                    return mbCategoryService;
345            }
346    
347            /**
348             * Sets the message boards category remote service.
349             *
350             * @param mbCategoryService the message boards category remote service
351             */
352            public void setMBCategoryService(MBCategoryService mbCategoryService) {
353                    this.mbCategoryService = mbCategoryService;
354            }
355    
356            /**
357             * Gets the message boards category persistence.
358             *
359             * @return the message boards category persistence
360             */
361            public MBCategoryPersistence getMBCategoryPersistence() {
362                    return mbCategoryPersistence;
363            }
364    
365            /**
366             * Sets the message boards category persistence.
367             *
368             * @param mbCategoryPersistence the message boards category persistence
369             */
370            public void setMBCategoryPersistence(
371                    MBCategoryPersistence mbCategoryPersistence) {
372                    this.mbCategoryPersistence = mbCategoryPersistence;
373            }
374    
375            /**
376             * Gets the message boards category finder.
377             *
378             * @return the message boards category finder
379             */
380            public MBCategoryFinder getMBCategoryFinder() {
381                    return mbCategoryFinder;
382            }
383    
384            /**
385             * Sets the message boards category finder.
386             *
387             * @param mbCategoryFinder the message boards category finder
388             */
389            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
390                    this.mbCategoryFinder = mbCategoryFinder;
391            }
392    
393            /**
394             * Gets the message boards discussion local service.
395             *
396             * @return the message boards discussion local service
397             */
398            public MBDiscussionLocalService getMBDiscussionLocalService() {
399                    return mbDiscussionLocalService;
400            }
401    
402            /**
403             * Sets the message boards discussion local service.
404             *
405             * @param mbDiscussionLocalService the message boards discussion local service
406             */
407            public void setMBDiscussionLocalService(
408                    MBDiscussionLocalService mbDiscussionLocalService) {
409                    this.mbDiscussionLocalService = mbDiscussionLocalService;
410            }
411    
412            /**
413             * Gets the message boards discussion persistence.
414             *
415             * @return the message boards discussion persistence
416             */
417            public MBDiscussionPersistence getMBDiscussionPersistence() {
418                    return mbDiscussionPersistence;
419            }
420    
421            /**
422             * Sets the message boards discussion persistence.
423             *
424             * @param mbDiscussionPersistence the message boards discussion persistence
425             */
426            public void setMBDiscussionPersistence(
427                    MBDiscussionPersistence mbDiscussionPersistence) {
428                    this.mbDiscussionPersistence = mbDiscussionPersistence;
429            }
430    
431            /**
432             * Gets the message boards mailing list local service.
433             *
434             * @return the message boards mailing list local service
435             */
436            public MBMailingListLocalService getMBMailingListLocalService() {
437                    return mbMailingListLocalService;
438            }
439    
440            /**
441             * Sets the message boards mailing list local service.
442             *
443             * @param mbMailingListLocalService the message boards mailing list local service
444             */
445            public void setMBMailingListLocalService(
446                    MBMailingListLocalService mbMailingListLocalService) {
447                    this.mbMailingListLocalService = mbMailingListLocalService;
448            }
449    
450            /**
451             * Gets the message boards mailing list persistence.
452             *
453             * @return the message boards mailing list persistence
454             */
455            public MBMailingListPersistence getMBMailingListPersistence() {
456                    return mbMailingListPersistence;
457            }
458    
459            /**
460             * Sets the message boards mailing list persistence.
461             *
462             * @param mbMailingListPersistence the message boards mailing list persistence
463             */
464            public void setMBMailingListPersistence(
465                    MBMailingListPersistence mbMailingListPersistence) {
466                    this.mbMailingListPersistence = mbMailingListPersistence;
467            }
468    
469            /**
470             * Gets the message-boards message local service.
471             *
472             * @return the message-boards message local service
473             */
474            public MBMessageLocalService getMBMessageLocalService() {
475                    return mbMessageLocalService;
476            }
477    
478            /**
479             * Sets the message-boards message local service.
480             *
481             * @param mbMessageLocalService the message-boards message local service
482             */
483            public void setMBMessageLocalService(
484                    MBMessageLocalService mbMessageLocalService) {
485                    this.mbMessageLocalService = mbMessageLocalService;
486            }
487    
488            /**
489             * Gets the message-boards message remote service.
490             *
491             * @return the message-boards message remote service
492             */
493            public MBMessageService getMBMessageService() {
494                    return mbMessageService;
495            }
496    
497            /**
498             * Sets the message-boards message remote service.
499             *
500             * @param mbMessageService the message-boards message remote service
501             */
502            public void setMBMessageService(MBMessageService mbMessageService) {
503                    this.mbMessageService = mbMessageService;
504            }
505    
506            /**
507             * Gets the message-boards message persistence.
508             *
509             * @return the message-boards message persistence
510             */
511            public MBMessagePersistence getMBMessagePersistence() {
512                    return mbMessagePersistence;
513            }
514    
515            /**
516             * Sets the message-boards message persistence.
517             *
518             * @param mbMessagePersistence the message-boards message persistence
519             */
520            public void setMBMessagePersistence(
521                    MBMessagePersistence mbMessagePersistence) {
522                    this.mbMessagePersistence = mbMessagePersistence;
523            }
524    
525            /**
526             * Gets the message-boards message finder.
527             *
528             * @return the message-boards message finder
529             */
530            public MBMessageFinder getMBMessageFinder() {
531                    return mbMessageFinder;
532            }
533    
534            /**
535             * Sets the message-boards message finder.
536             *
537             * @param mbMessageFinder the message-boards message finder
538             */
539            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
540                    this.mbMessageFinder = mbMessageFinder;
541            }
542    
543            /**
544             * Gets the message boards message flag local service.
545             *
546             * @return the message boards message flag local service
547             */
548            public MBMessageFlagLocalService getMBMessageFlagLocalService() {
549                    return mbMessageFlagLocalService;
550            }
551    
552            /**
553             * Sets the message boards message flag local service.
554             *
555             * @param mbMessageFlagLocalService the message boards message flag local service
556             */
557            public void setMBMessageFlagLocalService(
558                    MBMessageFlagLocalService mbMessageFlagLocalService) {
559                    this.mbMessageFlagLocalService = mbMessageFlagLocalService;
560            }
561    
562            /**
563             * Gets the message boards message flag remote service.
564             *
565             * @return the message boards message flag remote service
566             */
567            public MBMessageFlagService getMBMessageFlagService() {
568                    return mbMessageFlagService;
569            }
570    
571            /**
572             * Sets the message boards message flag remote service.
573             *
574             * @param mbMessageFlagService the message boards message flag remote service
575             */
576            public void setMBMessageFlagService(
577                    MBMessageFlagService mbMessageFlagService) {
578                    this.mbMessageFlagService = mbMessageFlagService;
579            }
580    
581            /**
582             * Gets the message boards message flag persistence.
583             *
584             * @return the message boards message flag persistence
585             */
586            public MBMessageFlagPersistence getMBMessageFlagPersistence() {
587                    return mbMessageFlagPersistence;
588            }
589    
590            /**
591             * Sets the message boards message flag persistence.
592             *
593             * @param mbMessageFlagPersistence the message boards message flag persistence
594             */
595            public void setMBMessageFlagPersistence(
596                    MBMessageFlagPersistence mbMessageFlagPersistence) {
597                    this.mbMessageFlagPersistence = mbMessageFlagPersistence;
598            }
599    
600            /**
601             * Gets the message boards stats user local service.
602             *
603             * @return the message boards stats user local service
604             */
605            public MBStatsUserLocalService getMBStatsUserLocalService() {
606                    return mbStatsUserLocalService;
607            }
608    
609            /**
610             * Sets the message boards stats user local service.
611             *
612             * @param mbStatsUserLocalService the message boards stats user local service
613             */
614            public void setMBStatsUserLocalService(
615                    MBStatsUserLocalService mbStatsUserLocalService) {
616                    this.mbStatsUserLocalService = mbStatsUserLocalService;
617            }
618    
619            /**
620             * Gets the message boards stats user persistence.
621             *
622             * @return the message boards stats user persistence
623             */
624            public MBStatsUserPersistence getMBStatsUserPersistence() {
625                    return mbStatsUserPersistence;
626            }
627    
628            /**
629             * Sets the message boards stats user persistence.
630             *
631             * @param mbStatsUserPersistence the message boards stats user persistence
632             */
633            public void setMBStatsUserPersistence(
634                    MBStatsUserPersistence mbStatsUserPersistence) {
635                    this.mbStatsUserPersistence = mbStatsUserPersistence;
636            }
637    
638            /**
639             * Gets the message boards thread local service.
640             *
641             * @return the message boards thread local service
642             */
643            public MBThreadLocalService getMBThreadLocalService() {
644                    return mbThreadLocalService;
645            }
646    
647            /**
648             * Sets the message boards thread local service.
649             *
650             * @param mbThreadLocalService the message boards thread local service
651             */
652            public void setMBThreadLocalService(
653                    MBThreadLocalService mbThreadLocalService) {
654                    this.mbThreadLocalService = mbThreadLocalService;
655            }
656    
657            /**
658             * Gets the message boards thread remote service.
659             *
660             * @return the message boards thread remote service
661             */
662            public MBThreadService getMBThreadService() {
663                    return mbThreadService;
664            }
665    
666            /**
667             * Sets the message boards thread remote service.
668             *
669             * @param mbThreadService the message boards thread remote service
670             */
671            public void setMBThreadService(MBThreadService mbThreadService) {
672                    this.mbThreadService = mbThreadService;
673            }
674    
675            /**
676             * Gets the message boards thread persistence.
677             *
678             * @return the message boards thread persistence
679             */
680            public MBThreadPersistence getMBThreadPersistence() {
681                    return mbThreadPersistence;
682            }
683    
684            /**
685             * Sets the message boards thread persistence.
686             *
687             * @param mbThreadPersistence the message boards thread persistence
688             */
689            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
690                    this.mbThreadPersistence = mbThreadPersistence;
691            }
692    
693            /**
694             * Gets the message boards thread finder.
695             *
696             * @return the message boards thread finder
697             */
698            public MBThreadFinder getMBThreadFinder() {
699                    return mbThreadFinder;
700            }
701    
702            /**
703             * Sets the message boards thread finder.
704             *
705             * @param mbThreadFinder the message boards thread finder
706             */
707            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
708                    this.mbThreadFinder = mbThreadFinder;
709            }
710    
711            /**
712             * Gets the counter local service.
713             *
714             * @return the counter local service
715             */
716            public CounterLocalService getCounterLocalService() {
717                    return counterLocalService;
718            }
719    
720            /**
721             * Sets the counter local service.
722             *
723             * @param counterLocalService the counter local service
724             */
725            public void setCounterLocalService(CounterLocalService counterLocalService) {
726                    this.counterLocalService = counterLocalService;
727            }
728    
729            /**
730             * Gets the resource local service.
731             *
732             * @return the resource local service
733             */
734            public ResourceLocalService getResourceLocalService() {
735                    return resourceLocalService;
736            }
737    
738            /**
739             * Sets the resource local service.
740             *
741             * @param resourceLocalService the resource local service
742             */
743            public void setResourceLocalService(
744                    ResourceLocalService resourceLocalService) {
745                    this.resourceLocalService = resourceLocalService;
746            }
747    
748            /**
749             * Gets the resource remote service.
750             *
751             * @return the resource remote service
752             */
753            public ResourceService getResourceService() {
754                    return resourceService;
755            }
756    
757            /**
758             * Sets the resource remote service.
759             *
760             * @param resourceService the resource remote service
761             */
762            public void setResourceService(ResourceService resourceService) {
763                    this.resourceService = resourceService;
764            }
765    
766            /**
767             * Gets the resource persistence.
768             *
769             * @return the resource persistence
770             */
771            public ResourcePersistence getResourcePersistence() {
772                    return resourcePersistence;
773            }
774    
775            /**
776             * Sets the resource persistence.
777             *
778             * @param resourcePersistence the resource persistence
779             */
780            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
781                    this.resourcePersistence = resourcePersistence;
782            }
783    
784            /**
785             * Gets the resource finder.
786             *
787             * @return the resource finder
788             */
789            public ResourceFinder getResourceFinder() {
790                    return resourceFinder;
791            }
792    
793            /**
794             * Sets the resource finder.
795             *
796             * @param resourceFinder the resource finder
797             */
798            public void setResourceFinder(ResourceFinder resourceFinder) {
799                    this.resourceFinder = resourceFinder;
800            }
801    
802            /**
803             * Gets the user local service.
804             *
805             * @return the user local service
806             */
807            public UserLocalService getUserLocalService() {
808                    return userLocalService;
809            }
810    
811            /**
812             * Sets the user local service.
813             *
814             * @param userLocalService the user local service
815             */
816            public void setUserLocalService(UserLocalService userLocalService) {
817                    this.userLocalService = userLocalService;
818            }
819    
820            /**
821             * Gets the user remote service.
822             *
823             * @return the user remote service
824             */
825            public UserService getUserService() {
826                    return userService;
827            }
828    
829            /**
830             * Sets the user remote service.
831             *
832             * @param userService the user remote service
833             */
834            public void setUserService(UserService userService) {
835                    this.userService = userService;
836            }
837    
838            /**
839             * Gets the user persistence.
840             *
841             * @return the user persistence
842             */
843            public UserPersistence getUserPersistence() {
844                    return userPersistence;
845            }
846    
847            /**
848             * Sets the user persistence.
849             *
850             * @param userPersistence the user persistence
851             */
852            public void setUserPersistence(UserPersistence userPersistence) {
853                    this.userPersistence = userPersistence;
854            }
855    
856            /**
857             * Gets the user finder.
858             *
859             * @return the user finder
860             */
861            public UserFinder getUserFinder() {
862                    return userFinder;
863            }
864    
865            /**
866             * Sets the user finder.
867             *
868             * @param userFinder the user finder
869             */
870            public void setUserFinder(UserFinder userFinder) {
871                    this.userFinder = userFinder;
872            }
873    
874            /**
875             * Performs an SQL query.
876             *
877             * @param sql the sql query to perform
878             */
879            protected void runSQL(String sql) throws SystemException {
880                    try {
881                            DataSource dataSource = mbStatsUserPersistence.getDataSource();
882    
883                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
884                                            sql, new int[0]);
885    
886                            sqlUpdate.update();
887                    }
888                    catch (Exception e) {
889                            throw new SystemException(e);
890                    }
891            }
892    
893            @BeanReference(type = MBBanLocalService.class)
894            protected MBBanLocalService mbBanLocalService;
895            @BeanReference(type = MBBanService.class)
896            protected MBBanService mbBanService;
897            @BeanReference(type = MBBanPersistence.class)
898            protected MBBanPersistence mbBanPersistence;
899            @BeanReference(type = MBCategoryLocalService.class)
900            protected MBCategoryLocalService mbCategoryLocalService;
901            @BeanReference(type = MBCategoryService.class)
902            protected MBCategoryService mbCategoryService;
903            @BeanReference(type = MBCategoryPersistence.class)
904            protected MBCategoryPersistence mbCategoryPersistence;
905            @BeanReference(type = MBCategoryFinder.class)
906            protected MBCategoryFinder mbCategoryFinder;
907            @BeanReference(type = MBDiscussionLocalService.class)
908            protected MBDiscussionLocalService mbDiscussionLocalService;
909            @BeanReference(type = MBDiscussionPersistence.class)
910            protected MBDiscussionPersistence mbDiscussionPersistence;
911            @BeanReference(type = MBMailingListLocalService.class)
912            protected MBMailingListLocalService mbMailingListLocalService;
913            @BeanReference(type = MBMailingListPersistence.class)
914            protected MBMailingListPersistence mbMailingListPersistence;
915            @BeanReference(type = MBMessageLocalService.class)
916            protected MBMessageLocalService mbMessageLocalService;
917            @BeanReference(type = MBMessageService.class)
918            protected MBMessageService mbMessageService;
919            @BeanReference(type = MBMessagePersistence.class)
920            protected MBMessagePersistence mbMessagePersistence;
921            @BeanReference(type = MBMessageFinder.class)
922            protected MBMessageFinder mbMessageFinder;
923            @BeanReference(type = MBMessageFlagLocalService.class)
924            protected MBMessageFlagLocalService mbMessageFlagLocalService;
925            @BeanReference(type = MBMessageFlagService.class)
926            protected MBMessageFlagService mbMessageFlagService;
927            @BeanReference(type = MBMessageFlagPersistence.class)
928            protected MBMessageFlagPersistence mbMessageFlagPersistence;
929            @BeanReference(type = MBStatsUserLocalService.class)
930            protected MBStatsUserLocalService mbStatsUserLocalService;
931            @BeanReference(type = MBStatsUserPersistence.class)
932            protected MBStatsUserPersistence mbStatsUserPersistence;
933            @BeanReference(type = MBThreadLocalService.class)
934            protected MBThreadLocalService mbThreadLocalService;
935            @BeanReference(type = MBThreadService.class)
936            protected MBThreadService mbThreadService;
937            @BeanReference(type = MBThreadPersistence.class)
938            protected MBThreadPersistence mbThreadPersistence;
939            @BeanReference(type = MBThreadFinder.class)
940            protected MBThreadFinder mbThreadFinder;
941            @BeanReference(type = CounterLocalService.class)
942            protected CounterLocalService counterLocalService;
943            @BeanReference(type = ResourceLocalService.class)
944            protected ResourceLocalService resourceLocalService;
945            @BeanReference(type = ResourceService.class)
946            protected ResourceService resourceService;
947            @BeanReference(type = ResourcePersistence.class)
948            protected ResourcePersistence resourcePersistence;
949            @BeanReference(type = ResourceFinder.class)
950            protected ResourceFinder resourceFinder;
951            @BeanReference(type = UserLocalService.class)
952            protected UserLocalService userLocalService;
953            @BeanReference(type = UserService.class)
954            protected UserService userService;
955            @BeanReference(type = UserPersistence.class)
956            protected UserPersistence userPersistence;
957            @BeanReference(type = UserFinder.class)
958            protected UserFinder userFinder;
959    }