001
014
015 package com.liferay.portlet.messageboards.service.base;
016
017 import com.liferay.portal.kernel.bean.BeanReference;
018 import com.liferay.portal.kernel.dao.db.DB;
019 import com.liferay.portal.kernel.dao.db.DBManagerUtil;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022 import com.liferay.portal.kernel.exception.SystemException;
023 import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
024 import com.liferay.portal.service.BaseServiceImpl;
025 import com.liferay.portal.service.persistence.GroupFinder;
026 import com.liferay.portal.service.persistence.GroupPersistence;
027 import com.liferay.portal.service.persistence.SubscriptionPersistence;
028 import com.liferay.portal.service.persistence.UserFinder;
029 import com.liferay.portal.service.persistence.UserPersistence;
030 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
031 import com.liferay.portal.util.PortalUtil;
032
033 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
034 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
035 import com.liferay.portlet.messageboards.model.MBThread;
036 import com.liferay.portlet.messageboards.service.MBThreadService;
037 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
038 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
039 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
040 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
041 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
042 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
043 import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
044 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
045 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
046 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
047 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
048 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
049
050 import javax.sql.DataSource;
051
052
064 public abstract class MBThreadServiceBaseImpl extends BaseServiceImpl
065 implements MBThreadService, IdentifiableOSGiService {
066
071
072
077 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
078 return mbThreadLocalService;
079 }
080
081
086 public void setMBThreadLocalService(
087 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
088 this.mbThreadLocalService = mbThreadLocalService;
089 }
090
091
096 public MBThreadService getMBThreadService() {
097 return mbThreadService;
098 }
099
100
105 public void setMBThreadService(MBThreadService mbThreadService) {
106 this.mbThreadService = mbThreadService;
107 }
108
109
114 public MBThreadPersistence getMBThreadPersistence() {
115 return mbThreadPersistence;
116 }
117
118
123 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
124 this.mbThreadPersistence = mbThreadPersistence;
125 }
126
127
132 public MBThreadFinder getMBThreadFinder() {
133 return mbThreadFinder;
134 }
135
136
141 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
142 this.mbThreadFinder = mbThreadFinder;
143 }
144
145
150 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
151 return counterLocalService;
152 }
153
154
159 public void setCounterLocalService(
160 com.liferay.counter.service.CounterLocalService counterLocalService) {
161 this.counterLocalService = counterLocalService;
162 }
163
164
169 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
170 return groupLocalService;
171 }
172
173
178 public void setGroupLocalService(
179 com.liferay.portal.service.GroupLocalService groupLocalService) {
180 this.groupLocalService = groupLocalService;
181 }
182
183
188 public com.liferay.portal.service.GroupService getGroupService() {
189 return groupService;
190 }
191
192
197 public void setGroupService(
198 com.liferay.portal.service.GroupService groupService) {
199 this.groupService = groupService;
200 }
201
202
207 public GroupPersistence getGroupPersistence() {
208 return groupPersistence;
209 }
210
211
216 public void setGroupPersistence(GroupPersistence groupPersistence) {
217 this.groupPersistence = groupPersistence;
218 }
219
220
225 public GroupFinder getGroupFinder() {
226 return groupFinder;
227 }
228
229
234 public void setGroupFinder(GroupFinder groupFinder) {
235 this.groupFinder = groupFinder;
236 }
237
238
243 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
244 return resourceLocalService;
245 }
246
247
252 public void setResourceLocalService(
253 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
254 this.resourceLocalService = resourceLocalService;
255 }
256
257
262 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
263 return subscriptionLocalService;
264 }
265
266
271 public void setSubscriptionLocalService(
272 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
273 this.subscriptionLocalService = subscriptionLocalService;
274 }
275
276
281 public SubscriptionPersistence getSubscriptionPersistence() {
282 return subscriptionPersistence;
283 }
284
285
290 public void setSubscriptionPersistence(
291 SubscriptionPersistence subscriptionPersistence) {
292 this.subscriptionPersistence = subscriptionPersistence;
293 }
294
295
300 public com.liferay.portal.service.UserLocalService getUserLocalService() {
301 return userLocalService;
302 }
303
304
309 public void setUserLocalService(
310 com.liferay.portal.service.UserLocalService userLocalService) {
311 this.userLocalService = userLocalService;
312 }
313
314
319 public com.liferay.portal.service.UserService getUserService() {
320 return userService;
321 }
322
323
328 public void setUserService(
329 com.liferay.portal.service.UserService userService) {
330 this.userService = userService;
331 }
332
333
338 public UserPersistence getUserPersistence() {
339 return userPersistence;
340 }
341
342
347 public void setUserPersistence(UserPersistence userPersistence) {
348 this.userPersistence = userPersistence;
349 }
350
351
356 public UserFinder getUserFinder() {
357 return userFinder;
358 }
359
360
365 public void setUserFinder(UserFinder userFinder) {
366 this.userFinder = userFinder;
367 }
368
369
374 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
375 return workflowInstanceLinkLocalService;
376 }
377
378
383 public void setWorkflowInstanceLinkLocalService(
384 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
385 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
386 }
387
388
393 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
394 return workflowInstanceLinkPersistence;
395 }
396
397
402 public void setWorkflowInstanceLinkPersistence(
403 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
404 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
405 }
406
407
412 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
413 return assetEntryLocalService;
414 }
415
416
421 public void setAssetEntryLocalService(
422 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
423 this.assetEntryLocalService = assetEntryLocalService;
424 }
425
426
431 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
432 return assetEntryService;
433 }
434
435
440 public void setAssetEntryService(
441 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
442 this.assetEntryService = assetEntryService;
443 }
444
445
450 public AssetEntryPersistence getAssetEntryPersistence() {
451 return assetEntryPersistence;
452 }
453
454
459 public void setAssetEntryPersistence(
460 AssetEntryPersistence assetEntryPersistence) {
461 this.assetEntryPersistence = assetEntryPersistence;
462 }
463
464
469 public AssetEntryFinder getAssetEntryFinder() {
470 return assetEntryFinder;
471 }
472
473
478 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
479 this.assetEntryFinder = assetEntryFinder;
480 }
481
482
487 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
488 return mbCategoryLocalService;
489 }
490
491
496 public void setMBCategoryLocalService(
497 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
498 this.mbCategoryLocalService = mbCategoryLocalService;
499 }
500
501
506 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
507 return mbCategoryService;
508 }
509
510
515 public void setMBCategoryService(
516 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
517 this.mbCategoryService = mbCategoryService;
518 }
519
520
525 public MBCategoryPersistence getMBCategoryPersistence() {
526 return mbCategoryPersistence;
527 }
528
529
534 public void setMBCategoryPersistence(
535 MBCategoryPersistence mbCategoryPersistence) {
536 this.mbCategoryPersistence = mbCategoryPersistence;
537 }
538
539
544 public MBCategoryFinder getMBCategoryFinder() {
545 return mbCategoryFinder;
546 }
547
548
553 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
554 this.mbCategoryFinder = mbCategoryFinder;
555 }
556
557
562 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
563 return mbMessageLocalService;
564 }
565
566
571 public void setMBMessageLocalService(
572 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
573 this.mbMessageLocalService = mbMessageLocalService;
574 }
575
576
581 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
582 return mbMessageService;
583 }
584
585
590 public void setMBMessageService(
591 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
592 this.mbMessageService = mbMessageService;
593 }
594
595
600 public MBMessagePersistence getMBMessagePersistence() {
601 return mbMessagePersistence;
602 }
603
604
609 public void setMBMessagePersistence(
610 MBMessagePersistence mbMessagePersistence) {
611 this.mbMessagePersistence = mbMessagePersistence;
612 }
613
614
619 public MBMessageFinder getMBMessageFinder() {
620 return mbMessageFinder;
621 }
622
623
628 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
629 this.mbMessageFinder = mbMessageFinder;
630 }
631
632
637 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
638 return mbStatsUserLocalService;
639 }
640
641
646 public void setMBStatsUserLocalService(
647 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
648 this.mbStatsUserLocalService = mbStatsUserLocalService;
649 }
650
651
656 public MBStatsUserPersistence getMBStatsUserPersistence() {
657 return mbStatsUserPersistence;
658 }
659
660
665 public void setMBStatsUserPersistence(
666 MBStatsUserPersistence mbStatsUserPersistence) {
667 this.mbStatsUserPersistence = mbStatsUserPersistence;
668 }
669
670
675 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
676 return ratingsStatsLocalService;
677 }
678
679
684 public void setRatingsStatsLocalService(
685 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
686 this.ratingsStatsLocalService = ratingsStatsLocalService;
687 }
688
689
694 public RatingsStatsPersistence getRatingsStatsPersistence() {
695 return ratingsStatsPersistence;
696 }
697
698
703 public void setRatingsStatsPersistence(
704 RatingsStatsPersistence ratingsStatsPersistence) {
705 this.ratingsStatsPersistence = ratingsStatsPersistence;
706 }
707
708
713 public RatingsStatsFinder getRatingsStatsFinder() {
714 return ratingsStatsFinder;
715 }
716
717
722 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
723 this.ratingsStatsFinder = ratingsStatsFinder;
724 }
725
726
731 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
732 return trashEntryLocalService;
733 }
734
735
740 public void setTrashEntryLocalService(
741 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
742 this.trashEntryLocalService = trashEntryLocalService;
743 }
744
745
750 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
751 return trashEntryService;
752 }
753
754
759 public void setTrashEntryService(
760 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
761 this.trashEntryService = trashEntryService;
762 }
763
764
769 public TrashEntryPersistence getTrashEntryPersistence() {
770 return trashEntryPersistence;
771 }
772
773
778 public void setTrashEntryPersistence(
779 TrashEntryPersistence trashEntryPersistence) {
780 this.trashEntryPersistence = trashEntryPersistence;
781 }
782
783
788 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
789 return trashVersionLocalService;
790 }
791
792
797 public void setTrashVersionLocalService(
798 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
799 this.trashVersionLocalService = trashVersionLocalService;
800 }
801
802
807 public TrashVersionPersistence getTrashVersionPersistence() {
808 return trashVersionPersistence;
809 }
810
811
816 public void setTrashVersionPersistence(
817 TrashVersionPersistence trashVersionPersistence) {
818 this.trashVersionPersistence = trashVersionPersistence;
819 }
820
821
826 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
827 return mbThreadFlagLocalService;
828 }
829
830
835 public void setMBThreadFlagLocalService(
836 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
837 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
838 }
839
840
845 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
846 return mbThreadFlagPersistence;
847 }
848
849
854 public void setMBThreadFlagPersistence(
855 MBThreadFlagPersistence mbThreadFlagPersistence) {
856 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
857 }
858
859 public void afterPropertiesSet() {
860 }
861
862 public void destroy() {
863 }
864
865
870 @Override
871 public String getOSGiServiceIdentifier() {
872 return MBThreadService.class.getName();
873 }
874
875 protected Class<?> getModelClass() {
876 return MBThread.class;
877 }
878
879 protected String getModelClassName() {
880 return MBThread.class.getName();
881 }
882
883
888 protected void runSQL(String sql) {
889 try {
890 DataSource dataSource = mbThreadPersistence.getDataSource();
891
892 DB db = DBManagerUtil.getDB();
893
894 sql = db.buildSQL(sql);
895 sql = PortalUtil.transformSQL(sql);
896
897 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
898 sql, new int[0]);
899
900 sqlUpdate.update();
901 }
902 catch (Exception e) {
903 throw new SystemException(e);
904 }
905 }
906
907 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
908 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
909 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
910 protected MBThreadService mbThreadService;
911 @BeanReference(type = MBThreadPersistence.class)
912 protected MBThreadPersistence mbThreadPersistence;
913 @BeanReference(type = MBThreadFinder.class)
914 protected MBThreadFinder mbThreadFinder;
915 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
916 protected com.liferay.counter.service.CounterLocalService counterLocalService;
917 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
918 protected com.liferay.portal.service.GroupLocalService groupLocalService;
919 @BeanReference(type = com.liferay.portal.service.GroupService.class)
920 protected com.liferay.portal.service.GroupService groupService;
921 @BeanReference(type = GroupPersistence.class)
922 protected GroupPersistence groupPersistence;
923 @BeanReference(type = GroupFinder.class)
924 protected GroupFinder groupFinder;
925 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
926 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
927 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
928 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
929 @BeanReference(type = SubscriptionPersistence.class)
930 protected SubscriptionPersistence subscriptionPersistence;
931 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
932 protected com.liferay.portal.service.UserLocalService userLocalService;
933 @BeanReference(type = com.liferay.portal.service.UserService.class)
934 protected com.liferay.portal.service.UserService userService;
935 @BeanReference(type = UserPersistence.class)
936 protected UserPersistence userPersistence;
937 @BeanReference(type = UserFinder.class)
938 protected UserFinder userFinder;
939 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
940 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
941 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
942 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
943 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
944 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
945 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
946 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
947 @BeanReference(type = AssetEntryPersistence.class)
948 protected AssetEntryPersistence assetEntryPersistence;
949 @BeanReference(type = AssetEntryFinder.class)
950 protected AssetEntryFinder assetEntryFinder;
951 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
952 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
953 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
954 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
955 @BeanReference(type = MBCategoryPersistence.class)
956 protected MBCategoryPersistence mbCategoryPersistence;
957 @BeanReference(type = MBCategoryFinder.class)
958 protected MBCategoryFinder mbCategoryFinder;
959 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
960 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
961 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
962 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
963 @BeanReference(type = MBMessagePersistence.class)
964 protected MBMessagePersistence mbMessagePersistence;
965 @BeanReference(type = MBMessageFinder.class)
966 protected MBMessageFinder mbMessageFinder;
967 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
968 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
969 @BeanReference(type = MBStatsUserPersistence.class)
970 protected MBStatsUserPersistence mbStatsUserPersistence;
971 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
972 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
973 @BeanReference(type = RatingsStatsPersistence.class)
974 protected RatingsStatsPersistence ratingsStatsPersistence;
975 @BeanReference(type = RatingsStatsFinder.class)
976 protected RatingsStatsFinder ratingsStatsFinder;
977 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
978 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
979 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
980 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
981 @BeanReference(type = TrashEntryPersistence.class)
982 protected TrashEntryPersistence trashEntryPersistence;
983 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
984 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
985 @BeanReference(type = TrashVersionPersistence.class)
986 protected TrashVersionPersistence trashVersionPersistence;
987 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
988 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
989 @BeanReference(type = MBThreadFlagPersistence.class)
990 protected MBThreadFlagPersistence mbThreadFlagPersistence;
991 }