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