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