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