001
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.db.DB;
020 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
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.persistence.ClassNamePersistence;
026 import com.liferay.portal.service.persistence.UserFinder;
027 import com.liferay.portal.service.persistence.UserPersistence;
028 import com.liferay.portal.util.PortalUtil;
029
030 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
031 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
032 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
033 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
034 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
035 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
036 import com.liferay.portlet.ratings.model.RatingsEntry;
037 import com.liferay.portlet.ratings.service.RatingsEntryService;
038 import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
039 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
040 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
041 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
042 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
043 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
044
045 import javax.sql.DataSource;
046
047
059 public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
060 implements RatingsEntryService, IdentifiableBean {
061
066
067
072 public com.liferay.portlet.ratings.service.RatingsEntryLocalService getRatingsEntryLocalService() {
073 return ratingsEntryLocalService;
074 }
075
076
081 public void setRatingsEntryLocalService(
082 com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService) {
083 this.ratingsEntryLocalService = ratingsEntryLocalService;
084 }
085
086
091 public com.liferay.portlet.ratings.service.RatingsEntryService getRatingsEntryService() {
092 return ratingsEntryService;
093 }
094
095
100 public void setRatingsEntryService(
101 com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService) {
102 this.ratingsEntryService = ratingsEntryService;
103 }
104
105
110 public RatingsEntryPersistence getRatingsEntryPersistence() {
111 return ratingsEntryPersistence;
112 }
113
114
119 public void setRatingsEntryPersistence(
120 RatingsEntryPersistence ratingsEntryPersistence) {
121 this.ratingsEntryPersistence = ratingsEntryPersistence;
122 }
123
124
129 public RatingsEntryFinder getRatingsEntryFinder() {
130 return ratingsEntryFinder;
131 }
132
133
138 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
139 this.ratingsEntryFinder = ratingsEntryFinder;
140 }
141
142
147 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
148 return ratingsStatsLocalService;
149 }
150
151
156 public void setRatingsStatsLocalService(
157 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
158 this.ratingsStatsLocalService = ratingsStatsLocalService;
159 }
160
161
166 public RatingsStatsPersistence getRatingsStatsPersistence() {
167 return ratingsStatsPersistence;
168 }
169
170
175 public void setRatingsStatsPersistence(
176 RatingsStatsPersistence ratingsStatsPersistence) {
177 this.ratingsStatsPersistence = ratingsStatsPersistence;
178 }
179
180
185 public RatingsStatsFinder getRatingsStatsFinder() {
186 return ratingsStatsFinder;
187 }
188
189
194 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
195 this.ratingsStatsFinder = ratingsStatsFinder;
196 }
197
198
203 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
204 return counterLocalService;
205 }
206
207
212 public void setCounterLocalService(
213 com.liferay.counter.service.CounterLocalService counterLocalService) {
214 this.counterLocalService = counterLocalService;
215 }
216
217
222 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
223 return classNameLocalService;
224 }
225
226
231 public void setClassNameLocalService(
232 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
233 this.classNameLocalService = classNameLocalService;
234 }
235
236
241 public com.liferay.portal.service.ClassNameService getClassNameService() {
242 return classNameService;
243 }
244
245
250 public void setClassNameService(
251 com.liferay.portal.service.ClassNameService classNameService) {
252 this.classNameService = classNameService;
253 }
254
255
260 public ClassNamePersistence getClassNamePersistence() {
261 return classNamePersistence;
262 }
263
264
269 public void setClassNamePersistence(
270 ClassNamePersistence classNamePersistence) {
271 this.classNamePersistence = classNamePersistence;
272 }
273
274
279 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
280 return resourceLocalService;
281 }
282
283
288 public void setResourceLocalService(
289 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
290 this.resourceLocalService = resourceLocalService;
291 }
292
293
298 public com.liferay.portal.service.UserLocalService getUserLocalService() {
299 return userLocalService;
300 }
301
302
307 public void setUserLocalService(
308 com.liferay.portal.service.UserLocalService userLocalService) {
309 this.userLocalService = userLocalService;
310 }
311
312
317 public com.liferay.portal.service.UserService getUserService() {
318 return userService;
319 }
320
321
326 public void setUserService(
327 com.liferay.portal.service.UserService userService) {
328 this.userService = userService;
329 }
330
331
336 public UserPersistence getUserPersistence() {
337 return userPersistence;
338 }
339
340
345 public void setUserPersistence(UserPersistence userPersistence) {
346 this.userPersistence = userPersistence;
347 }
348
349
354 public UserFinder getUserFinder() {
355 return userFinder;
356 }
357
358
363 public void setUserFinder(UserFinder userFinder) {
364 this.userFinder = userFinder;
365 }
366
367
372 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
373 return assetEntryLocalService;
374 }
375
376
381 public void setAssetEntryLocalService(
382 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
383 this.assetEntryLocalService = assetEntryLocalService;
384 }
385
386
391 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
392 return assetEntryService;
393 }
394
395
400 public void setAssetEntryService(
401 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
402 this.assetEntryService = assetEntryService;
403 }
404
405
410 public AssetEntryPersistence getAssetEntryPersistence() {
411 return assetEntryPersistence;
412 }
413
414
419 public void setAssetEntryPersistence(
420 AssetEntryPersistence assetEntryPersistence) {
421 this.assetEntryPersistence = assetEntryPersistence;
422 }
423
424
429 public AssetEntryFinder getAssetEntryFinder() {
430 return assetEntryFinder;
431 }
432
433
438 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
439 this.assetEntryFinder = assetEntryFinder;
440 }
441
442
447 public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
448 return blogsEntryLocalService;
449 }
450
451
456 public void setBlogsEntryLocalService(
457 com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
458 this.blogsEntryLocalService = blogsEntryLocalService;
459 }
460
461
466 public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
467 return blogsEntryService;
468 }
469
470
475 public void setBlogsEntryService(
476 com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
477 this.blogsEntryService = blogsEntryService;
478 }
479
480
485 public BlogsEntryPersistence getBlogsEntryPersistence() {
486 return blogsEntryPersistence;
487 }
488
489
494 public void setBlogsEntryPersistence(
495 BlogsEntryPersistence blogsEntryPersistence) {
496 this.blogsEntryPersistence = blogsEntryPersistence;
497 }
498
499
504 public BlogsEntryFinder getBlogsEntryFinder() {
505 return blogsEntryFinder;
506 }
507
508
513 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
514 this.blogsEntryFinder = blogsEntryFinder;
515 }
516
517
522 public com.liferay.portlet.blogs.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
523 return blogsStatsUserLocalService;
524 }
525
526
531 public void setBlogsStatsUserLocalService(
532 com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
533 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
534 }
535
536
541 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
542 return blogsStatsUserPersistence;
543 }
544
545
550 public void setBlogsStatsUserPersistence(
551 BlogsStatsUserPersistence blogsStatsUserPersistence) {
552 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
553 }
554
555
560 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
561 return blogsStatsUserFinder;
562 }
563
564
569 public void setBlogsStatsUserFinder(
570 BlogsStatsUserFinder blogsStatsUserFinder) {
571 this.blogsStatsUserFinder = blogsStatsUserFinder;
572 }
573
574
579 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
580 return socialActivityLocalService;
581 }
582
583
588 public void setSocialActivityLocalService(
589 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
590 this.socialActivityLocalService = socialActivityLocalService;
591 }
592
593
598 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
599 return socialActivityService;
600 }
601
602
607 public void setSocialActivityService(
608 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
609 this.socialActivityService = socialActivityService;
610 }
611
612
617 public SocialActivityPersistence getSocialActivityPersistence() {
618 return socialActivityPersistence;
619 }
620
621
626 public void setSocialActivityPersistence(
627 SocialActivityPersistence socialActivityPersistence) {
628 this.socialActivityPersistence = socialActivityPersistence;
629 }
630
631
636 public SocialActivityFinder getSocialActivityFinder() {
637 return socialActivityFinder;
638 }
639
640
645 public void setSocialActivityFinder(
646 SocialActivityFinder socialActivityFinder) {
647 this.socialActivityFinder = socialActivityFinder;
648 }
649
650 public void afterPropertiesSet() {
651 }
652
653 public void destroy() {
654 }
655
656
661 @Override
662 public String getBeanIdentifier() {
663 return _beanIdentifier;
664 }
665
666
671 @Override
672 public void setBeanIdentifier(String beanIdentifier) {
673 _beanIdentifier = beanIdentifier;
674 }
675
676 protected Class<?> getModelClass() {
677 return RatingsEntry.class;
678 }
679
680 protected String getModelClassName() {
681 return RatingsEntry.class.getName();
682 }
683
684
689 protected void runSQL(String sql) {
690 try {
691 DataSource dataSource = ratingsEntryPersistence.getDataSource();
692
693 DB db = DBFactoryUtil.getDB();
694
695 sql = db.buildSQL(sql);
696 sql = PortalUtil.transformSQL(sql);
697
698 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
699 sql, new int[0]);
700
701 sqlUpdate.update();
702 }
703 catch (Exception e) {
704 throw new SystemException(e);
705 }
706 }
707
708 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
709 protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
710 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryService.class)
711 protected com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService;
712 @BeanReference(type = RatingsEntryPersistence.class)
713 protected RatingsEntryPersistence ratingsEntryPersistence;
714 @BeanReference(type = RatingsEntryFinder.class)
715 protected RatingsEntryFinder ratingsEntryFinder;
716 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
717 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
718 @BeanReference(type = RatingsStatsPersistence.class)
719 protected RatingsStatsPersistence ratingsStatsPersistence;
720 @BeanReference(type = RatingsStatsFinder.class)
721 protected RatingsStatsFinder ratingsStatsFinder;
722 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
723 protected com.liferay.counter.service.CounterLocalService counterLocalService;
724 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
725 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
726 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
727 protected com.liferay.portal.service.ClassNameService classNameService;
728 @BeanReference(type = ClassNamePersistence.class)
729 protected ClassNamePersistence classNamePersistence;
730 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
731 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
732 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
733 protected com.liferay.portal.service.UserLocalService userLocalService;
734 @BeanReference(type = com.liferay.portal.service.UserService.class)
735 protected com.liferay.portal.service.UserService userService;
736 @BeanReference(type = UserPersistence.class)
737 protected UserPersistence userPersistence;
738 @BeanReference(type = UserFinder.class)
739 protected UserFinder userFinder;
740 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
741 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
742 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
743 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
744 @BeanReference(type = AssetEntryPersistence.class)
745 protected AssetEntryPersistence assetEntryPersistence;
746 @BeanReference(type = AssetEntryFinder.class)
747 protected AssetEntryFinder assetEntryFinder;
748 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
749 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
750 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
751 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
752 @BeanReference(type = BlogsEntryPersistence.class)
753 protected BlogsEntryPersistence blogsEntryPersistence;
754 @BeanReference(type = BlogsEntryFinder.class)
755 protected BlogsEntryFinder blogsEntryFinder;
756 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
757 protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
758 @BeanReference(type = BlogsStatsUserPersistence.class)
759 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
760 @BeanReference(type = BlogsStatsUserFinder.class)
761 protected BlogsStatsUserFinder blogsStatsUserFinder;
762 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
763 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
764 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
765 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
766 @BeanReference(type = SocialActivityPersistence.class)
767 protected SocialActivityPersistence socialActivityPersistence;
768 @BeanReference(type = SocialActivityFinder.class)
769 protected SocialActivityFinder socialActivityFinder;
770 private String _beanIdentifier;
771 }