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.bean.IdentifiableBean;
019 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
020 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
021 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
022 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
023 import com.liferay.portal.kernel.dao.orm.Projection;
024 import com.liferay.portal.kernel.exception.PortalException;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.search.Indexable;
027 import com.liferay.portal.kernel.search.IndexableType;
028 import com.liferay.portal.kernel.util.OrderByComparator;
029 import com.liferay.portal.model.PersistedModel;
030 import com.liferay.portal.service.BaseLocalServiceImpl;
031 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
032 import com.liferay.portal.service.persistence.GroupFinder;
033 import com.liferay.portal.service.persistence.GroupPersistence;
034 import com.liferay.portal.service.persistence.LockFinder;
035 import com.liferay.portal.service.persistence.LockPersistence;
036 import com.liferay.portal.service.persistence.SubscriptionPersistence;
037 import com.liferay.portal.service.persistence.UserFinder;
038 import com.liferay.portal.service.persistence.UserPersistence;
039 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
040
041 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
042 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
043 import com.liferay.portlet.messageboards.model.MBThread;
044 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
045 import com.liferay.portlet.messageboards.service.persistence.MBBanPersistence;
046 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
047 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
048 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
049 import com.liferay.portlet.messageboards.service.persistence.MBMailingListPersistence;
050 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
051 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
052 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
053 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
054 import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
055 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
056 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
057 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
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.SocialActivityPersistence;
062 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
063
064 import java.io.Serializable;
065
066 import java.util.List;
067
068 import javax.sql.DataSource;
069
070
082 public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
083 implements MBThreadLocalService, IdentifiableBean {
084
089
090
097 @Indexable(type = IndexableType.REINDEX)
098 @Override
099 public MBThread addMBThread(MBThread mbThread) throws SystemException {
100 mbThread.setNew(true);
101
102 return mbThreadPersistence.update(mbThread);
103 }
104
105
111 @Override
112 public MBThread createMBThread(long threadId) {
113 return mbThreadPersistence.create(threadId);
114 }
115
116
124 @Indexable(type = IndexableType.DELETE)
125 @Override
126 public MBThread deleteMBThread(long threadId)
127 throws PortalException, SystemException {
128 return mbThreadPersistence.remove(threadId);
129 }
130
131
138 @Indexable(type = IndexableType.DELETE)
139 @Override
140 public MBThread deleteMBThread(MBThread mbThread) throws SystemException {
141 return mbThreadPersistence.remove(mbThread);
142 }
143
144 @Override
145 public DynamicQuery dynamicQuery() {
146 Class<?> clazz = getClass();
147
148 return DynamicQueryFactoryUtil.forClass(MBThread.class,
149 clazz.getClassLoader());
150 }
151
152
159 @Override
160 @SuppressWarnings("rawtypes")
161 public List dynamicQuery(DynamicQuery dynamicQuery)
162 throws SystemException {
163 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
164 }
165
166
179 @Override
180 @SuppressWarnings("rawtypes")
181 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
182 throws SystemException {
183 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
184 }
185
186
200 @Override
201 @SuppressWarnings("rawtypes")
202 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
203 OrderByComparator orderByComparator) throws SystemException {
204 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
205 end, orderByComparator);
206 }
207
208
215 @Override
216 public long dynamicQueryCount(DynamicQuery dynamicQuery)
217 throws SystemException {
218 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
219 }
220
221
229 @Override
230 public long dynamicQueryCount(DynamicQuery dynamicQuery,
231 Projection projection) throws SystemException {
232 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
233 projection);
234 }
235
236 @Override
237 public MBThread fetchMBThread(long threadId) throws SystemException {
238 return mbThreadPersistence.fetchByPrimaryKey(threadId);
239 }
240
241
249 @Override
250 public MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId)
251 throws SystemException {
252 return mbThreadPersistence.fetchByUuid_C_First(uuid, companyId, null);
253 }
254
255
263 @Override
264 public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
265 throws SystemException {
266 return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
267 }
268
269
277 @Override
278 public MBThread getMBThread(long threadId)
279 throws PortalException, SystemException {
280 return mbThreadPersistence.findByPrimaryKey(threadId);
281 }
282
283 @Override
284 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
285 throws PortalException, SystemException {
286 return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
287 }
288
289
298 @Override
299 public MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId)
300 throws PortalException, SystemException {
301 return mbThreadPersistence.findByUuid_C_First(uuid, companyId, null);
302 }
303
304
313 @Override
314 public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
315 throws PortalException, SystemException {
316 return mbThreadPersistence.findByUUID_G(uuid, groupId);
317 }
318
319
331 @Override
332 public List<MBThread> getMBThreads(int start, int end)
333 throws SystemException {
334 return mbThreadPersistence.findAll(start, end);
335 }
336
337
343 @Override
344 public int getMBThreadsCount() throws SystemException {
345 return mbThreadPersistence.countAll();
346 }
347
348
355 @Indexable(type = IndexableType.REINDEX)
356 @Override
357 public MBThread updateMBThread(MBThread mbThread) throws SystemException {
358 return mbThreadPersistence.update(mbThread);
359 }
360
361
366 public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
367 return mbBanLocalService;
368 }
369
370
375 public void setMBBanLocalService(
376 com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
377 this.mbBanLocalService = mbBanLocalService;
378 }
379
380
385 public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
386 return mbBanService;
387 }
388
389
394 public void setMBBanService(
395 com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
396 this.mbBanService = mbBanService;
397 }
398
399
404 public MBBanPersistence getMBBanPersistence() {
405 return mbBanPersistence;
406 }
407
408
413 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
414 this.mbBanPersistence = mbBanPersistence;
415 }
416
417
422 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
423 return mbCategoryLocalService;
424 }
425
426
431 public void setMBCategoryLocalService(
432 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
433 this.mbCategoryLocalService = mbCategoryLocalService;
434 }
435
436
441 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
442 return mbCategoryService;
443 }
444
445
450 public void setMBCategoryService(
451 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
452 this.mbCategoryService = mbCategoryService;
453 }
454
455
460 public MBCategoryPersistence getMBCategoryPersistence() {
461 return mbCategoryPersistence;
462 }
463
464
469 public void setMBCategoryPersistence(
470 MBCategoryPersistence mbCategoryPersistence) {
471 this.mbCategoryPersistence = mbCategoryPersistence;
472 }
473
474
479 public MBCategoryFinder getMBCategoryFinder() {
480 return mbCategoryFinder;
481 }
482
483
488 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
489 this.mbCategoryFinder = mbCategoryFinder;
490 }
491
492
497 public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
498 return mbDiscussionLocalService;
499 }
500
501
506 public void setMBDiscussionLocalService(
507 com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
508 this.mbDiscussionLocalService = mbDiscussionLocalService;
509 }
510
511
516 public MBDiscussionPersistence getMBDiscussionPersistence() {
517 return mbDiscussionPersistence;
518 }
519
520
525 public void setMBDiscussionPersistence(
526 MBDiscussionPersistence mbDiscussionPersistence) {
527 this.mbDiscussionPersistence = mbDiscussionPersistence;
528 }
529
530
535 public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
536 return mbMailingListLocalService;
537 }
538
539
544 public void setMBMailingListLocalService(
545 com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
546 this.mbMailingListLocalService = mbMailingListLocalService;
547 }
548
549
554 public MBMailingListPersistence getMBMailingListPersistence() {
555 return mbMailingListPersistence;
556 }
557
558
563 public void setMBMailingListPersistence(
564 MBMailingListPersistence mbMailingListPersistence) {
565 this.mbMailingListPersistence = mbMailingListPersistence;
566 }
567
568
573 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
574 return mbMessageLocalService;
575 }
576
577
582 public void setMBMessageLocalService(
583 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
584 this.mbMessageLocalService = mbMessageLocalService;
585 }
586
587
592 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
593 return mbMessageService;
594 }
595
596
601 public void setMBMessageService(
602 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
603 this.mbMessageService = mbMessageService;
604 }
605
606
611 public MBMessagePersistence getMBMessagePersistence() {
612 return mbMessagePersistence;
613 }
614
615
620 public void setMBMessagePersistence(
621 MBMessagePersistence mbMessagePersistence) {
622 this.mbMessagePersistence = mbMessagePersistence;
623 }
624
625
630 public MBMessageFinder getMBMessageFinder() {
631 return mbMessageFinder;
632 }
633
634
639 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
640 this.mbMessageFinder = mbMessageFinder;
641 }
642
643
648 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
649 return mbStatsUserLocalService;
650 }
651
652
657 public void setMBStatsUserLocalService(
658 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
659 this.mbStatsUserLocalService = mbStatsUserLocalService;
660 }
661
662
667 public MBStatsUserPersistence getMBStatsUserPersistence() {
668 return mbStatsUserPersistence;
669 }
670
671
676 public void setMBStatsUserPersistence(
677 MBStatsUserPersistence mbStatsUserPersistence) {
678 this.mbStatsUserPersistence = mbStatsUserPersistence;
679 }
680
681
686 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
687 return mbThreadLocalService;
688 }
689
690
695 public void setMBThreadLocalService(
696 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
697 this.mbThreadLocalService = mbThreadLocalService;
698 }
699
700
705 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
706 return mbThreadService;
707 }
708
709
714 public void setMBThreadService(
715 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
716 this.mbThreadService = mbThreadService;
717 }
718
719
724 public MBThreadPersistence getMBThreadPersistence() {
725 return mbThreadPersistence;
726 }
727
728
733 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
734 this.mbThreadPersistence = mbThreadPersistence;
735 }
736
737
742 public MBThreadFinder getMBThreadFinder() {
743 return mbThreadFinder;
744 }
745
746
751 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
752 this.mbThreadFinder = mbThreadFinder;
753 }
754
755
760 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
761 return mbThreadFlagLocalService;
762 }
763
764
769 public void setMBThreadFlagLocalService(
770 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
771 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
772 }
773
774
779 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
780 return mbThreadFlagPersistence;
781 }
782
783
788 public void setMBThreadFlagPersistence(
789 MBThreadFlagPersistence mbThreadFlagPersistence) {
790 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
791 }
792
793
798 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
799 return counterLocalService;
800 }
801
802
807 public void setCounterLocalService(
808 com.liferay.counter.service.CounterLocalService counterLocalService) {
809 this.counterLocalService = counterLocalService;
810 }
811
812
817 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
818 return groupLocalService;
819 }
820
821
826 public void setGroupLocalService(
827 com.liferay.portal.service.GroupLocalService groupLocalService) {
828 this.groupLocalService = groupLocalService;
829 }
830
831
836 public com.liferay.portal.service.GroupService getGroupService() {
837 return groupService;
838 }
839
840
845 public void setGroupService(
846 com.liferay.portal.service.GroupService groupService) {
847 this.groupService = groupService;
848 }
849
850
855 public GroupPersistence getGroupPersistence() {
856 return groupPersistence;
857 }
858
859
864 public void setGroupPersistence(GroupPersistence groupPersistence) {
865 this.groupPersistence = groupPersistence;
866 }
867
868
873 public GroupFinder getGroupFinder() {
874 return groupFinder;
875 }
876
877
882 public void setGroupFinder(GroupFinder groupFinder) {
883 this.groupFinder = groupFinder;
884 }
885
886
891 public com.liferay.portal.service.LockLocalService getLockLocalService() {
892 return lockLocalService;
893 }
894
895
900 public void setLockLocalService(
901 com.liferay.portal.service.LockLocalService lockLocalService) {
902 this.lockLocalService = lockLocalService;
903 }
904
905
910 public LockPersistence getLockPersistence() {
911 return lockPersistence;
912 }
913
914
919 public void setLockPersistence(LockPersistence lockPersistence) {
920 this.lockPersistence = lockPersistence;
921 }
922
923
928 public LockFinder getLockFinder() {
929 return lockFinder;
930 }
931
932
937 public void setLockFinder(LockFinder lockFinder) {
938 this.lockFinder = lockFinder;
939 }
940
941
946 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
947 return resourceLocalService;
948 }
949
950
955 public void setResourceLocalService(
956 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
957 this.resourceLocalService = resourceLocalService;
958 }
959
960
965 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
966 return subscriptionLocalService;
967 }
968
969
974 public void setSubscriptionLocalService(
975 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
976 this.subscriptionLocalService = subscriptionLocalService;
977 }
978
979
984 public SubscriptionPersistence getSubscriptionPersistence() {
985 return subscriptionPersistence;
986 }
987
988
993 public void setSubscriptionPersistence(
994 SubscriptionPersistence subscriptionPersistence) {
995 this.subscriptionPersistence = subscriptionPersistence;
996 }
997
998
1003 public com.liferay.portal.service.UserLocalService getUserLocalService() {
1004 return userLocalService;
1005 }
1006
1007
1012 public void setUserLocalService(
1013 com.liferay.portal.service.UserLocalService userLocalService) {
1014 this.userLocalService = userLocalService;
1015 }
1016
1017
1022 public com.liferay.portal.service.UserService getUserService() {
1023 return userService;
1024 }
1025
1026
1031 public void setUserService(
1032 com.liferay.portal.service.UserService userService) {
1033 this.userService = userService;
1034 }
1035
1036
1041 public UserPersistence getUserPersistence() {
1042 return userPersistence;
1043 }
1044
1045
1050 public void setUserPersistence(UserPersistence userPersistence) {
1051 this.userPersistence = userPersistence;
1052 }
1053
1054
1059 public UserFinder getUserFinder() {
1060 return userFinder;
1061 }
1062
1063
1068 public void setUserFinder(UserFinder userFinder) {
1069 this.userFinder = userFinder;
1070 }
1071
1072
1077 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1078 return workflowInstanceLinkLocalService;
1079 }
1080
1081
1086 public void setWorkflowInstanceLinkLocalService(
1087 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1088 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1089 }
1090
1091
1096 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1097 return workflowInstanceLinkPersistence;
1098 }
1099
1100
1105 public void setWorkflowInstanceLinkPersistence(
1106 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1107 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1108 }
1109
1110
1115 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1116 return assetEntryLocalService;
1117 }
1118
1119
1124 public void setAssetEntryLocalService(
1125 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1126 this.assetEntryLocalService = assetEntryLocalService;
1127 }
1128
1129
1134 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1135 return assetEntryService;
1136 }
1137
1138
1143 public void setAssetEntryService(
1144 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1145 this.assetEntryService = assetEntryService;
1146 }
1147
1148
1153 public AssetEntryPersistence getAssetEntryPersistence() {
1154 return assetEntryPersistence;
1155 }
1156
1157
1162 public void setAssetEntryPersistence(
1163 AssetEntryPersistence assetEntryPersistence) {
1164 this.assetEntryPersistence = assetEntryPersistence;
1165 }
1166
1167
1172 public AssetEntryFinder getAssetEntryFinder() {
1173 return assetEntryFinder;
1174 }
1175
1176
1181 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1182 this.assetEntryFinder = assetEntryFinder;
1183 }
1184
1185
1190 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1191 return ratingsStatsLocalService;
1192 }
1193
1194
1199 public void setRatingsStatsLocalService(
1200 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1201 this.ratingsStatsLocalService = ratingsStatsLocalService;
1202 }
1203
1204
1209 public RatingsStatsPersistence getRatingsStatsPersistence() {
1210 return ratingsStatsPersistence;
1211 }
1212
1213
1218 public void setRatingsStatsPersistence(
1219 RatingsStatsPersistence ratingsStatsPersistence) {
1220 this.ratingsStatsPersistence = ratingsStatsPersistence;
1221 }
1222
1223
1228 public RatingsStatsFinder getRatingsStatsFinder() {
1229 return ratingsStatsFinder;
1230 }
1231
1232
1237 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1238 this.ratingsStatsFinder = ratingsStatsFinder;
1239 }
1240
1241
1246 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1247 return socialActivityLocalService;
1248 }
1249
1250
1255 public void setSocialActivityLocalService(
1256 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1257 this.socialActivityLocalService = socialActivityLocalService;
1258 }
1259
1260
1265 public SocialActivityPersistence getSocialActivityPersistence() {
1266 return socialActivityPersistence;
1267 }
1268
1269
1274 public void setSocialActivityPersistence(
1275 SocialActivityPersistence socialActivityPersistence) {
1276 this.socialActivityPersistence = socialActivityPersistence;
1277 }
1278
1279
1284 public SocialActivityFinder getSocialActivityFinder() {
1285 return socialActivityFinder;
1286 }
1287
1288
1293 public void setSocialActivityFinder(
1294 SocialActivityFinder socialActivityFinder) {
1295 this.socialActivityFinder = socialActivityFinder;
1296 }
1297
1298
1303 public com.liferay.portlet.social.service.SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
1304 return socialActivityCounterLocalService;
1305 }
1306
1307
1312 public void setSocialActivityCounterLocalService(
1313 com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService) {
1314 this.socialActivityCounterLocalService = socialActivityCounterLocalService;
1315 }
1316
1317
1322 public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
1323 return socialActivityCounterPersistence;
1324 }
1325
1326
1331 public void setSocialActivityCounterPersistence(
1332 SocialActivityCounterPersistence socialActivityCounterPersistence) {
1333 this.socialActivityCounterPersistence = socialActivityCounterPersistence;
1334 }
1335
1336
1341 public SocialActivityCounterFinder getSocialActivityCounterFinder() {
1342 return socialActivityCounterFinder;
1343 }
1344
1345
1350 public void setSocialActivityCounterFinder(
1351 SocialActivityCounterFinder socialActivityCounterFinder) {
1352 this.socialActivityCounterFinder = socialActivityCounterFinder;
1353 }
1354
1355
1360 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1361 return trashEntryLocalService;
1362 }
1363
1364
1369 public void setTrashEntryLocalService(
1370 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1371 this.trashEntryLocalService = trashEntryLocalService;
1372 }
1373
1374
1379 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1380 return trashEntryService;
1381 }
1382
1383
1388 public void setTrashEntryService(
1389 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1390 this.trashEntryService = trashEntryService;
1391 }
1392
1393
1398 public TrashEntryPersistence getTrashEntryPersistence() {
1399 return trashEntryPersistence;
1400 }
1401
1402
1407 public void setTrashEntryPersistence(
1408 TrashEntryPersistence trashEntryPersistence) {
1409 this.trashEntryPersistence = trashEntryPersistence;
1410 }
1411
1412 public void afterPropertiesSet() {
1413 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1414 mbThreadLocalService);
1415 }
1416
1417 public void destroy() {
1418 persistedModelLocalServiceRegistry.unregister(
1419 "com.liferay.portlet.messageboards.model.MBThread");
1420 }
1421
1422
1427 @Override
1428 public String getBeanIdentifier() {
1429 return _beanIdentifier;
1430 }
1431
1432
1437 @Override
1438 public void setBeanIdentifier(String beanIdentifier) {
1439 _beanIdentifier = beanIdentifier;
1440 }
1441
1442 protected Class<?> getModelClass() {
1443 return MBThread.class;
1444 }
1445
1446 protected String getModelClassName() {
1447 return MBThread.class.getName();
1448 }
1449
1450
1455 protected void runSQL(String sql) throws SystemException {
1456 try {
1457 DataSource dataSource = mbThreadPersistence.getDataSource();
1458
1459 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1460 sql, new int[0]);
1461
1462 sqlUpdate.update();
1463 }
1464 catch (Exception e) {
1465 throw new SystemException(e);
1466 }
1467 }
1468
1469 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1470 protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1471 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1472 protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1473 @BeanReference(type = MBBanPersistence.class)
1474 protected MBBanPersistence mbBanPersistence;
1475 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1476 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1477 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1478 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1479 @BeanReference(type = MBCategoryPersistence.class)
1480 protected MBCategoryPersistence mbCategoryPersistence;
1481 @BeanReference(type = MBCategoryFinder.class)
1482 protected MBCategoryFinder mbCategoryFinder;
1483 @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1484 protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1485 @BeanReference(type = MBDiscussionPersistence.class)
1486 protected MBDiscussionPersistence mbDiscussionPersistence;
1487 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1488 protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1489 @BeanReference(type = MBMailingListPersistence.class)
1490 protected MBMailingListPersistence mbMailingListPersistence;
1491 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1492 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1493 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1494 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1495 @BeanReference(type = MBMessagePersistence.class)
1496 protected MBMessagePersistence mbMessagePersistence;
1497 @BeanReference(type = MBMessageFinder.class)
1498 protected MBMessageFinder mbMessageFinder;
1499 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1500 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1501 @BeanReference(type = MBStatsUserPersistence.class)
1502 protected MBStatsUserPersistence mbStatsUserPersistence;
1503 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1504 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1505 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1506 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1507 @BeanReference(type = MBThreadPersistence.class)
1508 protected MBThreadPersistence mbThreadPersistence;
1509 @BeanReference(type = MBThreadFinder.class)
1510 protected MBThreadFinder mbThreadFinder;
1511 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1512 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1513 @BeanReference(type = MBThreadFlagPersistence.class)
1514 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1515 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1516 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1517 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1518 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1519 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1520 protected com.liferay.portal.service.GroupService groupService;
1521 @BeanReference(type = GroupPersistence.class)
1522 protected GroupPersistence groupPersistence;
1523 @BeanReference(type = GroupFinder.class)
1524 protected GroupFinder groupFinder;
1525 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1526 protected com.liferay.portal.service.LockLocalService lockLocalService;
1527 @BeanReference(type = LockPersistence.class)
1528 protected LockPersistence lockPersistence;
1529 @BeanReference(type = LockFinder.class)
1530 protected LockFinder lockFinder;
1531 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1532 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1533 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1534 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1535 @BeanReference(type = SubscriptionPersistence.class)
1536 protected SubscriptionPersistence subscriptionPersistence;
1537 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1538 protected com.liferay.portal.service.UserLocalService userLocalService;
1539 @BeanReference(type = com.liferay.portal.service.UserService.class)
1540 protected com.liferay.portal.service.UserService userService;
1541 @BeanReference(type = UserPersistence.class)
1542 protected UserPersistence userPersistence;
1543 @BeanReference(type = UserFinder.class)
1544 protected UserFinder userFinder;
1545 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1546 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1547 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1548 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1549 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1550 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1551 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1552 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1553 @BeanReference(type = AssetEntryPersistence.class)
1554 protected AssetEntryPersistence assetEntryPersistence;
1555 @BeanReference(type = AssetEntryFinder.class)
1556 protected AssetEntryFinder assetEntryFinder;
1557 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1558 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1559 @BeanReference(type = RatingsStatsPersistence.class)
1560 protected RatingsStatsPersistence ratingsStatsPersistence;
1561 @BeanReference(type = RatingsStatsFinder.class)
1562 protected RatingsStatsFinder ratingsStatsFinder;
1563 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1564 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1565 @BeanReference(type = SocialActivityPersistence.class)
1566 protected SocialActivityPersistence socialActivityPersistence;
1567 @BeanReference(type = SocialActivityFinder.class)
1568 protected SocialActivityFinder socialActivityFinder;
1569 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityCounterLocalService.class)
1570 protected com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
1571 @BeanReference(type = SocialActivityCounterPersistence.class)
1572 protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1573 @BeanReference(type = SocialActivityCounterFinder.class)
1574 protected SocialActivityCounterFinder socialActivityCounterFinder;
1575 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1576 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1577 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1578 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1579 @BeanReference(type = TrashEntryPersistence.class)
1580 protected TrashEntryPersistence trashEntryPersistence;
1581 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1582 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1583 private String _beanIdentifier;
1584 }