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