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