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.annotation.BeanReference;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023 import com.liferay.portal.kernel.exception.PortalException;
024 import com.liferay.portal.kernel.exception.SystemException;
025 import com.liferay.portal.kernel.util.OrderByComparator;
026 import com.liferay.portal.service.GroupLocalService;
027 import com.liferay.portal.service.GroupService;
028 import com.liferay.portal.service.ResourceLocalService;
029 import com.liferay.portal.service.ResourceService;
030 import com.liferay.portal.service.UserLocalService;
031 import com.liferay.portal.service.UserService;
032 import com.liferay.portal.service.persistence.GroupFinder;
033 import com.liferay.portal.service.persistence.GroupPersistence;
034 import com.liferay.portal.service.persistence.ResourceFinder;
035 import com.liferay.portal.service.persistence.ResourcePersistence;
036 import com.liferay.portal.service.persistence.UserFinder;
037 import com.liferay.portal.service.persistence.UserPersistence;
038
039 import com.liferay.portlet.social.model.SocialEquitySetting;
040 import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
041 import com.liferay.portlet.social.service.SocialActivityLocalService;
042 import com.liferay.portlet.social.service.SocialEquityHistoryLocalService;
043 import com.liferay.portlet.social.service.SocialEquityLogLocalService;
044 import com.liferay.portlet.social.service.SocialEquitySettingLocalService;
045 import com.liferay.portlet.social.service.SocialEquityUserLocalService;
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.SocialActivityFinder;
050 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
051 import com.liferay.portlet.social.service.persistence.SocialEquityAssetEntryPersistence;
052 import com.liferay.portlet.social.service.persistence.SocialEquityHistoryPersistence;
053 import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
054 import com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistence;
055 import com.liferay.portlet.social.service.persistence.SocialEquityUserPersistence;
056 import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
057 import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
058
059 import java.util.List;
060
061 import javax.sql.DataSource;
062
063
079 public abstract class SocialEquitySettingLocalServiceBaseImpl
080 implements SocialEquitySettingLocalService {
081
088 public SocialEquitySetting addSocialEquitySetting(
089 SocialEquitySetting socialEquitySetting) throws SystemException {
090 socialEquitySetting.setNew(true);
091
092 return socialEquitySettingPersistence.update(socialEquitySetting, false);
093 }
094
095
101 public SocialEquitySetting createSocialEquitySetting(long equitySettingId) {
102 return socialEquitySettingPersistence.create(equitySettingId);
103 }
104
105
112 public void deleteSocialEquitySetting(long equitySettingId)
113 throws PortalException, SystemException {
114 socialEquitySettingPersistence.remove(equitySettingId);
115 }
116
117
123 public void deleteSocialEquitySetting(
124 SocialEquitySetting socialEquitySetting) throws SystemException {
125 socialEquitySettingPersistence.remove(socialEquitySetting);
126 }
127
128
135 @SuppressWarnings("rawtypes")
136 public List dynamicQuery(DynamicQuery dynamicQuery)
137 throws SystemException {
138 return socialEquitySettingPersistence.findWithDynamicQuery(dynamicQuery);
139 }
140
141
154 @SuppressWarnings("rawtypes")
155 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
156 throws SystemException {
157 return socialEquitySettingPersistence.findWithDynamicQuery(dynamicQuery,
158 start, end);
159 }
160
161
175 @SuppressWarnings("rawtypes")
176 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
177 OrderByComparator orderByComparator) throws SystemException {
178 return socialEquitySettingPersistence.findWithDynamicQuery(dynamicQuery,
179 start, end, orderByComparator);
180 }
181
182
189 public long dynamicQueryCount(DynamicQuery dynamicQuery)
190 throws SystemException {
191 return socialEquitySettingPersistence.countWithDynamicQuery(dynamicQuery);
192 }
193
194
202 public SocialEquitySetting getSocialEquitySetting(long equitySettingId)
203 throws PortalException, SystemException {
204 return socialEquitySettingPersistence.findByPrimaryKey(equitySettingId);
205 }
206
207
219 public List<SocialEquitySetting> getSocialEquitySettings(int start, int end)
220 throws SystemException {
221 return socialEquitySettingPersistence.findAll(start, end);
222 }
223
224
230 public int getSocialEquitySettingsCount() throws SystemException {
231 return socialEquitySettingPersistence.countAll();
232 }
233
234
241 public SocialEquitySetting updateSocialEquitySetting(
242 SocialEquitySetting socialEquitySetting) throws SystemException {
243 socialEquitySetting.setNew(false);
244
245 return socialEquitySettingPersistence.update(socialEquitySetting, true);
246 }
247
248
256 public SocialEquitySetting updateSocialEquitySetting(
257 SocialEquitySetting socialEquitySetting, boolean merge)
258 throws SystemException {
259 socialEquitySetting.setNew(false);
260
261 return socialEquitySettingPersistence.update(socialEquitySetting, merge);
262 }
263
264
269 public SocialActivityLocalService getSocialActivityLocalService() {
270 return socialActivityLocalService;
271 }
272
273
278 public void setSocialActivityLocalService(
279 SocialActivityLocalService socialActivityLocalService) {
280 this.socialActivityLocalService = socialActivityLocalService;
281 }
282
283
288 public SocialActivityPersistence getSocialActivityPersistence() {
289 return socialActivityPersistence;
290 }
291
292
297 public void setSocialActivityPersistence(
298 SocialActivityPersistence socialActivityPersistence) {
299 this.socialActivityPersistence = socialActivityPersistence;
300 }
301
302
307 public SocialActivityFinder getSocialActivityFinder() {
308 return socialActivityFinder;
309 }
310
311
316 public void setSocialActivityFinder(
317 SocialActivityFinder socialActivityFinder) {
318 this.socialActivityFinder = socialActivityFinder;
319 }
320
321
326 public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
327 return socialActivityInterpreterLocalService;
328 }
329
330
335 public void setSocialActivityInterpreterLocalService(
336 SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
337 this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
338 }
339
340
345 public SocialEquityAssetEntryPersistence getSocialEquityAssetEntryPersistence() {
346 return socialEquityAssetEntryPersistence;
347 }
348
349
354 public void setSocialEquityAssetEntryPersistence(
355 SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence) {
356 this.socialEquityAssetEntryPersistence = socialEquityAssetEntryPersistence;
357 }
358
359
364 public SocialEquityHistoryLocalService getSocialEquityHistoryLocalService() {
365 return socialEquityHistoryLocalService;
366 }
367
368
373 public void setSocialEquityHistoryLocalService(
374 SocialEquityHistoryLocalService socialEquityHistoryLocalService) {
375 this.socialEquityHistoryLocalService = socialEquityHistoryLocalService;
376 }
377
378
383 public SocialEquityHistoryPersistence getSocialEquityHistoryPersistence() {
384 return socialEquityHistoryPersistence;
385 }
386
387
392 public void setSocialEquityHistoryPersistence(
393 SocialEquityHistoryPersistence socialEquityHistoryPersistence) {
394 this.socialEquityHistoryPersistence = socialEquityHistoryPersistence;
395 }
396
397
402 public SocialEquityLogLocalService getSocialEquityLogLocalService() {
403 return socialEquityLogLocalService;
404 }
405
406
411 public void setSocialEquityLogLocalService(
412 SocialEquityLogLocalService socialEquityLogLocalService) {
413 this.socialEquityLogLocalService = socialEquityLogLocalService;
414 }
415
416
421 public SocialEquityLogPersistence getSocialEquityLogPersistence() {
422 return socialEquityLogPersistence;
423 }
424
425
430 public void setSocialEquityLogPersistence(
431 SocialEquityLogPersistence socialEquityLogPersistence) {
432 this.socialEquityLogPersistence = socialEquityLogPersistence;
433 }
434
435
440 public SocialEquitySettingLocalService getSocialEquitySettingLocalService() {
441 return socialEquitySettingLocalService;
442 }
443
444
449 public void setSocialEquitySettingLocalService(
450 SocialEquitySettingLocalService socialEquitySettingLocalService) {
451 this.socialEquitySettingLocalService = socialEquitySettingLocalService;
452 }
453
454
459 public SocialEquitySettingPersistence getSocialEquitySettingPersistence() {
460 return socialEquitySettingPersistence;
461 }
462
463
468 public void setSocialEquitySettingPersistence(
469 SocialEquitySettingPersistence socialEquitySettingPersistence) {
470 this.socialEquitySettingPersistence = socialEquitySettingPersistence;
471 }
472
473
478 public SocialEquityUserLocalService getSocialEquityUserLocalService() {
479 return socialEquityUserLocalService;
480 }
481
482
487 public void setSocialEquityUserLocalService(
488 SocialEquityUserLocalService socialEquityUserLocalService) {
489 this.socialEquityUserLocalService = socialEquityUserLocalService;
490 }
491
492
497 public SocialEquityUserPersistence getSocialEquityUserPersistence() {
498 return socialEquityUserPersistence;
499 }
500
501
506 public void setSocialEquityUserPersistence(
507 SocialEquityUserPersistence socialEquityUserPersistence) {
508 this.socialEquityUserPersistence = socialEquityUserPersistence;
509 }
510
511
516 public SocialRelationLocalService getSocialRelationLocalService() {
517 return socialRelationLocalService;
518 }
519
520
525 public void setSocialRelationLocalService(
526 SocialRelationLocalService socialRelationLocalService) {
527 this.socialRelationLocalService = socialRelationLocalService;
528 }
529
530
535 public SocialRelationPersistence getSocialRelationPersistence() {
536 return socialRelationPersistence;
537 }
538
539
544 public void setSocialRelationPersistence(
545 SocialRelationPersistence socialRelationPersistence) {
546 this.socialRelationPersistence = socialRelationPersistence;
547 }
548
549
554 public SocialRequestLocalService getSocialRequestLocalService() {
555 return socialRequestLocalService;
556 }
557
558
563 public void setSocialRequestLocalService(
564 SocialRequestLocalService socialRequestLocalService) {
565 this.socialRequestLocalService = socialRequestLocalService;
566 }
567
568
573 public SocialRequestPersistence getSocialRequestPersistence() {
574 return socialRequestPersistence;
575 }
576
577
582 public void setSocialRequestPersistence(
583 SocialRequestPersistence socialRequestPersistence) {
584 this.socialRequestPersistence = socialRequestPersistence;
585 }
586
587
592 public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
593 return socialRequestInterpreterLocalService;
594 }
595
596
601 public void setSocialRequestInterpreterLocalService(
602 SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
603 this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
604 }
605
606
611 public CounterLocalService getCounterLocalService() {
612 return counterLocalService;
613 }
614
615
620 public void setCounterLocalService(CounterLocalService counterLocalService) {
621 this.counterLocalService = counterLocalService;
622 }
623
624
629 public GroupLocalService getGroupLocalService() {
630 return groupLocalService;
631 }
632
633
638 public void setGroupLocalService(GroupLocalService groupLocalService) {
639 this.groupLocalService = groupLocalService;
640 }
641
642
647 public GroupService getGroupService() {
648 return groupService;
649 }
650
651
656 public void setGroupService(GroupService groupService) {
657 this.groupService = groupService;
658 }
659
660
665 public GroupPersistence getGroupPersistence() {
666 return groupPersistence;
667 }
668
669
674 public void setGroupPersistence(GroupPersistence groupPersistence) {
675 this.groupPersistence = groupPersistence;
676 }
677
678
683 public GroupFinder getGroupFinder() {
684 return groupFinder;
685 }
686
687
692 public void setGroupFinder(GroupFinder groupFinder) {
693 this.groupFinder = groupFinder;
694 }
695
696
701 public ResourceLocalService getResourceLocalService() {
702 return resourceLocalService;
703 }
704
705
710 public void setResourceLocalService(
711 ResourceLocalService resourceLocalService) {
712 this.resourceLocalService = resourceLocalService;
713 }
714
715
720 public ResourceService getResourceService() {
721 return resourceService;
722 }
723
724
729 public void setResourceService(ResourceService resourceService) {
730 this.resourceService = resourceService;
731 }
732
733
738 public ResourcePersistence getResourcePersistence() {
739 return resourcePersistence;
740 }
741
742
747 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
748 this.resourcePersistence = resourcePersistence;
749 }
750
751
756 public ResourceFinder getResourceFinder() {
757 return resourceFinder;
758 }
759
760
765 public void setResourceFinder(ResourceFinder resourceFinder) {
766 this.resourceFinder = resourceFinder;
767 }
768
769
774 public UserLocalService getUserLocalService() {
775 return userLocalService;
776 }
777
778
783 public void setUserLocalService(UserLocalService userLocalService) {
784 this.userLocalService = userLocalService;
785 }
786
787
792 public UserService getUserService() {
793 return userService;
794 }
795
796
801 public void setUserService(UserService userService) {
802 this.userService = userService;
803 }
804
805
810 public UserPersistence getUserPersistence() {
811 return userPersistence;
812 }
813
814
819 public void setUserPersistence(UserPersistence userPersistence) {
820 this.userPersistence = userPersistence;
821 }
822
823
828 public UserFinder getUserFinder() {
829 return userFinder;
830 }
831
832
837 public void setUserFinder(UserFinder userFinder) {
838 this.userFinder = userFinder;
839 }
840
841
846 protected void runSQL(String sql) throws SystemException {
847 try {
848 DataSource dataSource = socialEquitySettingPersistence.getDataSource();
849
850 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
851 sql, new int[0]);
852
853 sqlUpdate.update();
854 }
855 catch (Exception e) {
856 throw new SystemException(e);
857 }
858 }
859
860 @BeanReference(type = SocialActivityLocalService.class)
861 protected SocialActivityLocalService socialActivityLocalService;
862 @BeanReference(type = SocialActivityPersistence.class)
863 protected SocialActivityPersistence socialActivityPersistence;
864 @BeanReference(type = SocialActivityFinder.class)
865 protected SocialActivityFinder socialActivityFinder;
866 @BeanReference(type = SocialActivityInterpreterLocalService.class)
867 protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
868 @BeanReference(type = SocialEquityAssetEntryPersistence.class)
869 protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
870 @BeanReference(type = SocialEquityHistoryLocalService.class)
871 protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
872 @BeanReference(type = SocialEquityHistoryPersistence.class)
873 protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
874 @BeanReference(type = SocialEquityLogLocalService.class)
875 protected SocialEquityLogLocalService socialEquityLogLocalService;
876 @BeanReference(type = SocialEquityLogPersistence.class)
877 protected SocialEquityLogPersistence socialEquityLogPersistence;
878 @BeanReference(type = SocialEquitySettingLocalService.class)
879 protected SocialEquitySettingLocalService socialEquitySettingLocalService;
880 @BeanReference(type = SocialEquitySettingPersistence.class)
881 protected SocialEquitySettingPersistence socialEquitySettingPersistence;
882 @BeanReference(type = SocialEquityUserLocalService.class)
883 protected SocialEquityUserLocalService socialEquityUserLocalService;
884 @BeanReference(type = SocialEquityUserPersistence.class)
885 protected SocialEquityUserPersistence socialEquityUserPersistence;
886 @BeanReference(type = SocialRelationLocalService.class)
887 protected SocialRelationLocalService socialRelationLocalService;
888 @BeanReference(type = SocialRelationPersistence.class)
889 protected SocialRelationPersistence socialRelationPersistence;
890 @BeanReference(type = SocialRequestLocalService.class)
891 protected SocialRequestLocalService socialRequestLocalService;
892 @BeanReference(type = SocialRequestPersistence.class)
893 protected SocialRequestPersistence socialRequestPersistence;
894 @BeanReference(type = SocialRequestInterpreterLocalService.class)
895 protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
896 @BeanReference(type = CounterLocalService.class)
897 protected CounterLocalService counterLocalService;
898 @BeanReference(type = GroupLocalService.class)
899 protected GroupLocalService groupLocalService;
900 @BeanReference(type = GroupService.class)
901 protected GroupService groupService;
902 @BeanReference(type = GroupPersistence.class)
903 protected GroupPersistence groupPersistence;
904 @BeanReference(type = GroupFinder.class)
905 protected GroupFinder groupFinder;
906 @BeanReference(type = ResourceLocalService.class)
907 protected ResourceLocalService resourceLocalService;
908 @BeanReference(type = ResourceService.class)
909 protected ResourceService resourceService;
910 @BeanReference(type = ResourcePersistence.class)
911 protected ResourcePersistence resourcePersistence;
912 @BeanReference(type = ResourceFinder.class)
913 protected ResourceFinder resourceFinder;
914 @BeanReference(type = UserLocalService.class)
915 protected UserLocalService userLocalService;
916 @BeanReference(type = UserService.class)
917 protected UserService userService;
918 @BeanReference(type = UserPersistence.class)
919 protected UserPersistence userPersistence;
920 @BeanReference(type = UserFinder.class)
921 protected UserFinder userFinder;
922 }