001
014
015 package com.liferay.portlet.social.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.GroupLocalService;
026 import com.liferay.portal.service.GroupService;
027 import com.liferay.portal.service.ResourceLocalService;
028 import com.liferay.portal.service.ResourceService;
029 import com.liferay.portal.service.UserLocalService;
030 import com.liferay.portal.service.UserService;
031 import com.liferay.portal.service.persistence.GroupFinder;
032 import com.liferay.portal.service.persistence.GroupPersistence;
033 import com.liferay.portal.service.persistence.ResourceFinder;
034 import com.liferay.portal.service.persistence.ResourcePersistence;
035 import com.liferay.portal.service.persistence.UserFinder;
036 import com.liferay.portal.service.persistence.UserPersistence;
037
038 import com.liferay.portlet.social.model.SocialActivitySetting;
039 import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
040 import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
041 import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
042 import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
043 import com.liferay.portlet.social.service.SocialActivityLocalService;
044 import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
045 import com.liferay.portlet.social.service.SocialActivitySettingService;
046 import com.liferay.portlet.social.service.SocialRelationLocalService;
047 import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
048 import com.liferay.portlet.social.service.SocialRequestLocalService;
049 import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
050 import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
051 import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
052 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
053 import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
054 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
055 import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
056 import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
057 import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
058
059 import javax.sql.DataSource;
060
061
073 public abstract class SocialActivitySettingServiceBaseImpl
074 extends BaseServiceImpl implements SocialActivitySettingService,
075 IdentifiableBean {
076
081
082
087 public SocialActivityLocalService getSocialActivityLocalService() {
088 return socialActivityLocalService;
089 }
090
091
096 public void setSocialActivityLocalService(
097 SocialActivityLocalService socialActivityLocalService) {
098 this.socialActivityLocalService = socialActivityLocalService;
099 }
100
101
106 public SocialActivityPersistence getSocialActivityPersistence() {
107 return socialActivityPersistence;
108 }
109
110
115 public void setSocialActivityPersistence(
116 SocialActivityPersistence socialActivityPersistence) {
117 this.socialActivityPersistence = socialActivityPersistence;
118 }
119
120
125 public SocialActivityFinder getSocialActivityFinder() {
126 return socialActivityFinder;
127 }
128
129
134 public void setSocialActivityFinder(
135 SocialActivityFinder socialActivityFinder) {
136 this.socialActivityFinder = socialActivityFinder;
137 }
138
139
144 public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
145 return socialActivityAchievementLocalService;
146 }
147
148
153 public void setSocialActivityAchievementLocalService(
154 SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
155 this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
156 }
157
158
163 public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
164 return socialActivityAchievementPersistence;
165 }
166
167
172 public void setSocialActivityAchievementPersistence(
173 SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
174 this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
175 }
176
177
182 public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
183 return socialActivityCounterLocalService;
184 }
185
186
191 public void setSocialActivityCounterLocalService(
192 SocialActivityCounterLocalService socialActivityCounterLocalService) {
193 this.socialActivityCounterLocalService = socialActivityCounterLocalService;
194 }
195
196
201 public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
202 return socialActivityCounterPersistence;
203 }
204
205
210 public void setSocialActivityCounterPersistence(
211 SocialActivityCounterPersistence socialActivityCounterPersistence) {
212 this.socialActivityCounterPersistence = socialActivityCounterPersistence;
213 }
214
215
220 public SocialActivityCounterFinder getSocialActivityCounterFinder() {
221 return socialActivityCounterFinder;
222 }
223
224
229 public void setSocialActivityCounterFinder(
230 SocialActivityCounterFinder socialActivityCounterFinder) {
231 this.socialActivityCounterFinder = socialActivityCounterFinder;
232 }
233
234
239 public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
240 return socialActivityInterpreterLocalService;
241 }
242
243
248 public void setSocialActivityInterpreterLocalService(
249 SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
250 this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
251 }
252
253
258 public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
259 return socialActivityLimitLocalService;
260 }
261
262
267 public void setSocialActivityLimitLocalService(
268 SocialActivityLimitLocalService socialActivityLimitLocalService) {
269 this.socialActivityLimitLocalService = socialActivityLimitLocalService;
270 }
271
272
277 public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
278 return socialActivityLimitPersistence;
279 }
280
281
286 public void setSocialActivityLimitPersistence(
287 SocialActivityLimitPersistence socialActivityLimitPersistence) {
288 this.socialActivityLimitPersistence = socialActivityLimitPersistence;
289 }
290
291
296 public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
297 return socialActivitySettingLocalService;
298 }
299
300
305 public void setSocialActivitySettingLocalService(
306 SocialActivitySettingLocalService socialActivitySettingLocalService) {
307 this.socialActivitySettingLocalService = socialActivitySettingLocalService;
308 }
309
310
315 public SocialActivitySettingService getSocialActivitySettingService() {
316 return socialActivitySettingService;
317 }
318
319
324 public void setSocialActivitySettingService(
325 SocialActivitySettingService socialActivitySettingService) {
326 this.socialActivitySettingService = socialActivitySettingService;
327 }
328
329
334 public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
335 return socialActivitySettingPersistence;
336 }
337
338
343 public void setSocialActivitySettingPersistence(
344 SocialActivitySettingPersistence socialActivitySettingPersistence) {
345 this.socialActivitySettingPersistence = socialActivitySettingPersistence;
346 }
347
348
353 public SocialRelationLocalService getSocialRelationLocalService() {
354 return socialRelationLocalService;
355 }
356
357
362 public void setSocialRelationLocalService(
363 SocialRelationLocalService socialRelationLocalService) {
364 this.socialRelationLocalService = socialRelationLocalService;
365 }
366
367
372 public SocialRelationPersistence getSocialRelationPersistence() {
373 return socialRelationPersistence;
374 }
375
376
381 public void setSocialRelationPersistence(
382 SocialRelationPersistence socialRelationPersistence) {
383 this.socialRelationPersistence = socialRelationPersistence;
384 }
385
386
391 public SocialRequestLocalService getSocialRequestLocalService() {
392 return socialRequestLocalService;
393 }
394
395
400 public void setSocialRequestLocalService(
401 SocialRequestLocalService socialRequestLocalService) {
402 this.socialRequestLocalService = socialRequestLocalService;
403 }
404
405
410 public SocialRequestPersistence getSocialRequestPersistence() {
411 return socialRequestPersistence;
412 }
413
414
419 public void setSocialRequestPersistence(
420 SocialRequestPersistence socialRequestPersistence) {
421 this.socialRequestPersistence = socialRequestPersistence;
422 }
423
424
429 public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
430 return socialRequestInterpreterLocalService;
431 }
432
433
438 public void setSocialRequestInterpreterLocalService(
439 SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
440 this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
441 }
442
443
448 public CounterLocalService getCounterLocalService() {
449 return counterLocalService;
450 }
451
452
457 public void setCounterLocalService(CounterLocalService counterLocalService) {
458 this.counterLocalService = counterLocalService;
459 }
460
461
466 public GroupLocalService getGroupLocalService() {
467 return groupLocalService;
468 }
469
470
475 public void setGroupLocalService(GroupLocalService groupLocalService) {
476 this.groupLocalService = groupLocalService;
477 }
478
479
484 public GroupService getGroupService() {
485 return groupService;
486 }
487
488
493 public void setGroupService(GroupService groupService) {
494 this.groupService = groupService;
495 }
496
497
502 public GroupPersistence getGroupPersistence() {
503 return groupPersistence;
504 }
505
506
511 public void setGroupPersistence(GroupPersistence groupPersistence) {
512 this.groupPersistence = groupPersistence;
513 }
514
515
520 public GroupFinder getGroupFinder() {
521 return groupFinder;
522 }
523
524
529 public void setGroupFinder(GroupFinder groupFinder) {
530 this.groupFinder = groupFinder;
531 }
532
533
538 public ResourceLocalService getResourceLocalService() {
539 return resourceLocalService;
540 }
541
542
547 public void setResourceLocalService(
548 ResourceLocalService resourceLocalService) {
549 this.resourceLocalService = resourceLocalService;
550 }
551
552
557 public ResourceService getResourceService() {
558 return resourceService;
559 }
560
561
566 public void setResourceService(ResourceService resourceService) {
567 this.resourceService = resourceService;
568 }
569
570
575 public ResourcePersistence getResourcePersistence() {
576 return resourcePersistence;
577 }
578
579
584 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
585 this.resourcePersistence = resourcePersistence;
586 }
587
588
593 public ResourceFinder getResourceFinder() {
594 return resourceFinder;
595 }
596
597
602 public void setResourceFinder(ResourceFinder resourceFinder) {
603 this.resourceFinder = resourceFinder;
604 }
605
606
611 public UserLocalService getUserLocalService() {
612 return userLocalService;
613 }
614
615
620 public void setUserLocalService(UserLocalService userLocalService) {
621 this.userLocalService = userLocalService;
622 }
623
624
629 public UserService getUserService() {
630 return userService;
631 }
632
633
638 public void setUserService(UserService userService) {
639 this.userService = userService;
640 }
641
642
647 public UserPersistence getUserPersistence() {
648 return userPersistence;
649 }
650
651
656 public void setUserPersistence(UserPersistence userPersistence) {
657 this.userPersistence = userPersistence;
658 }
659
660
665 public UserFinder getUserFinder() {
666 return userFinder;
667 }
668
669
674 public void setUserFinder(UserFinder userFinder) {
675 this.userFinder = userFinder;
676 }
677
678 public void afterPropertiesSet() {
679 }
680
681 public void destroy() {
682 }
683
684
689 public String getBeanIdentifier() {
690 return _beanIdentifier;
691 }
692
693
698 public void setBeanIdentifier(String beanIdentifier) {
699 _beanIdentifier = beanIdentifier;
700 }
701
702 protected Class<?> getModelClass() {
703 return SocialActivitySetting.class;
704 }
705
706 protected String getModelClassName() {
707 return SocialActivitySetting.class.getName();
708 }
709
710
715 protected void runSQL(String sql) throws SystemException {
716 try {
717 DataSource dataSource = socialActivitySettingPersistence.getDataSource();
718
719 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
720 sql, new int[0]);
721
722 sqlUpdate.update();
723 }
724 catch (Exception e) {
725 throw new SystemException(e);
726 }
727 }
728
729 @BeanReference(type = SocialActivityLocalService.class)
730 protected SocialActivityLocalService socialActivityLocalService;
731 @BeanReference(type = SocialActivityPersistence.class)
732 protected SocialActivityPersistence socialActivityPersistence;
733 @BeanReference(type = SocialActivityFinder.class)
734 protected SocialActivityFinder socialActivityFinder;
735 @BeanReference(type = SocialActivityAchievementLocalService.class)
736 protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
737 @BeanReference(type = SocialActivityAchievementPersistence.class)
738 protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
739 @BeanReference(type = SocialActivityCounterLocalService.class)
740 protected SocialActivityCounterLocalService socialActivityCounterLocalService;
741 @BeanReference(type = SocialActivityCounterPersistence.class)
742 protected SocialActivityCounterPersistence socialActivityCounterPersistence;
743 @BeanReference(type = SocialActivityCounterFinder.class)
744 protected SocialActivityCounterFinder socialActivityCounterFinder;
745 @BeanReference(type = SocialActivityInterpreterLocalService.class)
746 protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
747 @BeanReference(type = SocialActivityLimitLocalService.class)
748 protected SocialActivityLimitLocalService socialActivityLimitLocalService;
749 @BeanReference(type = SocialActivityLimitPersistence.class)
750 protected SocialActivityLimitPersistence socialActivityLimitPersistence;
751 @BeanReference(type = SocialActivitySettingLocalService.class)
752 protected SocialActivitySettingLocalService socialActivitySettingLocalService;
753 @BeanReference(type = SocialActivitySettingService.class)
754 protected SocialActivitySettingService socialActivitySettingService;
755 @BeanReference(type = SocialActivitySettingPersistence.class)
756 protected SocialActivitySettingPersistence socialActivitySettingPersistence;
757 @BeanReference(type = SocialRelationLocalService.class)
758 protected SocialRelationLocalService socialRelationLocalService;
759 @BeanReference(type = SocialRelationPersistence.class)
760 protected SocialRelationPersistence socialRelationPersistence;
761 @BeanReference(type = SocialRequestLocalService.class)
762 protected SocialRequestLocalService socialRequestLocalService;
763 @BeanReference(type = SocialRequestPersistence.class)
764 protected SocialRequestPersistence socialRequestPersistence;
765 @BeanReference(type = SocialRequestInterpreterLocalService.class)
766 protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
767 @BeanReference(type = CounterLocalService.class)
768 protected CounterLocalService counterLocalService;
769 @BeanReference(type = GroupLocalService.class)
770 protected GroupLocalService groupLocalService;
771 @BeanReference(type = GroupService.class)
772 protected GroupService groupService;
773 @BeanReference(type = GroupPersistence.class)
774 protected GroupPersistence groupPersistence;
775 @BeanReference(type = GroupFinder.class)
776 protected GroupFinder groupFinder;
777 @BeanReference(type = ResourceLocalService.class)
778 protected ResourceLocalService resourceLocalService;
779 @BeanReference(type = ResourceService.class)
780 protected ResourceService resourceService;
781 @BeanReference(type = ResourcePersistence.class)
782 protected ResourcePersistence resourcePersistence;
783 @BeanReference(type = ResourceFinder.class)
784 protected ResourceFinder resourceFinder;
785 @BeanReference(type = UserLocalService.class)
786 protected UserLocalService userLocalService;
787 @BeanReference(type = UserService.class)
788 protected UserService userService;
789 @BeanReference(type = UserPersistence.class)
790 protected UserPersistence userPersistence;
791 @BeanReference(type = UserFinder.class)
792 protected UserFinder userFinder;
793 private String _beanIdentifier;
794 }