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.UserLocalService;
027 import com.liferay.portal.service.UserService;
028 import com.liferay.portal.service.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030
031 import com.liferay.portlet.asset.service.AssetEntryLocalService;
032 import com.liferay.portlet.asset.service.AssetEntryService;
033 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
034 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
035 import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
036 import com.liferay.portlet.blogs.service.BlogsEntryService;
037 import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
038 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
039 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
040 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
041 import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
042 import com.liferay.portlet.ratings.model.RatingsEntry;
043 import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
044 import com.liferay.portlet.ratings.service.RatingsEntryService;
045 import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
046 import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
047 import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
048 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
049 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
050 import com.liferay.portlet.social.service.SocialActivityLocalService;
051 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
052 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
053
054 import javax.sql.DataSource;
055
056
068 public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
069 implements RatingsEntryService, IdentifiableBean {
070
075
076
081 public RatingsEntryLocalService getRatingsEntryLocalService() {
082 return ratingsEntryLocalService;
083 }
084
085
090 public void setRatingsEntryLocalService(
091 RatingsEntryLocalService ratingsEntryLocalService) {
092 this.ratingsEntryLocalService = ratingsEntryLocalService;
093 }
094
095
100 public RatingsEntryService getRatingsEntryService() {
101 return ratingsEntryService;
102 }
103
104
109 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
110 this.ratingsEntryService = ratingsEntryService;
111 }
112
113
118 public RatingsEntryPersistence getRatingsEntryPersistence() {
119 return ratingsEntryPersistence;
120 }
121
122
127 public void setRatingsEntryPersistence(
128 RatingsEntryPersistence ratingsEntryPersistence) {
129 this.ratingsEntryPersistence = ratingsEntryPersistence;
130 }
131
132
137 public RatingsEntryFinder getRatingsEntryFinder() {
138 return ratingsEntryFinder;
139 }
140
141
146 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
147 this.ratingsEntryFinder = ratingsEntryFinder;
148 }
149
150
155 public RatingsStatsLocalService getRatingsStatsLocalService() {
156 return ratingsStatsLocalService;
157 }
158
159
164 public void setRatingsStatsLocalService(
165 RatingsStatsLocalService ratingsStatsLocalService) {
166 this.ratingsStatsLocalService = ratingsStatsLocalService;
167 }
168
169
174 public RatingsStatsPersistence getRatingsStatsPersistence() {
175 return ratingsStatsPersistence;
176 }
177
178
183 public void setRatingsStatsPersistence(
184 RatingsStatsPersistence ratingsStatsPersistence) {
185 this.ratingsStatsPersistence = ratingsStatsPersistence;
186 }
187
188
193 public RatingsStatsFinder getRatingsStatsFinder() {
194 return ratingsStatsFinder;
195 }
196
197
202 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
203 this.ratingsStatsFinder = ratingsStatsFinder;
204 }
205
206
211 public CounterLocalService getCounterLocalService() {
212 return counterLocalService;
213 }
214
215
220 public void setCounterLocalService(CounterLocalService counterLocalService) {
221 this.counterLocalService = counterLocalService;
222 }
223
224
229 public ResourceLocalService getResourceLocalService() {
230 return resourceLocalService;
231 }
232
233
238 public void setResourceLocalService(
239 ResourceLocalService resourceLocalService) {
240 this.resourceLocalService = resourceLocalService;
241 }
242
243
248 public UserLocalService getUserLocalService() {
249 return userLocalService;
250 }
251
252
257 public void setUserLocalService(UserLocalService userLocalService) {
258 this.userLocalService = userLocalService;
259 }
260
261
266 public UserService getUserService() {
267 return userService;
268 }
269
270
275 public void setUserService(UserService userService) {
276 this.userService = userService;
277 }
278
279
284 public UserPersistence getUserPersistence() {
285 return userPersistence;
286 }
287
288
293 public void setUserPersistence(UserPersistence userPersistence) {
294 this.userPersistence = userPersistence;
295 }
296
297
302 public UserFinder getUserFinder() {
303 return userFinder;
304 }
305
306
311 public void setUserFinder(UserFinder userFinder) {
312 this.userFinder = userFinder;
313 }
314
315
320 public AssetEntryLocalService getAssetEntryLocalService() {
321 return assetEntryLocalService;
322 }
323
324
329 public void setAssetEntryLocalService(
330 AssetEntryLocalService assetEntryLocalService) {
331 this.assetEntryLocalService = assetEntryLocalService;
332 }
333
334
339 public AssetEntryService getAssetEntryService() {
340 return assetEntryService;
341 }
342
343
348 public void setAssetEntryService(AssetEntryService assetEntryService) {
349 this.assetEntryService = assetEntryService;
350 }
351
352
357 public AssetEntryPersistence getAssetEntryPersistence() {
358 return assetEntryPersistence;
359 }
360
361
366 public void setAssetEntryPersistence(
367 AssetEntryPersistence assetEntryPersistence) {
368 this.assetEntryPersistence = assetEntryPersistence;
369 }
370
371
376 public AssetEntryFinder getAssetEntryFinder() {
377 return assetEntryFinder;
378 }
379
380
385 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
386 this.assetEntryFinder = assetEntryFinder;
387 }
388
389
394 public BlogsEntryLocalService getBlogsEntryLocalService() {
395 return blogsEntryLocalService;
396 }
397
398
403 public void setBlogsEntryLocalService(
404 BlogsEntryLocalService blogsEntryLocalService) {
405 this.blogsEntryLocalService = blogsEntryLocalService;
406 }
407
408
413 public BlogsEntryService getBlogsEntryService() {
414 return blogsEntryService;
415 }
416
417
422 public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
423 this.blogsEntryService = blogsEntryService;
424 }
425
426
431 public BlogsEntryPersistence getBlogsEntryPersistence() {
432 return blogsEntryPersistence;
433 }
434
435
440 public void setBlogsEntryPersistence(
441 BlogsEntryPersistence blogsEntryPersistence) {
442 this.blogsEntryPersistence = blogsEntryPersistence;
443 }
444
445
450 public BlogsEntryFinder getBlogsEntryFinder() {
451 return blogsEntryFinder;
452 }
453
454
459 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
460 this.blogsEntryFinder = blogsEntryFinder;
461 }
462
463
468 public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
469 return blogsStatsUserLocalService;
470 }
471
472
477 public void setBlogsStatsUserLocalService(
478 BlogsStatsUserLocalService blogsStatsUserLocalService) {
479 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
480 }
481
482
487 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
488 return blogsStatsUserPersistence;
489 }
490
491
496 public void setBlogsStatsUserPersistence(
497 BlogsStatsUserPersistence blogsStatsUserPersistence) {
498 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
499 }
500
501
506 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
507 return blogsStatsUserFinder;
508 }
509
510
515 public void setBlogsStatsUserFinder(
516 BlogsStatsUserFinder blogsStatsUserFinder) {
517 this.blogsStatsUserFinder = blogsStatsUserFinder;
518 }
519
520
525 public SocialActivityLocalService getSocialActivityLocalService() {
526 return socialActivityLocalService;
527 }
528
529
534 public void setSocialActivityLocalService(
535 SocialActivityLocalService socialActivityLocalService) {
536 this.socialActivityLocalService = socialActivityLocalService;
537 }
538
539
544 public SocialActivityPersistence getSocialActivityPersistence() {
545 return socialActivityPersistence;
546 }
547
548
553 public void setSocialActivityPersistence(
554 SocialActivityPersistence socialActivityPersistence) {
555 this.socialActivityPersistence = socialActivityPersistence;
556 }
557
558
563 public SocialActivityFinder getSocialActivityFinder() {
564 return socialActivityFinder;
565 }
566
567
572 public void setSocialActivityFinder(
573 SocialActivityFinder socialActivityFinder) {
574 this.socialActivityFinder = socialActivityFinder;
575 }
576
577 public void afterPropertiesSet() {
578 }
579
580 public void destroy() {
581 }
582
583
588 public String getBeanIdentifier() {
589 return _beanIdentifier;
590 }
591
592
597 public void setBeanIdentifier(String beanIdentifier) {
598 _beanIdentifier = beanIdentifier;
599 }
600
601 protected Class<?> getModelClass() {
602 return RatingsEntry.class;
603 }
604
605 protected String getModelClassName() {
606 return RatingsEntry.class.getName();
607 }
608
609
614 protected void runSQL(String sql) throws SystemException {
615 try {
616 DataSource dataSource = ratingsEntryPersistence.getDataSource();
617
618 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
619 sql, new int[0]);
620
621 sqlUpdate.update();
622 }
623 catch (Exception e) {
624 throw new SystemException(e);
625 }
626 }
627
628 @BeanReference(type = RatingsEntryLocalService.class)
629 protected RatingsEntryLocalService ratingsEntryLocalService;
630 @BeanReference(type = RatingsEntryService.class)
631 protected RatingsEntryService ratingsEntryService;
632 @BeanReference(type = RatingsEntryPersistence.class)
633 protected RatingsEntryPersistence ratingsEntryPersistence;
634 @BeanReference(type = RatingsEntryFinder.class)
635 protected RatingsEntryFinder ratingsEntryFinder;
636 @BeanReference(type = RatingsStatsLocalService.class)
637 protected RatingsStatsLocalService ratingsStatsLocalService;
638 @BeanReference(type = RatingsStatsPersistence.class)
639 protected RatingsStatsPersistence ratingsStatsPersistence;
640 @BeanReference(type = RatingsStatsFinder.class)
641 protected RatingsStatsFinder ratingsStatsFinder;
642 @BeanReference(type = CounterLocalService.class)
643 protected CounterLocalService counterLocalService;
644 @BeanReference(type = ResourceLocalService.class)
645 protected ResourceLocalService resourceLocalService;
646 @BeanReference(type = UserLocalService.class)
647 protected UserLocalService userLocalService;
648 @BeanReference(type = UserService.class)
649 protected UserService userService;
650 @BeanReference(type = UserPersistence.class)
651 protected UserPersistence userPersistence;
652 @BeanReference(type = UserFinder.class)
653 protected UserFinder userFinder;
654 @BeanReference(type = AssetEntryLocalService.class)
655 protected AssetEntryLocalService assetEntryLocalService;
656 @BeanReference(type = AssetEntryService.class)
657 protected AssetEntryService assetEntryService;
658 @BeanReference(type = AssetEntryPersistence.class)
659 protected AssetEntryPersistence assetEntryPersistence;
660 @BeanReference(type = AssetEntryFinder.class)
661 protected AssetEntryFinder assetEntryFinder;
662 @BeanReference(type = BlogsEntryLocalService.class)
663 protected BlogsEntryLocalService blogsEntryLocalService;
664 @BeanReference(type = BlogsEntryService.class)
665 protected BlogsEntryService blogsEntryService;
666 @BeanReference(type = BlogsEntryPersistence.class)
667 protected BlogsEntryPersistence blogsEntryPersistence;
668 @BeanReference(type = BlogsEntryFinder.class)
669 protected BlogsEntryFinder blogsEntryFinder;
670 @BeanReference(type = BlogsStatsUserLocalService.class)
671 protected BlogsStatsUserLocalService blogsStatsUserLocalService;
672 @BeanReference(type = BlogsStatsUserPersistence.class)
673 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
674 @BeanReference(type = BlogsStatsUserFinder.class)
675 protected BlogsStatsUserFinder blogsStatsUserFinder;
676 @BeanReference(type = SocialActivityLocalService.class)
677 protected SocialActivityLocalService socialActivityLocalService;
678 @BeanReference(type = SocialActivityPersistence.class)
679 protected SocialActivityPersistence socialActivityPersistence;
680 @BeanReference(type = SocialActivityFinder.class)
681 protected SocialActivityFinder socialActivityFinder;
682 private String _beanIdentifier;
683 }