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