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