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 RatingsEntryService getRatingsEntryService() {
092 return ratingsEntryService;
093 }
094
095
100 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
101 this.ratingsEntryService = ratingsEntryService;
102 }
103
104
109 public RatingsEntryPersistence getRatingsEntryPersistence() {
110 return ratingsEntryPersistence;
111 }
112
113
118 public void setRatingsEntryPersistence(
119 RatingsEntryPersistence ratingsEntryPersistence) {
120 this.ratingsEntryPersistence = ratingsEntryPersistence;
121 }
122
123
128 public RatingsEntryFinder getRatingsEntryFinder() {
129 return ratingsEntryFinder;
130 }
131
132
137 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
138 this.ratingsEntryFinder = ratingsEntryFinder;
139 }
140
141
146 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
147 return ratingsStatsLocalService;
148 }
149
150
155 public void setRatingsStatsLocalService(
156 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
157 this.ratingsStatsLocalService = ratingsStatsLocalService;
158 }
159
160
165 public RatingsStatsPersistence getRatingsStatsPersistence() {
166 return ratingsStatsPersistence;
167 }
168
169
174 public void setRatingsStatsPersistence(
175 RatingsStatsPersistence ratingsStatsPersistence) {
176 this.ratingsStatsPersistence = ratingsStatsPersistence;
177 }
178
179
184 public RatingsStatsFinder getRatingsStatsFinder() {
185 return ratingsStatsFinder;
186 }
187
188
193 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
194 this.ratingsStatsFinder = ratingsStatsFinder;
195 }
196
197
202 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
203 return counterLocalService;
204 }
205
206
211 public void setCounterLocalService(
212 com.liferay.counter.service.CounterLocalService counterLocalService) {
213 this.counterLocalService = counterLocalService;
214 }
215
216
221 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
222 return classNameLocalService;
223 }
224
225
230 public void setClassNameLocalService(
231 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
232 this.classNameLocalService = classNameLocalService;
233 }
234
235
240 public com.liferay.portal.service.ClassNameService getClassNameService() {
241 return classNameService;
242 }
243
244
249 public void setClassNameService(
250 com.liferay.portal.service.ClassNameService classNameService) {
251 this.classNameService = classNameService;
252 }
253
254
259 public ClassNamePersistence getClassNamePersistence() {
260 return classNamePersistence;
261 }
262
263
268 public void setClassNamePersistence(
269 ClassNamePersistence classNamePersistence) {
270 this.classNamePersistence = classNamePersistence;
271 }
272
273
278 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
279 return resourceLocalService;
280 }
281
282
287 public void setResourceLocalService(
288 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
289 this.resourceLocalService = resourceLocalService;
290 }
291
292
297 public com.liferay.portal.service.UserLocalService getUserLocalService() {
298 return userLocalService;
299 }
300
301
306 public void setUserLocalService(
307 com.liferay.portal.service.UserLocalService userLocalService) {
308 this.userLocalService = userLocalService;
309 }
310
311
316 public com.liferay.portal.service.UserService getUserService() {
317 return userService;
318 }
319
320
325 public void setUserService(
326 com.liferay.portal.service.UserService userService) {
327 this.userService = userService;
328 }
329
330
335 public UserPersistence getUserPersistence() {
336 return userPersistence;
337 }
338
339
344 public void setUserPersistence(UserPersistence userPersistence) {
345 this.userPersistence = userPersistence;
346 }
347
348
353 public UserFinder getUserFinder() {
354 return userFinder;
355 }
356
357
362 public void setUserFinder(UserFinder userFinder) {
363 this.userFinder = userFinder;
364 }
365
366
371 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
372 return assetEntryLocalService;
373 }
374
375
380 public void setAssetEntryLocalService(
381 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
382 this.assetEntryLocalService = assetEntryLocalService;
383 }
384
385
390 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
391 return assetEntryService;
392 }
393
394
399 public void setAssetEntryService(
400 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
401 this.assetEntryService = assetEntryService;
402 }
403
404
409 public AssetEntryPersistence getAssetEntryPersistence() {
410 return assetEntryPersistence;
411 }
412
413
418 public void setAssetEntryPersistence(
419 AssetEntryPersistence assetEntryPersistence) {
420 this.assetEntryPersistence = assetEntryPersistence;
421 }
422
423
428 public AssetEntryFinder getAssetEntryFinder() {
429 return assetEntryFinder;
430 }
431
432
437 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
438 this.assetEntryFinder = assetEntryFinder;
439 }
440
441
446 public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
447 return blogsEntryLocalService;
448 }
449
450
455 public void setBlogsEntryLocalService(
456 com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
457 this.blogsEntryLocalService = blogsEntryLocalService;
458 }
459
460
465 public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
466 return blogsEntryService;
467 }
468
469
474 public void setBlogsEntryService(
475 com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
476 this.blogsEntryService = blogsEntryService;
477 }
478
479
484 public BlogsEntryPersistence getBlogsEntryPersistence() {
485 return blogsEntryPersistence;
486 }
487
488
493 public void setBlogsEntryPersistence(
494 BlogsEntryPersistence blogsEntryPersistence) {
495 this.blogsEntryPersistence = blogsEntryPersistence;
496 }
497
498
503 public BlogsEntryFinder getBlogsEntryFinder() {
504 return blogsEntryFinder;
505 }
506
507
512 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
513 this.blogsEntryFinder = blogsEntryFinder;
514 }
515
516
521 public com.liferay.portlet.blogs.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
522 return blogsStatsUserLocalService;
523 }
524
525
530 public void setBlogsStatsUserLocalService(
531 com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
532 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
533 }
534
535
540 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
541 return blogsStatsUserPersistence;
542 }
543
544
549 public void setBlogsStatsUserPersistence(
550 BlogsStatsUserPersistence blogsStatsUserPersistence) {
551 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
552 }
553
554
559 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
560 return blogsStatsUserFinder;
561 }
562
563
568 public void setBlogsStatsUserFinder(
569 BlogsStatsUserFinder blogsStatsUserFinder) {
570 this.blogsStatsUserFinder = blogsStatsUserFinder;
571 }
572
573
578 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
579 return socialActivityLocalService;
580 }
581
582
587 public void setSocialActivityLocalService(
588 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
589 this.socialActivityLocalService = socialActivityLocalService;
590 }
591
592
597 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
598 return socialActivityService;
599 }
600
601
606 public void setSocialActivityService(
607 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
608 this.socialActivityService = socialActivityService;
609 }
610
611
616 public SocialActivityPersistence getSocialActivityPersistence() {
617 return socialActivityPersistence;
618 }
619
620
625 public void setSocialActivityPersistence(
626 SocialActivityPersistence socialActivityPersistence) {
627 this.socialActivityPersistence = socialActivityPersistence;
628 }
629
630
635 public SocialActivityFinder getSocialActivityFinder() {
636 return socialActivityFinder;
637 }
638
639
644 public void setSocialActivityFinder(
645 SocialActivityFinder socialActivityFinder) {
646 this.socialActivityFinder = socialActivityFinder;
647 }
648
649 public void afterPropertiesSet() {
650 }
651
652 public void destroy() {
653 }
654
655
660 @Override
661 public String getBeanIdentifier() {
662 return _beanIdentifier;
663 }
664
665
670 @Override
671 public void setBeanIdentifier(String beanIdentifier) {
672 _beanIdentifier = beanIdentifier;
673 }
674
675 protected Class<?> getModelClass() {
676 return RatingsEntry.class;
677 }
678
679 protected String getModelClassName() {
680 return RatingsEntry.class.getName();
681 }
682
683
688 protected void runSQL(String sql) {
689 try {
690 DataSource dataSource = ratingsEntryPersistence.getDataSource();
691
692 DB db = DBFactoryUtil.getDB();
693
694 sql = db.buildSQL(sql);
695 sql = PortalUtil.transformSQL(sql);
696
697 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
698 sql, new int[0]);
699
700 sqlUpdate.update();
701 }
702 catch (Exception e) {
703 throw new SystemException(e);
704 }
705 }
706
707 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
708 protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
709 @BeanReference(type = RatingsEntryService.class)
710 protected RatingsEntryService ratingsEntryService;
711 @BeanReference(type = RatingsEntryPersistence.class)
712 protected RatingsEntryPersistence ratingsEntryPersistence;
713 @BeanReference(type = RatingsEntryFinder.class)
714 protected RatingsEntryFinder ratingsEntryFinder;
715 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
716 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
717 @BeanReference(type = RatingsStatsPersistence.class)
718 protected RatingsStatsPersistence ratingsStatsPersistence;
719 @BeanReference(type = RatingsStatsFinder.class)
720 protected RatingsStatsFinder ratingsStatsFinder;
721 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
722 protected com.liferay.counter.service.CounterLocalService counterLocalService;
723 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
724 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
725 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
726 protected com.liferay.portal.service.ClassNameService classNameService;
727 @BeanReference(type = ClassNamePersistence.class)
728 protected ClassNamePersistence classNamePersistence;
729 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
730 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
731 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
732 protected com.liferay.portal.service.UserLocalService userLocalService;
733 @BeanReference(type = com.liferay.portal.service.UserService.class)
734 protected com.liferay.portal.service.UserService userService;
735 @BeanReference(type = UserPersistence.class)
736 protected UserPersistence userPersistence;
737 @BeanReference(type = UserFinder.class)
738 protected UserFinder userFinder;
739 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
740 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
741 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
742 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
743 @BeanReference(type = AssetEntryPersistence.class)
744 protected AssetEntryPersistence assetEntryPersistence;
745 @BeanReference(type = AssetEntryFinder.class)
746 protected AssetEntryFinder assetEntryFinder;
747 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
748 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
749 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
750 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
751 @BeanReference(type = BlogsEntryPersistence.class)
752 protected BlogsEntryPersistence blogsEntryPersistence;
753 @BeanReference(type = BlogsEntryFinder.class)
754 protected BlogsEntryFinder blogsEntryFinder;
755 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
756 protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
757 @BeanReference(type = BlogsStatsUserPersistence.class)
758 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
759 @BeanReference(type = BlogsStatsUserFinder.class)
760 protected BlogsStatsUserFinder blogsStatsUserFinder;
761 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
762 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
763 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
764 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
765 @BeanReference(type = SocialActivityPersistence.class)
766 protected SocialActivityPersistence socialActivityPersistence;
767 @BeanReference(type = SocialActivityFinder.class)
768 protected SocialActivityFinder socialActivityFinder;
769 private String _beanIdentifier;
770 }