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.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.exception.SystemException;
022 import com.liferay.portal.service.BaseServiceImpl;
023 import com.liferay.portal.service.persistence.UserFinder;
024 import com.liferay.portal.service.persistence.UserPersistence;
025
026 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
027 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
028 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
029 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
030 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
031 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
032 import com.liferay.portlet.ratings.model.RatingsEntry;
033 import com.liferay.portlet.ratings.service.RatingsEntryService;
034 import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
035 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
036 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
037 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
038 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
039 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
040
041 import javax.sql.DataSource;
042
043
055 public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
056 implements RatingsEntryService, IdentifiableBean {
057
062
063
068 public com.liferay.portlet.ratings.service.RatingsEntryLocalService getRatingsEntryLocalService() {
069 return ratingsEntryLocalService;
070 }
071
072
077 public void setRatingsEntryLocalService(
078 com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService) {
079 this.ratingsEntryLocalService = ratingsEntryLocalService;
080 }
081
082
087 public com.liferay.portlet.ratings.service.RatingsEntryService getRatingsEntryService() {
088 return ratingsEntryService;
089 }
090
091
096 public void setRatingsEntryService(
097 com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService) {
098 this.ratingsEntryService = ratingsEntryService;
099 }
100
101
106 public RatingsEntryPersistence getRatingsEntryPersistence() {
107 return ratingsEntryPersistence;
108 }
109
110
115 public void setRatingsEntryPersistence(
116 RatingsEntryPersistence ratingsEntryPersistence) {
117 this.ratingsEntryPersistence = ratingsEntryPersistence;
118 }
119
120
125 public RatingsEntryFinder getRatingsEntryFinder() {
126 return ratingsEntryFinder;
127 }
128
129
134 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
135 this.ratingsEntryFinder = ratingsEntryFinder;
136 }
137
138
143 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
144 return ratingsStatsLocalService;
145 }
146
147
152 public void setRatingsStatsLocalService(
153 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
154 this.ratingsStatsLocalService = ratingsStatsLocalService;
155 }
156
157
162 public RatingsStatsPersistence getRatingsStatsPersistence() {
163 return ratingsStatsPersistence;
164 }
165
166
171 public void setRatingsStatsPersistence(
172 RatingsStatsPersistence ratingsStatsPersistence) {
173 this.ratingsStatsPersistence = ratingsStatsPersistence;
174 }
175
176
181 public RatingsStatsFinder getRatingsStatsFinder() {
182 return ratingsStatsFinder;
183 }
184
185
190 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
191 this.ratingsStatsFinder = ratingsStatsFinder;
192 }
193
194
199 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
200 return counterLocalService;
201 }
202
203
208 public void setCounterLocalService(
209 com.liferay.counter.service.CounterLocalService counterLocalService) {
210 this.counterLocalService = counterLocalService;
211 }
212
213
218 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
219 return resourceLocalService;
220 }
221
222
227 public void setResourceLocalService(
228 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
229 this.resourceLocalService = resourceLocalService;
230 }
231
232
237 public com.liferay.portal.service.UserLocalService getUserLocalService() {
238 return userLocalService;
239 }
240
241
246 public void setUserLocalService(
247 com.liferay.portal.service.UserLocalService userLocalService) {
248 this.userLocalService = userLocalService;
249 }
250
251
256 public com.liferay.portal.service.UserService getUserService() {
257 return userService;
258 }
259
260
265 public void setUserService(
266 com.liferay.portal.service.UserService userService) {
267 this.userService = userService;
268 }
269
270
275 public UserPersistence getUserPersistence() {
276 return userPersistence;
277 }
278
279
284 public void setUserPersistence(UserPersistence userPersistence) {
285 this.userPersistence = userPersistence;
286 }
287
288
293 public UserFinder getUserFinder() {
294 return userFinder;
295 }
296
297
302 public void setUserFinder(UserFinder userFinder) {
303 this.userFinder = userFinder;
304 }
305
306
311 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
312 return assetEntryLocalService;
313 }
314
315
320 public void setAssetEntryLocalService(
321 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
322 this.assetEntryLocalService = assetEntryLocalService;
323 }
324
325
330 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
331 return assetEntryService;
332 }
333
334
339 public void setAssetEntryService(
340 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
341 this.assetEntryService = assetEntryService;
342 }
343
344
349 public AssetEntryPersistence getAssetEntryPersistence() {
350 return assetEntryPersistence;
351 }
352
353
358 public void setAssetEntryPersistence(
359 AssetEntryPersistence assetEntryPersistence) {
360 this.assetEntryPersistence = assetEntryPersistence;
361 }
362
363
368 public AssetEntryFinder getAssetEntryFinder() {
369 return assetEntryFinder;
370 }
371
372
377 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
378 this.assetEntryFinder = assetEntryFinder;
379 }
380
381
386 public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
387 return blogsEntryLocalService;
388 }
389
390
395 public void setBlogsEntryLocalService(
396 com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
397 this.blogsEntryLocalService = blogsEntryLocalService;
398 }
399
400
405 public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
406 return blogsEntryService;
407 }
408
409
414 public void setBlogsEntryService(
415 com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
416 this.blogsEntryService = blogsEntryService;
417 }
418
419
424 public BlogsEntryPersistence getBlogsEntryPersistence() {
425 return blogsEntryPersistence;
426 }
427
428
433 public void setBlogsEntryPersistence(
434 BlogsEntryPersistence blogsEntryPersistence) {
435 this.blogsEntryPersistence = blogsEntryPersistence;
436 }
437
438
443 public BlogsEntryFinder getBlogsEntryFinder() {
444 return blogsEntryFinder;
445 }
446
447
452 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
453 this.blogsEntryFinder = blogsEntryFinder;
454 }
455
456
461 public com.liferay.portlet.blogs.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
462 return blogsStatsUserLocalService;
463 }
464
465
470 public void setBlogsStatsUserLocalService(
471 com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
472 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
473 }
474
475
480 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
481 return blogsStatsUserPersistence;
482 }
483
484
489 public void setBlogsStatsUserPersistence(
490 BlogsStatsUserPersistence blogsStatsUserPersistence) {
491 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
492 }
493
494
499 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
500 return blogsStatsUserFinder;
501 }
502
503
508 public void setBlogsStatsUserFinder(
509 BlogsStatsUserFinder blogsStatsUserFinder) {
510 this.blogsStatsUserFinder = blogsStatsUserFinder;
511 }
512
513
518 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
519 return socialActivityLocalService;
520 }
521
522
527 public void setSocialActivityLocalService(
528 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
529 this.socialActivityLocalService = socialActivityLocalService;
530 }
531
532
537 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
538 return socialActivityService;
539 }
540
541
546 public void setSocialActivityService(
547 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
548 this.socialActivityService = socialActivityService;
549 }
550
551
556 public SocialActivityPersistence getSocialActivityPersistence() {
557 return socialActivityPersistence;
558 }
559
560
565 public void setSocialActivityPersistence(
566 SocialActivityPersistence socialActivityPersistence) {
567 this.socialActivityPersistence = socialActivityPersistence;
568 }
569
570
575 public SocialActivityFinder getSocialActivityFinder() {
576 return socialActivityFinder;
577 }
578
579
584 public void setSocialActivityFinder(
585 SocialActivityFinder socialActivityFinder) {
586 this.socialActivityFinder = socialActivityFinder;
587 }
588
589 public void afterPropertiesSet() {
590 }
591
592 public void destroy() {
593 }
594
595
600 @Override
601 public String getBeanIdentifier() {
602 return _beanIdentifier;
603 }
604
605
610 @Override
611 public void setBeanIdentifier(String beanIdentifier) {
612 _beanIdentifier = beanIdentifier;
613 }
614
615 protected Class<?> getModelClass() {
616 return RatingsEntry.class;
617 }
618
619 protected String getModelClassName() {
620 return RatingsEntry.class.getName();
621 }
622
623
628 protected void runSQL(String sql) throws SystemException {
629 try {
630 DataSource dataSource = ratingsEntryPersistence.getDataSource();
631
632 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
633 sql, new int[0]);
634
635 sqlUpdate.update();
636 }
637 catch (Exception e) {
638 throw new SystemException(e);
639 }
640 }
641
642 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
643 protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
644 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryService.class)
645 protected com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService;
646 @BeanReference(type = RatingsEntryPersistence.class)
647 protected RatingsEntryPersistence ratingsEntryPersistence;
648 @BeanReference(type = RatingsEntryFinder.class)
649 protected RatingsEntryFinder ratingsEntryFinder;
650 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
651 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
652 @BeanReference(type = RatingsStatsPersistence.class)
653 protected RatingsStatsPersistence ratingsStatsPersistence;
654 @BeanReference(type = RatingsStatsFinder.class)
655 protected RatingsStatsFinder ratingsStatsFinder;
656 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
657 protected com.liferay.counter.service.CounterLocalService counterLocalService;
658 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
659 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
660 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
661 protected com.liferay.portal.service.UserLocalService userLocalService;
662 @BeanReference(type = com.liferay.portal.service.UserService.class)
663 protected com.liferay.portal.service.UserService userService;
664 @BeanReference(type = UserPersistence.class)
665 protected UserPersistence userPersistence;
666 @BeanReference(type = UserFinder.class)
667 protected UserFinder userFinder;
668 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
669 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
670 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
671 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
672 @BeanReference(type = AssetEntryPersistence.class)
673 protected AssetEntryPersistence assetEntryPersistence;
674 @BeanReference(type = AssetEntryFinder.class)
675 protected AssetEntryFinder assetEntryFinder;
676 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
677 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
678 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
679 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
680 @BeanReference(type = BlogsEntryPersistence.class)
681 protected BlogsEntryPersistence blogsEntryPersistence;
682 @BeanReference(type = BlogsEntryFinder.class)
683 protected BlogsEntryFinder blogsEntryFinder;
684 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
685 protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
686 @BeanReference(type = BlogsStatsUserPersistence.class)
687 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
688 @BeanReference(type = BlogsStatsUserFinder.class)
689 protected BlogsStatsUserFinder blogsStatsUserFinder;
690 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
691 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
692 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
693 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
694 @BeanReference(type = SocialActivityPersistence.class)
695 protected SocialActivityPersistence socialActivityPersistence;
696 @BeanReference(type = SocialActivityFinder.class)
697 protected SocialActivityFinder socialActivityFinder;
698 private String _beanIdentifier;
699 }