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