001    /**
002     * Copyright (c) 2000-2010 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.annotation.BeanReference;
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.service.ResourceLocalService;
024    import com.liferay.portal.service.ResourceService;
025    import com.liferay.portal.service.UserLocalService;
026    import com.liferay.portal.service.UserService;
027    import com.liferay.portal.service.base.PrincipalBean;
028    import com.liferay.portal.service.persistence.ResourceFinder;
029    import com.liferay.portal.service.persistence.ResourcePersistence;
030    import com.liferay.portal.service.persistence.UserFinder;
031    import com.liferay.portal.service.persistence.UserPersistence;
032    
033    import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
034    import com.liferay.portlet.blogs.service.BlogsEntryService;
035    import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
036    import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
037    import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
038    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
039    import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
040    import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
041    import com.liferay.portlet.ratings.service.RatingsEntryService;
042    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
043    import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
044    import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
045    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
046    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
047    import com.liferay.portlet.social.service.SocialEquityLogLocalService;
048    import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
049    
050    import javax.sql.DataSource;
051    
052    /**
053     * The base implementation of the ratings entry remote service.
054     *
055     * <p>
056     * 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}.
057     * </p>
058     *
059     * <p>
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     * </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 PrincipalBean
069            implements RatingsEntryService {
070            /**
071             * Gets the ratings entry local service.
072             *
073             * @return the ratings entry local service
074             */
075            public RatingsEntryLocalService getRatingsEntryLocalService() {
076                    return ratingsEntryLocalService;
077            }
078    
079            /**
080             * Sets the ratings entry local service.
081             *
082             * @param ratingsEntryLocalService the ratings entry local service
083             */
084            public void setRatingsEntryLocalService(
085                    RatingsEntryLocalService ratingsEntryLocalService) {
086                    this.ratingsEntryLocalService = ratingsEntryLocalService;
087            }
088    
089            /**
090             * Gets the ratings entry remote service.
091             *
092             * @return the ratings entry remote service
093             */
094            public RatingsEntryService getRatingsEntryService() {
095                    return ratingsEntryService;
096            }
097    
098            /**
099             * Sets the ratings entry remote service.
100             *
101             * @param ratingsEntryService the ratings entry remote service
102             */
103            public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
104                    this.ratingsEntryService = ratingsEntryService;
105            }
106    
107            /**
108             * Gets the ratings entry persistence.
109             *
110             * @return the ratings entry persistence
111             */
112            public RatingsEntryPersistence getRatingsEntryPersistence() {
113                    return ratingsEntryPersistence;
114            }
115    
116            /**
117             * Sets the ratings entry persistence.
118             *
119             * @param ratingsEntryPersistence the ratings entry persistence
120             */
121            public void setRatingsEntryPersistence(
122                    RatingsEntryPersistence ratingsEntryPersistence) {
123                    this.ratingsEntryPersistence = ratingsEntryPersistence;
124            }
125    
126            /**
127             * Gets the ratings entry finder.
128             *
129             * @return the ratings entry finder
130             */
131            public RatingsEntryFinder getRatingsEntryFinder() {
132                    return ratingsEntryFinder;
133            }
134    
135            /**
136             * Sets the ratings entry finder.
137             *
138             * @param ratingsEntryFinder the ratings entry finder
139             */
140            public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
141                    this.ratingsEntryFinder = ratingsEntryFinder;
142            }
143    
144            /**
145             * Gets the ratings stats local service.
146             *
147             * @return the ratings stats local service
148             */
149            public RatingsStatsLocalService getRatingsStatsLocalService() {
150                    return ratingsStatsLocalService;
151            }
152    
153            /**
154             * Sets the ratings stats local service.
155             *
156             * @param ratingsStatsLocalService the ratings stats local service
157             */
158            public void setRatingsStatsLocalService(
159                    RatingsStatsLocalService ratingsStatsLocalService) {
160                    this.ratingsStatsLocalService = ratingsStatsLocalService;
161            }
162    
163            /**
164             * Gets the ratings stats persistence.
165             *
166             * @return the ratings stats persistence
167             */
168            public RatingsStatsPersistence getRatingsStatsPersistence() {
169                    return ratingsStatsPersistence;
170            }
171    
172            /**
173             * Sets the ratings stats persistence.
174             *
175             * @param ratingsStatsPersistence the ratings stats persistence
176             */
177            public void setRatingsStatsPersistence(
178                    RatingsStatsPersistence ratingsStatsPersistence) {
179                    this.ratingsStatsPersistence = ratingsStatsPersistence;
180            }
181    
182            /**
183             * Gets the ratings stats finder.
184             *
185             * @return the ratings stats finder
186             */
187            public RatingsStatsFinder getRatingsStatsFinder() {
188                    return ratingsStatsFinder;
189            }
190    
191            /**
192             * Sets the ratings stats finder.
193             *
194             * @param ratingsStatsFinder the ratings stats finder
195             */
196            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
197                    this.ratingsStatsFinder = ratingsStatsFinder;
198            }
199    
200            /**
201             * Gets the counter local service.
202             *
203             * @return the counter local service
204             */
205            public CounterLocalService getCounterLocalService() {
206                    return counterLocalService;
207            }
208    
209            /**
210             * Sets the counter local service.
211             *
212             * @param counterLocalService the counter local service
213             */
214            public void setCounterLocalService(CounterLocalService counterLocalService) {
215                    this.counterLocalService = counterLocalService;
216            }
217    
218            /**
219             * Gets the resource local service.
220             *
221             * @return the resource local service
222             */
223            public ResourceLocalService getResourceLocalService() {
224                    return resourceLocalService;
225            }
226    
227            /**
228             * Sets the resource local service.
229             *
230             * @param resourceLocalService the resource local service
231             */
232            public void setResourceLocalService(
233                    ResourceLocalService resourceLocalService) {
234                    this.resourceLocalService = resourceLocalService;
235            }
236    
237            /**
238             * Gets the resource remote service.
239             *
240             * @return the resource remote service
241             */
242            public ResourceService getResourceService() {
243                    return resourceService;
244            }
245    
246            /**
247             * Sets the resource remote service.
248             *
249             * @param resourceService the resource remote service
250             */
251            public void setResourceService(ResourceService resourceService) {
252                    this.resourceService = resourceService;
253            }
254    
255            /**
256             * Gets the resource persistence.
257             *
258             * @return the resource persistence
259             */
260            public ResourcePersistence getResourcePersistence() {
261                    return resourcePersistence;
262            }
263    
264            /**
265             * Sets the resource persistence.
266             *
267             * @param resourcePersistence the resource persistence
268             */
269            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
270                    this.resourcePersistence = resourcePersistence;
271            }
272    
273            /**
274             * Gets the resource finder.
275             *
276             * @return the resource finder
277             */
278            public ResourceFinder getResourceFinder() {
279                    return resourceFinder;
280            }
281    
282            /**
283             * Sets the resource finder.
284             *
285             * @param resourceFinder the resource finder
286             */
287            public void setResourceFinder(ResourceFinder resourceFinder) {
288                    this.resourceFinder = resourceFinder;
289            }
290    
291            /**
292             * Gets the user local service.
293             *
294             * @return the user local service
295             */
296            public UserLocalService getUserLocalService() {
297                    return userLocalService;
298            }
299    
300            /**
301             * Sets the user local service.
302             *
303             * @param userLocalService the user local service
304             */
305            public void setUserLocalService(UserLocalService userLocalService) {
306                    this.userLocalService = userLocalService;
307            }
308    
309            /**
310             * Gets the user remote service.
311             *
312             * @return the user remote service
313             */
314            public UserService getUserService() {
315                    return userService;
316            }
317    
318            /**
319             * Sets the user remote service.
320             *
321             * @param userService the user remote service
322             */
323            public void setUserService(UserService userService) {
324                    this.userService = userService;
325            }
326    
327            /**
328             * Gets the user persistence.
329             *
330             * @return the user persistence
331             */
332            public UserPersistence getUserPersistence() {
333                    return userPersistence;
334            }
335    
336            /**
337             * Sets the user persistence.
338             *
339             * @param userPersistence the user persistence
340             */
341            public void setUserPersistence(UserPersistence userPersistence) {
342                    this.userPersistence = userPersistence;
343            }
344    
345            /**
346             * Gets the user finder.
347             *
348             * @return the user finder
349             */
350            public UserFinder getUserFinder() {
351                    return userFinder;
352            }
353    
354            /**
355             * Sets the user finder.
356             *
357             * @param userFinder the user finder
358             */
359            public void setUserFinder(UserFinder userFinder) {
360                    this.userFinder = userFinder;
361            }
362    
363            /**
364             * Gets the blogs entry local service.
365             *
366             * @return the blogs entry local service
367             */
368            public BlogsEntryLocalService getBlogsEntryLocalService() {
369                    return blogsEntryLocalService;
370            }
371    
372            /**
373             * Sets the blogs entry local service.
374             *
375             * @param blogsEntryLocalService the blogs entry local service
376             */
377            public void setBlogsEntryLocalService(
378                    BlogsEntryLocalService blogsEntryLocalService) {
379                    this.blogsEntryLocalService = blogsEntryLocalService;
380            }
381    
382            /**
383             * Gets the blogs entry remote service.
384             *
385             * @return the blogs entry remote service
386             */
387            public BlogsEntryService getBlogsEntryService() {
388                    return blogsEntryService;
389            }
390    
391            /**
392             * Sets the blogs entry remote service.
393             *
394             * @param blogsEntryService the blogs entry remote service
395             */
396            public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
397                    this.blogsEntryService = blogsEntryService;
398            }
399    
400            /**
401             * Gets the blogs entry persistence.
402             *
403             * @return the blogs entry persistence
404             */
405            public BlogsEntryPersistence getBlogsEntryPersistence() {
406                    return blogsEntryPersistence;
407            }
408    
409            /**
410             * Sets the blogs entry persistence.
411             *
412             * @param blogsEntryPersistence the blogs entry persistence
413             */
414            public void setBlogsEntryPersistence(
415                    BlogsEntryPersistence blogsEntryPersistence) {
416                    this.blogsEntryPersistence = blogsEntryPersistence;
417            }
418    
419            /**
420             * Gets the blogs entry finder.
421             *
422             * @return the blogs entry finder
423             */
424            public BlogsEntryFinder getBlogsEntryFinder() {
425                    return blogsEntryFinder;
426            }
427    
428            /**
429             * Sets the blogs entry finder.
430             *
431             * @param blogsEntryFinder the blogs entry finder
432             */
433            public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
434                    this.blogsEntryFinder = blogsEntryFinder;
435            }
436    
437            /**
438             * Gets the blogs stats user local service.
439             *
440             * @return the blogs stats user local service
441             */
442            public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
443                    return blogsStatsUserLocalService;
444            }
445    
446            /**
447             * Sets the blogs stats user local service.
448             *
449             * @param blogsStatsUserLocalService the blogs stats user local service
450             */
451            public void setBlogsStatsUserLocalService(
452                    BlogsStatsUserLocalService blogsStatsUserLocalService) {
453                    this.blogsStatsUserLocalService = blogsStatsUserLocalService;
454            }
455    
456            /**
457             * Gets the blogs stats user persistence.
458             *
459             * @return the blogs stats user persistence
460             */
461            public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
462                    return blogsStatsUserPersistence;
463            }
464    
465            /**
466             * Sets the blogs stats user persistence.
467             *
468             * @param blogsStatsUserPersistence the blogs stats user persistence
469             */
470            public void setBlogsStatsUserPersistence(
471                    BlogsStatsUserPersistence blogsStatsUserPersistence) {
472                    this.blogsStatsUserPersistence = blogsStatsUserPersistence;
473            }
474    
475            /**
476             * Gets the blogs stats user finder.
477             *
478             * @return the blogs stats user finder
479             */
480            public BlogsStatsUserFinder getBlogsStatsUserFinder() {
481                    return blogsStatsUserFinder;
482            }
483    
484            /**
485             * Sets the blogs stats user finder.
486             *
487             * @param blogsStatsUserFinder the blogs stats user finder
488             */
489            public void setBlogsStatsUserFinder(
490                    BlogsStatsUserFinder blogsStatsUserFinder) {
491                    this.blogsStatsUserFinder = blogsStatsUserFinder;
492            }
493    
494            /**
495             * Gets the social equity log local service.
496             *
497             * @return the social equity log local service
498             */
499            public SocialEquityLogLocalService getSocialEquityLogLocalService() {
500                    return socialEquityLogLocalService;
501            }
502    
503            /**
504             * Sets the social equity log local service.
505             *
506             * @param socialEquityLogLocalService the social equity log local service
507             */
508            public void setSocialEquityLogLocalService(
509                    SocialEquityLogLocalService socialEquityLogLocalService) {
510                    this.socialEquityLogLocalService = socialEquityLogLocalService;
511            }
512    
513            /**
514             * Gets the social equity log persistence.
515             *
516             * @return the social equity log persistence
517             */
518            public SocialEquityLogPersistence getSocialEquityLogPersistence() {
519                    return socialEquityLogPersistence;
520            }
521    
522            /**
523             * Sets the social equity log persistence.
524             *
525             * @param socialEquityLogPersistence the social equity log persistence
526             */
527            public void setSocialEquityLogPersistence(
528                    SocialEquityLogPersistence socialEquityLogPersistence) {
529                    this.socialEquityLogPersistence = socialEquityLogPersistence;
530            }
531    
532            /**
533             * Performs an SQL query.
534             *
535             * @param sql the sql query to perform
536             */
537            protected void runSQL(String sql) throws SystemException {
538                    try {
539                            DataSource dataSource = ratingsEntryPersistence.getDataSource();
540    
541                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
542                                            sql, new int[0]);
543    
544                            sqlUpdate.update();
545                    }
546                    catch (Exception e) {
547                            throw new SystemException(e);
548                    }
549            }
550    
551            @BeanReference(type = RatingsEntryLocalService.class)
552            protected RatingsEntryLocalService ratingsEntryLocalService;
553            @BeanReference(type = RatingsEntryService.class)
554            protected RatingsEntryService ratingsEntryService;
555            @BeanReference(type = RatingsEntryPersistence.class)
556            protected RatingsEntryPersistence ratingsEntryPersistence;
557            @BeanReference(type = RatingsEntryFinder.class)
558            protected RatingsEntryFinder ratingsEntryFinder;
559            @BeanReference(type = RatingsStatsLocalService.class)
560            protected RatingsStatsLocalService ratingsStatsLocalService;
561            @BeanReference(type = RatingsStatsPersistence.class)
562            protected RatingsStatsPersistence ratingsStatsPersistence;
563            @BeanReference(type = RatingsStatsFinder.class)
564            protected RatingsStatsFinder ratingsStatsFinder;
565            @BeanReference(type = CounterLocalService.class)
566            protected CounterLocalService counterLocalService;
567            @BeanReference(type = ResourceLocalService.class)
568            protected ResourceLocalService resourceLocalService;
569            @BeanReference(type = ResourceService.class)
570            protected ResourceService resourceService;
571            @BeanReference(type = ResourcePersistence.class)
572            protected ResourcePersistence resourcePersistence;
573            @BeanReference(type = ResourceFinder.class)
574            protected ResourceFinder resourceFinder;
575            @BeanReference(type = UserLocalService.class)
576            protected UserLocalService userLocalService;
577            @BeanReference(type = UserService.class)
578            protected UserService userService;
579            @BeanReference(type = UserPersistence.class)
580            protected UserPersistence userPersistence;
581            @BeanReference(type = UserFinder.class)
582            protected UserFinder userFinder;
583            @BeanReference(type = BlogsEntryLocalService.class)
584            protected BlogsEntryLocalService blogsEntryLocalService;
585            @BeanReference(type = BlogsEntryService.class)
586            protected BlogsEntryService blogsEntryService;
587            @BeanReference(type = BlogsEntryPersistence.class)
588            protected BlogsEntryPersistence blogsEntryPersistence;
589            @BeanReference(type = BlogsEntryFinder.class)
590            protected BlogsEntryFinder blogsEntryFinder;
591            @BeanReference(type = BlogsStatsUserLocalService.class)
592            protected BlogsStatsUserLocalService blogsStatsUserLocalService;
593            @BeanReference(type = BlogsStatsUserPersistence.class)
594            protected BlogsStatsUserPersistence blogsStatsUserPersistence;
595            @BeanReference(type = BlogsStatsUserFinder.class)
596            protected BlogsStatsUserFinder blogsStatsUserFinder;
597            @BeanReference(type = SocialEquityLogLocalService.class)
598            protected SocialEquityLogLocalService socialEquityLogLocalService;
599            @BeanReference(type = SocialEquityLogPersistence.class)
600            protected SocialEquityLogPersistence socialEquityLogPersistence;
601    }