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.dao.orm.DynamicQuery;
024 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025 import com.liferay.portal.kernel.exception.PortalException;
026 import com.liferay.portal.kernel.exception.SystemException;
027 import com.liferay.portal.kernel.search.Indexable;
028 import com.liferay.portal.kernel.search.IndexableType;
029 import com.liferay.portal.kernel.util.OrderByComparator;
030 import com.liferay.portal.model.PersistedModel;
031 import com.liferay.portal.service.BaseLocalServiceImpl;
032 import com.liferay.portal.service.GroupLocalService;
033 import com.liferay.portal.service.GroupService;
034 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035 import com.liferay.portal.service.ResourceLocalService;
036 import com.liferay.portal.service.ResourceService;
037 import com.liferay.portal.service.UserLocalService;
038 import com.liferay.portal.service.UserService;
039 import com.liferay.portal.service.persistence.GroupFinder;
040 import com.liferay.portal.service.persistence.GroupPersistence;
041 import com.liferay.portal.service.persistence.ResourceFinder;
042 import com.liferay.portal.service.persistence.ResourcePersistence;
043 import com.liferay.portal.service.persistence.UserFinder;
044 import com.liferay.portal.service.persistence.UserPersistence;
045
046 import com.liferay.portlet.social.model.SocialActivityLimit;
047 import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
048 import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
049 import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
050 import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
051 import com.liferay.portlet.social.service.SocialActivityLocalService;
052 import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
053 import com.liferay.portlet.social.service.SocialActivitySettingService;
054 import com.liferay.portlet.social.service.SocialRelationLocalService;
055 import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
056 import com.liferay.portlet.social.service.SocialRequestLocalService;
057 import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
058 import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
059 import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
060 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
061 import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
062 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
063 import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
064 import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
065 import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
066
067 import java.io.Serializable;
068
069 import java.util.List;
070
071 import javax.sql.DataSource;
072
073
085 public abstract class SocialActivityLimitLocalServiceBaseImpl
086 extends BaseLocalServiceImpl implements SocialActivityLimitLocalService,
087 IdentifiableBean {
088
093
094
101 @Indexable(type = IndexableType.REINDEX)
102 public SocialActivityLimit addSocialActivityLimit(
103 SocialActivityLimit socialActivityLimit) throws SystemException {
104 socialActivityLimit.setNew(true);
105
106 return socialActivityLimitPersistence.update(socialActivityLimit, false);
107 }
108
109
115 public SocialActivityLimit createSocialActivityLimit(long activityLimitId) {
116 return socialActivityLimitPersistence.create(activityLimitId);
117 }
118
119
127 @Indexable(type = IndexableType.DELETE)
128 public SocialActivityLimit deleteSocialActivityLimit(long activityLimitId)
129 throws PortalException, SystemException {
130 return socialActivityLimitPersistence.remove(activityLimitId);
131 }
132
133
140 @Indexable(type = IndexableType.DELETE)
141 public SocialActivityLimit deleteSocialActivityLimit(
142 SocialActivityLimit socialActivityLimit) throws SystemException {
143 return socialActivityLimitPersistence.remove(socialActivityLimit);
144 }
145
146 public DynamicQuery dynamicQuery() {
147 Class<?> clazz = getClass();
148
149 return DynamicQueryFactoryUtil.forClass(SocialActivityLimit.class,
150 clazz.getClassLoader());
151 }
152
153
160 @SuppressWarnings("rawtypes")
161 public List dynamicQuery(DynamicQuery dynamicQuery)
162 throws SystemException {
163 return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery);
164 }
165
166
179 @SuppressWarnings("rawtypes")
180 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
181 throws SystemException {
182 return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery,
183 start, end);
184 }
185
186
200 @SuppressWarnings("rawtypes")
201 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
202 OrderByComparator orderByComparator) throws SystemException {
203 return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery,
204 start, end, orderByComparator);
205 }
206
207
214 public long dynamicQueryCount(DynamicQuery dynamicQuery)
215 throws SystemException {
216 return socialActivityLimitPersistence.countWithDynamicQuery(dynamicQuery);
217 }
218
219 public SocialActivityLimit fetchSocialActivityLimit(long activityLimitId)
220 throws SystemException {
221 return socialActivityLimitPersistence.fetchByPrimaryKey(activityLimitId);
222 }
223
224
232 public SocialActivityLimit getSocialActivityLimit(long activityLimitId)
233 throws PortalException, SystemException {
234 return socialActivityLimitPersistence.findByPrimaryKey(activityLimitId);
235 }
236
237 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
238 throws PortalException, SystemException {
239 return socialActivityLimitPersistence.findByPrimaryKey(primaryKeyObj);
240 }
241
242
254 public List<SocialActivityLimit> getSocialActivityLimits(int start, int end)
255 throws SystemException {
256 return socialActivityLimitPersistence.findAll(start, end);
257 }
258
259
265 public int getSocialActivityLimitsCount() throws SystemException {
266 return socialActivityLimitPersistence.countAll();
267 }
268
269
276 @Indexable(type = IndexableType.REINDEX)
277 public SocialActivityLimit updateSocialActivityLimit(
278 SocialActivityLimit socialActivityLimit) throws SystemException {
279 return updateSocialActivityLimit(socialActivityLimit, true);
280 }
281
282
290 @Indexable(type = IndexableType.REINDEX)
291 public SocialActivityLimit updateSocialActivityLimit(
292 SocialActivityLimit socialActivityLimit, boolean merge)
293 throws SystemException {
294 socialActivityLimit.setNew(false);
295
296 return socialActivityLimitPersistence.update(socialActivityLimit, merge);
297 }
298
299
304 public SocialActivityLocalService getSocialActivityLocalService() {
305 return socialActivityLocalService;
306 }
307
308
313 public void setSocialActivityLocalService(
314 SocialActivityLocalService socialActivityLocalService) {
315 this.socialActivityLocalService = socialActivityLocalService;
316 }
317
318
323 public SocialActivityPersistence getSocialActivityPersistence() {
324 return socialActivityPersistence;
325 }
326
327
332 public void setSocialActivityPersistence(
333 SocialActivityPersistence socialActivityPersistence) {
334 this.socialActivityPersistence = socialActivityPersistence;
335 }
336
337
342 public SocialActivityFinder getSocialActivityFinder() {
343 return socialActivityFinder;
344 }
345
346
351 public void setSocialActivityFinder(
352 SocialActivityFinder socialActivityFinder) {
353 this.socialActivityFinder = socialActivityFinder;
354 }
355
356
361 public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
362 return socialActivityAchievementLocalService;
363 }
364
365
370 public void setSocialActivityAchievementLocalService(
371 SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
372 this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
373 }
374
375
380 public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
381 return socialActivityAchievementPersistence;
382 }
383
384
389 public void setSocialActivityAchievementPersistence(
390 SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
391 this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
392 }
393
394
399 public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
400 return socialActivityCounterLocalService;
401 }
402
403
408 public void setSocialActivityCounterLocalService(
409 SocialActivityCounterLocalService socialActivityCounterLocalService) {
410 this.socialActivityCounterLocalService = socialActivityCounterLocalService;
411 }
412
413
418 public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
419 return socialActivityCounterPersistence;
420 }
421
422
427 public void setSocialActivityCounterPersistence(
428 SocialActivityCounterPersistence socialActivityCounterPersistence) {
429 this.socialActivityCounterPersistence = socialActivityCounterPersistence;
430 }
431
432
437 public SocialActivityCounterFinder getSocialActivityCounterFinder() {
438 return socialActivityCounterFinder;
439 }
440
441
446 public void setSocialActivityCounterFinder(
447 SocialActivityCounterFinder socialActivityCounterFinder) {
448 this.socialActivityCounterFinder = socialActivityCounterFinder;
449 }
450
451
456 public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
457 return socialActivityInterpreterLocalService;
458 }
459
460
465 public void setSocialActivityInterpreterLocalService(
466 SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
467 this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
468 }
469
470
475 public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
476 return socialActivityLimitLocalService;
477 }
478
479
484 public void setSocialActivityLimitLocalService(
485 SocialActivityLimitLocalService socialActivityLimitLocalService) {
486 this.socialActivityLimitLocalService = socialActivityLimitLocalService;
487 }
488
489
494 public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
495 return socialActivityLimitPersistence;
496 }
497
498
503 public void setSocialActivityLimitPersistence(
504 SocialActivityLimitPersistence socialActivityLimitPersistence) {
505 this.socialActivityLimitPersistence = socialActivityLimitPersistence;
506 }
507
508
513 public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
514 return socialActivitySettingLocalService;
515 }
516
517
522 public void setSocialActivitySettingLocalService(
523 SocialActivitySettingLocalService socialActivitySettingLocalService) {
524 this.socialActivitySettingLocalService = socialActivitySettingLocalService;
525 }
526
527
532 public SocialActivitySettingService getSocialActivitySettingService() {
533 return socialActivitySettingService;
534 }
535
536
541 public void setSocialActivitySettingService(
542 SocialActivitySettingService socialActivitySettingService) {
543 this.socialActivitySettingService = socialActivitySettingService;
544 }
545
546
551 public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
552 return socialActivitySettingPersistence;
553 }
554
555
560 public void setSocialActivitySettingPersistence(
561 SocialActivitySettingPersistence socialActivitySettingPersistence) {
562 this.socialActivitySettingPersistence = socialActivitySettingPersistence;
563 }
564
565
570 public SocialRelationLocalService getSocialRelationLocalService() {
571 return socialRelationLocalService;
572 }
573
574
579 public void setSocialRelationLocalService(
580 SocialRelationLocalService socialRelationLocalService) {
581 this.socialRelationLocalService = socialRelationLocalService;
582 }
583
584
589 public SocialRelationPersistence getSocialRelationPersistence() {
590 return socialRelationPersistence;
591 }
592
593
598 public void setSocialRelationPersistence(
599 SocialRelationPersistence socialRelationPersistence) {
600 this.socialRelationPersistence = socialRelationPersistence;
601 }
602
603
608 public SocialRequestLocalService getSocialRequestLocalService() {
609 return socialRequestLocalService;
610 }
611
612
617 public void setSocialRequestLocalService(
618 SocialRequestLocalService socialRequestLocalService) {
619 this.socialRequestLocalService = socialRequestLocalService;
620 }
621
622
627 public SocialRequestPersistence getSocialRequestPersistence() {
628 return socialRequestPersistence;
629 }
630
631
636 public void setSocialRequestPersistence(
637 SocialRequestPersistence socialRequestPersistence) {
638 this.socialRequestPersistence = socialRequestPersistence;
639 }
640
641
646 public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
647 return socialRequestInterpreterLocalService;
648 }
649
650
655 public void setSocialRequestInterpreterLocalService(
656 SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
657 this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
658 }
659
660
665 public CounterLocalService getCounterLocalService() {
666 return counterLocalService;
667 }
668
669
674 public void setCounterLocalService(CounterLocalService counterLocalService) {
675 this.counterLocalService = counterLocalService;
676 }
677
678
683 public GroupLocalService getGroupLocalService() {
684 return groupLocalService;
685 }
686
687
692 public void setGroupLocalService(GroupLocalService groupLocalService) {
693 this.groupLocalService = groupLocalService;
694 }
695
696
701 public GroupService getGroupService() {
702 return groupService;
703 }
704
705
710 public void setGroupService(GroupService groupService) {
711 this.groupService = groupService;
712 }
713
714
719 public GroupPersistence getGroupPersistence() {
720 return groupPersistence;
721 }
722
723
728 public void setGroupPersistence(GroupPersistence groupPersistence) {
729 this.groupPersistence = groupPersistence;
730 }
731
732
737 public GroupFinder getGroupFinder() {
738 return groupFinder;
739 }
740
741
746 public void setGroupFinder(GroupFinder groupFinder) {
747 this.groupFinder = groupFinder;
748 }
749
750
755 public ResourceLocalService getResourceLocalService() {
756 return resourceLocalService;
757 }
758
759
764 public void setResourceLocalService(
765 ResourceLocalService resourceLocalService) {
766 this.resourceLocalService = resourceLocalService;
767 }
768
769
774 public ResourceService getResourceService() {
775 return resourceService;
776 }
777
778
783 public void setResourceService(ResourceService resourceService) {
784 this.resourceService = resourceService;
785 }
786
787
792 public ResourcePersistence getResourcePersistence() {
793 return resourcePersistence;
794 }
795
796
801 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
802 this.resourcePersistence = resourcePersistence;
803 }
804
805
810 public ResourceFinder getResourceFinder() {
811 return resourceFinder;
812 }
813
814
819 public void setResourceFinder(ResourceFinder resourceFinder) {
820 this.resourceFinder = resourceFinder;
821 }
822
823
828 public UserLocalService getUserLocalService() {
829 return userLocalService;
830 }
831
832
837 public void setUserLocalService(UserLocalService userLocalService) {
838 this.userLocalService = userLocalService;
839 }
840
841
846 public UserService getUserService() {
847 return userService;
848 }
849
850
855 public void setUserService(UserService userService) {
856 this.userService = userService;
857 }
858
859
864 public UserPersistence getUserPersistence() {
865 return userPersistence;
866 }
867
868
873 public void setUserPersistence(UserPersistence userPersistence) {
874 this.userPersistence = userPersistence;
875 }
876
877
882 public UserFinder getUserFinder() {
883 return userFinder;
884 }
885
886
891 public void setUserFinder(UserFinder userFinder) {
892 this.userFinder = userFinder;
893 }
894
895 public void afterPropertiesSet() {
896 persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivityLimit",
897 socialActivityLimitLocalService);
898 }
899
900 public void destroy() {
901 persistedModelLocalServiceRegistry.unregister(
902 "com.liferay.portlet.social.model.SocialActivityLimit");
903 }
904
905
910 public String getBeanIdentifier() {
911 return _beanIdentifier;
912 }
913
914
919 public void setBeanIdentifier(String beanIdentifier) {
920 _beanIdentifier = beanIdentifier;
921 }
922
923 protected Class<?> getModelClass() {
924 return SocialActivityLimit.class;
925 }
926
927 protected String getModelClassName() {
928 return SocialActivityLimit.class.getName();
929 }
930
931
936 protected void runSQL(String sql) throws SystemException {
937 try {
938 DataSource dataSource = socialActivityLimitPersistence.getDataSource();
939
940 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
941 sql, new int[0]);
942
943 sqlUpdate.update();
944 }
945 catch (Exception e) {
946 throw new SystemException(e);
947 }
948 }
949
950 @BeanReference(type = SocialActivityLocalService.class)
951 protected SocialActivityLocalService socialActivityLocalService;
952 @BeanReference(type = SocialActivityPersistence.class)
953 protected SocialActivityPersistence socialActivityPersistence;
954 @BeanReference(type = SocialActivityFinder.class)
955 protected SocialActivityFinder socialActivityFinder;
956 @BeanReference(type = SocialActivityAchievementLocalService.class)
957 protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
958 @BeanReference(type = SocialActivityAchievementPersistence.class)
959 protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
960 @BeanReference(type = SocialActivityCounterLocalService.class)
961 protected SocialActivityCounterLocalService socialActivityCounterLocalService;
962 @BeanReference(type = SocialActivityCounterPersistence.class)
963 protected SocialActivityCounterPersistence socialActivityCounterPersistence;
964 @BeanReference(type = SocialActivityCounterFinder.class)
965 protected SocialActivityCounterFinder socialActivityCounterFinder;
966 @BeanReference(type = SocialActivityInterpreterLocalService.class)
967 protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
968 @BeanReference(type = SocialActivityLimitLocalService.class)
969 protected SocialActivityLimitLocalService socialActivityLimitLocalService;
970 @BeanReference(type = SocialActivityLimitPersistence.class)
971 protected SocialActivityLimitPersistence socialActivityLimitPersistence;
972 @BeanReference(type = SocialActivitySettingLocalService.class)
973 protected SocialActivitySettingLocalService socialActivitySettingLocalService;
974 @BeanReference(type = SocialActivitySettingService.class)
975 protected SocialActivitySettingService socialActivitySettingService;
976 @BeanReference(type = SocialActivitySettingPersistence.class)
977 protected SocialActivitySettingPersistence socialActivitySettingPersistence;
978 @BeanReference(type = SocialRelationLocalService.class)
979 protected SocialRelationLocalService socialRelationLocalService;
980 @BeanReference(type = SocialRelationPersistence.class)
981 protected SocialRelationPersistence socialRelationPersistence;
982 @BeanReference(type = SocialRequestLocalService.class)
983 protected SocialRequestLocalService socialRequestLocalService;
984 @BeanReference(type = SocialRequestPersistence.class)
985 protected SocialRequestPersistence socialRequestPersistence;
986 @BeanReference(type = SocialRequestInterpreterLocalService.class)
987 protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
988 @BeanReference(type = CounterLocalService.class)
989 protected CounterLocalService counterLocalService;
990 @BeanReference(type = GroupLocalService.class)
991 protected GroupLocalService groupLocalService;
992 @BeanReference(type = GroupService.class)
993 protected GroupService groupService;
994 @BeanReference(type = GroupPersistence.class)
995 protected GroupPersistence groupPersistence;
996 @BeanReference(type = GroupFinder.class)
997 protected GroupFinder groupFinder;
998 @BeanReference(type = ResourceLocalService.class)
999 protected ResourceLocalService resourceLocalService;
1000 @BeanReference(type = ResourceService.class)
1001 protected ResourceService resourceService;
1002 @BeanReference(type = ResourcePersistence.class)
1003 protected ResourcePersistence resourcePersistence;
1004 @BeanReference(type = ResourceFinder.class)
1005 protected ResourceFinder resourceFinder;
1006 @BeanReference(type = UserLocalService.class)
1007 protected UserLocalService userLocalService;
1008 @BeanReference(type = UserService.class)
1009 protected UserService userService;
1010 @BeanReference(type = UserPersistence.class)
1011 protected UserPersistence userPersistence;
1012 @BeanReference(type = UserFinder.class)
1013 protected UserFinder userFinder;
1014 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1015 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1016 private String _beanIdentifier;
1017 }