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