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.documentlibrary.service.DLLocalService;
020    import com.liferay.documentlibrary.service.DLService;
021    
022    import com.liferay.portal.kernel.annotation.BeanReference;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
026    import com.liferay.portal.kernel.exception.PortalException;
027    import com.liferay.portal.kernel.exception.SystemException;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.service.LockLocalService;
030    import com.liferay.portal.service.ResourceLocalService;
031    import com.liferay.portal.service.ResourceService;
032    import com.liferay.portal.service.UserLocalService;
033    import com.liferay.portal.service.UserService;
034    import com.liferay.portal.service.WorkflowInstanceLinkLocalService;
035    import com.liferay.portal.service.persistence.LockPersistence;
036    import com.liferay.portal.service.persistence.ResourceFinder;
037    import com.liferay.portal.service.persistence.ResourcePersistence;
038    import com.liferay.portal.service.persistence.UserFinder;
039    import com.liferay.portal.service.persistence.UserPersistence;
040    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
041    
042    import com.liferay.portlet.asset.service.AssetEntryLocalService;
043    import com.liferay.portlet.asset.service.AssetEntryService;
044    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
045    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
046    import com.liferay.portlet.messageboards.model.MBThread;
047    import com.liferay.portlet.messageboards.service.MBBanLocalService;
048    import com.liferay.portlet.messageboards.service.MBBanService;
049    import com.liferay.portlet.messageboards.service.MBCategoryLocalService;
050    import com.liferay.portlet.messageboards.service.MBCategoryService;
051    import com.liferay.portlet.messageboards.service.MBDiscussionLocalService;
052    import com.liferay.portlet.messageboards.service.MBMailingListLocalService;
053    import com.liferay.portlet.messageboards.service.MBMessageFlagLocalService;
054    import com.liferay.portlet.messageboards.service.MBMessageFlagService;
055    import com.liferay.portlet.messageboards.service.MBMessageLocalService;
056    import com.liferay.portlet.messageboards.service.MBMessageService;
057    import com.liferay.portlet.messageboards.service.MBStatsUserLocalService;
058    import com.liferay.portlet.messageboards.service.MBThreadLocalService;
059    import com.liferay.portlet.messageboards.service.MBThreadService;
060    import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
061    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
062    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
063    import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
064    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
065    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
066    import com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence;
067    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
068    import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
069    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
070    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
071    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
072    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
073    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
074    import com.liferay.portlet.social.service.SocialActivityLocalService;
075    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
076    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
077    
078    import java.util.List;
079    
080    import javax.sql.DataSource;
081    
082    /**
083     * The base implementation of the message boards thread local service.
084     *
085     * <p>
086     * 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.MBThreadLocalServiceImpl}.
087     * </p>
088     *
089     * <p>
090     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil} to access the message boards thread local service.
091     * </p>
092     *
093     * @author Brian Wing Shun Chan
094     * @see com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl
095     * @see com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil
096     * @generated
097     */
098    public abstract class MBThreadLocalServiceBaseImpl
099            implements MBThreadLocalService {
100            /**
101             * Adds the message boards thread to the database. Also notifies the appropriate model listeners.
102             *
103             * @param mbThread the message boards thread to add
104             * @return the message boards thread that was added
105             * @throws SystemException if a system exception occurred
106             */
107            public MBThread addMBThread(MBThread mbThread) throws SystemException {
108                    mbThread.setNew(true);
109    
110                    return mbThreadPersistence.update(mbThread, false);
111            }
112    
113            /**
114             * Creates a new message boards thread with the primary key. Does not add the message boards thread to the database.
115             *
116             * @param threadId the primary key for the new message boards thread
117             * @return the new message boards thread
118             */
119            public MBThread createMBThread(long threadId) {
120                    return mbThreadPersistence.create(threadId);
121            }
122    
123            /**
124             * Deletes the message boards thread with the primary key from the database. Also notifies the appropriate model listeners.
125             *
126             * @param threadId the primary key of the message boards thread to delete
127             * @throws PortalException if a message boards thread with the primary key could not be found
128             * @throws SystemException if a system exception occurred
129             */
130            public void deleteMBThread(long threadId)
131                    throws PortalException, SystemException {
132                    mbThreadPersistence.remove(threadId);
133            }
134    
135            /**
136             * Deletes the message boards thread from the database. Also notifies the appropriate model listeners.
137             *
138             * @param mbThread the message boards thread to delete
139             * @throws SystemException if a system exception occurred
140             */
141            public void deleteMBThread(MBThread mbThread) throws SystemException {
142                    mbThreadPersistence.remove(mbThread);
143            }
144    
145            /**
146             * Performs a dynamic query on the database and returns the matching rows.
147             *
148             * @param dynamicQuery the dynamic query to search with
149             * @return the matching rows
150             * @throws SystemException if a system exception occurred
151             */
152            @SuppressWarnings("rawtypes")
153            public List dynamicQuery(DynamicQuery dynamicQuery)
154                    throws SystemException {
155                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
156            }
157    
158            /**
159             * Performs a dynamic query on the database and returns a range of the matching rows.
160             *
161             * <p>
162             * 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.
163             * </p>
164             *
165             * @param dynamicQuery the dynamic query to search with
166             * @param start the lower bound of the range of model instances to return
167             * @param end the upper bound of the range of model instances to return (not inclusive)
168             * @return the range of matching rows
169             * @throws SystemException if a system exception occurred
170             */
171            @SuppressWarnings("rawtypes")
172            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
173                    throws SystemException {
174                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
175            }
176    
177            /**
178             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
179             *
180             * <p>
181             * 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.
182             * </p>
183             *
184             * @param dynamicQuery the dynamic query to search with
185             * @param start the lower bound of the range of model instances to return
186             * @param end the upper bound of the range of model instances to return (not inclusive)
187             * @param orderByComparator the comparator to order the results by
188             * @return the ordered range of matching rows
189             * @throws SystemException if a system exception occurred
190             */
191            @SuppressWarnings("rawtypes")
192            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
193                    OrderByComparator orderByComparator) throws SystemException {
194                    return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
195                            end, orderByComparator);
196            }
197    
198            /**
199             * Counts the number of rows that match the dynamic query.
200             *
201             * @param dynamicQuery the dynamic query to search with
202             * @return the number of rows that match the dynamic query
203             * @throws SystemException if a system exception occurred
204             */
205            public long dynamicQueryCount(DynamicQuery dynamicQuery)
206                    throws SystemException {
207                    return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
208            }
209    
210            /**
211             * Gets the message boards thread with the primary key.
212             *
213             * @param threadId the primary key of the message boards thread to get
214             * @return the message boards thread
215             * @throws PortalException if a message boards thread with the primary key could not be found
216             * @throws SystemException if a system exception occurred
217             */
218            public MBThread getMBThread(long threadId)
219                    throws PortalException, SystemException {
220                    return mbThreadPersistence.findByPrimaryKey(threadId);
221            }
222    
223            /**
224             * Gets a range of all the message boards threads.
225             *
226             * <p>
227             * 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.
228             * </p>
229             *
230             * @param start the lower bound of the range of message boards threads to return
231             * @param end the upper bound of the range of message boards threads to return (not inclusive)
232             * @return the range of message boards threads
233             * @throws SystemException if a system exception occurred
234             */
235            public List<MBThread> getMBThreads(int start, int end)
236                    throws SystemException {
237                    return mbThreadPersistence.findAll(start, end);
238            }
239    
240            /**
241             * Gets the number of message boards threads.
242             *
243             * @return the number of message boards threads
244             * @throws SystemException if a system exception occurred
245             */
246            public int getMBThreadsCount() throws SystemException {
247                    return mbThreadPersistence.countAll();
248            }
249    
250            /**
251             * Updates the message boards thread in the database. Also notifies the appropriate model listeners.
252             *
253             * @param mbThread the message boards thread to update
254             * @return the message boards thread that was updated
255             * @throws SystemException if a system exception occurred
256             */
257            public MBThread updateMBThread(MBThread mbThread) throws SystemException {
258                    mbThread.setNew(false);
259    
260                    return mbThreadPersistence.update(mbThread, true);
261            }
262    
263            /**
264             * Updates the message boards thread in the database. Also notifies the appropriate model listeners.
265             *
266             * @param mbThread the message boards thread to update
267             * @param merge whether to merge the message boards thread 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.
268             * @return the message boards thread that was updated
269             * @throws SystemException if a system exception occurred
270             */
271            public MBThread updateMBThread(MBThread mbThread, boolean merge)
272                    throws SystemException {
273                    mbThread.setNew(false);
274    
275                    return mbThreadPersistence.update(mbThread, merge);
276            }
277    
278            /**
279             * Gets the message boards ban local service.
280             *
281             * @return the message boards ban local service
282             */
283            public MBBanLocalService getMBBanLocalService() {
284                    return mbBanLocalService;
285            }
286    
287            /**
288             * Sets the message boards ban local service.
289             *
290             * @param mbBanLocalService the message boards ban local service
291             */
292            public void setMBBanLocalService(MBBanLocalService mbBanLocalService) {
293                    this.mbBanLocalService = mbBanLocalService;
294            }
295    
296            /**
297             * Gets the message boards ban remote service.
298             *
299             * @return the message boards ban remote service
300             */
301            public MBBanService getMBBanService() {
302                    return mbBanService;
303            }
304    
305            /**
306             * Sets the message boards ban remote service.
307             *
308             * @param mbBanService the message boards ban remote service
309             */
310            public void setMBBanService(MBBanService mbBanService) {
311                    this.mbBanService = mbBanService;
312            }
313    
314            /**
315             * Gets the message boards ban persistence.
316             *
317             * @return the message boards ban persistence
318             */
319            public MBBanPersistence getMBBanPersistence() {
320                    return mbBanPersistence;
321            }
322    
323            /**
324             * Sets the message boards ban persistence.
325             *
326             * @param mbBanPersistence the message boards ban persistence
327             */
328            public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
329                    this.mbBanPersistence = mbBanPersistence;
330            }
331    
332            /**
333             * Gets the message boards category local service.
334             *
335             * @return the message boards category local service
336             */
337            public MBCategoryLocalService getMBCategoryLocalService() {
338                    return mbCategoryLocalService;
339            }
340    
341            /**
342             * Sets the message boards category local service.
343             *
344             * @param mbCategoryLocalService the message boards category local service
345             */
346            public void setMBCategoryLocalService(
347                    MBCategoryLocalService mbCategoryLocalService) {
348                    this.mbCategoryLocalService = mbCategoryLocalService;
349            }
350    
351            /**
352             * Gets the message boards category remote service.
353             *
354             * @return the message boards category remote service
355             */
356            public MBCategoryService getMBCategoryService() {
357                    return mbCategoryService;
358            }
359    
360            /**
361             * Sets the message boards category remote service.
362             *
363             * @param mbCategoryService the message boards category remote service
364             */
365            public void setMBCategoryService(MBCategoryService mbCategoryService) {
366                    this.mbCategoryService = mbCategoryService;
367            }
368    
369            /**
370             * Gets the message boards category persistence.
371             *
372             * @return the message boards category persistence
373             */
374            public MBCategoryPersistence getMBCategoryPersistence() {
375                    return mbCategoryPersistence;
376            }
377    
378            /**
379             * Sets the message boards category persistence.
380             *
381             * @param mbCategoryPersistence the message boards category persistence
382             */
383            public void setMBCategoryPersistence(
384                    MBCategoryPersistence mbCategoryPersistence) {
385                    this.mbCategoryPersistence = mbCategoryPersistence;
386            }
387    
388            /**
389             * Gets the message boards category finder.
390             *
391             * @return the message boards category finder
392             */
393            public MBCategoryFinder getMBCategoryFinder() {
394                    return mbCategoryFinder;
395            }
396    
397            /**
398             * Sets the message boards category finder.
399             *
400             * @param mbCategoryFinder the message boards category finder
401             */
402            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
403                    this.mbCategoryFinder = mbCategoryFinder;
404            }
405    
406            /**
407             * Gets the message boards discussion local service.
408             *
409             * @return the message boards discussion local service
410             */
411            public MBDiscussionLocalService getMBDiscussionLocalService() {
412                    return mbDiscussionLocalService;
413            }
414    
415            /**
416             * Sets the message boards discussion local service.
417             *
418             * @param mbDiscussionLocalService the message boards discussion local service
419             */
420            public void setMBDiscussionLocalService(
421                    MBDiscussionLocalService mbDiscussionLocalService) {
422                    this.mbDiscussionLocalService = mbDiscussionLocalService;
423            }
424    
425            /**
426             * Gets the message boards discussion persistence.
427             *
428             * @return the message boards discussion persistence
429             */
430            public MBDiscussionPersistence getMBDiscussionPersistence() {
431                    return mbDiscussionPersistence;
432            }
433    
434            /**
435             * Sets the message boards discussion persistence.
436             *
437             * @param mbDiscussionPersistence the message boards discussion persistence
438             */
439            public void setMBDiscussionPersistence(
440                    MBDiscussionPersistence mbDiscussionPersistence) {
441                    this.mbDiscussionPersistence = mbDiscussionPersistence;
442            }
443    
444            /**
445             * Gets the message boards mailing list local service.
446             *
447             * @return the message boards mailing list local service
448             */
449            public MBMailingListLocalService getMBMailingListLocalService() {
450                    return mbMailingListLocalService;
451            }
452    
453            /**
454             * Sets the message boards mailing list local service.
455             *
456             * @param mbMailingListLocalService the message boards mailing list local service
457             */
458            public void setMBMailingListLocalService(
459                    MBMailingListLocalService mbMailingListLocalService) {
460                    this.mbMailingListLocalService = mbMailingListLocalService;
461            }
462    
463            /**
464             * Gets the message boards mailing list persistence.
465             *
466             * @return the message boards mailing list persistence
467             */
468            public MBMailingListPersistence getMBMailingListPersistence() {
469                    return mbMailingListPersistence;
470            }
471    
472            /**
473             * Sets the message boards mailing list persistence.
474             *
475             * @param mbMailingListPersistence the message boards mailing list persistence
476             */
477            public void setMBMailingListPersistence(
478                    MBMailingListPersistence mbMailingListPersistence) {
479                    this.mbMailingListPersistence = mbMailingListPersistence;
480            }
481    
482            /**
483             * Gets the message-boards message local service.
484             *
485             * @return the message-boards message local service
486             */
487            public MBMessageLocalService getMBMessageLocalService() {
488                    return mbMessageLocalService;
489            }
490    
491            /**
492             * Sets the message-boards message local service.
493             *
494             * @param mbMessageLocalService the message-boards message local service
495             */
496            public void setMBMessageLocalService(
497                    MBMessageLocalService mbMessageLocalService) {
498                    this.mbMessageLocalService = mbMessageLocalService;
499            }
500    
501            /**
502             * Gets the message-boards message remote service.
503             *
504             * @return the message-boards message remote service
505             */
506            public MBMessageService getMBMessageService() {
507                    return mbMessageService;
508            }
509    
510            /**
511             * Sets the message-boards message remote service.
512             *
513             * @param mbMessageService the message-boards message remote service
514             */
515            public void setMBMessageService(MBMessageService mbMessageService) {
516                    this.mbMessageService = mbMessageService;
517            }
518    
519            /**
520             * Gets the message-boards message persistence.
521             *
522             * @return the message-boards message persistence
523             */
524            public MBMessagePersistence getMBMessagePersistence() {
525                    return mbMessagePersistence;
526            }
527    
528            /**
529             * Sets the message-boards message persistence.
530             *
531             * @param mbMessagePersistence the message-boards message persistence
532             */
533            public void setMBMessagePersistence(
534                    MBMessagePersistence mbMessagePersistence) {
535                    this.mbMessagePersistence = mbMessagePersistence;
536            }
537    
538            /**
539             * Gets the message-boards message finder.
540             *
541             * @return the message-boards message finder
542             */
543            public MBMessageFinder getMBMessageFinder() {
544                    return mbMessageFinder;
545            }
546    
547            /**
548             * Sets the message-boards message finder.
549             *
550             * @param mbMessageFinder the message-boards message finder
551             */
552            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
553                    this.mbMessageFinder = mbMessageFinder;
554            }
555    
556            /**
557             * Gets the message boards message flag local service.
558             *
559             * @return the message boards message flag local service
560             */
561            public MBMessageFlagLocalService getMBMessageFlagLocalService() {
562                    return mbMessageFlagLocalService;
563            }
564    
565            /**
566             * Sets the message boards message flag local service.
567             *
568             * @param mbMessageFlagLocalService the message boards message flag local service
569             */
570            public void setMBMessageFlagLocalService(
571                    MBMessageFlagLocalService mbMessageFlagLocalService) {
572                    this.mbMessageFlagLocalService = mbMessageFlagLocalService;
573            }
574    
575            /**
576             * Gets the message boards message flag remote service.
577             *
578             * @return the message boards message flag remote service
579             */
580            public MBMessageFlagService getMBMessageFlagService() {
581                    return mbMessageFlagService;
582            }
583    
584            /**
585             * Sets the message boards message flag remote service.
586             *
587             * @param mbMessageFlagService the message boards message flag remote service
588             */
589            public void setMBMessageFlagService(
590                    MBMessageFlagService mbMessageFlagService) {
591                    this.mbMessageFlagService = mbMessageFlagService;
592            }
593    
594            /**
595             * Gets the message boards message flag persistence.
596             *
597             * @return the message boards message flag persistence
598             */
599            public MBMessageFlagPersistence getMBMessageFlagPersistence() {
600                    return mbMessageFlagPersistence;
601            }
602    
603            /**
604             * Sets the message boards message flag persistence.
605             *
606             * @param mbMessageFlagPersistence the message boards message flag persistence
607             */
608            public void setMBMessageFlagPersistence(
609                    MBMessageFlagPersistence mbMessageFlagPersistence) {
610                    this.mbMessageFlagPersistence = mbMessageFlagPersistence;
611            }
612    
613            /**
614             * Gets the message boards stats user local service.
615             *
616             * @return the message boards stats user local service
617             */
618            public MBStatsUserLocalService getMBStatsUserLocalService() {
619                    return mbStatsUserLocalService;
620            }
621    
622            /**
623             * Sets the message boards stats user local service.
624             *
625             * @param mbStatsUserLocalService the message boards stats user local service
626             */
627            public void setMBStatsUserLocalService(
628                    MBStatsUserLocalService mbStatsUserLocalService) {
629                    this.mbStatsUserLocalService = mbStatsUserLocalService;
630            }
631    
632            /**
633             * Gets the message boards stats user persistence.
634             *
635             * @return the message boards stats user persistence
636             */
637            public MBStatsUserPersistence getMBStatsUserPersistence() {
638                    return mbStatsUserPersistence;
639            }
640    
641            /**
642             * Sets the message boards stats user persistence.
643             *
644             * @param mbStatsUserPersistence the message boards stats user persistence
645             */
646            public void setMBStatsUserPersistence(
647                    MBStatsUserPersistence mbStatsUserPersistence) {
648                    this.mbStatsUserPersistence = mbStatsUserPersistence;
649            }
650    
651            /**
652             * Gets the message boards thread local service.
653             *
654             * @return the message boards thread local service
655             */
656            public MBThreadLocalService getMBThreadLocalService() {
657                    return mbThreadLocalService;
658            }
659    
660            /**
661             * Sets the message boards thread local service.
662             *
663             * @param mbThreadLocalService the message boards thread local service
664             */
665            public void setMBThreadLocalService(
666                    MBThreadLocalService mbThreadLocalService) {
667                    this.mbThreadLocalService = mbThreadLocalService;
668            }
669    
670            /**
671             * Gets the message boards thread remote service.
672             *
673             * @return the message boards thread remote service
674             */
675            public MBThreadService getMBThreadService() {
676                    return mbThreadService;
677            }
678    
679            /**
680             * Sets the message boards thread remote service.
681             *
682             * @param mbThreadService the message boards thread remote service
683             */
684            public void setMBThreadService(MBThreadService mbThreadService) {
685                    this.mbThreadService = mbThreadService;
686            }
687    
688            /**
689             * Gets the message boards thread persistence.
690             *
691             * @return the message boards thread persistence
692             */
693            public MBThreadPersistence getMBThreadPersistence() {
694                    return mbThreadPersistence;
695            }
696    
697            /**
698             * Sets the message boards thread persistence.
699             *
700             * @param mbThreadPersistence the message boards thread persistence
701             */
702            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
703                    this.mbThreadPersistence = mbThreadPersistence;
704            }
705    
706            /**
707             * Gets the message boards thread finder.
708             *
709             * @return the message boards thread finder
710             */
711            public MBThreadFinder getMBThreadFinder() {
712                    return mbThreadFinder;
713            }
714    
715            /**
716             * Sets the message boards thread finder.
717             *
718             * @param mbThreadFinder the message boards thread finder
719             */
720            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
721                    this.mbThreadFinder = mbThreadFinder;
722            }
723    
724            /**
725             * Gets the counter local service.
726             *
727             * @return the counter local service
728             */
729            public CounterLocalService getCounterLocalService() {
730                    return counterLocalService;
731            }
732    
733            /**
734             * Sets the counter local service.
735             *
736             * @param counterLocalService the counter local service
737             */
738            public void setCounterLocalService(CounterLocalService counterLocalService) {
739                    this.counterLocalService = counterLocalService;
740            }
741    
742            /**
743             * Gets the d l local service.
744             *
745             * @return the d l local service
746             */
747            public DLLocalService getDLLocalService() {
748                    return dlLocalService;
749            }
750    
751            /**
752             * Sets the d l local service.
753             *
754             * @param dlLocalService the d l local service
755             */
756            public void setDLLocalService(DLLocalService dlLocalService) {
757                    this.dlLocalService = dlLocalService;
758            }
759    
760            /**
761             * Gets the d l remote service.
762             *
763             * @return the d l remote service
764             */
765            public DLService getDLService() {
766                    return dlService;
767            }
768    
769            /**
770             * Sets the d l remote service.
771             *
772             * @param dlService the d l remote service
773             */
774            public void setDLService(DLService dlService) {
775                    this.dlService = dlService;
776            }
777    
778            /**
779             * Gets the lock local service.
780             *
781             * @return the lock local service
782             */
783            public LockLocalService getLockLocalService() {
784                    return lockLocalService;
785            }
786    
787            /**
788             * Sets the lock local service.
789             *
790             * @param lockLocalService the lock local service
791             */
792            public void setLockLocalService(LockLocalService lockLocalService) {
793                    this.lockLocalService = lockLocalService;
794            }
795    
796            /**
797             * Gets the lock persistence.
798             *
799             * @return the lock persistence
800             */
801            public LockPersistence getLockPersistence() {
802                    return lockPersistence;
803            }
804    
805            /**
806             * Sets the lock persistence.
807             *
808             * @param lockPersistence the lock persistence
809             */
810            public void setLockPersistence(LockPersistence lockPersistence) {
811                    this.lockPersistence = lockPersistence;
812            }
813    
814            /**
815             * Gets the resource local service.
816             *
817             * @return the resource local service
818             */
819            public ResourceLocalService getResourceLocalService() {
820                    return resourceLocalService;
821            }
822    
823            /**
824             * Sets the resource local service.
825             *
826             * @param resourceLocalService the resource local service
827             */
828            public void setResourceLocalService(
829                    ResourceLocalService resourceLocalService) {
830                    this.resourceLocalService = resourceLocalService;
831            }
832    
833            /**
834             * Gets the resource remote service.
835             *
836             * @return the resource remote service
837             */
838            public ResourceService getResourceService() {
839                    return resourceService;
840            }
841    
842            /**
843             * Sets the resource remote service.
844             *
845             * @param resourceService the resource remote service
846             */
847            public void setResourceService(ResourceService resourceService) {
848                    this.resourceService = resourceService;
849            }
850    
851            /**
852             * Gets the resource persistence.
853             *
854             * @return the resource persistence
855             */
856            public ResourcePersistence getResourcePersistence() {
857                    return resourcePersistence;
858            }
859    
860            /**
861             * Sets the resource persistence.
862             *
863             * @param resourcePersistence the resource persistence
864             */
865            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
866                    this.resourcePersistence = resourcePersistence;
867            }
868    
869            /**
870             * Gets the resource finder.
871             *
872             * @return the resource finder
873             */
874            public ResourceFinder getResourceFinder() {
875                    return resourceFinder;
876            }
877    
878            /**
879             * Sets the resource finder.
880             *
881             * @param resourceFinder the resource finder
882             */
883            public void setResourceFinder(ResourceFinder resourceFinder) {
884                    this.resourceFinder = resourceFinder;
885            }
886    
887            /**
888             * Gets the user local service.
889             *
890             * @return the user local service
891             */
892            public UserLocalService getUserLocalService() {
893                    return userLocalService;
894            }
895    
896            /**
897             * Sets the user local service.
898             *
899             * @param userLocalService the user local service
900             */
901            public void setUserLocalService(UserLocalService userLocalService) {
902                    this.userLocalService = userLocalService;
903            }
904    
905            /**
906             * Gets the user remote service.
907             *
908             * @return the user remote service
909             */
910            public UserService getUserService() {
911                    return userService;
912            }
913    
914            /**
915             * Sets the user remote service.
916             *
917             * @param userService the user remote service
918             */
919            public void setUserService(UserService userService) {
920                    this.userService = userService;
921            }
922    
923            /**
924             * Gets the user persistence.
925             *
926             * @return the user persistence
927             */
928            public UserPersistence getUserPersistence() {
929                    return userPersistence;
930            }
931    
932            /**
933             * Sets the user persistence.
934             *
935             * @param userPersistence the user persistence
936             */
937            public void setUserPersistence(UserPersistence userPersistence) {
938                    this.userPersistence = userPersistence;
939            }
940    
941            /**
942             * Gets the user finder.
943             *
944             * @return the user finder
945             */
946            public UserFinder getUserFinder() {
947                    return userFinder;
948            }
949    
950            /**
951             * Sets the user finder.
952             *
953             * @param userFinder the user finder
954             */
955            public void setUserFinder(UserFinder userFinder) {
956                    this.userFinder = userFinder;
957            }
958    
959            /**
960             * Gets the workflow instance link local service.
961             *
962             * @return the workflow instance link local service
963             */
964            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
965                    return workflowInstanceLinkLocalService;
966            }
967    
968            /**
969             * Sets the workflow instance link local service.
970             *
971             * @param workflowInstanceLinkLocalService the workflow instance link local service
972             */
973            public void setWorkflowInstanceLinkLocalService(
974                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
975                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
976            }
977    
978            /**
979             * Gets the workflow instance link persistence.
980             *
981             * @return the workflow instance link persistence
982             */
983            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
984                    return workflowInstanceLinkPersistence;
985            }
986    
987            /**
988             * Sets the workflow instance link persistence.
989             *
990             * @param workflowInstanceLinkPersistence the workflow instance link persistence
991             */
992            public void setWorkflowInstanceLinkPersistence(
993                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
994                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
995            }
996    
997            /**
998             * Gets the asset entry local service.
999             *
1000             * @return the asset entry local service
1001             */
1002            public AssetEntryLocalService getAssetEntryLocalService() {
1003                    return assetEntryLocalService;
1004            }
1005    
1006            /**
1007             * Sets the asset entry local service.
1008             *
1009             * @param assetEntryLocalService the asset entry local service
1010             */
1011            public void setAssetEntryLocalService(
1012                    AssetEntryLocalService assetEntryLocalService) {
1013                    this.assetEntryLocalService = assetEntryLocalService;
1014            }
1015    
1016            /**
1017             * Gets the asset entry remote service.
1018             *
1019             * @return the asset entry remote service
1020             */
1021            public AssetEntryService getAssetEntryService() {
1022                    return assetEntryService;
1023            }
1024    
1025            /**
1026             * Sets the asset entry remote service.
1027             *
1028             * @param assetEntryService the asset entry remote service
1029             */
1030            public void setAssetEntryService(AssetEntryService assetEntryService) {
1031                    this.assetEntryService = assetEntryService;
1032            }
1033    
1034            /**
1035             * Gets the asset entry persistence.
1036             *
1037             * @return the asset entry persistence
1038             */
1039            public AssetEntryPersistence getAssetEntryPersistence() {
1040                    return assetEntryPersistence;
1041            }
1042    
1043            /**
1044             * Sets the asset entry persistence.
1045             *
1046             * @param assetEntryPersistence the asset entry persistence
1047             */
1048            public void setAssetEntryPersistence(
1049                    AssetEntryPersistence assetEntryPersistence) {
1050                    this.assetEntryPersistence = assetEntryPersistence;
1051            }
1052    
1053            /**
1054             * Gets the asset entry finder.
1055             *
1056             * @return the asset entry finder
1057             */
1058            public AssetEntryFinder getAssetEntryFinder() {
1059                    return assetEntryFinder;
1060            }
1061    
1062            /**
1063             * Sets the asset entry finder.
1064             *
1065             * @param assetEntryFinder the asset entry finder
1066             */
1067            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1068                    this.assetEntryFinder = assetEntryFinder;
1069            }
1070    
1071            /**
1072             * Gets the ratings stats local service.
1073             *
1074             * @return the ratings stats local service
1075             */
1076            public RatingsStatsLocalService getRatingsStatsLocalService() {
1077                    return ratingsStatsLocalService;
1078            }
1079    
1080            /**
1081             * Sets the ratings stats local service.
1082             *
1083             * @param ratingsStatsLocalService the ratings stats local service
1084             */
1085            public void setRatingsStatsLocalService(
1086                    RatingsStatsLocalService ratingsStatsLocalService) {
1087                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1088            }
1089    
1090            /**
1091             * Gets the ratings stats persistence.
1092             *
1093             * @return the ratings stats persistence
1094             */
1095            public RatingsStatsPersistence getRatingsStatsPersistence() {
1096                    return ratingsStatsPersistence;
1097            }
1098    
1099            /**
1100             * Sets the ratings stats persistence.
1101             *
1102             * @param ratingsStatsPersistence the ratings stats persistence
1103             */
1104            public void setRatingsStatsPersistence(
1105                    RatingsStatsPersistence ratingsStatsPersistence) {
1106                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1107            }
1108    
1109            /**
1110             * Gets the ratings stats finder.
1111             *
1112             * @return the ratings stats finder
1113             */
1114            public RatingsStatsFinder getRatingsStatsFinder() {
1115                    return ratingsStatsFinder;
1116            }
1117    
1118            /**
1119             * Sets the ratings stats finder.
1120             *
1121             * @param ratingsStatsFinder the ratings stats finder
1122             */
1123            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1124                    this.ratingsStatsFinder = ratingsStatsFinder;
1125            }
1126    
1127            /**
1128             * Gets the social activity local service.
1129             *
1130             * @return the social activity local service
1131             */
1132            public SocialActivityLocalService getSocialActivityLocalService() {
1133                    return socialActivityLocalService;
1134            }
1135    
1136            /**
1137             * Sets the social activity local service.
1138             *
1139             * @param socialActivityLocalService the social activity local service
1140             */
1141            public void setSocialActivityLocalService(
1142                    SocialActivityLocalService socialActivityLocalService) {
1143                    this.socialActivityLocalService = socialActivityLocalService;
1144            }
1145    
1146            /**
1147             * Gets the social activity persistence.
1148             *
1149             * @return the social activity persistence
1150             */
1151            public SocialActivityPersistence getSocialActivityPersistence() {
1152                    return socialActivityPersistence;
1153            }
1154    
1155            /**
1156             * Sets the social activity persistence.
1157             *
1158             * @param socialActivityPersistence the social activity persistence
1159             */
1160            public void setSocialActivityPersistence(
1161                    SocialActivityPersistence socialActivityPersistence) {
1162                    this.socialActivityPersistence = socialActivityPersistence;
1163            }
1164    
1165            /**
1166             * Gets the social activity finder.
1167             *
1168             * @return the social activity finder
1169             */
1170            public SocialActivityFinder getSocialActivityFinder() {
1171                    return socialActivityFinder;
1172            }
1173    
1174            /**
1175             * Sets the social activity finder.
1176             *
1177             * @param socialActivityFinder the social activity finder
1178             */
1179            public void setSocialActivityFinder(
1180                    SocialActivityFinder socialActivityFinder) {
1181                    this.socialActivityFinder = socialActivityFinder;
1182            }
1183    
1184            /**
1185             * Performs an SQL query.
1186             *
1187             * @param sql the sql query to perform
1188             */
1189            protected void runSQL(String sql) throws SystemException {
1190                    try {
1191                            DataSource dataSource = mbThreadPersistence.getDataSource();
1192    
1193                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1194                                            sql, new int[0]);
1195    
1196                            sqlUpdate.update();
1197                    }
1198                    catch (Exception e) {
1199                            throw new SystemException(e);
1200                    }
1201            }
1202    
1203            @BeanReference(type = MBBanLocalService.class)
1204            protected MBBanLocalService mbBanLocalService;
1205            @BeanReference(type = MBBanService.class)
1206            protected MBBanService mbBanService;
1207            @BeanReference(type = MBBanPersistence.class)
1208            protected MBBanPersistence mbBanPersistence;
1209            @BeanReference(type = MBCategoryLocalService.class)
1210            protected MBCategoryLocalService mbCategoryLocalService;
1211            @BeanReference(type = MBCategoryService.class)
1212            protected MBCategoryService mbCategoryService;
1213            @BeanReference(type = MBCategoryPersistence.class)
1214            protected MBCategoryPersistence mbCategoryPersistence;
1215            @BeanReference(type = MBCategoryFinder.class)
1216            protected MBCategoryFinder mbCategoryFinder;
1217            @BeanReference(type = MBDiscussionLocalService.class)
1218            protected MBDiscussionLocalService mbDiscussionLocalService;
1219            @BeanReference(type = MBDiscussionPersistence.class)
1220            protected MBDiscussionPersistence mbDiscussionPersistence;
1221            @BeanReference(type = MBMailingListLocalService.class)
1222            protected MBMailingListLocalService mbMailingListLocalService;
1223            @BeanReference(type = MBMailingListPersistence.class)
1224            protected MBMailingListPersistence mbMailingListPersistence;
1225            @BeanReference(type = MBMessageLocalService.class)
1226            protected MBMessageLocalService mbMessageLocalService;
1227            @BeanReference(type = MBMessageService.class)
1228            protected MBMessageService mbMessageService;
1229            @BeanReference(type = MBMessagePersistence.class)
1230            protected MBMessagePersistence mbMessagePersistence;
1231            @BeanReference(type = MBMessageFinder.class)
1232            protected MBMessageFinder mbMessageFinder;
1233            @BeanReference(type = MBMessageFlagLocalService.class)
1234            protected MBMessageFlagLocalService mbMessageFlagLocalService;
1235            @BeanReference(type = MBMessageFlagService.class)
1236            protected MBMessageFlagService mbMessageFlagService;
1237            @BeanReference(type = MBMessageFlagPersistence.class)
1238            protected MBMessageFlagPersistence mbMessageFlagPersistence;
1239            @BeanReference(type = MBStatsUserLocalService.class)
1240            protected MBStatsUserLocalService mbStatsUserLocalService;
1241            @BeanReference(type = MBStatsUserPersistence.class)
1242            protected MBStatsUserPersistence mbStatsUserPersistence;
1243            @BeanReference(type = MBThreadLocalService.class)
1244            protected MBThreadLocalService mbThreadLocalService;
1245            @BeanReference(type = MBThreadService.class)
1246            protected MBThreadService mbThreadService;
1247            @BeanReference(type = MBThreadPersistence.class)
1248            protected MBThreadPersistence mbThreadPersistence;
1249            @BeanReference(type = MBThreadFinder.class)
1250            protected MBThreadFinder mbThreadFinder;
1251            @BeanReference(type = CounterLocalService.class)
1252            protected CounterLocalService counterLocalService;
1253            @BeanReference(type = DLLocalService.class)
1254            protected DLLocalService dlLocalService;
1255            @BeanReference(type = DLService.class)
1256            protected DLService dlService;
1257            @BeanReference(type = LockLocalService.class)
1258            protected LockLocalService lockLocalService;
1259            @BeanReference(type = LockPersistence.class)
1260            protected LockPersistence lockPersistence;
1261            @BeanReference(type = ResourceLocalService.class)
1262            protected ResourceLocalService resourceLocalService;
1263            @BeanReference(type = ResourceService.class)
1264            protected ResourceService resourceService;
1265            @BeanReference(type = ResourcePersistence.class)
1266            protected ResourcePersistence resourcePersistence;
1267            @BeanReference(type = ResourceFinder.class)
1268            protected ResourceFinder resourceFinder;
1269            @BeanReference(type = UserLocalService.class)
1270            protected UserLocalService userLocalService;
1271            @BeanReference(type = UserService.class)
1272            protected UserService userService;
1273            @BeanReference(type = UserPersistence.class)
1274            protected UserPersistence userPersistence;
1275            @BeanReference(type = UserFinder.class)
1276            protected UserFinder userFinder;
1277            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1278            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1279            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1280            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1281            @BeanReference(type = AssetEntryLocalService.class)
1282            protected AssetEntryLocalService assetEntryLocalService;
1283            @BeanReference(type = AssetEntryService.class)
1284            protected AssetEntryService assetEntryService;
1285            @BeanReference(type = AssetEntryPersistence.class)
1286            protected AssetEntryPersistence assetEntryPersistence;
1287            @BeanReference(type = AssetEntryFinder.class)
1288            protected AssetEntryFinder assetEntryFinder;
1289            @BeanReference(type = RatingsStatsLocalService.class)
1290            protected RatingsStatsLocalService ratingsStatsLocalService;
1291            @BeanReference(type = RatingsStatsPersistence.class)
1292            protected RatingsStatsPersistence ratingsStatsPersistence;
1293            @BeanReference(type = RatingsStatsFinder.class)
1294            protected RatingsStatsFinder ratingsStatsFinder;
1295            @BeanReference(type = SocialActivityLocalService.class)
1296            protected SocialActivityLocalService socialActivityLocalService;
1297            @BeanReference(type = SocialActivityPersistence.class)
1298            protected SocialActivityPersistence socialActivityPersistence;
1299            @BeanReference(type = SocialActivityFinder.class)
1300            protected SocialActivityFinder socialActivityFinder;
1301    }