001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.ratings.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.exception.SystemException;
024    import com.liferay.portal.service.BaseServiceImpl;
025    import com.liferay.portal.service.ResourceLocalService;
026    import com.liferay.portal.service.ResourceService;
027    import com.liferay.portal.service.UserLocalService;
028    import com.liferay.portal.service.UserService;
029    import com.liferay.portal.service.persistence.ResourceFinder;
030    import com.liferay.portal.service.persistence.ResourcePersistence;
031    import com.liferay.portal.service.persistence.UserFinder;
032    import com.liferay.portal.service.persistence.UserPersistence;
033    
034    import com.liferay.portlet.asset.service.AssetEntryLocalService;
035    import com.liferay.portlet.asset.service.AssetEntryService;
036    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
037    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
038    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
039    import com.liferay.portlet.blogs.service.BlogsEntryService;
040    import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
041    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
042    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
043    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
044    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
045    import com.liferay.portlet.ratings.model.RatingsEntry;
046    import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
047    import com.liferay.portlet.ratings.service.RatingsEntryService;
048    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
049    import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
050    import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
051    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
052    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
053    import com.liferay.portlet.social.service.SocialActivityLocalService;
054    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
055    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
056    
057    import javax.sql.DataSource;
058    
059    /**
060     * The base implementation of the ratings entry remote service.
061     *
062     * <p>
063     * 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.ratings.service.impl.RatingsEntryServiceImpl}.
064     * </p>
065     *
066     * @author Brian Wing Shun Chan
067     * @see com.liferay.portlet.ratings.service.impl.RatingsEntryServiceImpl
068     * @see com.liferay.portlet.ratings.service.RatingsEntryServiceUtil
069     * @generated
070     */
071    public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
072            implements RatingsEntryService, IdentifiableBean {
073            /*
074             * NOTE FOR DEVELOPERS:
075             *
076             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.ratings.service.RatingsEntryServiceUtil} to access the ratings entry remote service.
077             */
078    
079            /**
080             * Returns the ratings entry local service.
081             *
082             * @return the ratings entry local service
083             */
084            public RatingsEntryLocalService getRatingsEntryLocalService() {
085                    return ratingsEntryLocalService;
086            }
087    
088            /**
089             * Sets the ratings entry local service.
090             *
091             * @param ratingsEntryLocalService the ratings entry local service
092             */
093            public void setRatingsEntryLocalService(
094                    RatingsEntryLocalService ratingsEntryLocalService) {
095                    this.ratingsEntryLocalService = ratingsEntryLocalService;
096            }
097    
098            /**
099             * Returns the ratings entry remote service.
100             *
101             * @return the ratings entry remote service
102             */
103            public RatingsEntryService getRatingsEntryService() {
104                    return ratingsEntryService;
105            }
106    
107            /**
108             * Sets the ratings entry remote service.
109             *
110             * @param ratingsEntryService the ratings entry remote service
111             */
112            public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
113                    this.ratingsEntryService = ratingsEntryService;
114            }
115    
116            /**
117             * Returns the ratings entry persistence.
118             *
119             * @return the ratings entry persistence
120             */
121            public RatingsEntryPersistence getRatingsEntryPersistence() {
122                    return ratingsEntryPersistence;
123            }
124    
125            /**
126             * Sets the ratings entry persistence.
127             *
128             * @param ratingsEntryPersistence the ratings entry persistence
129             */
130            public void setRatingsEntryPersistence(
131                    RatingsEntryPersistence ratingsEntryPersistence) {
132                    this.ratingsEntryPersistence = ratingsEntryPersistence;
133            }
134    
135            /**
136             * Returns the ratings entry finder.
137             *
138             * @return the ratings entry finder
139             */
140            public RatingsEntryFinder getRatingsEntryFinder() {
141                    return ratingsEntryFinder;
142            }
143    
144            /**
145             * Sets the ratings entry finder.
146             *
147             * @param ratingsEntryFinder the ratings entry finder
148             */
149            public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
150                    this.ratingsEntryFinder = ratingsEntryFinder;
151            }
152    
153            /**
154             * Returns the ratings stats local service.
155             *
156             * @return the ratings stats local service
157             */
158            public RatingsStatsLocalService getRatingsStatsLocalService() {
159                    return ratingsStatsLocalService;
160            }
161    
162            /**
163             * Sets the ratings stats local service.
164             *
165             * @param ratingsStatsLocalService the ratings stats local service
166             */
167            public void setRatingsStatsLocalService(
168                    RatingsStatsLocalService ratingsStatsLocalService) {
169                    this.ratingsStatsLocalService = ratingsStatsLocalService;
170            }
171    
172            /**
173             * Returns the ratings stats persistence.
174             *
175             * @return the ratings stats persistence
176             */
177            public RatingsStatsPersistence getRatingsStatsPersistence() {
178                    return ratingsStatsPersistence;
179            }
180    
181            /**
182             * Sets the ratings stats persistence.
183             *
184             * @param ratingsStatsPersistence the ratings stats persistence
185             */
186            public void setRatingsStatsPersistence(
187                    RatingsStatsPersistence ratingsStatsPersistence) {
188                    this.ratingsStatsPersistence = ratingsStatsPersistence;
189            }
190    
191            /**
192             * Returns the ratings stats finder.
193             *
194             * @return the ratings stats finder
195             */
196            public RatingsStatsFinder getRatingsStatsFinder() {
197                    return ratingsStatsFinder;
198            }
199    
200            /**
201             * Sets the ratings stats finder.
202             *
203             * @param ratingsStatsFinder the ratings stats finder
204             */
205            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
206                    this.ratingsStatsFinder = ratingsStatsFinder;
207            }
208    
209            /**
210             * Returns the counter local service.
211             *
212             * @return the counter local service
213             */
214            public CounterLocalService getCounterLocalService() {
215                    return counterLocalService;
216            }
217    
218            /**
219             * Sets the counter local service.
220             *
221             * @param counterLocalService the counter local service
222             */
223            public void setCounterLocalService(CounterLocalService counterLocalService) {
224                    this.counterLocalService = counterLocalService;
225            }
226    
227            /**
228             * Returns the resource local service.
229             *
230             * @return the resource local service
231             */
232            public ResourceLocalService getResourceLocalService() {
233                    return resourceLocalService;
234            }
235    
236            /**
237             * Sets the resource local service.
238             *
239             * @param resourceLocalService the resource local service
240             */
241            public void setResourceLocalService(
242                    ResourceLocalService resourceLocalService) {
243                    this.resourceLocalService = resourceLocalService;
244            }
245    
246            /**
247             * Returns the resource remote service.
248             *
249             * @return the resource remote service
250             */
251            public ResourceService getResourceService() {
252                    return resourceService;
253            }
254    
255            /**
256             * Sets the resource remote service.
257             *
258             * @param resourceService the resource remote service
259             */
260            public void setResourceService(ResourceService resourceService) {
261                    this.resourceService = resourceService;
262            }
263    
264            /**
265             * Returns the resource persistence.
266             *
267             * @return the resource persistence
268             */
269            public ResourcePersistence getResourcePersistence() {
270                    return resourcePersistence;
271            }
272    
273            /**
274             * Sets the resource persistence.
275             *
276             * @param resourcePersistence the resource persistence
277             */
278            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
279                    this.resourcePersistence = resourcePersistence;
280            }
281    
282            /**
283             * Returns the resource finder.
284             *
285             * @return the resource finder
286             */
287            public ResourceFinder getResourceFinder() {
288                    return resourceFinder;
289            }
290    
291            /**
292             * Sets the resource finder.
293             *
294             * @param resourceFinder the resource finder
295             */
296            public void setResourceFinder(ResourceFinder resourceFinder) {
297                    this.resourceFinder = resourceFinder;
298            }
299    
300            /**
301             * Returns the user local service.
302             *
303             * @return the user local service
304             */
305            public UserLocalService getUserLocalService() {
306                    return userLocalService;
307            }
308    
309            /**
310             * Sets the user local service.
311             *
312             * @param userLocalService the user local service
313             */
314            public void setUserLocalService(UserLocalService userLocalService) {
315                    this.userLocalService = userLocalService;
316            }
317    
318            /**
319             * Returns the user remote service.
320             *
321             * @return the user remote service
322             */
323            public UserService getUserService() {
324                    return userService;
325            }
326    
327            /**
328             * Sets the user remote service.
329             *
330             * @param userService the user remote service
331             */
332            public void setUserService(UserService userService) {
333                    this.userService = userService;
334            }
335    
336            /**
337             * Returns the user persistence.
338             *
339             * @return the user persistence
340             */
341            public UserPersistence getUserPersistence() {
342                    return userPersistence;
343            }
344    
345            /**
346             * Sets the user persistence.
347             *
348             * @param userPersistence the user persistence
349             */
350            public void setUserPersistence(UserPersistence userPersistence) {
351                    this.userPersistence = userPersistence;
352            }
353    
354            /**
355             * Returns the user finder.
356             *
357             * @return the user finder
358             */
359            public UserFinder getUserFinder() {
360                    return userFinder;
361            }
362    
363            /**
364             * Sets the user finder.
365             *
366             * @param userFinder the user finder
367             */
368            public void setUserFinder(UserFinder userFinder) {
369                    this.userFinder = userFinder;
370            }
371    
372            /**
373             * Returns the asset entry local service.
374             *
375             * @return the asset entry local service
376             */
377            public AssetEntryLocalService getAssetEntryLocalService() {
378                    return assetEntryLocalService;
379            }
380    
381            /**
382             * Sets the asset entry local service.
383             *
384             * @param assetEntryLocalService the asset entry local service
385             */
386            public void setAssetEntryLocalService(
387                    AssetEntryLocalService assetEntryLocalService) {
388                    this.assetEntryLocalService = assetEntryLocalService;
389            }
390    
391            /**
392             * Returns the asset entry remote service.
393             *
394             * @return the asset entry remote service
395             */
396            public AssetEntryService getAssetEntryService() {
397                    return assetEntryService;
398            }
399    
400            /**
401             * Sets the asset entry remote service.
402             *
403             * @param assetEntryService the asset entry remote service
404             */
405            public void setAssetEntryService(AssetEntryService assetEntryService) {
406                    this.assetEntryService = assetEntryService;
407            }
408    
409            /**
410             * Returns the asset entry persistence.
411             *
412             * @return the asset entry persistence
413             */
414            public AssetEntryPersistence getAssetEntryPersistence() {
415                    return assetEntryPersistence;
416            }
417    
418            /**
419             * Sets the asset entry persistence.
420             *
421             * @param assetEntryPersistence the asset entry persistence
422             */
423            public void setAssetEntryPersistence(
424                    AssetEntryPersistence assetEntryPersistence) {
425                    this.assetEntryPersistence = assetEntryPersistence;
426            }
427    
428            /**
429             * Returns the asset entry finder.
430             *
431             * @return the asset entry finder
432             */
433            public AssetEntryFinder getAssetEntryFinder() {
434                    return assetEntryFinder;
435            }
436    
437            /**
438             * Sets the asset entry finder.
439             *
440             * @param assetEntryFinder the asset entry finder
441             */
442            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
443                    this.assetEntryFinder = assetEntryFinder;
444            }
445    
446            /**
447             * Returns the blogs entry local service.
448             *
449             * @return the blogs entry local service
450             */
451            public BlogsEntryLocalService getBlogsEntryLocalService() {
452                    return blogsEntryLocalService;
453            }
454    
455            /**
456             * Sets the blogs entry local service.
457             *
458             * @param blogsEntryLocalService the blogs entry local service
459             */
460            public void setBlogsEntryLocalService(
461                    BlogsEntryLocalService blogsEntryLocalService) {
462                    this.blogsEntryLocalService = blogsEntryLocalService;
463            }
464    
465            /**
466             * Returns the blogs entry remote service.
467             *
468             * @return the blogs entry remote service
469             */
470            public BlogsEntryService getBlogsEntryService() {
471                    return blogsEntryService;
472            }
473    
474            /**
475             * Sets the blogs entry remote service.
476             *
477             * @param blogsEntryService the blogs entry remote service
478             */
479            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
480                    this.blogsEntryService = blogsEntryService;
481            }
482    
483            /**
484             * Returns the blogs entry persistence.
485             *
486             * @return the blogs entry persistence
487             */
488            public BlogsEntryPersistence getBlogsEntryPersistence() {
489                    return blogsEntryPersistence;
490            }
491    
492            /**
493             * Sets the blogs entry persistence.
494             *
495             * @param blogsEntryPersistence the blogs entry persistence
496             */
497            public void setBlogsEntryPersistence(
498                    BlogsEntryPersistence blogsEntryPersistence) {
499                    this.blogsEntryPersistence = blogsEntryPersistence;
500            }
501    
502            /**
503             * Returns the blogs entry finder.
504             *
505             * @return the blogs entry finder
506             */
507            public BlogsEntryFinder getBlogsEntryFinder() {
508                    return blogsEntryFinder;
509            }
510    
511            /**
512             * Sets the blogs entry finder.
513             *
514             * @param blogsEntryFinder the blogs entry finder
515             */
516            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
517                    this.blogsEntryFinder = blogsEntryFinder;
518            }
519    
520            /**
521             * Returns the blogs stats user local service.
522             *
523             * @return the blogs stats user local service
524             */
525            public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
526                    return blogsStatsUserLocalService;
527            }
528    
529            /**
530             * Sets the blogs stats user local service.
531             *
532             * @param blogsStatsUserLocalService the blogs stats user local service
533             */
534            public void setBlogsStatsUserLocalService(
535                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
536                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
537            }
538    
539            /**
540             * Returns the blogs stats user persistence.
541             *
542             * @return the blogs stats user persistence
543             */
544            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
545                    return blogsStatsUserPersistence;
546            }
547    
548            /**
549             * Sets the blogs stats user persistence.
550             *
551             * @param blogsStatsUserPersistence the blogs stats user persistence
552             */
553            public void setBlogsStatsUserPersistence(
554                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
555                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
556            }
557    
558            /**
559             * Returns the blogs stats user finder.
560             *
561             * @return the blogs stats user finder
562             */
563            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
564                    return blogsStatsUserFinder;
565            }
566    
567            /**
568             * Sets the blogs stats user finder.
569             *
570             * @param blogsStatsUserFinder the blogs stats user finder
571             */
572            public void setBlogsStatsUserFinder(
573                    BlogsStatsUserFinder blogsStatsUserFinder) {
574                    this.blogsStatsUserFinder = blogsStatsUserFinder;
575            }
576    
577            /**
578             * Returns the social activity local service.
579             *
580             * @return the social activity local service
581             */
582            public SocialActivityLocalService getSocialActivityLocalService() {
583                    return socialActivityLocalService;
584            }
585    
586            /**
587             * Sets the social activity local service.
588             *
589             * @param socialActivityLocalService the social activity local service
590             */
591            public void setSocialActivityLocalService(
592                    SocialActivityLocalService socialActivityLocalService) {
593                    this.socialActivityLocalService = socialActivityLocalService;
594            }
595    
596            /**
597             * Returns the social activity persistence.
598             *
599             * @return the social activity persistence
600             */
601            public SocialActivityPersistence getSocialActivityPersistence() {
602                    return socialActivityPersistence;
603            }
604    
605            /**
606             * Sets the social activity persistence.
607             *
608             * @param socialActivityPersistence the social activity persistence
609             */
610            public void setSocialActivityPersistence(
611                    SocialActivityPersistence socialActivityPersistence) {
612                    this.socialActivityPersistence = socialActivityPersistence;
613            }
614    
615            /**
616             * Returns the social activity finder.
617             *
618             * @return the social activity finder
619             */
620            public SocialActivityFinder getSocialActivityFinder() {
621                    return socialActivityFinder;
622            }
623    
624            /**
625             * Sets the social activity finder.
626             *
627             * @param socialActivityFinder the social activity finder
628             */
629            public void setSocialActivityFinder(
630                    SocialActivityFinder socialActivityFinder) {
631                    this.socialActivityFinder = socialActivityFinder;
632            }
633    
634            public void afterPropertiesSet() {
635            }
636    
637            public void destroy() {
638            }
639    
640            /**
641             * Returns the Spring bean ID for this bean.
642             *
643             * @return the Spring bean ID for this bean
644             */
645            public String getBeanIdentifier() {
646                    return _beanIdentifier;
647            }
648    
649            /**
650             * Sets the Spring bean ID for this bean.
651             *
652             * @param beanIdentifier the Spring bean ID for this bean
653             */
654            public void setBeanIdentifier(String beanIdentifier) {
655                    _beanIdentifier = beanIdentifier;
656            }
657    
658            protected Class<?> getModelClass() {
659                    return RatingsEntry.class;
660            }
661    
662            protected String getModelClassName() {
663                    return RatingsEntry.class.getName();
664            }
665    
666            /**
667             * Performs an SQL query.
668             *
669             * @param sql the sql query
670             */
671            protected void runSQL(String sql) throws SystemException {
672                    try {
673                            DataSource dataSource = ratingsEntryPersistence.getDataSource();
674    
675                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
676                                            sql, new int[0]);
677    
678                            sqlUpdate.update();
679                    }
680                    catch (Exception e) {
681                            throw new SystemException(e);
682                    }
683            }
684    
685            @BeanReference(type = RatingsEntryLocalService.class)
686            protected RatingsEntryLocalService ratingsEntryLocalService;
687            @BeanReference(type = RatingsEntryService.class)
688            protected RatingsEntryService ratingsEntryService;
689            @BeanReference(type = RatingsEntryPersistence.class)
690            protected RatingsEntryPersistence ratingsEntryPersistence;
691            @BeanReference(type = RatingsEntryFinder.class)
692            protected RatingsEntryFinder ratingsEntryFinder;
693            @BeanReference(type = RatingsStatsLocalService.class)
694            protected RatingsStatsLocalService ratingsStatsLocalService;
695            @BeanReference(type = RatingsStatsPersistence.class)
696            protected RatingsStatsPersistence ratingsStatsPersistence;
697            @BeanReference(type = RatingsStatsFinder.class)
698            protected RatingsStatsFinder ratingsStatsFinder;
699            @BeanReference(type = CounterLocalService.class)
700            protected CounterLocalService counterLocalService;
701            @BeanReference(type = ResourceLocalService.class)
702            protected ResourceLocalService resourceLocalService;
703            @BeanReference(type = ResourceService.class)
704            protected ResourceService resourceService;
705            @BeanReference(type = ResourcePersistence.class)
706            protected ResourcePersistence resourcePersistence;
707            @BeanReference(type = ResourceFinder.class)
708            protected ResourceFinder resourceFinder;
709            @BeanReference(type = UserLocalService.class)
710            protected UserLocalService userLocalService;
711            @BeanReference(type = UserService.class)
712            protected UserService userService;
713            @BeanReference(type = UserPersistence.class)
714            protected UserPersistence userPersistence;
715            @BeanReference(type = UserFinder.class)
716            protected UserFinder userFinder;
717            @BeanReference(type = AssetEntryLocalService.class)
718            protected AssetEntryLocalService assetEntryLocalService;
719            @BeanReference(type = AssetEntryService.class)
720            protected AssetEntryService assetEntryService;
721            @BeanReference(type = AssetEntryPersistence.class)
722            protected AssetEntryPersistence assetEntryPersistence;
723            @BeanReference(type = AssetEntryFinder.class)
724            protected AssetEntryFinder assetEntryFinder;
725            @BeanReference(type = BlogsEntryLocalService.class)
726            protected BlogsEntryLocalService blogsEntryLocalService;
727            @BeanReference(type = BlogsEntryService.class)
728            protected BlogsEntryService blogsEntryService;
729            @BeanReference(type = BlogsEntryPersistence.class)
730            protected BlogsEntryPersistence blogsEntryPersistence;
731            @BeanReference(type = BlogsEntryFinder.class)
732            protected BlogsEntryFinder blogsEntryFinder;
733            @BeanReference(type = BlogsStatsUserLocalService.class)
734            protected BlogsStatsUserLocalService blogsStatsUserLocalService;
735            @BeanReference(type = BlogsStatsUserPersistence.class)
736            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
737            @BeanReference(type = BlogsStatsUserFinder.class)
738            protected BlogsStatsUserFinder blogsStatsUserFinder;
739            @BeanReference(type = SocialActivityLocalService.class)
740            protected SocialActivityLocalService socialActivityLocalService;
741            @BeanReference(type = SocialActivityPersistence.class)
742            protected SocialActivityPersistence socialActivityPersistence;
743            @BeanReference(type = SocialActivityFinder.class)
744            protected SocialActivityFinder socialActivityFinder;
745            private String _beanIdentifier;
746    }