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