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 SocialActivityPersistence getSocialActivityPersistence() {
538 return socialActivityPersistence;
539 }
540
541
546 public void setSocialActivityPersistence(
547 SocialActivityPersistence socialActivityPersistence) {
548 this.socialActivityPersistence = socialActivityPersistence;
549 }
550
551
556 public SocialActivityFinder getSocialActivityFinder() {
557 return socialActivityFinder;
558 }
559
560
565 public void setSocialActivityFinder(
566 SocialActivityFinder socialActivityFinder) {
567 this.socialActivityFinder = socialActivityFinder;
568 }
569
570 public void afterPropertiesSet() {
571 }
572
573 public void destroy() {
574 }
575
576
581 @Override
582 public String getBeanIdentifier() {
583 return _beanIdentifier;
584 }
585
586
591 @Override
592 public void setBeanIdentifier(String beanIdentifier) {
593 _beanIdentifier = beanIdentifier;
594 }
595
596 protected Class<?> getModelClass() {
597 return RatingsEntry.class;
598 }
599
600 protected String getModelClassName() {
601 return RatingsEntry.class.getName();
602 }
603
604
609 protected void runSQL(String sql) throws SystemException {
610 try {
611 DataSource dataSource = ratingsEntryPersistence.getDataSource();
612
613 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
614 sql, new int[0]);
615
616 sqlUpdate.update();
617 }
618 catch (Exception e) {
619 throw new SystemException(e);
620 }
621 }
622
623 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
624 protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
625 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryService.class)
626 protected com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService;
627 @BeanReference(type = RatingsEntryPersistence.class)
628 protected RatingsEntryPersistence ratingsEntryPersistence;
629 @BeanReference(type = RatingsEntryFinder.class)
630 protected RatingsEntryFinder ratingsEntryFinder;
631 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
632 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
633 @BeanReference(type = RatingsStatsPersistence.class)
634 protected RatingsStatsPersistence ratingsStatsPersistence;
635 @BeanReference(type = RatingsStatsFinder.class)
636 protected RatingsStatsFinder ratingsStatsFinder;
637 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
638 protected com.liferay.counter.service.CounterLocalService counterLocalService;
639 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
640 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
641 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
642 protected com.liferay.portal.service.UserLocalService userLocalService;
643 @BeanReference(type = com.liferay.portal.service.UserService.class)
644 protected com.liferay.portal.service.UserService userService;
645 @BeanReference(type = UserPersistence.class)
646 protected UserPersistence userPersistence;
647 @BeanReference(type = UserFinder.class)
648 protected UserFinder userFinder;
649 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
650 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
651 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
652 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
653 @BeanReference(type = AssetEntryPersistence.class)
654 protected AssetEntryPersistence assetEntryPersistence;
655 @BeanReference(type = AssetEntryFinder.class)
656 protected AssetEntryFinder assetEntryFinder;
657 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
658 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
659 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
660 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
661 @BeanReference(type = BlogsEntryPersistence.class)
662 protected BlogsEntryPersistence blogsEntryPersistence;
663 @BeanReference(type = BlogsEntryFinder.class)
664 protected BlogsEntryFinder blogsEntryFinder;
665 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
666 protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
667 @BeanReference(type = BlogsStatsUserPersistence.class)
668 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
669 @BeanReference(type = BlogsStatsUserFinder.class)
670 protected BlogsStatsUserFinder blogsStatsUserFinder;
671 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
672 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
673 @BeanReference(type = SocialActivityPersistence.class)
674 protected SocialActivityPersistence socialActivityPersistence;
675 @BeanReference(type = SocialActivityFinder.class)
676 protected SocialActivityFinder socialActivityFinder;
677 private String _beanIdentifier;
678 }