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.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
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
043 import javax.sql.DataSource;
044
045
057 public abstract class RatingsEntryServiceBaseImpl extends BaseServiceImpl
058 implements RatingsEntryService, IdentifiableOSGiService {
059
064
065
070 public com.liferay.portlet.ratings.service.RatingsEntryLocalService getRatingsEntryLocalService() {
071 return ratingsEntryLocalService;
072 }
073
074
079 public void setRatingsEntryLocalService(
080 com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService) {
081 this.ratingsEntryLocalService = ratingsEntryLocalService;
082 }
083
084
089 public RatingsEntryService getRatingsEntryService() {
090 return ratingsEntryService;
091 }
092
093
098 public void setRatingsEntryService(RatingsEntryService ratingsEntryService) {
099 this.ratingsEntryService = ratingsEntryService;
100 }
101
102
107 public RatingsEntryPersistence getRatingsEntryPersistence() {
108 return ratingsEntryPersistence;
109 }
110
111
116 public void setRatingsEntryPersistence(
117 RatingsEntryPersistence ratingsEntryPersistence) {
118 this.ratingsEntryPersistence = ratingsEntryPersistence;
119 }
120
121
126 public RatingsEntryFinder getRatingsEntryFinder() {
127 return ratingsEntryFinder;
128 }
129
130
135 public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
136 this.ratingsEntryFinder = ratingsEntryFinder;
137 }
138
139
144 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
145 return ratingsStatsLocalService;
146 }
147
148
153 public void setRatingsStatsLocalService(
154 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
155 this.ratingsStatsLocalService = ratingsStatsLocalService;
156 }
157
158
163 public RatingsStatsPersistence getRatingsStatsPersistence() {
164 return ratingsStatsPersistence;
165 }
166
167
172 public void setRatingsStatsPersistence(
173 RatingsStatsPersistence ratingsStatsPersistence) {
174 this.ratingsStatsPersistence = ratingsStatsPersistence;
175 }
176
177
182 public RatingsStatsFinder getRatingsStatsFinder() {
183 return ratingsStatsFinder;
184 }
185
186
191 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
192 this.ratingsStatsFinder = ratingsStatsFinder;
193 }
194
195
200 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
201 return counterLocalService;
202 }
203
204
209 public void setCounterLocalService(
210 com.liferay.counter.service.CounterLocalService counterLocalService) {
211 this.counterLocalService = counterLocalService;
212 }
213
214
219 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
220 return classNameLocalService;
221 }
222
223
228 public void setClassNameLocalService(
229 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
230 this.classNameLocalService = classNameLocalService;
231 }
232
233
238 public com.liferay.portal.service.ClassNameService getClassNameService() {
239 return classNameService;
240 }
241
242
247 public void setClassNameService(
248 com.liferay.portal.service.ClassNameService classNameService) {
249 this.classNameService = classNameService;
250 }
251
252
257 public ClassNamePersistence getClassNamePersistence() {
258 return classNamePersistence;
259 }
260
261
266 public void setClassNamePersistence(
267 ClassNamePersistence classNamePersistence) {
268 this.classNamePersistence = classNamePersistence;
269 }
270
271
276 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
277 return resourceLocalService;
278 }
279
280
285 public void setResourceLocalService(
286 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
287 this.resourceLocalService = resourceLocalService;
288 }
289
290
295 public com.liferay.portal.service.UserLocalService getUserLocalService() {
296 return userLocalService;
297 }
298
299
304 public void setUserLocalService(
305 com.liferay.portal.service.UserLocalService userLocalService) {
306 this.userLocalService = userLocalService;
307 }
308
309
314 public com.liferay.portal.service.UserService getUserService() {
315 return userService;
316 }
317
318
323 public void setUserService(
324 com.liferay.portal.service.UserService userService) {
325 this.userService = userService;
326 }
327
328
333 public UserPersistence getUserPersistence() {
334 return userPersistence;
335 }
336
337
342 public void setUserPersistence(UserPersistence userPersistence) {
343 this.userPersistence = userPersistence;
344 }
345
346
351 public UserFinder getUserFinder() {
352 return userFinder;
353 }
354
355
360 public void setUserFinder(UserFinder userFinder) {
361 this.userFinder = userFinder;
362 }
363
364
369 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
370 return assetEntryLocalService;
371 }
372
373
378 public void setAssetEntryLocalService(
379 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
380 this.assetEntryLocalService = assetEntryLocalService;
381 }
382
383
388 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
389 return assetEntryService;
390 }
391
392
397 public void setAssetEntryService(
398 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
399 this.assetEntryService = assetEntryService;
400 }
401
402
407 public AssetEntryPersistence getAssetEntryPersistence() {
408 return assetEntryPersistence;
409 }
410
411
416 public void setAssetEntryPersistence(
417 AssetEntryPersistence assetEntryPersistence) {
418 this.assetEntryPersistence = assetEntryPersistence;
419 }
420
421
426 public AssetEntryFinder getAssetEntryFinder() {
427 return assetEntryFinder;
428 }
429
430
435 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
436 this.assetEntryFinder = assetEntryFinder;
437 }
438
439
444 public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
445 return blogsEntryLocalService;
446 }
447
448
453 public void setBlogsEntryLocalService(
454 com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
455 this.blogsEntryLocalService = blogsEntryLocalService;
456 }
457
458
463 public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
464 return blogsEntryService;
465 }
466
467
472 public void setBlogsEntryService(
473 com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
474 this.blogsEntryService = blogsEntryService;
475 }
476
477
482 public BlogsEntryPersistence getBlogsEntryPersistence() {
483 return blogsEntryPersistence;
484 }
485
486
491 public void setBlogsEntryPersistence(
492 BlogsEntryPersistence blogsEntryPersistence) {
493 this.blogsEntryPersistence = blogsEntryPersistence;
494 }
495
496
501 public BlogsEntryFinder getBlogsEntryFinder() {
502 return blogsEntryFinder;
503 }
504
505
510 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
511 this.blogsEntryFinder = blogsEntryFinder;
512 }
513
514
519 public com.liferay.portlet.blogs.service.BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
520 return blogsStatsUserLocalService;
521 }
522
523
528 public void setBlogsStatsUserLocalService(
529 com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService) {
530 this.blogsStatsUserLocalService = blogsStatsUserLocalService;
531 }
532
533
538 public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
539 return blogsStatsUserPersistence;
540 }
541
542
547 public void setBlogsStatsUserPersistence(
548 BlogsStatsUserPersistence blogsStatsUserPersistence) {
549 this.blogsStatsUserPersistence = blogsStatsUserPersistence;
550 }
551
552
557 public BlogsStatsUserFinder getBlogsStatsUserFinder() {
558 return blogsStatsUserFinder;
559 }
560
561
566 public void setBlogsStatsUserFinder(
567 BlogsStatsUserFinder blogsStatsUserFinder) {
568 this.blogsStatsUserFinder = blogsStatsUserFinder;
569 }
570
571 public void afterPropertiesSet() {
572 }
573
574 public void destroy() {
575 }
576
577
582 @Override
583 public String getOSGiServiceIdentifier() {
584 return RatingsEntryService.class.getName();
585 }
586
587 protected Class<?> getModelClass() {
588 return RatingsEntry.class;
589 }
590
591 protected String getModelClassName() {
592 return RatingsEntry.class.getName();
593 }
594
595
600 protected void runSQL(String sql) {
601 try {
602 DataSource dataSource = ratingsEntryPersistence.getDataSource();
603
604 DB db = DBManagerUtil.getDB();
605
606 sql = db.buildSQL(sql);
607 sql = PortalUtil.transformSQL(sql);
608
609 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
610 sql, new int[0]);
611
612 sqlUpdate.update();
613 }
614 catch (Exception e) {
615 throw new SystemException(e);
616 }
617 }
618
619 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
620 protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
621 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryService.class)
622 protected RatingsEntryService ratingsEntryService;
623 @BeanReference(type = RatingsEntryPersistence.class)
624 protected RatingsEntryPersistence ratingsEntryPersistence;
625 @BeanReference(type = RatingsEntryFinder.class)
626 protected RatingsEntryFinder ratingsEntryFinder;
627 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
628 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
629 @BeanReference(type = RatingsStatsPersistence.class)
630 protected RatingsStatsPersistence ratingsStatsPersistence;
631 @BeanReference(type = RatingsStatsFinder.class)
632 protected RatingsStatsFinder ratingsStatsFinder;
633 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
634 protected com.liferay.counter.service.CounterLocalService counterLocalService;
635 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
636 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
637 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
638 protected com.liferay.portal.service.ClassNameService classNameService;
639 @BeanReference(type = ClassNamePersistence.class)
640 protected ClassNamePersistence classNamePersistence;
641 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
642 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
643 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
644 protected com.liferay.portal.service.UserLocalService userLocalService;
645 @BeanReference(type = com.liferay.portal.service.UserService.class)
646 protected com.liferay.portal.service.UserService userService;
647 @BeanReference(type = UserPersistence.class)
648 protected UserPersistence userPersistence;
649 @BeanReference(type = UserFinder.class)
650 protected UserFinder userFinder;
651 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
652 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
653 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
654 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
655 @BeanReference(type = AssetEntryPersistence.class)
656 protected AssetEntryPersistence assetEntryPersistence;
657 @BeanReference(type = AssetEntryFinder.class)
658 protected AssetEntryFinder assetEntryFinder;
659 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
660 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
661 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
662 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
663 @BeanReference(type = BlogsEntryPersistence.class)
664 protected BlogsEntryPersistence blogsEntryPersistence;
665 @BeanReference(type = BlogsEntryFinder.class)
666 protected BlogsEntryFinder blogsEntryFinder;
667 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsStatsUserLocalService.class)
668 protected com.liferay.portlet.blogs.service.BlogsStatsUserLocalService blogsStatsUserLocalService;
669 @BeanReference(type = BlogsStatsUserPersistence.class)
670 protected BlogsStatsUserPersistence blogsStatsUserPersistence;
671 @BeanReference(type = BlogsStatsUserFinder.class)
672 protected BlogsStatsUserFinder blogsStatsUserFinder;
673 }