001    /**
002     * Copyright (c) 2000-present 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.portal.kernel.bean.BeanReference;
018    import com.liferay.portal.kernel.dao.db.DB;
019    import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.exception.SystemException;
023    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.persistence.GroupFinder;
026    import com.liferay.portal.service.persistence.GroupPersistence;
027    import com.liferay.portal.service.persistence.SubscriptionPersistence;
028    import com.liferay.portal.service.persistence.SystemEventPersistence;
029    import com.liferay.portal.service.persistence.UserFinder;
030    import com.liferay.portal.service.persistence.UserPersistence;
031    import com.liferay.portal.util.PortalUtil;
032    
033    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
034    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
035    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
036    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
037    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
038    import com.liferay.portlet.messageboards.model.MBCategory;
039    import com.liferay.portlet.messageboards.service.MBCategoryService;
040    import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
041    import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
042    import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
043    import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
044    import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
045    import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
046    import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
047    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
048    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
049    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
050    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
051    
052    import javax.sql.DataSource;
053    
054    /**
055     * Provides the base implementation for the message boards category remote service.
056     *
057     * <p>
058     * 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.MBCategoryServiceImpl}.
059     * </p>
060     *
061     * @author Brian Wing Shun Chan
062     * @see com.liferay.portlet.messageboards.service.impl.MBCategoryServiceImpl
063     * @see com.liferay.portlet.messageboards.service.MBCategoryServiceUtil
064     * @generated
065     */
066    public abstract class MBCategoryServiceBaseImpl extends BaseServiceImpl
067            implements MBCategoryService, IdentifiableOSGiService {
068            /*
069             * NOTE FOR DEVELOPERS:
070             *
071             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.messageboards.service.MBCategoryServiceUtil} to access the message boards category remote service.
072             */
073    
074            /**
075             * Returns the message boards category local service.
076             *
077             * @return the message boards category local service
078             */
079            public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
080                    return mbCategoryLocalService;
081            }
082    
083            /**
084             * Sets the message boards category local service.
085             *
086             * @param mbCategoryLocalService the message boards category local service
087             */
088            public void setMBCategoryLocalService(
089                    com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
090                    this.mbCategoryLocalService = mbCategoryLocalService;
091            }
092    
093            /**
094             * Returns the message boards category remote service.
095             *
096             * @return the message boards category remote service
097             */
098            public MBCategoryService getMBCategoryService() {
099                    return mbCategoryService;
100            }
101    
102            /**
103             * Sets the message boards category remote service.
104             *
105             * @param mbCategoryService the message boards category remote service
106             */
107            public void setMBCategoryService(MBCategoryService mbCategoryService) {
108                    this.mbCategoryService = mbCategoryService;
109            }
110    
111            /**
112             * Returns the message boards category persistence.
113             *
114             * @return the message boards category persistence
115             */
116            public MBCategoryPersistence getMBCategoryPersistence() {
117                    return mbCategoryPersistence;
118            }
119    
120            /**
121             * Sets the message boards category persistence.
122             *
123             * @param mbCategoryPersistence the message boards category persistence
124             */
125            public void setMBCategoryPersistence(
126                    MBCategoryPersistence mbCategoryPersistence) {
127                    this.mbCategoryPersistence = mbCategoryPersistence;
128            }
129    
130            /**
131             * Returns the message boards category finder.
132             *
133             * @return the message boards category finder
134             */
135            public MBCategoryFinder getMBCategoryFinder() {
136                    return mbCategoryFinder;
137            }
138    
139            /**
140             * Sets the message boards category finder.
141             *
142             * @param mbCategoryFinder the message boards category finder
143             */
144            public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
145                    this.mbCategoryFinder = mbCategoryFinder;
146            }
147    
148            /**
149             * Returns the counter local service.
150             *
151             * @return the counter local service
152             */
153            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
154                    return counterLocalService;
155            }
156    
157            /**
158             * Sets the counter local service.
159             *
160             * @param counterLocalService the counter local service
161             */
162            public void setCounterLocalService(
163                    com.liferay.counter.service.CounterLocalService counterLocalService) {
164                    this.counterLocalService = counterLocalService;
165            }
166    
167            /**
168             * Returns the group local service.
169             *
170             * @return the group local service
171             */
172            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
173                    return groupLocalService;
174            }
175    
176            /**
177             * Sets the group local service.
178             *
179             * @param groupLocalService the group local service
180             */
181            public void setGroupLocalService(
182                    com.liferay.portal.service.GroupLocalService groupLocalService) {
183                    this.groupLocalService = groupLocalService;
184            }
185    
186            /**
187             * Returns the group remote service.
188             *
189             * @return the group remote service
190             */
191            public com.liferay.portal.service.GroupService getGroupService() {
192                    return groupService;
193            }
194    
195            /**
196             * Sets the group remote service.
197             *
198             * @param groupService the group remote service
199             */
200            public void setGroupService(
201                    com.liferay.portal.service.GroupService groupService) {
202                    this.groupService = groupService;
203            }
204    
205            /**
206             * Returns the group persistence.
207             *
208             * @return the group persistence
209             */
210            public GroupPersistence getGroupPersistence() {
211                    return groupPersistence;
212            }
213    
214            /**
215             * Sets the group persistence.
216             *
217             * @param groupPersistence the group persistence
218             */
219            public void setGroupPersistence(GroupPersistence groupPersistence) {
220                    this.groupPersistence = groupPersistence;
221            }
222    
223            /**
224             * Returns the group finder.
225             *
226             * @return the group finder
227             */
228            public GroupFinder getGroupFinder() {
229                    return groupFinder;
230            }
231    
232            /**
233             * Sets the group finder.
234             *
235             * @param groupFinder the group finder
236             */
237            public void setGroupFinder(GroupFinder groupFinder) {
238                    this.groupFinder = groupFinder;
239            }
240    
241            /**
242             * Returns the resource local service.
243             *
244             * @return the resource local service
245             */
246            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
247                    return resourceLocalService;
248            }
249    
250            /**
251             * Sets the resource local service.
252             *
253             * @param resourceLocalService the resource local service
254             */
255            public void setResourceLocalService(
256                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
257                    this.resourceLocalService = resourceLocalService;
258            }
259    
260            /**
261             * Returns the subscription local service.
262             *
263             * @return the subscription local service
264             */
265            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
266                    return subscriptionLocalService;
267            }
268    
269            /**
270             * Sets the subscription local service.
271             *
272             * @param subscriptionLocalService the subscription local service
273             */
274            public void setSubscriptionLocalService(
275                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
276                    this.subscriptionLocalService = subscriptionLocalService;
277            }
278    
279            /**
280             * Returns the subscription persistence.
281             *
282             * @return the subscription persistence
283             */
284            public SubscriptionPersistence getSubscriptionPersistence() {
285                    return subscriptionPersistence;
286            }
287    
288            /**
289             * Sets the subscription persistence.
290             *
291             * @param subscriptionPersistence the subscription persistence
292             */
293            public void setSubscriptionPersistence(
294                    SubscriptionPersistence subscriptionPersistence) {
295                    this.subscriptionPersistence = subscriptionPersistence;
296            }
297    
298            /**
299             * Returns the system event local service.
300             *
301             * @return the system event local service
302             */
303            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
304                    return systemEventLocalService;
305            }
306    
307            /**
308             * Sets the system event local service.
309             *
310             * @param systemEventLocalService the system event local service
311             */
312            public void setSystemEventLocalService(
313                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
314                    this.systemEventLocalService = systemEventLocalService;
315            }
316    
317            /**
318             * Returns the system event persistence.
319             *
320             * @return the system event persistence
321             */
322            public SystemEventPersistence getSystemEventPersistence() {
323                    return systemEventPersistence;
324            }
325    
326            /**
327             * Sets the system event persistence.
328             *
329             * @param systemEventPersistence the system event persistence
330             */
331            public void setSystemEventPersistence(
332                    SystemEventPersistence systemEventPersistence) {
333                    this.systemEventPersistence = systemEventPersistence;
334            }
335    
336            /**
337             * Returns the user local service.
338             *
339             * @return the user local service
340             */
341            public com.liferay.portal.service.UserLocalService getUserLocalService() {
342                    return userLocalService;
343            }
344    
345            /**
346             * Sets the user local service.
347             *
348             * @param userLocalService the user local service
349             */
350            public void setUserLocalService(
351                    com.liferay.portal.service.UserLocalService userLocalService) {
352                    this.userLocalService = userLocalService;
353            }
354    
355            /**
356             * Returns the user remote service.
357             *
358             * @return the user remote service
359             */
360            public com.liferay.portal.service.UserService getUserService() {
361                    return userService;
362            }
363    
364            /**
365             * Sets the user remote service.
366             *
367             * @param userService the user remote service
368             */
369            public void setUserService(
370                    com.liferay.portal.service.UserService userService) {
371                    this.userService = userService;
372            }
373    
374            /**
375             * Returns the user persistence.
376             *
377             * @return the user persistence
378             */
379            public UserPersistence getUserPersistence() {
380                    return userPersistence;
381            }
382    
383            /**
384             * Sets the user persistence.
385             *
386             * @param userPersistence the user persistence
387             */
388            public void setUserPersistence(UserPersistence userPersistence) {
389                    this.userPersistence = userPersistence;
390            }
391    
392            /**
393             * Returns the user finder.
394             *
395             * @return the user finder
396             */
397            public UserFinder getUserFinder() {
398                    return userFinder;
399            }
400    
401            /**
402             * Sets the user finder.
403             *
404             * @param userFinder the user finder
405             */
406            public void setUserFinder(UserFinder userFinder) {
407                    this.userFinder = userFinder;
408            }
409    
410            /**
411             * Returns the asset entry local service.
412             *
413             * @return the asset entry local service
414             */
415            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
416                    return assetEntryLocalService;
417            }
418    
419            /**
420             * Sets the asset entry local service.
421             *
422             * @param assetEntryLocalService the asset entry local service
423             */
424            public void setAssetEntryLocalService(
425                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
426                    this.assetEntryLocalService = assetEntryLocalService;
427            }
428    
429            /**
430             * Returns the asset entry remote service.
431             *
432             * @return the asset entry remote service
433             */
434            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
435                    return assetEntryService;
436            }
437    
438            /**
439             * Sets the asset entry remote service.
440             *
441             * @param assetEntryService the asset entry remote service
442             */
443            public void setAssetEntryService(
444                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
445                    this.assetEntryService = assetEntryService;
446            }
447    
448            /**
449             * Returns the asset entry persistence.
450             *
451             * @return the asset entry persistence
452             */
453            public AssetEntryPersistence getAssetEntryPersistence() {
454                    return assetEntryPersistence;
455            }
456    
457            /**
458             * Sets the asset entry persistence.
459             *
460             * @param assetEntryPersistence the asset entry persistence
461             */
462            public void setAssetEntryPersistence(
463                    AssetEntryPersistence assetEntryPersistence) {
464                    this.assetEntryPersistence = assetEntryPersistence;
465            }
466    
467            /**
468             * Returns the asset entry finder.
469             *
470             * @return the asset entry finder
471             */
472            public AssetEntryFinder getAssetEntryFinder() {
473                    return assetEntryFinder;
474            }
475    
476            /**
477             * Sets the asset entry finder.
478             *
479             * @param assetEntryFinder the asset entry finder
480             */
481            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
482                    this.assetEntryFinder = assetEntryFinder;
483            }
484    
485            /**
486             * Returns the asset tag local service.
487             *
488             * @return the asset tag local service
489             */
490            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
491                    return assetTagLocalService;
492            }
493    
494            /**
495             * Sets the asset tag local service.
496             *
497             * @param assetTagLocalService the asset tag local service
498             */
499            public void setAssetTagLocalService(
500                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
501                    this.assetTagLocalService = assetTagLocalService;
502            }
503    
504            /**
505             * Returns the asset tag remote service.
506             *
507             * @return the asset tag remote service
508             */
509            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
510                    return assetTagService;
511            }
512    
513            /**
514             * Sets the asset tag remote service.
515             *
516             * @param assetTagService the asset tag remote service
517             */
518            public void setAssetTagService(
519                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
520                    this.assetTagService = assetTagService;
521            }
522    
523            /**
524             * Returns the asset tag persistence.
525             *
526             * @return the asset tag persistence
527             */
528            public AssetTagPersistence getAssetTagPersistence() {
529                    return assetTagPersistence;
530            }
531    
532            /**
533             * Sets the asset tag persistence.
534             *
535             * @param assetTagPersistence the asset tag persistence
536             */
537            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
538                    this.assetTagPersistence = assetTagPersistence;
539            }
540    
541            /**
542             * Returns the asset tag finder.
543             *
544             * @return the asset tag finder
545             */
546            public AssetTagFinder getAssetTagFinder() {
547                    return assetTagFinder;
548            }
549    
550            /**
551             * Sets the asset tag finder.
552             *
553             * @param assetTagFinder the asset tag finder
554             */
555            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
556                    this.assetTagFinder = assetTagFinder;
557            }
558    
559            /**
560             * Returns the expando row local service.
561             *
562             * @return the expando row local service
563             */
564            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
565                    return expandoRowLocalService;
566            }
567    
568            /**
569             * Sets the expando row local service.
570             *
571             * @param expandoRowLocalService the expando row local service
572             */
573            public void setExpandoRowLocalService(
574                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
575                    this.expandoRowLocalService = expandoRowLocalService;
576            }
577    
578            /**
579             * Returns the expando row persistence.
580             *
581             * @return the expando row persistence
582             */
583            public ExpandoRowPersistence getExpandoRowPersistence() {
584                    return expandoRowPersistence;
585            }
586    
587            /**
588             * Sets the expando row persistence.
589             *
590             * @param expandoRowPersistence the expando row persistence
591             */
592            public void setExpandoRowPersistence(
593                    ExpandoRowPersistence expandoRowPersistence) {
594                    this.expandoRowPersistence = expandoRowPersistence;
595            }
596    
597            /**
598             * Returns the ratings stats local service.
599             *
600             * @return the ratings stats local service
601             */
602            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
603                    return ratingsStatsLocalService;
604            }
605    
606            /**
607             * Sets the ratings stats local service.
608             *
609             * @param ratingsStatsLocalService the ratings stats local service
610             */
611            public void setRatingsStatsLocalService(
612                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
613                    this.ratingsStatsLocalService = ratingsStatsLocalService;
614            }
615    
616            /**
617             * Returns the ratings stats persistence.
618             *
619             * @return the ratings stats persistence
620             */
621            public RatingsStatsPersistence getRatingsStatsPersistence() {
622                    return ratingsStatsPersistence;
623            }
624    
625            /**
626             * Sets the ratings stats persistence.
627             *
628             * @param ratingsStatsPersistence the ratings stats persistence
629             */
630            public void setRatingsStatsPersistence(
631                    RatingsStatsPersistence ratingsStatsPersistence) {
632                    this.ratingsStatsPersistence = ratingsStatsPersistence;
633            }
634    
635            /**
636             * Returns the ratings stats finder.
637             *
638             * @return the ratings stats finder
639             */
640            public RatingsStatsFinder getRatingsStatsFinder() {
641                    return ratingsStatsFinder;
642            }
643    
644            /**
645             * Sets the ratings stats finder.
646             *
647             * @param ratingsStatsFinder the ratings stats finder
648             */
649            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
650                    this.ratingsStatsFinder = ratingsStatsFinder;
651            }
652    
653            /**
654             * Returns the trash entry local service.
655             *
656             * @return the trash entry local service
657             */
658            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
659                    return trashEntryLocalService;
660            }
661    
662            /**
663             * Sets the trash entry local service.
664             *
665             * @param trashEntryLocalService the trash entry local service
666             */
667            public void setTrashEntryLocalService(
668                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
669                    this.trashEntryLocalService = trashEntryLocalService;
670            }
671    
672            /**
673             * Returns the trash entry remote service.
674             *
675             * @return the trash entry remote service
676             */
677            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
678                    return trashEntryService;
679            }
680    
681            /**
682             * Sets the trash entry remote service.
683             *
684             * @param trashEntryService the trash entry remote service
685             */
686            public void setTrashEntryService(
687                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
688                    this.trashEntryService = trashEntryService;
689            }
690    
691            /**
692             * Returns the trash entry persistence.
693             *
694             * @return the trash entry persistence
695             */
696            public TrashEntryPersistence getTrashEntryPersistence() {
697                    return trashEntryPersistence;
698            }
699    
700            /**
701             * Sets the trash entry persistence.
702             *
703             * @param trashEntryPersistence the trash entry persistence
704             */
705            public void setTrashEntryPersistence(
706                    TrashEntryPersistence trashEntryPersistence) {
707                    this.trashEntryPersistence = trashEntryPersistence;
708            }
709    
710            /**
711             * Returns the trash version local service.
712             *
713             * @return the trash version local service
714             */
715            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
716                    return trashVersionLocalService;
717            }
718    
719            /**
720             * Sets the trash version local service.
721             *
722             * @param trashVersionLocalService the trash version local service
723             */
724            public void setTrashVersionLocalService(
725                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
726                    this.trashVersionLocalService = trashVersionLocalService;
727            }
728    
729            /**
730             * Returns the trash version persistence.
731             *
732             * @return the trash version persistence
733             */
734            public TrashVersionPersistence getTrashVersionPersistence() {
735                    return trashVersionPersistence;
736            }
737    
738            /**
739             * Sets the trash version persistence.
740             *
741             * @param trashVersionPersistence the trash version persistence
742             */
743            public void setTrashVersionPersistence(
744                    TrashVersionPersistence trashVersionPersistence) {
745                    this.trashVersionPersistence = trashVersionPersistence;
746            }
747    
748            /**
749             * Returns the message boards mailing list local service.
750             *
751             * @return the message boards mailing list local service
752             */
753            public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
754                    return mbMailingListLocalService;
755            }
756    
757            /**
758             * Sets the message boards mailing list local service.
759             *
760             * @param mbMailingListLocalService the message boards mailing list local service
761             */
762            public void setMBMailingListLocalService(
763                    com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
764                    this.mbMailingListLocalService = mbMailingListLocalService;
765            }
766    
767            /**
768             * Returns the message boards mailing list persistence.
769             *
770             * @return the message boards mailing list persistence
771             */
772            public MBMailingListPersistence getMBMailingListPersistence() {
773                    return mbMailingListPersistence;
774            }
775    
776            /**
777             * Sets the message boards mailing list persistence.
778             *
779             * @param mbMailingListPersistence the message boards mailing list persistence
780             */
781            public void setMBMailingListPersistence(
782                    MBMailingListPersistence mbMailingListPersistence) {
783                    this.mbMailingListPersistence = mbMailingListPersistence;
784            }
785    
786            /**
787             * Returns the message-boards message local service.
788             *
789             * @return the message-boards message local service
790             */
791            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
792                    return mbMessageLocalService;
793            }
794    
795            /**
796             * Sets the message-boards message local service.
797             *
798             * @param mbMessageLocalService the message-boards message local service
799             */
800            public void setMBMessageLocalService(
801                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
802                    this.mbMessageLocalService = mbMessageLocalService;
803            }
804    
805            /**
806             * Returns the message-boards message remote service.
807             *
808             * @return the message-boards message remote service
809             */
810            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
811                    return mbMessageService;
812            }
813    
814            /**
815             * Sets the message-boards message remote service.
816             *
817             * @param mbMessageService the message-boards message remote service
818             */
819            public void setMBMessageService(
820                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
821                    this.mbMessageService = mbMessageService;
822            }
823    
824            /**
825             * Returns the message-boards message persistence.
826             *
827             * @return the message-boards message persistence
828             */
829            public MBMessagePersistence getMBMessagePersistence() {
830                    return mbMessagePersistence;
831            }
832    
833            /**
834             * Sets the message-boards message persistence.
835             *
836             * @param mbMessagePersistence the message-boards message persistence
837             */
838            public void setMBMessagePersistence(
839                    MBMessagePersistence mbMessagePersistence) {
840                    this.mbMessagePersistence = mbMessagePersistence;
841            }
842    
843            /**
844             * Returns the message-boards message finder.
845             *
846             * @return the message-boards message finder
847             */
848            public MBMessageFinder getMBMessageFinder() {
849                    return mbMessageFinder;
850            }
851    
852            /**
853             * Sets the message-boards message finder.
854             *
855             * @param mbMessageFinder the message-boards message finder
856             */
857            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
858                    this.mbMessageFinder = mbMessageFinder;
859            }
860    
861            /**
862             * Returns the message boards thread local service.
863             *
864             * @return the message boards thread local service
865             */
866            public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
867                    return mbThreadLocalService;
868            }
869    
870            /**
871             * Sets the message boards thread local service.
872             *
873             * @param mbThreadLocalService the message boards thread local service
874             */
875            public void setMBThreadLocalService(
876                    com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
877                    this.mbThreadLocalService = mbThreadLocalService;
878            }
879    
880            /**
881             * Returns the message boards thread remote service.
882             *
883             * @return the message boards thread remote service
884             */
885            public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
886                    return mbThreadService;
887            }
888    
889            /**
890             * Sets the message boards thread remote service.
891             *
892             * @param mbThreadService the message boards thread remote service
893             */
894            public void setMBThreadService(
895                    com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
896                    this.mbThreadService = mbThreadService;
897            }
898    
899            /**
900             * Returns the message boards thread persistence.
901             *
902             * @return the message boards thread persistence
903             */
904            public MBThreadPersistence getMBThreadPersistence() {
905                    return mbThreadPersistence;
906            }
907    
908            /**
909             * Sets the message boards thread persistence.
910             *
911             * @param mbThreadPersistence the message boards thread persistence
912             */
913            public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
914                    this.mbThreadPersistence = mbThreadPersistence;
915            }
916    
917            /**
918             * Returns the message boards thread finder.
919             *
920             * @return the message boards thread finder
921             */
922            public MBThreadFinder getMBThreadFinder() {
923                    return mbThreadFinder;
924            }
925    
926            /**
927             * Sets the message boards thread finder.
928             *
929             * @param mbThreadFinder the message boards thread finder
930             */
931            public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
932                    this.mbThreadFinder = mbThreadFinder;
933            }
934    
935            public void afterPropertiesSet() {
936            }
937    
938            public void destroy() {
939            }
940    
941            /**
942             * Returns the OSGi service identifier.
943             *
944             * @return the OSGi service identifier
945             */
946            @Override
947            public String getOSGiServiceIdentifier() {
948                    return MBCategoryService.class.getName();
949            }
950    
951            protected Class<?> getModelClass() {
952                    return MBCategory.class;
953            }
954    
955            protected String getModelClassName() {
956                    return MBCategory.class.getName();
957            }
958    
959            /**
960             * Performs a SQL query.
961             *
962             * @param sql the sql query
963             */
964            protected void runSQL(String sql) {
965                    try {
966                            DataSource dataSource = mbCategoryPersistence.getDataSource();
967    
968                            DB db = DBManagerUtil.getDB();
969    
970                            sql = db.buildSQL(sql);
971                            sql = PortalUtil.transformSQL(sql);
972    
973                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
974                                            sql, new int[0]);
975    
976                            sqlUpdate.update();
977                    }
978                    catch (Exception e) {
979                            throw new SystemException(e);
980                    }
981            }
982    
983            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
984            protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
985            @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
986            protected MBCategoryService mbCategoryService;
987            @BeanReference(type = MBCategoryPersistence.class)
988            protected MBCategoryPersistence mbCategoryPersistence;
989            @BeanReference(type = MBCategoryFinder.class)
990            protected MBCategoryFinder mbCategoryFinder;
991            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
992            protected com.liferay.counter.service.CounterLocalService counterLocalService;
993            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
994            protected com.liferay.portal.service.GroupLocalService groupLocalService;
995            @BeanReference(type = com.liferay.portal.service.GroupService.class)
996            protected com.liferay.portal.service.GroupService groupService;
997            @BeanReference(type = GroupPersistence.class)
998            protected GroupPersistence groupPersistence;
999            @BeanReference(type = GroupFinder.class)
1000            protected GroupFinder groupFinder;
1001            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1002            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1003            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1004            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1005            @BeanReference(type = SubscriptionPersistence.class)
1006            protected SubscriptionPersistence subscriptionPersistence;
1007            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1008            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1009            @BeanReference(type = SystemEventPersistence.class)
1010            protected SystemEventPersistence systemEventPersistence;
1011            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1012            protected com.liferay.portal.service.UserLocalService userLocalService;
1013            @BeanReference(type = com.liferay.portal.service.UserService.class)
1014            protected com.liferay.portal.service.UserService userService;
1015            @BeanReference(type = UserPersistence.class)
1016            protected UserPersistence userPersistence;
1017            @BeanReference(type = UserFinder.class)
1018            protected UserFinder userFinder;
1019            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1020            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1021            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1022            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1023            @BeanReference(type = AssetEntryPersistence.class)
1024            protected AssetEntryPersistence assetEntryPersistence;
1025            @BeanReference(type = AssetEntryFinder.class)
1026            protected AssetEntryFinder assetEntryFinder;
1027            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1028            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1029            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1030            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1031            @BeanReference(type = AssetTagPersistence.class)
1032            protected AssetTagPersistence assetTagPersistence;
1033            @BeanReference(type = AssetTagFinder.class)
1034            protected AssetTagFinder assetTagFinder;
1035            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1036            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1037            @BeanReference(type = ExpandoRowPersistence.class)
1038            protected ExpandoRowPersistence expandoRowPersistence;
1039            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1040            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1041            @BeanReference(type = RatingsStatsPersistence.class)
1042            protected RatingsStatsPersistence ratingsStatsPersistence;
1043            @BeanReference(type = RatingsStatsFinder.class)
1044            protected RatingsStatsFinder ratingsStatsFinder;
1045            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1046            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1047            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1048            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1049            @BeanReference(type = TrashEntryPersistence.class)
1050            protected TrashEntryPersistence trashEntryPersistence;
1051            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1052            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1053            @BeanReference(type = TrashVersionPersistence.class)
1054            protected TrashVersionPersistence trashVersionPersistence;
1055            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1056            protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1057            @BeanReference(type = MBMailingListPersistence.class)
1058            protected MBMailingListPersistence mbMailingListPersistence;
1059            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1060            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1061            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1062            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1063            @BeanReference(type = MBMessagePersistence.class)
1064            protected MBMessagePersistence mbMessagePersistence;
1065            @BeanReference(type = MBMessageFinder.class)
1066            protected MBMessageFinder mbMessageFinder;
1067            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1068            protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1069            @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1070            protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1071            @BeanReference(type = MBThreadPersistence.class)
1072            protected MBThreadPersistence mbThreadPersistence;
1073            @BeanReference(type = MBThreadFinder.class)
1074            protected MBThreadFinder mbThreadFinder;
1075    }