001
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
068 public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
069 implements RatingsEntryService {
070
075 public RatingsEntryLocalService getRatingsEntryLocalService() {
076 return ratingsEntryLocalService;
077 }
078
079
084 public void setRatingsEntryLocalService(
085 RatingsEntryLocalService ratingsEntryLocalService) {
086 this.ratingsEntryLocalService = ratingsEntryLocalService;
087 }
088
089
094 public RatingsEntryService getRatingsEntryService() {
095 return ratingsEntryService;
096 }
097
098
103 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
104 this.ratingsEntryService = ratingsEntryService;
105 }
106
107
112 public RatingsEntryPersistence getRatingsEntryPersistence() {
113 return ratingsEntryPersistence;
114 }
115
116
121 public void setRatingsEntryPersistence(
122 RatingsEntryPersistence ratingsEntryPersistence) {
123 this.ratingsEntryPersistence = ratingsEntryPersistence;
124 }
125
126
131 public RatingsEntryFinder getRatingsEntryFinder() {
132 return ratingsEntryFinder;
133 }
134
135
140 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
141 this.ratingsEntryFinder = ratingsEntryFinder;
142 }
143
144
149 public RatingsStatsLocalService getRatingsStatsLocalService() {
150 return ratingsStatsLocalService;
151 }
152
153
158 public void setRatingsStatsLocalService(
159 RatingsStatsLocalService ratingsStatsLocalService) {
160 this.ratingsStatsLocalService = ratingsStatsLocalService;
161 }
162
163
168 public RatingsStatsPersistence getRatingsStatsPersistence() {
169 return ratingsStatsPersistence;
170 }
171
172
177 public void setRatingsStatsPersistence(
178 RatingsStatsPersistence ratingsStatsPersistence) {
179 this.ratingsStatsPersistence = ratingsStatsPersistence;
180 }
181
182
187 public RatingsStatsFinder getRatingsStatsFinder() {
188 return ratingsStatsFinder;
189 }
190
191
196 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
197 this.ratingsStatsFinder = ratingsStatsFinder;
198 }
199
200
205 public CounterLocalService getCounterLocalService() {
206 return counterLocalService;
207 }
208
209
214 public void setCounterLocalService(CounterLocalService counterLocalService) {
215 this.counterLocalService = counterLocalService;
216 }
217
218
223 public ResourceLocalService getResourceLocalService() {
224 return resourceLocalService;
225 }
226
227
232 public void setResourceLocalService(
233 ResourceLocalService resourceLocalService) {
234 this.resourceLocalService = resourceLocalService;
235 }
236
237
242 public ResourceService getResourceService() {
243 return resourceService;
244 }
245
246
251 public void setResourceService(ResourceService resourceService) {
252 this.resourceService = resourceService;
253 }
254
255
260 public ResourcePersistence getResourcePersistence() {
261 return resourcePersistence;
262 }
263
264
269 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
270 this.resourcePersistence = resourcePersistence;
271 }
272
273
278 public ResourceFinder getResourceFinder() {
279 return resourceFinder;
280 }
281
282
287 public void setResourceFinder(ResourceFinder resourceFinder) {
288 this.resourceFinder = resourceFinder;
289 }
290
291
296 public UserLocalService getUserLocalService() {
297 return userLocalService;
298 }
299
300
305 public void setUserLocalService(UserLocalService userLocalService) {
306 this.userLocalService = userLocalService;
307 }
308
309
314 public UserService getUserService() {
315 return userService;
316 }
317
318
323 public void setUserService(UserService userService) {
324 this.userService = userService;
325 }
326
327
332 public UserPersistence getUserPersistence() {
333 return userPersistence;
334 }
335
336
341 public void setUserPersistence(UserPersistence userPersistence) {
342 this.userPersistence = userPersistence;
343 }
344
345
350 public UserFinder getUserFinder() {
351 return userFinder;
352 }
353
354
359 public void setUserFinder(UserFinder userFinder) {
360 this.userFinder = userFinder;
361 }
362
363
368 public BlogsEntryLocalService getBlogsEntryLocalService() {
369 return blogsEntryLocalService;
370 }
371
372
377 public void setBlogsEntryLocalService(
378 BlogsEntryLocalService blogsEntryLocalService) {
379 this.blogsEntryLocalService = blogsEntryLocalService;
380 }
381
382
387 public BlogsEntryService getBlogsEntryService() {
388 return blogsEntryService;
389 }
390
391
396 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
397 this.blogsEntryService = blogsEntryService;
398 }
399
400
405 public BlogsEntryPersistence getBlogsEntryPersistence() {
406 return blogsEntryPersistence;
407 }
408
409
414 public void setBlogsEntryPersistence(
415 BlogsEntryPersistence blogsEntryPersistence) {
416 this.blogsEntryPersistence = blogsEntryPersistence;
417 }
418
419
424 public BlogsEntryFinder getBlogsEntryFinder() {
425 return blogsEntryFinder;
426 }
427
428
433 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
434 this.blogsEntryFinder = blogsEntryFinder;
435 }
436
437
442 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
443 return blogsStatsUserLocalService;
444 }
445
446
451 public void setBlogsStatsUserLocalService(
452 BlogsStatsUserLocalService blogsStatsUserLocalService) {
453 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
454 }
455
456
461 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
462 return blogsStatsUserPersistence;
463 }
464
465
470 public void setBlogsStatsUserPersistence(
471 BlogsStatsUserPersistence blogsStatsUserPersistence) {
472 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
473 }
474
475
480 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
481 return blogsStatsUserFinder;
482 }
483
484
489 public void setBlogsStatsUserFinder(
490 BlogsStatsUserFinder blogsStatsUserFinder) {
491 this.blogsStatsUserFinder = blogsStatsUserFinder;
492 }
493
494
499 public SocialEquityLogLocalService getSocialEquityLogLocalService() {
500 return socialEquityLogLocalService;
501 }
502
503
508 public void setSocialEquityLogLocalService(
509 SocialEquityLogLocalService socialEquityLogLocalService) {
510 this.socialEquityLogLocalService = socialEquityLogLocalService;
511 }
512
513
518 public SocialEquityLogPersistence getSocialEquityLogPersistence() {
519 return socialEquityLogPersistence;
520 }
521
522
527 public void setSocialEquityLogPersistence(
528 SocialEquityLogPersistence socialEquityLogPersistence) {
529 this.socialEquityLogPersistence = socialEquityLogPersistence;
530 }
531
532
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 }