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