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