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.ResourceLocalService;
027 import com.liferay.portal.service.ResourceService;
028 import com.liferay.portal.service.UserLocalService;
029 import com.liferay.portal.service.UserService;
030 import com.liferay.portal.service.persistence.ResourceFinder;
031 import com.liferay.portal.service.persistence.ResourcePersistence;
032 import com.liferay.portal.service.persistence.UserFinder;
033 import com.liferay.portal.service.persistence.UserPersistence;
034
035 import com.liferay.portlet.asset.service.AssetEntryLocalService;
036 import com.liferay.portlet.asset.service.AssetEntryService;
037 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
038 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
039 import com.liferay.portlet.social.model.SocialEquityLog;
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 SocialEquityLogLocalServiceBaseImpl
080 implements SocialEquityLogLocalService {
081
088 public SocialEquityLog addSocialEquityLog(SocialEquityLog socialEquityLog)
089 throws SystemException {
090 socialEquityLog.setNew(true);
091
092 return socialEquityLogPersistence.update(socialEquityLog, false);
093 }
094
095
101 public SocialEquityLog createSocialEquityLog(long equityLogId) {
102 return socialEquityLogPersistence.create(equityLogId);
103 }
104
105
112 public void deleteSocialEquityLog(long equityLogId)
113 throws PortalException, SystemException {
114 socialEquityLogPersistence.remove(equityLogId);
115 }
116
117
123 public void deleteSocialEquityLog(SocialEquityLog socialEquityLog)
124 throws SystemException {
125 socialEquityLogPersistence.remove(socialEquityLog);
126 }
127
128
135 @SuppressWarnings("rawtypes")
136 public List dynamicQuery(DynamicQuery dynamicQuery)
137 throws SystemException {
138 return socialEquityLogPersistence.findWithDynamicQuery(dynamicQuery);
139 }
140
141
154 @SuppressWarnings("rawtypes")
155 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
156 throws SystemException {
157 return socialEquityLogPersistence.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 socialEquityLogPersistence.findWithDynamicQuery(dynamicQuery,
179 start, end, orderByComparator);
180 }
181
182
189 public long dynamicQueryCount(DynamicQuery dynamicQuery)
190 throws SystemException {
191 return socialEquityLogPersistence.countWithDynamicQuery(dynamicQuery);
192 }
193
194
202 public SocialEquityLog getSocialEquityLog(long equityLogId)
203 throws PortalException, SystemException {
204 return socialEquityLogPersistence.findByPrimaryKey(equityLogId);
205 }
206
207
219 public List<SocialEquityLog> getSocialEquityLogs(int start, int end)
220 throws SystemException {
221 return socialEquityLogPersistence.findAll(start, end);
222 }
223
224
230 public int getSocialEquityLogsCount() throws SystemException {
231 return socialEquityLogPersistence.countAll();
232 }
233
234
241 public SocialEquityLog updateSocialEquityLog(
242 SocialEquityLog socialEquityLog) throws SystemException {
243 socialEquityLog.setNew(false);
244
245 return socialEquityLogPersistence.update(socialEquityLog, true);
246 }
247
248
256 public SocialEquityLog updateSocialEquityLog(
257 SocialEquityLog socialEquityLog, boolean merge)
258 throws SystemException {
259 socialEquityLog.setNew(false);
260
261 return socialEquityLogPersistence.update(socialEquityLog, 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 ResourceLocalService getResourceLocalService() {
630 return resourceLocalService;
631 }
632
633
638 public void setResourceLocalService(
639 ResourceLocalService resourceLocalService) {
640 this.resourceLocalService = resourceLocalService;
641 }
642
643
648 public ResourceService getResourceService() {
649 return resourceService;
650 }
651
652
657 public void setResourceService(ResourceService resourceService) {
658 this.resourceService = resourceService;
659 }
660
661
666 public ResourcePersistence getResourcePersistence() {
667 return resourcePersistence;
668 }
669
670
675 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
676 this.resourcePersistence = resourcePersistence;
677 }
678
679
684 public ResourceFinder getResourceFinder() {
685 return resourceFinder;
686 }
687
688
693 public void setResourceFinder(ResourceFinder resourceFinder) {
694 this.resourceFinder = resourceFinder;
695 }
696
697
702 public UserLocalService getUserLocalService() {
703 return userLocalService;
704 }
705
706
711 public void setUserLocalService(UserLocalService userLocalService) {
712 this.userLocalService = userLocalService;
713 }
714
715
720 public UserService getUserService() {
721 return userService;
722 }
723
724
729 public void setUserService(UserService userService) {
730 this.userService = userService;
731 }
732
733
738 public UserPersistence getUserPersistence() {
739 return userPersistence;
740 }
741
742
747 public void setUserPersistence(UserPersistence userPersistence) {
748 this.userPersistence = userPersistence;
749 }
750
751
756 public UserFinder getUserFinder() {
757 return userFinder;
758 }
759
760
765 public void setUserFinder(UserFinder userFinder) {
766 this.userFinder = userFinder;
767 }
768
769
774 public AssetEntryLocalService getAssetEntryLocalService() {
775 return assetEntryLocalService;
776 }
777
778
783 public void setAssetEntryLocalService(
784 AssetEntryLocalService assetEntryLocalService) {
785 this.assetEntryLocalService = assetEntryLocalService;
786 }
787
788
793 public AssetEntryService getAssetEntryService() {
794 return assetEntryService;
795 }
796
797
802 public void setAssetEntryService(AssetEntryService assetEntryService) {
803 this.assetEntryService = assetEntryService;
804 }
805
806
811 public AssetEntryPersistence getAssetEntryPersistence() {
812 return assetEntryPersistence;
813 }
814
815
820 public void setAssetEntryPersistence(
821 AssetEntryPersistence assetEntryPersistence) {
822 this.assetEntryPersistence = assetEntryPersistence;
823 }
824
825
830 public AssetEntryFinder getAssetEntryFinder() {
831 return assetEntryFinder;
832 }
833
834
839 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
840 this.assetEntryFinder = assetEntryFinder;
841 }
842
843
848 protected void runSQL(String sql) throws SystemException {
849 try {
850 DataSource dataSource = socialEquityLogPersistence.getDataSource();
851
852 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
853 sql, new int[0]);
854
855 sqlUpdate.update();
856 }
857 catch (Exception e) {
858 throw new SystemException(e);
859 }
860 }
861
862 @BeanReference(type = SocialActivityLocalService.class)
863 protected SocialActivityLocalService socialActivityLocalService;
864 @BeanReference(type = SocialActivityPersistence.class)
865 protected SocialActivityPersistence socialActivityPersistence;
866 @BeanReference(type = SocialActivityFinder.class)
867 protected SocialActivityFinder socialActivityFinder;
868 @BeanReference(type = SocialActivityInterpreterLocalService.class)
869 protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
870 @BeanReference(type = SocialEquityAssetEntryPersistence.class)
871 protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
872 @BeanReference(type = SocialEquityHistoryLocalService.class)
873 protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
874 @BeanReference(type = SocialEquityHistoryPersistence.class)
875 protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
876 @BeanReference(type = SocialEquityLogLocalService.class)
877 protected SocialEquityLogLocalService socialEquityLogLocalService;
878 @BeanReference(type = SocialEquityLogPersistence.class)
879 protected SocialEquityLogPersistence socialEquityLogPersistence;
880 @BeanReference(type = SocialEquitySettingLocalService.class)
881 protected SocialEquitySettingLocalService socialEquitySettingLocalService;
882 @BeanReference(type = SocialEquitySettingPersistence.class)
883 protected SocialEquitySettingPersistence socialEquitySettingPersistence;
884 @BeanReference(type = SocialEquityUserLocalService.class)
885 protected SocialEquityUserLocalService socialEquityUserLocalService;
886 @BeanReference(type = SocialEquityUserPersistence.class)
887 protected SocialEquityUserPersistence socialEquityUserPersistence;
888 @BeanReference(type = SocialRelationLocalService.class)
889 protected SocialRelationLocalService socialRelationLocalService;
890 @BeanReference(type = SocialRelationPersistence.class)
891 protected SocialRelationPersistence socialRelationPersistence;
892 @BeanReference(type = SocialRequestLocalService.class)
893 protected SocialRequestLocalService socialRequestLocalService;
894 @BeanReference(type = SocialRequestPersistence.class)
895 protected SocialRequestPersistence socialRequestPersistence;
896 @BeanReference(type = SocialRequestInterpreterLocalService.class)
897 protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
898 @BeanReference(type = CounterLocalService.class)
899 protected CounterLocalService counterLocalService;
900 @BeanReference(type = ResourceLocalService.class)
901 protected ResourceLocalService resourceLocalService;
902 @BeanReference(type = ResourceService.class)
903 protected ResourceService resourceService;
904 @BeanReference(type = ResourcePersistence.class)
905 protected ResourcePersistence resourcePersistence;
906 @BeanReference(type = ResourceFinder.class)
907 protected ResourceFinder resourceFinder;
908 @BeanReference(type = UserLocalService.class)
909 protected UserLocalService userLocalService;
910 @BeanReference(type = UserService.class)
911 protected UserService userService;
912 @BeanReference(type = UserPersistence.class)
913 protected UserPersistence userPersistence;
914 @BeanReference(type = UserFinder.class)
915 protected UserFinder userFinder;
916 @BeanReference(type = AssetEntryLocalService.class)
917 protected AssetEntryLocalService assetEntryLocalService;
918 @BeanReference(type = AssetEntryService.class)
919 protected AssetEntryService assetEntryService;
920 @BeanReference(type = AssetEntryPersistence.class)
921 protected AssetEntryPersistence assetEntryPersistence;
922 @BeanReference(type = AssetEntryFinder.class)
923 protected AssetEntryFinder assetEntryFinder;
924 }