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.social.model.SocialEquityHistory;
036 import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
037 import com.liferay.portlet.social.service.SocialActivityLocalService;
038 import com.liferay.portlet.social.service.SocialEquityHistoryLocalService;
039 import com.liferay.portlet.social.service.SocialEquityLogLocalService;
040 import com.liferay.portlet.social.service.SocialEquitySettingLocalService;
041 import com.liferay.portlet.social.service.SocialEquityUserLocalService;
042 import com.liferay.portlet.social.service.SocialRelationLocalService;
043 import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
044 import com.liferay.portlet.social.service.SocialRequestLocalService;
045 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
046 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
047 import com.liferay.portlet.social.service.persistence.SocialEquityAssetEntryPersistence;
048 import com.liferay.portlet.social.service.persistence.SocialEquityHistoryPersistence;
049 import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
050 import com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistence;
051 import com.liferay.portlet.social.service.persistence.SocialEquityUserPersistence;
052 import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
053 import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
054
055 import java.util.List;
056
057 import javax.sql.DataSource;
058
059
075 public abstract class SocialEquityHistoryLocalServiceBaseImpl
076 implements SocialEquityHistoryLocalService {
077
084 public SocialEquityHistory addSocialEquityHistory(
085 SocialEquityHistory socialEquityHistory) throws SystemException {
086 socialEquityHistory.setNew(true);
087
088 return socialEquityHistoryPersistence.update(socialEquityHistory, false);
089 }
090
091
097 public SocialEquityHistory createSocialEquityHistory(long equityHistoryId) {
098 return socialEquityHistoryPersistence.create(equityHistoryId);
099 }
100
101
108 public void deleteSocialEquityHistory(long equityHistoryId)
109 throws PortalException, SystemException {
110 socialEquityHistoryPersistence.remove(equityHistoryId);
111 }
112
113
119 public void deleteSocialEquityHistory(
120 SocialEquityHistory socialEquityHistory) throws SystemException {
121 socialEquityHistoryPersistence.remove(socialEquityHistory);
122 }
123
124
131 @SuppressWarnings("rawtypes")
132 public List dynamicQuery(DynamicQuery dynamicQuery)
133 throws SystemException {
134 return socialEquityHistoryPersistence.findWithDynamicQuery(dynamicQuery);
135 }
136
137
150 @SuppressWarnings("rawtypes")
151 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
152 throws SystemException {
153 return socialEquityHistoryPersistence.findWithDynamicQuery(dynamicQuery,
154 start, end);
155 }
156
157
171 @SuppressWarnings("rawtypes")
172 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
173 OrderByComparator orderByComparator) throws SystemException {
174 return socialEquityHistoryPersistence.findWithDynamicQuery(dynamicQuery,
175 start, end, orderByComparator);
176 }
177
178
185 public long dynamicQueryCount(DynamicQuery dynamicQuery)
186 throws SystemException {
187 return socialEquityHistoryPersistence.countWithDynamicQuery(dynamicQuery);
188 }
189
190
198 public SocialEquityHistory getSocialEquityHistory(long equityHistoryId)
199 throws PortalException, SystemException {
200 return socialEquityHistoryPersistence.findByPrimaryKey(equityHistoryId);
201 }
202
203
215 public List<SocialEquityHistory> getSocialEquityHistories(int start, int end)
216 throws SystemException {
217 return socialEquityHistoryPersistence.findAll(start, end);
218 }
219
220
226 public int getSocialEquityHistoriesCount() throws SystemException {
227 return socialEquityHistoryPersistence.countAll();
228 }
229
230
237 public SocialEquityHistory updateSocialEquityHistory(
238 SocialEquityHistory socialEquityHistory) throws SystemException {
239 socialEquityHistory.setNew(false);
240
241 return socialEquityHistoryPersistence.update(socialEquityHistory, true);
242 }
243
244
252 public SocialEquityHistory updateSocialEquityHistory(
253 SocialEquityHistory socialEquityHistory, boolean merge)
254 throws SystemException {
255 socialEquityHistory.setNew(false);
256
257 return socialEquityHistoryPersistence.update(socialEquityHistory, merge);
258 }
259
260
265 public SocialActivityLocalService getSocialActivityLocalService() {
266 return socialActivityLocalService;
267 }
268
269
274 public void setSocialActivityLocalService(
275 SocialActivityLocalService socialActivityLocalService) {
276 this.socialActivityLocalService = socialActivityLocalService;
277 }
278
279
284 public SocialActivityPersistence getSocialActivityPersistence() {
285 return socialActivityPersistence;
286 }
287
288
293 public void setSocialActivityPersistence(
294 SocialActivityPersistence socialActivityPersistence) {
295 this.socialActivityPersistence = socialActivityPersistence;
296 }
297
298
303 public SocialActivityFinder getSocialActivityFinder() {
304 return socialActivityFinder;
305 }
306
307
312 public void setSocialActivityFinder(
313 SocialActivityFinder socialActivityFinder) {
314 this.socialActivityFinder = socialActivityFinder;
315 }
316
317
322 public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
323 return socialActivityInterpreterLocalService;
324 }
325
326
331 public void setSocialActivityInterpreterLocalService(
332 SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
333 this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
334 }
335
336
341 public SocialEquityAssetEntryPersistence getSocialEquityAssetEntryPersistence() {
342 return socialEquityAssetEntryPersistence;
343 }
344
345
350 public void setSocialEquityAssetEntryPersistence(
351 SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence) {
352 this.socialEquityAssetEntryPersistence = socialEquityAssetEntryPersistence;
353 }
354
355
360 public SocialEquityHistoryLocalService getSocialEquityHistoryLocalService() {
361 return socialEquityHistoryLocalService;
362 }
363
364
369 public void setSocialEquityHistoryLocalService(
370 SocialEquityHistoryLocalService socialEquityHistoryLocalService) {
371 this.socialEquityHistoryLocalService = socialEquityHistoryLocalService;
372 }
373
374
379 public SocialEquityHistoryPersistence getSocialEquityHistoryPersistence() {
380 return socialEquityHistoryPersistence;
381 }
382
383
388 public void setSocialEquityHistoryPersistence(
389 SocialEquityHistoryPersistence socialEquityHistoryPersistence) {
390 this.socialEquityHistoryPersistence = socialEquityHistoryPersistence;
391 }
392
393
398 public SocialEquityLogLocalService getSocialEquityLogLocalService() {
399 return socialEquityLogLocalService;
400 }
401
402
407 public void setSocialEquityLogLocalService(
408 SocialEquityLogLocalService socialEquityLogLocalService) {
409 this.socialEquityLogLocalService = socialEquityLogLocalService;
410 }
411
412
417 public SocialEquityLogPersistence getSocialEquityLogPersistence() {
418 return socialEquityLogPersistence;
419 }
420
421
426 public void setSocialEquityLogPersistence(
427 SocialEquityLogPersistence socialEquityLogPersistence) {
428 this.socialEquityLogPersistence = socialEquityLogPersistence;
429 }
430
431
436 public SocialEquitySettingLocalService getSocialEquitySettingLocalService() {
437 return socialEquitySettingLocalService;
438 }
439
440
445 public void setSocialEquitySettingLocalService(
446 SocialEquitySettingLocalService socialEquitySettingLocalService) {
447 this.socialEquitySettingLocalService = socialEquitySettingLocalService;
448 }
449
450
455 public SocialEquitySettingPersistence getSocialEquitySettingPersistence() {
456 return socialEquitySettingPersistence;
457 }
458
459
464 public void setSocialEquitySettingPersistence(
465 SocialEquitySettingPersistence socialEquitySettingPersistence) {
466 this.socialEquitySettingPersistence = socialEquitySettingPersistence;
467 }
468
469
474 public SocialEquityUserLocalService getSocialEquityUserLocalService() {
475 return socialEquityUserLocalService;
476 }
477
478
483 public void setSocialEquityUserLocalService(
484 SocialEquityUserLocalService socialEquityUserLocalService) {
485 this.socialEquityUserLocalService = socialEquityUserLocalService;
486 }
487
488
493 public SocialEquityUserPersistence getSocialEquityUserPersistence() {
494 return socialEquityUserPersistence;
495 }
496
497
502 public void setSocialEquityUserPersistence(
503 SocialEquityUserPersistence socialEquityUserPersistence) {
504 this.socialEquityUserPersistence = socialEquityUserPersistence;
505 }
506
507
512 public SocialRelationLocalService getSocialRelationLocalService() {
513 return socialRelationLocalService;
514 }
515
516
521 public void setSocialRelationLocalService(
522 SocialRelationLocalService socialRelationLocalService) {
523 this.socialRelationLocalService = socialRelationLocalService;
524 }
525
526
531 public SocialRelationPersistence getSocialRelationPersistence() {
532 return socialRelationPersistence;
533 }
534
535
540 public void setSocialRelationPersistence(
541 SocialRelationPersistence socialRelationPersistence) {
542 this.socialRelationPersistence = socialRelationPersistence;
543 }
544
545
550 public SocialRequestLocalService getSocialRequestLocalService() {
551 return socialRequestLocalService;
552 }
553
554
559 public void setSocialRequestLocalService(
560 SocialRequestLocalService socialRequestLocalService) {
561 this.socialRequestLocalService = socialRequestLocalService;
562 }
563
564
569 public SocialRequestPersistence getSocialRequestPersistence() {
570 return socialRequestPersistence;
571 }
572
573
578 public void setSocialRequestPersistence(
579 SocialRequestPersistence socialRequestPersistence) {
580 this.socialRequestPersistence = socialRequestPersistence;
581 }
582
583
588 public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
589 return socialRequestInterpreterLocalService;
590 }
591
592
597 public void setSocialRequestInterpreterLocalService(
598 SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
599 this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
600 }
601
602
607 public CounterLocalService getCounterLocalService() {
608 return counterLocalService;
609 }
610
611
616 public void setCounterLocalService(CounterLocalService counterLocalService) {
617 this.counterLocalService = counterLocalService;
618 }
619
620
625 public ResourceLocalService getResourceLocalService() {
626 return resourceLocalService;
627 }
628
629
634 public void setResourceLocalService(
635 ResourceLocalService resourceLocalService) {
636 this.resourceLocalService = resourceLocalService;
637 }
638
639
644 public ResourceService getResourceService() {
645 return resourceService;
646 }
647
648
653 public void setResourceService(ResourceService resourceService) {
654 this.resourceService = resourceService;
655 }
656
657
662 public ResourcePersistence getResourcePersistence() {
663 return resourcePersistence;
664 }
665
666
671 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
672 this.resourcePersistence = resourcePersistence;
673 }
674
675
680 public ResourceFinder getResourceFinder() {
681 return resourceFinder;
682 }
683
684
689 public void setResourceFinder(ResourceFinder resourceFinder) {
690 this.resourceFinder = resourceFinder;
691 }
692
693
698 public UserLocalService getUserLocalService() {
699 return userLocalService;
700 }
701
702
707 public void setUserLocalService(UserLocalService userLocalService) {
708 this.userLocalService = userLocalService;
709 }
710
711
716 public UserService getUserService() {
717 return userService;
718 }
719
720
725 public void setUserService(UserService userService) {
726 this.userService = userService;
727 }
728
729
734 public UserPersistence getUserPersistence() {
735 return userPersistence;
736 }
737
738
743 public void setUserPersistence(UserPersistence userPersistence) {
744 this.userPersistence = userPersistence;
745 }
746
747
752 public UserFinder getUserFinder() {
753 return userFinder;
754 }
755
756
761 public void setUserFinder(UserFinder userFinder) {
762 this.userFinder = userFinder;
763 }
764
765
770 protected void runSQL(String sql) throws SystemException {
771 try {
772 DataSource dataSource = socialEquityHistoryPersistence.getDataSource();
773
774 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
775 sql, new int[0]);
776
777 sqlUpdate.update();
778 }
779 catch (Exception e) {
780 throw new SystemException(e);
781 }
782 }
783
784 @BeanReference(type = SocialActivityLocalService.class)
785 protected SocialActivityLocalService socialActivityLocalService;
786 @BeanReference(type = SocialActivityPersistence.class)
787 protected SocialActivityPersistence socialActivityPersistence;
788 @BeanReference(type = SocialActivityFinder.class)
789 protected SocialActivityFinder socialActivityFinder;
790 @BeanReference(type = SocialActivityInterpreterLocalService.class)
791 protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
792 @BeanReference(type = SocialEquityAssetEntryPersistence.class)
793 protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
794 @BeanReference(type = SocialEquityHistoryLocalService.class)
795 protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
796 @BeanReference(type = SocialEquityHistoryPersistence.class)
797 protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
798 @BeanReference(type = SocialEquityLogLocalService.class)
799 protected SocialEquityLogLocalService socialEquityLogLocalService;
800 @BeanReference(type = SocialEquityLogPersistence.class)
801 protected SocialEquityLogPersistence socialEquityLogPersistence;
802 @BeanReference(type = SocialEquitySettingLocalService.class)
803 protected SocialEquitySettingLocalService socialEquitySettingLocalService;
804 @BeanReference(type = SocialEquitySettingPersistence.class)
805 protected SocialEquitySettingPersistence socialEquitySettingPersistence;
806 @BeanReference(type = SocialEquityUserLocalService.class)
807 protected SocialEquityUserLocalService socialEquityUserLocalService;
808 @BeanReference(type = SocialEquityUserPersistence.class)
809 protected SocialEquityUserPersistence socialEquityUserPersistence;
810 @BeanReference(type = SocialRelationLocalService.class)
811 protected SocialRelationLocalService socialRelationLocalService;
812 @BeanReference(type = SocialRelationPersistence.class)
813 protected SocialRelationPersistence socialRelationPersistence;
814 @BeanReference(type = SocialRequestLocalService.class)
815 protected SocialRequestLocalService socialRequestLocalService;
816 @BeanReference(type = SocialRequestPersistence.class)
817 protected SocialRequestPersistence socialRequestPersistence;
818 @BeanReference(type = SocialRequestInterpreterLocalService.class)
819 protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
820 @BeanReference(type = CounterLocalService.class)
821 protected CounterLocalService counterLocalService;
822 @BeanReference(type = ResourceLocalService.class)
823 protected ResourceLocalService resourceLocalService;
824 @BeanReference(type = ResourceService.class)
825 protected ResourceService resourceService;
826 @BeanReference(type = ResourcePersistence.class)
827 protected ResourcePersistence resourcePersistence;
828 @BeanReference(type = ResourceFinder.class)
829 protected ResourceFinder resourceFinder;
830 @BeanReference(type = UserLocalService.class)
831 protected UserLocalService userLocalService;
832 @BeanReference(type = UserService.class)
833 protected UserService userService;
834 @BeanReference(type = UserPersistence.class)
835 protected UserPersistence userPersistence;
836 @BeanReference(type = UserFinder.class)
837 protected UserFinder userFinder;
838 }