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.blogs.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.CompanyPersistence;
026    import com.liferay.portal.service.persistence.GroupFinder;
027    import com.liferay.portal.service.persistence.GroupPersistence;
028    import com.liferay.portal.service.persistence.ImagePersistence;
029    import com.liferay.portal.service.persistence.OrganizationFinder;
030    import com.liferay.portal.service.persistence.OrganizationPersistence;
031    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
032    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
033    import com.liferay.portal.service.persistence.SubscriptionPersistence;
034    import com.liferay.portal.service.persistence.UserFinder;
035    import com.liferay.portal.service.persistence.UserPersistence;
036    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
037    import com.liferay.portal.util.PortalUtil;
038    
039    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
040    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
041    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
042    import com.liferay.portlet.blogs.model.BlogsEntry;
043    import com.liferay.portlet.blogs.service.BlogsEntryService;
044    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
045    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
046    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
047    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
048    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
049    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
050    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
051    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
052    
053    import javax.sql.DataSource;
054    
055    /**
056     * Provides the base implementation for the blogs entry remote service.
057     *
058     * <p>
059     * 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.blogs.service.impl.BlogsEntryServiceImpl}.
060     * </p>
061     *
062     * @author Brian Wing Shun Chan
063     * @see com.liferay.portlet.blogs.service.impl.BlogsEntryServiceImpl
064     * @see com.liferay.portlet.blogs.service.BlogsEntryServiceUtil
065     * @generated
066     */
067    public abstract class BlogsEntryServiceBaseImpl extends BaseServiceImpl
068            implements BlogsEntryService, IdentifiableOSGiService {
069            /*
070             * NOTE FOR DEVELOPERS:
071             *
072             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.blogs.service.BlogsEntryServiceUtil} to access the blogs entry remote service.
073             */
074    
075            /**
076             * Returns the blogs entry local service.
077             *
078             * @return the blogs entry local service
079             */
080            public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
081                    return blogsEntryLocalService;
082            }
083    
084            /**
085             * Sets the blogs entry local service.
086             *
087             * @param blogsEntryLocalService the blogs entry local service
088             */
089            public void setBlogsEntryLocalService(
090                    com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
091                    this.blogsEntryLocalService = blogsEntryLocalService;
092            }
093    
094            /**
095             * Returns the blogs entry remote service.
096             *
097             * @return the blogs entry remote service
098             */
099            public BlogsEntryService getBlogsEntryService() {
100                    return blogsEntryService;
101            }
102    
103            /**
104             * Sets the blogs entry remote service.
105             *
106             * @param blogsEntryService the blogs entry remote service
107             */
108            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
109                    this.blogsEntryService = blogsEntryService;
110            }
111    
112            /**
113             * Returns the blogs entry persistence.
114             *
115             * @return the blogs entry persistence
116             */
117            public BlogsEntryPersistence getBlogsEntryPersistence() {
118                    return blogsEntryPersistence;
119            }
120    
121            /**
122             * Sets the blogs entry persistence.
123             *
124             * @param blogsEntryPersistence the blogs entry persistence
125             */
126            public void setBlogsEntryPersistence(
127                    BlogsEntryPersistence blogsEntryPersistence) {
128                    this.blogsEntryPersistence = blogsEntryPersistence;
129            }
130    
131            /**
132             * Returns the blogs entry finder.
133             *
134             * @return the blogs entry finder
135             */
136            public BlogsEntryFinder getBlogsEntryFinder() {
137                    return blogsEntryFinder;
138            }
139    
140            /**
141             * Sets the blogs entry finder.
142             *
143             * @param blogsEntryFinder the blogs entry finder
144             */
145            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
146                    this.blogsEntryFinder = blogsEntryFinder;
147            }
148    
149            /**
150             * Returns the counter local service.
151             *
152             * @return the counter local service
153             */
154            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
155                    return counterLocalService;
156            }
157    
158            /**
159             * Sets the counter local service.
160             *
161             * @param counterLocalService the counter local service
162             */
163            public void setCounterLocalService(
164                    com.liferay.counter.service.CounterLocalService counterLocalService) {
165                    this.counterLocalService = counterLocalService;
166            }
167    
168            /**
169             * Returns the company local service.
170             *
171             * @return the company local service
172             */
173            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
174                    return companyLocalService;
175            }
176    
177            /**
178             * Sets the company local service.
179             *
180             * @param companyLocalService the company local service
181             */
182            public void setCompanyLocalService(
183                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
184                    this.companyLocalService = companyLocalService;
185            }
186    
187            /**
188             * Returns the company remote service.
189             *
190             * @return the company remote service
191             */
192            public com.liferay.portal.service.CompanyService getCompanyService() {
193                    return companyService;
194            }
195    
196            /**
197             * Sets the company remote service.
198             *
199             * @param companyService the company remote service
200             */
201            public void setCompanyService(
202                    com.liferay.portal.service.CompanyService companyService) {
203                    this.companyService = companyService;
204            }
205    
206            /**
207             * Returns the company persistence.
208             *
209             * @return the company persistence
210             */
211            public CompanyPersistence getCompanyPersistence() {
212                    return companyPersistence;
213            }
214    
215            /**
216             * Sets the company persistence.
217             *
218             * @param companyPersistence the company persistence
219             */
220            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
221                    this.companyPersistence = companyPersistence;
222            }
223    
224            /**
225             * Returns the group local service.
226             *
227             * @return the group local service
228             */
229            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
230                    return groupLocalService;
231            }
232    
233            /**
234             * Sets the group local service.
235             *
236             * @param groupLocalService the group local service
237             */
238            public void setGroupLocalService(
239                    com.liferay.portal.service.GroupLocalService groupLocalService) {
240                    this.groupLocalService = groupLocalService;
241            }
242    
243            /**
244             * Returns the group remote service.
245             *
246             * @return the group remote service
247             */
248            public com.liferay.portal.service.GroupService getGroupService() {
249                    return groupService;
250            }
251    
252            /**
253             * Sets the group remote service.
254             *
255             * @param groupService the group remote service
256             */
257            public void setGroupService(
258                    com.liferay.portal.service.GroupService groupService) {
259                    this.groupService = groupService;
260            }
261    
262            /**
263             * Returns the group persistence.
264             *
265             * @return the group persistence
266             */
267            public GroupPersistence getGroupPersistence() {
268                    return groupPersistence;
269            }
270    
271            /**
272             * Sets the group persistence.
273             *
274             * @param groupPersistence the group persistence
275             */
276            public void setGroupPersistence(GroupPersistence groupPersistence) {
277                    this.groupPersistence = groupPersistence;
278            }
279    
280            /**
281             * Returns the group finder.
282             *
283             * @return the group finder
284             */
285            public GroupFinder getGroupFinder() {
286                    return groupFinder;
287            }
288    
289            /**
290             * Sets the group finder.
291             *
292             * @param groupFinder the group finder
293             */
294            public void setGroupFinder(GroupFinder groupFinder) {
295                    this.groupFinder = groupFinder;
296            }
297    
298            /**
299             * Returns the image local service.
300             *
301             * @return the image local service
302             */
303            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
304                    return imageLocalService;
305            }
306    
307            /**
308             * Sets the image local service.
309             *
310             * @param imageLocalService the image local service
311             */
312            public void setImageLocalService(
313                    com.liferay.portal.service.ImageLocalService imageLocalService) {
314                    this.imageLocalService = imageLocalService;
315            }
316    
317            /**
318             * Returns the image remote service.
319             *
320             * @return the image remote service
321             */
322            public com.liferay.portal.service.ImageService getImageService() {
323                    return imageService;
324            }
325    
326            /**
327             * Sets the image remote service.
328             *
329             * @param imageService the image remote service
330             */
331            public void setImageService(
332                    com.liferay.portal.service.ImageService imageService) {
333                    this.imageService = imageService;
334            }
335    
336            /**
337             * Returns the image persistence.
338             *
339             * @return the image persistence
340             */
341            public ImagePersistence getImagePersistence() {
342                    return imagePersistence;
343            }
344    
345            /**
346             * Sets the image persistence.
347             *
348             * @param imagePersistence the image persistence
349             */
350            public void setImagePersistence(ImagePersistence imagePersistence) {
351                    this.imagePersistence = imagePersistence;
352            }
353    
354            /**
355             * Returns the organization local service.
356             *
357             * @return the organization local service
358             */
359            public com.liferay.portal.service.OrganizationLocalService getOrganizationLocalService() {
360                    return organizationLocalService;
361            }
362    
363            /**
364             * Sets the organization local service.
365             *
366             * @param organizationLocalService the organization local service
367             */
368            public void setOrganizationLocalService(
369                    com.liferay.portal.service.OrganizationLocalService organizationLocalService) {
370                    this.organizationLocalService = organizationLocalService;
371            }
372    
373            /**
374             * Returns the organization remote service.
375             *
376             * @return the organization remote service
377             */
378            public com.liferay.portal.service.OrganizationService getOrganizationService() {
379                    return organizationService;
380            }
381    
382            /**
383             * Sets the organization remote service.
384             *
385             * @param organizationService the organization remote service
386             */
387            public void setOrganizationService(
388                    com.liferay.portal.service.OrganizationService organizationService) {
389                    this.organizationService = organizationService;
390            }
391    
392            /**
393             * Returns the organization persistence.
394             *
395             * @return the organization persistence
396             */
397            public OrganizationPersistence getOrganizationPersistence() {
398                    return organizationPersistence;
399            }
400    
401            /**
402             * Sets the organization persistence.
403             *
404             * @param organizationPersistence the organization persistence
405             */
406            public void setOrganizationPersistence(
407                    OrganizationPersistence organizationPersistence) {
408                    this.organizationPersistence = organizationPersistence;
409            }
410    
411            /**
412             * Returns the organization finder.
413             *
414             * @return the organization finder
415             */
416            public OrganizationFinder getOrganizationFinder() {
417                    return organizationFinder;
418            }
419    
420            /**
421             * Sets the organization finder.
422             *
423             * @param organizationFinder the organization finder
424             */
425            public void setOrganizationFinder(OrganizationFinder organizationFinder) {
426                    this.organizationFinder = organizationFinder;
427            }
428    
429            /**
430             * Returns the portlet preferences local service.
431             *
432             * @return the portlet preferences local service
433             */
434            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
435                    return portletPreferencesLocalService;
436            }
437    
438            /**
439             * Sets the portlet preferences local service.
440             *
441             * @param portletPreferencesLocalService the portlet preferences local service
442             */
443            public void setPortletPreferencesLocalService(
444                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
445                    this.portletPreferencesLocalService = portletPreferencesLocalService;
446            }
447    
448            /**
449             * Returns the portlet preferences remote service.
450             *
451             * @return the portlet preferences remote service
452             */
453            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
454                    return portletPreferencesService;
455            }
456    
457            /**
458             * Sets the portlet preferences remote service.
459             *
460             * @param portletPreferencesService the portlet preferences remote service
461             */
462            public void setPortletPreferencesService(
463                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
464                    this.portletPreferencesService = portletPreferencesService;
465            }
466    
467            /**
468             * Returns the portlet preferences persistence.
469             *
470             * @return the portlet preferences persistence
471             */
472            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
473                    return portletPreferencesPersistence;
474            }
475    
476            /**
477             * Sets the portlet preferences persistence.
478             *
479             * @param portletPreferencesPersistence the portlet preferences persistence
480             */
481            public void setPortletPreferencesPersistence(
482                    PortletPreferencesPersistence portletPreferencesPersistence) {
483                    this.portletPreferencesPersistence = portletPreferencesPersistence;
484            }
485    
486            /**
487             * Returns the portlet preferences finder.
488             *
489             * @return the portlet preferences finder
490             */
491            public PortletPreferencesFinder getPortletPreferencesFinder() {
492                    return portletPreferencesFinder;
493            }
494    
495            /**
496             * Sets the portlet preferences finder.
497             *
498             * @param portletPreferencesFinder the portlet preferences finder
499             */
500            public void setPortletPreferencesFinder(
501                    PortletPreferencesFinder portletPreferencesFinder) {
502                    this.portletPreferencesFinder = portletPreferencesFinder;
503            }
504    
505            /**
506             * Returns the resource local service.
507             *
508             * @return the resource local service
509             */
510            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
511                    return resourceLocalService;
512            }
513    
514            /**
515             * Sets the resource local service.
516             *
517             * @param resourceLocalService the resource local service
518             */
519            public void setResourceLocalService(
520                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
521                    this.resourceLocalService = resourceLocalService;
522            }
523    
524            /**
525             * Returns the subscription local service.
526             *
527             * @return the subscription local service
528             */
529            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
530                    return subscriptionLocalService;
531            }
532    
533            /**
534             * Sets the subscription local service.
535             *
536             * @param subscriptionLocalService the subscription local service
537             */
538            public void setSubscriptionLocalService(
539                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
540                    this.subscriptionLocalService = subscriptionLocalService;
541            }
542    
543            /**
544             * Returns the subscription persistence.
545             *
546             * @return the subscription persistence
547             */
548            public SubscriptionPersistence getSubscriptionPersistence() {
549                    return subscriptionPersistence;
550            }
551    
552            /**
553             * Sets the subscription persistence.
554             *
555             * @param subscriptionPersistence the subscription persistence
556             */
557            public void setSubscriptionPersistence(
558                    SubscriptionPersistence subscriptionPersistence) {
559                    this.subscriptionPersistence = subscriptionPersistence;
560            }
561    
562            /**
563             * Returns the user local service.
564             *
565             * @return the user local service
566             */
567            public com.liferay.portal.service.UserLocalService getUserLocalService() {
568                    return userLocalService;
569            }
570    
571            /**
572             * Sets the user local service.
573             *
574             * @param userLocalService the user local service
575             */
576            public void setUserLocalService(
577                    com.liferay.portal.service.UserLocalService userLocalService) {
578                    this.userLocalService = userLocalService;
579            }
580    
581            /**
582             * Returns the user remote service.
583             *
584             * @return the user remote service
585             */
586            public com.liferay.portal.service.UserService getUserService() {
587                    return userService;
588            }
589    
590            /**
591             * Sets the user remote service.
592             *
593             * @param userService the user remote service
594             */
595            public void setUserService(
596                    com.liferay.portal.service.UserService userService) {
597                    this.userService = userService;
598            }
599    
600            /**
601             * Returns the user persistence.
602             *
603             * @return the user persistence
604             */
605            public UserPersistence getUserPersistence() {
606                    return userPersistence;
607            }
608    
609            /**
610             * Sets the user persistence.
611             *
612             * @param userPersistence the user persistence
613             */
614            public void setUserPersistence(UserPersistence userPersistence) {
615                    this.userPersistence = userPersistence;
616            }
617    
618            /**
619             * Returns the user finder.
620             *
621             * @return the user finder
622             */
623            public UserFinder getUserFinder() {
624                    return userFinder;
625            }
626    
627            /**
628             * Sets the user finder.
629             *
630             * @param userFinder the user finder
631             */
632            public void setUserFinder(UserFinder userFinder) {
633                    this.userFinder = userFinder;
634            }
635    
636            /**
637             * Returns the workflow instance link local service.
638             *
639             * @return the workflow instance link local service
640             */
641            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
642                    return workflowInstanceLinkLocalService;
643            }
644    
645            /**
646             * Sets the workflow instance link local service.
647             *
648             * @param workflowInstanceLinkLocalService the workflow instance link local service
649             */
650            public void setWorkflowInstanceLinkLocalService(
651                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
652                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
653            }
654    
655            /**
656             * Returns the workflow instance link persistence.
657             *
658             * @return the workflow instance link persistence
659             */
660            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
661                    return workflowInstanceLinkPersistence;
662            }
663    
664            /**
665             * Sets the workflow instance link persistence.
666             *
667             * @param workflowInstanceLinkPersistence the workflow instance link persistence
668             */
669            public void setWorkflowInstanceLinkPersistence(
670                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
671                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
672            }
673    
674            /**
675             * Returns the asset entry local service.
676             *
677             * @return the asset entry local service
678             */
679            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
680                    return assetEntryLocalService;
681            }
682    
683            /**
684             * Sets the asset entry local service.
685             *
686             * @param assetEntryLocalService the asset entry local service
687             */
688            public void setAssetEntryLocalService(
689                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
690                    this.assetEntryLocalService = assetEntryLocalService;
691            }
692    
693            /**
694             * Returns the asset entry remote service.
695             *
696             * @return the asset entry remote service
697             */
698            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
699                    return assetEntryService;
700            }
701    
702            /**
703             * Sets the asset entry remote service.
704             *
705             * @param assetEntryService the asset entry remote service
706             */
707            public void setAssetEntryService(
708                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
709                    this.assetEntryService = assetEntryService;
710            }
711    
712            /**
713             * Returns the asset entry persistence.
714             *
715             * @return the asset entry persistence
716             */
717            public AssetEntryPersistence getAssetEntryPersistence() {
718                    return assetEntryPersistence;
719            }
720    
721            /**
722             * Sets the asset entry persistence.
723             *
724             * @param assetEntryPersistence the asset entry persistence
725             */
726            public void setAssetEntryPersistence(
727                    AssetEntryPersistence assetEntryPersistence) {
728                    this.assetEntryPersistence = assetEntryPersistence;
729            }
730    
731            /**
732             * Returns the asset entry finder.
733             *
734             * @return the asset entry finder
735             */
736            public AssetEntryFinder getAssetEntryFinder() {
737                    return assetEntryFinder;
738            }
739    
740            /**
741             * Sets the asset entry finder.
742             *
743             * @param assetEntryFinder the asset entry finder
744             */
745            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
746                    this.assetEntryFinder = assetEntryFinder;
747            }
748    
749            /**
750             * Returns the asset link local service.
751             *
752             * @return the asset link local service
753             */
754            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
755                    return assetLinkLocalService;
756            }
757    
758            /**
759             * Sets the asset link local service.
760             *
761             * @param assetLinkLocalService the asset link local service
762             */
763            public void setAssetLinkLocalService(
764                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
765                    this.assetLinkLocalService = assetLinkLocalService;
766            }
767    
768            /**
769             * Returns the asset link persistence.
770             *
771             * @return the asset link persistence
772             */
773            public AssetLinkPersistence getAssetLinkPersistence() {
774                    return assetLinkPersistence;
775            }
776    
777            /**
778             * Sets the asset link persistence.
779             *
780             * @param assetLinkPersistence the asset link persistence
781             */
782            public void setAssetLinkPersistence(
783                    AssetLinkPersistence assetLinkPersistence) {
784                    this.assetLinkPersistence = assetLinkPersistence;
785            }
786    
787            /**
788             * Returns the expando row local service.
789             *
790             * @return the expando row local service
791             */
792            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
793                    return expandoRowLocalService;
794            }
795    
796            /**
797             * Sets the expando row local service.
798             *
799             * @param expandoRowLocalService the expando row local service
800             */
801            public void setExpandoRowLocalService(
802                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
803                    this.expandoRowLocalService = expandoRowLocalService;
804            }
805    
806            /**
807             * Returns the expando row persistence.
808             *
809             * @return the expando row persistence
810             */
811            public ExpandoRowPersistence getExpandoRowPersistence() {
812                    return expandoRowPersistence;
813            }
814    
815            /**
816             * Sets the expando row persistence.
817             *
818             * @param expandoRowPersistence the expando row persistence
819             */
820            public void setExpandoRowPersistence(
821                    ExpandoRowPersistence expandoRowPersistence) {
822                    this.expandoRowPersistence = expandoRowPersistence;
823            }
824    
825            /**
826             * Returns the ratings stats local service.
827             *
828             * @return the ratings stats local service
829             */
830            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
831                    return ratingsStatsLocalService;
832            }
833    
834            /**
835             * Sets the ratings stats local service.
836             *
837             * @param ratingsStatsLocalService the ratings stats local service
838             */
839            public void setRatingsStatsLocalService(
840                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
841                    this.ratingsStatsLocalService = ratingsStatsLocalService;
842            }
843    
844            /**
845             * Returns the ratings stats persistence.
846             *
847             * @return the ratings stats persistence
848             */
849            public RatingsStatsPersistence getRatingsStatsPersistence() {
850                    return ratingsStatsPersistence;
851            }
852    
853            /**
854             * Sets the ratings stats persistence.
855             *
856             * @param ratingsStatsPersistence the ratings stats persistence
857             */
858            public void setRatingsStatsPersistence(
859                    RatingsStatsPersistence ratingsStatsPersistence) {
860                    this.ratingsStatsPersistence = ratingsStatsPersistence;
861            }
862    
863            /**
864             * Returns the ratings stats finder.
865             *
866             * @return the ratings stats finder
867             */
868            public RatingsStatsFinder getRatingsStatsFinder() {
869                    return ratingsStatsFinder;
870            }
871    
872            /**
873             * Sets the ratings stats finder.
874             *
875             * @param ratingsStatsFinder the ratings stats finder
876             */
877            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
878                    this.ratingsStatsFinder = ratingsStatsFinder;
879            }
880    
881            /**
882             * Returns the trash entry local service.
883             *
884             * @return the trash entry local service
885             */
886            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
887                    return trashEntryLocalService;
888            }
889    
890            /**
891             * Sets the trash entry local service.
892             *
893             * @param trashEntryLocalService the trash entry local service
894             */
895            public void setTrashEntryLocalService(
896                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
897                    this.trashEntryLocalService = trashEntryLocalService;
898            }
899    
900            /**
901             * Returns the trash entry remote service.
902             *
903             * @return the trash entry remote service
904             */
905            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
906                    return trashEntryService;
907            }
908    
909            /**
910             * Sets the trash entry remote service.
911             *
912             * @param trashEntryService the trash entry remote service
913             */
914            public void setTrashEntryService(
915                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
916                    this.trashEntryService = trashEntryService;
917            }
918    
919            /**
920             * Returns the trash entry persistence.
921             *
922             * @return the trash entry persistence
923             */
924            public TrashEntryPersistence getTrashEntryPersistence() {
925                    return trashEntryPersistence;
926            }
927    
928            /**
929             * Sets the trash entry persistence.
930             *
931             * @param trashEntryPersistence the trash entry persistence
932             */
933            public void setTrashEntryPersistence(
934                    TrashEntryPersistence trashEntryPersistence) {
935                    this.trashEntryPersistence = trashEntryPersistence;
936            }
937    
938            /**
939             * Returns the blogs stats user local service.
940             *
941             * @return the blogs stats user local service
942             */
943            public com.liferay.portlet.blogs.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
944                    return blogsStatsUserLocalService;
945            }
946    
947            /**
948             * Sets the blogs stats user local service.
949             *
950             * @param blogsStatsUserLocalService the blogs stats user local service
951             */
952            public void setBlogsStatsUserLocalService(
953                    com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
954                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
955            }
956    
957            /**
958             * Returns the blogs stats user persistence.
959             *
960             * @return the blogs stats user persistence
961             */
962            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
963                    return blogsStatsUserPersistence;
964            }
965    
966            /**
967             * Sets the blogs stats user persistence.
968             *
969             * @param blogsStatsUserPersistence the blogs stats user persistence
970             */
971            public void setBlogsStatsUserPersistence(
972                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
973                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
974            }
975    
976            /**
977             * Returns the blogs stats user finder.
978             *
979             * @return the blogs stats user finder
980             */
981            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
982                    return blogsStatsUserFinder;
983            }
984    
985            /**
986             * Sets the blogs stats user finder.
987             *
988             * @param blogsStatsUserFinder the blogs stats user finder
989             */
990            public void setBlogsStatsUserFinder(
991                    BlogsStatsUserFinder blogsStatsUserFinder) {
992                    this.blogsStatsUserFinder = blogsStatsUserFinder;
993            }
994    
995            public void afterPropertiesSet() {
996            }
997    
998            public void destroy() {
999            }
1000    
1001            /**
1002             * Returns the OSGi service identifier.
1003             *
1004             * @return the OSGi service identifier
1005             */
1006            @Override
1007            public String getOSGiServiceIdentifier() {
1008                    return BlogsEntryService.class.getName();
1009            }
1010    
1011            protected Class<?> getModelClass() {
1012                    return BlogsEntry.class;
1013            }
1014    
1015            protected String getModelClassName() {
1016                    return BlogsEntry.class.getName();
1017            }
1018    
1019            /**
1020             * Performs a SQL query.
1021             *
1022             * @param sql the sql query
1023             */
1024            protected void runSQL(String sql) {
1025                    try {
1026                            DataSource dataSource = blogsEntryPersistence.getDataSource();
1027    
1028                            DB db = DBManagerUtil.getDB();
1029    
1030                            sql = db.buildSQL(sql);
1031                            sql = PortalUtil.transformSQL(sql);
1032    
1033                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1034                                            sql, new int[0]);
1035    
1036                            sqlUpdate.update();
1037                    }
1038                    catch (Exception e) {
1039                            throw new SystemException(e);
1040                    }
1041            }
1042    
1043            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
1044            protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
1045            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
1046            protected BlogsEntryService blogsEntryService;
1047            @BeanReference(type = BlogsEntryPersistence.class)
1048            protected BlogsEntryPersistence blogsEntryPersistence;
1049            @BeanReference(type = BlogsEntryFinder.class)
1050            protected BlogsEntryFinder blogsEntryFinder;
1051            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1052            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1053            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1054            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1055            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1056            protected com.liferay.portal.service.CompanyService companyService;
1057            @BeanReference(type = CompanyPersistence.class)
1058            protected CompanyPersistence companyPersistence;
1059            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1060            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1061            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1062            protected com.liferay.portal.service.GroupService groupService;
1063            @BeanReference(type = GroupPersistence.class)
1064            protected GroupPersistence groupPersistence;
1065            @BeanReference(type = GroupFinder.class)
1066            protected GroupFinder groupFinder;
1067            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1068            protected com.liferay.portal.service.ImageLocalService imageLocalService;
1069            @BeanReference(type = com.liferay.portal.service.ImageService.class)
1070            protected com.liferay.portal.service.ImageService imageService;
1071            @BeanReference(type = ImagePersistence.class)
1072            protected ImagePersistence imagePersistence;
1073            @BeanReference(type = com.liferay.portal.service.OrganizationLocalService.class)
1074            protected com.liferay.portal.service.OrganizationLocalService organizationLocalService;
1075            @BeanReference(type = com.liferay.portal.service.OrganizationService.class)
1076            protected com.liferay.portal.service.OrganizationService organizationService;
1077            @BeanReference(type = OrganizationPersistence.class)
1078            protected OrganizationPersistence organizationPersistence;
1079            @BeanReference(type = OrganizationFinder.class)
1080            protected OrganizationFinder organizationFinder;
1081            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1082            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1083            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1084            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1085            @BeanReference(type = PortletPreferencesPersistence.class)
1086            protected PortletPreferencesPersistence portletPreferencesPersistence;
1087            @BeanReference(type = PortletPreferencesFinder.class)
1088            protected PortletPreferencesFinder portletPreferencesFinder;
1089            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1090            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1091            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1092            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1093            @BeanReference(type = SubscriptionPersistence.class)
1094            protected SubscriptionPersistence subscriptionPersistence;
1095            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1096            protected com.liferay.portal.service.UserLocalService userLocalService;
1097            @BeanReference(type = com.liferay.portal.service.UserService.class)
1098            protected com.liferay.portal.service.UserService userService;
1099            @BeanReference(type = UserPersistence.class)
1100            protected UserPersistence userPersistence;
1101            @BeanReference(type = UserFinder.class)
1102            protected UserFinder userFinder;
1103            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1104            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1105            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1106            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1107            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1108            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1109            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1110            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1111            @BeanReference(type = AssetEntryPersistence.class)
1112            protected AssetEntryPersistence assetEntryPersistence;
1113            @BeanReference(type = AssetEntryFinder.class)
1114            protected AssetEntryFinder assetEntryFinder;
1115            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1116            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1117            @BeanReference(type = AssetLinkPersistence.class)
1118            protected AssetLinkPersistence assetLinkPersistence;
1119            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1120            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1121            @BeanReference(type = ExpandoRowPersistence.class)
1122            protected ExpandoRowPersistence expandoRowPersistence;
1123            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1124            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1125            @BeanReference(type = RatingsStatsPersistence.class)
1126            protected RatingsStatsPersistence ratingsStatsPersistence;
1127            @BeanReference(type = RatingsStatsFinder.class)
1128            protected RatingsStatsFinder ratingsStatsFinder;
1129            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1130            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1131            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1132            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1133            @BeanReference(type = TrashEntryPersistence.class)
1134            protected TrashEntryPersistence trashEntryPersistence;
1135            @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
1136            protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
1137            @BeanReference(type = BlogsStatsUserPersistence.class)
1138            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
1139            @BeanReference(type = BlogsStatsUserFinder.class)
1140            protected BlogsStatsUserFinder blogsStatsUserFinder;
1141    }