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