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