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