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