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.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023 import com.liferay.portal.kernel.exception.SystemException;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.ResourceLocalService;
026 import com.liferay.portal.service.ResourceService;
027 import com.liferay.portal.service.UserLocalService;
028 import com.liferay.portal.service.UserService;
029 import com.liferay.portal.service.persistence.ResourceFinder;
030 import com.liferay.portal.service.persistence.ResourcePersistence;
031 import com.liferay.portal.service.persistence.UserFinder;
032 import com.liferay.portal.service.persistence.UserPersistence;
033
034 import com.liferay.portlet.asset.service.AssetEntryLocalService;
035 import com.liferay.portlet.asset.service.AssetEntryService;
036 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
037 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
038 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
039 import com.liferay.portlet.blogs.service.BlogsEntryService;
040 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
041 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
042 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
043 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
044 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
045 import com.liferay.portlet.ratings.model.RatingsEntry;
046 import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
047 import com.liferay.portlet.ratings.service.RatingsEntryService;
048 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
049 import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
050 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
051 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
052 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
053 import com.liferay.portlet.social.service.SocialActivityLocalService;
054 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
055 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
056
057 import javax.sql.DataSource;
058
059
071 public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
072 implements RatingsEntryService, IdentifiableBean {
073
078
079
084 public RatingsEntryLocalService getRatingsEntryLocalService() {
085 return ratingsEntryLocalService;
086 }
087
088
093 public void setRatingsEntryLocalService(
094 RatingsEntryLocalService ratingsEntryLocalService) {
095 this.ratingsEntryLocalService = ratingsEntryLocalService;
096 }
097
098
103 public RatingsEntryService getRatingsEntryService() {
104 return ratingsEntryService;
105 }
106
107
112 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
113 this.ratingsEntryService = ratingsEntryService;
114 }
115
116
121 public RatingsEntryPersistence getRatingsEntryPersistence() {
122 return ratingsEntryPersistence;
123 }
124
125
130 public void setRatingsEntryPersistence(
131 RatingsEntryPersistence ratingsEntryPersistence) {
132 this.ratingsEntryPersistence = ratingsEntryPersistence;
133 }
134
135
140 public RatingsEntryFinder getRatingsEntryFinder() {
141 return ratingsEntryFinder;
142 }
143
144
149 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
150 this.ratingsEntryFinder = ratingsEntryFinder;
151 }
152
153
158 public RatingsStatsLocalService getRatingsStatsLocalService() {
159 return ratingsStatsLocalService;
160 }
161
162
167 public void setRatingsStatsLocalService(
168 RatingsStatsLocalService ratingsStatsLocalService) {
169 this.ratingsStatsLocalService = ratingsStatsLocalService;
170 }
171
172
177 public RatingsStatsPersistence getRatingsStatsPersistence() {
178 return ratingsStatsPersistence;
179 }
180
181
186 public void setRatingsStatsPersistence(
187 RatingsStatsPersistence ratingsStatsPersistence) {
188 this.ratingsStatsPersistence = ratingsStatsPersistence;
189 }
190
191
196 public RatingsStatsFinder getRatingsStatsFinder() {
197 return ratingsStatsFinder;
198 }
199
200
205 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
206 this.ratingsStatsFinder = ratingsStatsFinder;
207 }
208
209
214 public CounterLocalService getCounterLocalService() {
215 return counterLocalService;
216 }
217
218
223 public void setCounterLocalService(CounterLocalService counterLocalService) {
224 this.counterLocalService = counterLocalService;
225 }
226
227
232 public ResourceLocalService getResourceLocalService() {
233 return resourceLocalService;
234 }
235
236
241 public void setResourceLocalService(
242 ResourceLocalService resourceLocalService) {
243 this.resourceLocalService = resourceLocalService;
244 }
245
246
251 public ResourceService getResourceService() {
252 return resourceService;
253 }
254
255
260 public void setResourceService(ResourceService resourceService) {
261 this.resourceService = resourceService;
262 }
263
264
269 public ResourcePersistence getResourcePersistence() {
270 return resourcePersistence;
271 }
272
273
278 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
279 this.resourcePersistence = resourcePersistence;
280 }
281
282
287 public ResourceFinder getResourceFinder() {
288 return resourceFinder;
289 }
290
291
296 public void setResourceFinder(ResourceFinder resourceFinder) {
297 this.resourceFinder = resourceFinder;
298 }
299
300
305 public UserLocalService getUserLocalService() {
306 return userLocalService;
307 }
308
309
314 public void setUserLocalService(UserLocalService userLocalService) {
315 this.userLocalService = userLocalService;
316 }
317
318
323 public UserService getUserService() {
324 return userService;
325 }
326
327
332 public void setUserService(UserService userService) {
333 this.userService = userService;
334 }
335
336
341 public UserPersistence getUserPersistence() {
342 return userPersistence;
343 }
344
345
350 public void setUserPersistence(UserPersistence userPersistence) {
351 this.userPersistence = userPersistence;
352 }
353
354
359 public UserFinder getUserFinder() {
360 return userFinder;
361 }
362
363
368 public void setUserFinder(UserFinder userFinder) {
369 this.userFinder = userFinder;
370 }
371
372
377 public AssetEntryLocalService getAssetEntryLocalService() {
378 return assetEntryLocalService;
379 }
380
381
386 public void setAssetEntryLocalService(
387 AssetEntryLocalService assetEntryLocalService) {
388 this.assetEntryLocalService = assetEntryLocalService;
389 }
390
391
396 public AssetEntryService getAssetEntryService() {
397 return assetEntryService;
398 }
399
400
405 public void setAssetEntryService(AssetEntryService assetEntryService) {
406 this.assetEntryService = assetEntryService;
407 }
408
409
414 public AssetEntryPersistence getAssetEntryPersistence() {
415 return assetEntryPersistence;
416 }
417
418
423 public void setAssetEntryPersistence(
424 AssetEntryPersistence assetEntryPersistence) {
425 this.assetEntryPersistence = assetEntryPersistence;
426 }
427
428
433 public AssetEntryFinder getAssetEntryFinder() {
434 return assetEntryFinder;
435 }
436
437
442 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
443 this.assetEntryFinder = assetEntryFinder;
444 }
445
446
451 public BlogsEntryLocalService getBlogsEntryLocalService() {
452 return blogsEntryLocalService;
453 }
454
455
460 public void setBlogsEntryLocalService(
461 BlogsEntryLocalService blogsEntryLocalService) {
462 this.blogsEntryLocalService = blogsEntryLocalService;
463 }
464
465
470 public BlogsEntryService getBlogsEntryService() {
471 return blogsEntryService;
472 }
473
474
479 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
480 this.blogsEntryService = blogsEntryService;
481 }
482
483
488 public BlogsEntryPersistence getBlogsEntryPersistence() {
489 return blogsEntryPersistence;
490 }
491
492
497 public void setBlogsEntryPersistence(
498 BlogsEntryPersistence blogsEntryPersistence) {
499 this.blogsEntryPersistence = blogsEntryPersistence;
500 }
501
502
507 public BlogsEntryFinder getBlogsEntryFinder() {
508 return blogsEntryFinder;
509 }
510
511
516 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
517 this.blogsEntryFinder = blogsEntryFinder;
518 }
519
520
525 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
526 return blogsStatsUserLocalService;
527 }
528
529
534 public void setBlogsStatsUserLocalService(
535 BlogsStatsUserLocalService blogsStatsUserLocalService) {
536 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
537 }
538
539
544 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
545 return blogsStatsUserPersistence;
546 }
547
548
553 public void setBlogsStatsUserPersistence(
554 BlogsStatsUserPersistence blogsStatsUserPersistence) {
555 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
556 }
557
558
563 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
564 return blogsStatsUserFinder;
565 }
566
567
572 public void setBlogsStatsUserFinder(
573 BlogsStatsUserFinder blogsStatsUserFinder) {
574 this.blogsStatsUserFinder = blogsStatsUserFinder;
575 }
576
577
582 public SocialActivityLocalService getSocialActivityLocalService() {
583 return socialActivityLocalService;
584 }
585
586
591 public void setSocialActivityLocalService(
592 SocialActivityLocalService socialActivityLocalService) {
593 this.socialActivityLocalService = socialActivityLocalService;
594 }
595
596
601 public SocialActivityPersistence getSocialActivityPersistence() {
602 return socialActivityPersistence;
603 }
604
605
610 public void setSocialActivityPersistence(
611 SocialActivityPersistence socialActivityPersistence) {
612 this.socialActivityPersistence = socialActivityPersistence;
613 }
614
615
620 public SocialActivityFinder getSocialActivityFinder() {
621 return socialActivityFinder;
622 }
623
624
629 public void setSocialActivityFinder(
630 SocialActivityFinder socialActivityFinder) {
631 this.socialActivityFinder = socialActivityFinder;
632 }
633
634 public void afterPropertiesSet() {
635 }
636
637 public void destroy() {
638 }
639
640
645 public String getBeanIdentifier() {
646 return _beanIdentifier;
647 }
648
649
654 public void setBeanIdentifier(String beanIdentifier) {
655 _beanIdentifier = beanIdentifier;
656 }
657
658 protected Class<?> getModelClass() {
659 return RatingsEntry.class;
660 }
661
662 protected String getModelClassName() {
663 return RatingsEntry.class.getName();
664 }
665
666
671 protected void runSQL(String sql) throws SystemException {
672 try {
673 DataSource dataSource = ratingsEntryPersistence.getDataSource();
674
675 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
676 sql, new int[0]);
677
678 sqlUpdate.update();
679 }
680 catch (Exception e) {
681 throw new SystemException(e);
682 }
683 }
684
685 @BeanReference(type = RatingsEntryLocalService.class)
686 protected RatingsEntryLocalService ratingsEntryLocalService;
687 @BeanReference(type = RatingsEntryService.class)
688 protected RatingsEntryService ratingsEntryService;
689 @BeanReference(type = RatingsEntryPersistence.class)
690 protected RatingsEntryPersistence ratingsEntryPersistence;
691 @BeanReference(type = RatingsEntryFinder.class)
692 protected RatingsEntryFinder ratingsEntryFinder;
693 @BeanReference(type = RatingsStatsLocalService.class)
694 protected RatingsStatsLocalService ratingsStatsLocalService;
695 @BeanReference(type = RatingsStatsPersistence.class)
696 protected RatingsStatsPersistence ratingsStatsPersistence;
697 @BeanReference(type = RatingsStatsFinder.class)
698 protected RatingsStatsFinder ratingsStatsFinder;
699 @BeanReference(type = CounterLocalService.class)
700 protected CounterLocalService counterLocalService;
701 @BeanReference(type = ResourceLocalService.class)
702 protected ResourceLocalService resourceLocalService;
703 @BeanReference(type = ResourceService.class)
704 protected ResourceService resourceService;
705 @BeanReference(type = ResourcePersistence.class)
706 protected ResourcePersistence resourcePersistence;
707 @BeanReference(type = ResourceFinder.class)
708 protected ResourceFinder resourceFinder;
709 @BeanReference(type = UserLocalService.class)
710 protected UserLocalService userLocalService;
711 @BeanReference(type = UserService.class)
712 protected UserService userService;
713 @BeanReference(type = UserPersistence.class)
714 protected UserPersistence userPersistence;
715 @BeanReference(type = UserFinder.class)
716 protected UserFinder userFinder;
717 @BeanReference(type = AssetEntryLocalService.class)
718 protected AssetEntryLocalService assetEntryLocalService;
719 @BeanReference(type = AssetEntryService.class)
720 protected AssetEntryService assetEntryService;
721 @BeanReference(type = AssetEntryPersistence.class)
722 protected AssetEntryPersistence assetEntryPersistence;
723 @BeanReference(type = AssetEntryFinder.class)
724 protected AssetEntryFinder assetEntryFinder;
725 @BeanReference(type = BlogsEntryLocalService.class)
726 protected BlogsEntryLocalService blogsEntryLocalService;
727 @BeanReference(type = BlogsEntryService.class)
728 protected BlogsEntryService blogsEntryService;
729 @BeanReference(type = BlogsEntryPersistence.class)
730 protected BlogsEntryPersistence blogsEntryPersistence;
731 @BeanReference(type = BlogsEntryFinder.class)
732 protected BlogsEntryFinder blogsEntryFinder;
733 @BeanReference(type = BlogsStatsUserLocalService.class)
734 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
735 @BeanReference(type = BlogsStatsUserPersistence.class)
736 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
737 @BeanReference(type = BlogsStatsUserFinder.class)
738 protected BlogsStatsUserFinder blogsStatsUserFinder;
739 @BeanReference(type = SocialActivityLocalService.class)
740 protected SocialActivityLocalService socialActivityLocalService;
741 @BeanReference(type = SocialActivityPersistence.class)
742 protected SocialActivityPersistence socialActivityPersistence;
743 @BeanReference(type = SocialActivityFinder.class)
744 protected SocialActivityFinder socialActivityFinder;
745 private String _beanIdentifier;
746 }