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.SocialActivityFinder;
059 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
060 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
061 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
062
063 import java.io.Serializable;
064
065 import java.util.List;
066
067 import javax.sql.DataSource;
068
069
081 public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
082 implements MBThreadLocalService, IdentifiableBean {
083
088
089
096 @Indexable(type = IndexableType.REINDEX)
097 @Override
098 public MBThread addMBThread(MBThread mbThread) throws SystemException {
099 mbThread.setNew(true);
100
101 return mbThreadPersistence.update(mbThread);
102 }
103
104
110 @Override
111 public MBThread createMBThread(long threadId) {
112 return mbThreadPersistence.create(threadId);
113 }
114
115
123 @Indexable(type = IndexableType.DELETE)
124 @Override
125 public MBThread deleteMBThread(long threadId)
126 throws PortalException, SystemException {
127 return mbThreadPersistence.remove(threadId);
128 }
129
130
137 @Indexable(type = IndexableType.DELETE)
138 @Override
139 public MBThread deleteMBThread(MBThread mbThread) throws SystemException {
140 return mbThreadPersistence.remove(mbThread);
141 }
142
143 @Override
144 public DynamicQuery dynamicQuery() {
145 Class<?> clazz = getClass();
146
147 return DynamicQueryFactoryUtil.forClass(MBThread.class,
148 clazz.getClassLoader());
149 }
150
151
158 @Override
159 @SuppressWarnings("rawtypes")
160 public List dynamicQuery(DynamicQuery dynamicQuery)
161 throws SystemException {
162 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
163 }
164
165
178 @Override
179 @SuppressWarnings("rawtypes")
180 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
181 throws SystemException {
182 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
183 }
184
185
199 @Override
200 @SuppressWarnings("rawtypes")
201 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
202 OrderByComparator orderByComparator) throws SystemException {
203 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
204 end, orderByComparator);
205 }
206
207
214 @Override
215 public long dynamicQueryCount(DynamicQuery dynamicQuery)
216 throws SystemException {
217 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
218 }
219
220
228 @Override
229 public long dynamicQueryCount(DynamicQuery dynamicQuery,
230 Projection projection) throws SystemException {
231 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
232 projection);
233 }
234
235 @Override
236 public MBThread fetchMBThread(long threadId) throws SystemException {
237 return mbThreadPersistence.fetchByPrimaryKey(threadId);
238 }
239
240
248 @Override
249 public MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId)
250 throws SystemException {
251 return mbThreadPersistence.fetchByUuid_C_First(uuid, companyId, null);
252 }
253
254
262 @Override
263 public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
264 throws SystemException {
265 return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
266 }
267
268
276 @Override
277 public MBThread getMBThread(long threadId)
278 throws PortalException, SystemException {
279 return mbThreadPersistence.findByPrimaryKey(threadId);
280 }
281
282 @Override
283 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
284 throws PortalException, SystemException {
285 return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
286 }
287
288
297 @Override
298 public MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId)
299 throws PortalException, SystemException {
300 return mbThreadPersistence.findByUuid_C_First(uuid, companyId, null);
301 }
302
303
312 @Override
313 public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
314 throws PortalException, SystemException {
315 return mbThreadPersistence.findByUUID_G(uuid, groupId);
316 }
317
318
330 @Override
331 public List<MBThread> getMBThreads(int start, int end)
332 throws SystemException {
333 return mbThreadPersistence.findAll(start, end);
334 }
335
336
342 @Override
343 public int getMBThreadsCount() throws SystemException {
344 return mbThreadPersistence.countAll();
345 }
346
347
354 @Indexable(type = IndexableType.REINDEX)
355 @Override
356 public MBThread updateMBThread(MBThread mbThread) throws SystemException {
357 return mbThreadPersistence.update(mbThread);
358 }
359
360
365 public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
366 return mbBanLocalService;
367 }
368
369
374 public void setMBBanLocalService(
375 com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
376 this.mbBanLocalService = mbBanLocalService;
377 }
378
379
384 public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
385 return mbBanService;
386 }
387
388
393 public void setMBBanService(
394 com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
395 this.mbBanService = mbBanService;
396 }
397
398
403 public MBBanPersistence getMBBanPersistence() {
404 return mbBanPersistence;
405 }
406
407
412 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
413 this.mbBanPersistence = mbBanPersistence;
414 }
415
416
421 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
422 return mbCategoryLocalService;
423 }
424
425
430 public void setMBCategoryLocalService(
431 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
432 this.mbCategoryLocalService = mbCategoryLocalService;
433 }
434
435
440 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
441 return mbCategoryService;
442 }
443
444
449 public void setMBCategoryService(
450 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
451 this.mbCategoryService = mbCategoryService;
452 }
453
454
459 public MBCategoryPersistence getMBCategoryPersistence() {
460 return mbCategoryPersistence;
461 }
462
463
468 public void setMBCategoryPersistence(
469 MBCategoryPersistence mbCategoryPersistence) {
470 this.mbCategoryPersistence = mbCategoryPersistence;
471 }
472
473
478 public MBCategoryFinder getMBCategoryFinder() {
479 return mbCategoryFinder;
480 }
481
482
487 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
488 this.mbCategoryFinder = mbCategoryFinder;
489 }
490
491
496 public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
497 return mbDiscussionLocalService;
498 }
499
500
505 public void setMBDiscussionLocalService(
506 com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
507 this.mbDiscussionLocalService = mbDiscussionLocalService;
508 }
509
510
515 public MBDiscussionPersistence getMBDiscussionPersistence() {
516 return mbDiscussionPersistence;
517 }
518
519
524 public void setMBDiscussionPersistence(
525 MBDiscussionPersistence mbDiscussionPersistence) {
526 this.mbDiscussionPersistence = mbDiscussionPersistence;
527 }
528
529
534 public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
535 return mbMailingListLocalService;
536 }
537
538
543 public void setMBMailingListLocalService(
544 com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
545 this.mbMailingListLocalService = mbMailingListLocalService;
546 }
547
548
553 public MBMailingListPersistence getMBMailingListPersistence() {
554 return mbMailingListPersistence;
555 }
556
557
562 public void setMBMailingListPersistence(
563 MBMailingListPersistence mbMailingListPersistence) {
564 this.mbMailingListPersistence = mbMailingListPersistence;
565 }
566
567
572 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
573 return mbMessageLocalService;
574 }
575
576
581 public void setMBMessageLocalService(
582 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
583 this.mbMessageLocalService = mbMessageLocalService;
584 }
585
586
591 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
592 return mbMessageService;
593 }
594
595
600 public void setMBMessageService(
601 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
602 this.mbMessageService = mbMessageService;
603 }
604
605
610 public MBMessagePersistence getMBMessagePersistence() {
611 return mbMessagePersistence;
612 }
613
614
619 public void setMBMessagePersistence(
620 MBMessagePersistence mbMessagePersistence) {
621 this.mbMessagePersistence = mbMessagePersistence;
622 }
623
624
629 public MBMessageFinder getMBMessageFinder() {
630 return mbMessageFinder;
631 }
632
633
638 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
639 this.mbMessageFinder = mbMessageFinder;
640 }
641
642
647 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
648 return mbStatsUserLocalService;
649 }
650
651
656 public void setMBStatsUserLocalService(
657 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
658 this.mbStatsUserLocalService = mbStatsUserLocalService;
659 }
660
661
666 public MBStatsUserPersistence getMBStatsUserPersistence() {
667 return mbStatsUserPersistence;
668 }
669
670
675 public void setMBStatsUserPersistence(
676 MBStatsUserPersistence mbStatsUserPersistence) {
677 this.mbStatsUserPersistence = mbStatsUserPersistence;
678 }
679
680
685 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
686 return mbThreadLocalService;
687 }
688
689
694 public void setMBThreadLocalService(
695 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
696 this.mbThreadLocalService = mbThreadLocalService;
697 }
698
699
704 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
705 return mbThreadService;
706 }
707
708
713 public void setMBThreadService(
714 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
715 this.mbThreadService = mbThreadService;
716 }
717
718
723 public MBThreadPersistence getMBThreadPersistence() {
724 return mbThreadPersistence;
725 }
726
727
732 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
733 this.mbThreadPersistence = mbThreadPersistence;
734 }
735
736
741 public MBThreadFinder getMBThreadFinder() {
742 return mbThreadFinder;
743 }
744
745
750 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
751 this.mbThreadFinder = mbThreadFinder;
752 }
753
754
759 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
760 return mbThreadFlagLocalService;
761 }
762
763
768 public void setMBThreadFlagLocalService(
769 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
770 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
771 }
772
773
778 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
779 return mbThreadFlagPersistence;
780 }
781
782
787 public void setMBThreadFlagPersistence(
788 MBThreadFlagPersistence mbThreadFlagPersistence) {
789 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
790 }
791
792
797 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
798 return counterLocalService;
799 }
800
801
806 public void setCounterLocalService(
807 com.liferay.counter.service.CounterLocalService counterLocalService) {
808 this.counterLocalService = counterLocalService;
809 }
810
811
816 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
817 return groupLocalService;
818 }
819
820
825 public void setGroupLocalService(
826 com.liferay.portal.service.GroupLocalService groupLocalService) {
827 this.groupLocalService = groupLocalService;
828 }
829
830
835 public com.liferay.portal.service.GroupService getGroupService() {
836 return groupService;
837 }
838
839
844 public void setGroupService(
845 com.liferay.portal.service.GroupService groupService) {
846 this.groupService = groupService;
847 }
848
849
854 public GroupPersistence getGroupPersistence() {
855 return groupPersistence;
856 }
857
858
863 public void setGroupPersistence(GroupPersistence groupPersistence) {
864 this.groupPersistence = groupPersistence;
865 }
866
867
872 public GroupFinder getGroupFinder() {
873 return groupFinder;
874 }
875
876
881 public void setGroupFinder(GroupFinder groupFinder) {
882 this.groupFinder = groupFinder;
883 }
884
885
890 public com.liferay.portal.service.LockLocalService getLockLocalService() {
891 return lockLocalService;
892 }
893
894
899 public void setLockLocalService(
900 com.liferay.portal.service.LockLocalService lockLocalService) {
901 this.lockLocalService = lockLocalService;
902 }
903
904
909 public LockPersistence getLockPersistence() {
910 return lockPersistence;
911 }
912
913
918 public void setLockPersistence(LockPersistence lockPersistence) {
919 this.lockPersistence = lockPersistence;
920 }
921
922
927 public LockFinder getLockFinder() {
928 return lockFinder;
929 }
930
931
936 public void setLockFinder(LockFinder lockFinder) {
937 this.lockFinder = lockFinder;
938 }
939
940
945 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
946 return resourceLocalService;
947 }
948
949
954 public void setResourceLocalService(
955 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
956 this.resourceLocalService = resourceLocalService;
957 }
958
959
964 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
965 return subscriptionLocalService;
966 }
967
968
973 public void setSubscriptionLocalService(
974 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
975 this.subscriptionLocalService = subscriptionLocalService;
976 }
977
978
983 public SubscriptionPersistence getSubscriptionPersistence() {
984 return subscriptionPersistence;
985 }
986
987
992 public void setSubscriptionPersistence(
993 SubscriptionPersistence subscriptionPersistence) {
994 this.subscriptionPersistence = subscriptionPersistence;
995 }
996
997
1002 public com.liferay.portal.service.UserLocalService getUserLocalService() {
1003 return userLocalService;
1004 }
1005
1006
1011 public void setUserLocalService(
1012 com.liferay.portal.service.UserLocalService userLocalService) {
1013 this.userLocalService = userLocalService;
1014 }
1015
1016
1021 public com.liferay.portal.service.UserService getUserService() {
1022 return userService;
1023 }
1024
1025
1030 public void setUserService(
1031 com.liferay.portal.service.UserService userService) {
1032 this.userService = userService;
1033 }
1034
1035
1040 public UserPersistence getUserPersistence() {
1041 return userPersistence;
1042 }
1043
1044
1049 public void setUserPersistence(UserPersistence userPersistence) {
1050 this.userPersistence = userPersistence;
1051 }
1052
1053
1058 public UserFinder getUserFinder() {
1059 return userFinder;
1060 }
1061
1062
1067 public void setUserFinder(UserFinder userFinder) {
1068 this.userFinder = userFinder;
1069 }
1070
1071
1076 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1077 return workflowInstanceLinkLocalService;
1078 }
1079
1080
1085 public void setWorkflowInstanceLinkLocalService(
1086 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1087 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1088 }
1089
1090
1095 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1096 return workflowInstanceLinkPersistence;
1097 }
1098
1099
1104 public void setWorkflowInstanceLinkPersistence(
1105 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1106 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1107 }
1108
1109
1114 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1115 return assetEntryLocalService;
1116 }
1117
1118
1123 public void setAssetEntryLocalService(
1124 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1125 this.assetEntryLocalService = assetEntryLocalService;
1126 }
1127
1128
1133 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1134 return assetEntryService;
1135 }
1136
1137
1142 public void setAssetEntryService(
1143 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1144 this.assetEntryService = assetEntryService;
1145 }
1146
1147
1152 public AssetEntryPersistence getAssetEntryPersistence() {
1153 return assetEntryPersistence;
1154 }
1155
1156
1161 public void setAssetEntryPersistence(
1162 AssetEntryPersistence assetEntryPersistence) {
1163 this.assetEntryPersistence = assetEntryPersistence;
1164 }
1165
1166
1171 public AssetEntryFinder getAssetEntryFinder() {
1172 return assetEntryFinder;
1173 }
1174
1175
1180 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1181 this.assetEntryFinder = assetEntryFinder;
1182 }
1183
1184
1189 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1190 return ratingsStatsLocalService;
1191 }
1192
1193
1198 public void setRatingsStatsLocalService(
1199 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1200 this.ratingsStatsLocalService = ratingsStatsLocalService;
1201 }
1202
1203
1208 public RatingsStatsPersistence getRatingsStatsPersistence() {
1209 return ratingsStatsPersistence;
1210 }
1211
1212
1217 public void setRatingsStatsPersistence(
1218 RatingsStatsPersistence ratingsStatsPersistence) {
1219 this.ratingsStatsPersistence = ratingsStatsPersistence;
1220 }
1221
1222
1227 public RatingsStatsFinder getRatingsStatsFinder() {
1228 return ratingsStatsFinder;
1229 }
1230
1231
1236 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1237 this.ratingsStatsFinder = ratingsStatsFinder;
1238 }
1239
1240
1245 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1246 return socialActivityLocalService;
1247 }
1248
1249
1254 public void setSocialActivityLocalService(
1255 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1256 this.socialActivityLocalService = socialActivityLocalService;
1257 }
1258
1259
1264 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1265 return socialActivityService;
1266 }
1267
1268
1273 public void setSocialActivityService(
1274 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1275 this.socialActivityService = socialActivityService;
1276 }
1277
1278
1283 public SocialActivityPersistence getSocialActivityPersistence() {
1284 return socialActivityPersistence;
1285 }
1286
1287
1292 public void setSocialActivityPersistence(
1293 SocialActivityPersistence socialActivityPersistence) {
1294 this.socialActivityPersistence = socialActivityPersistence;
1295 }
1296
1297
1302 public SocialActivityFinder getSocialActivityFinder() {
1303 return socialActivityFinder;
1304 }
1305
1306
1311 public void setSocialActivityFinder(
1312 SocialActivityFinder socialActivityFinder) {
1313 this.socialActivityFinder = socialActivityFinder;
1314 }
1315
1316
1321 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1322 return trashEntryLocalService;
1323 }
1324
1325
1330 public void setTrashEntryLocalService(
1331 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1332 this.trashEntryLocalService = trashEntryLocalService;
1333 }
1334
1335
1340 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1341 return trashEntryService;
1342 }
1343
1344
1349 public void setTrashEntryService(
1350 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1351 this.trashEntryService = trashEntryService;
1352 }
1353
1354
1359 public TrashEntryPersistence getTrashEntryPersistence() {
1360 return trashEntryPersistence;
1361 }
1362
1363
1368 public void setTrashEntryPersistence(
1369 TrashEntryPersistence trashEntryPersistence) {
1370 this.trashEntryPersistence = trashEntryPersistence;
1371 }
1372
1373
1378 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1379 return trashVersionLocalService;
1380 }
1381
1382
1387 public void setTrashVersionLocalService(
1388 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1389 this.trashVersionLocalService = trashVersionLocalService;
1390 }
1391
1392
1397 public TrashVersionPersistence getTrashVersionPersistence() {
1398 return trashVersionPersistence;
1399 }
1400
1401
1406 public void setTrashVersionPersistence(
1407 TrashVersionPersistence trashVersionPersistence) {
1408 this.trashVersionPersistence = trashVersionPersistence;
1409 }
1410
1411 public void afterPropertiesSet() {
1412 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1413 mbThreadLocalService);
1414 }
1415
1416 public void destroy() {
1417 persistedModelLocalServiceRegistry.unregister(
1418 "com.liferay.portlet.messageboards.model.MBThread");
1419 }
1420
1421
1426 @Override
1427 public String getBeanIdentifier() {
1428 return _beanIdentifier;
1429 }
1430
1431
1436 @Override
1437 public void setBeanIdentifier(String beanIdentifier) {
1438 _beanIdentifier = beanIdentifier;
1439 }
1440
1441 protected Class<?> getModelClass() {
1442 return MBThread.class;
1443 }
1444
1445 protected String getModelClassName() {
1446 return MBThread.class.getName();
1447 }
1448
1449
1454 protected void runSQL(String sql) throws SystemException {
1455 try {
1456 DataSource dataSource = mbThreadPersistence.getDataSource();
1457
1458 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1459 sql, new int[0]);
1460
1461 sqlUpdate.update();
1462 }
1463 catch (Exception e) {
1464 throw new SystemException(e);
1465 }
1466 }
1467
1468 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1469 protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1470 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1471 protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1472 @BeanReference(type = MBBanPersistence.class)
1473 protected MBBanPersistence mbBanPersistence;
1474 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1475 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1476 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1477 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1478 @BeanReference(type = MBCategoryPersistence.class)
1479 protected MBCategoryPersistence mbCategoryPersistence;
1480 @BeanReference(type = MBCategoryFinder.class)
1481 protected MBCategoryFinder mbCategoryFinder;
1482 @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1483 protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1484 @BeanReference(type = MBDiscussionPersistence.class)
1485 protected MBDiscussionPersistence mbDiscussionPersistence;
1486 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1487 protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1488 @BeanReference(type = MBMailingListPersistence.class)
1489 protected MBMailingListPersistence mbMailingListPersistence;
1490 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1491 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1492 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1493 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1494 @BeanReference(type = MBMessagePersistence.class)
1495 protected MBMessagePersistence mbMessagePersistence;
1496 @BeanReference(type = MBMessageFinder.class)
1497 protected MBMessageFinder mbMessageFinder;
1498 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1499 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1500 @BeanReference(type = MBStatsUserPersistence.class)
1501 protected MBStatsUserPersistence mbStatsUserPersistence;
1502 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1503 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1504 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1505 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1506 @BeanReference(type = MBThreadPersistence.class)
1507 protected MBThreadPersistence mbThreadPersistence;
1508 @BeanReference(type = MBThreadFinder.class)
1509 protected MBThreadFinder mbThreadFinder;
1510 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1511 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1512 @BeanReference(type = MBThreadFlagPersistence.class)
1513 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1514 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1515 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1516 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1517 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1518 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1519 protected com.liferay.portal.service.GroupService groupService;
1520 @BeanReference(type = GroupPersistence.class)
1521 protected GroupPersistence groupPersistence;
1522 @BeanReference(type = GroupFinder.class)
1523 protected GroupFinder groupFinder;
1524 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1525 protected com.liferay.portal.service.LockLocalService lockLocalService;
1526 @BeanReference(type = LockPersistence.class)
1527 protected LockPersistence lockPersistence;
1528 @BeanReference(type = LockFinder.class)
1529 protected LockFinder lockFinder;
1530 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1531 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1532 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1533 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1534 @BeanReference(type = SubscriptionPersistence.class)
1535 protected SubscriptionPersistence subscriptionPersistence;
1536 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1537 protected com.liferay.portal.service.UserLocalService userLocalService;
1538 @BeanReference(type = com.liferay.portal.service.UserService.class)
1539 protected com.liferay.portal.service.UserService userService;
1540 @BeanReference(type = UserPersistence.class)
1541 protected UserPersistence userPersistence;
1542 @BeanReference(type = UserFinder.class)
1543 protected UserFinder userFinder;
1544 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1545 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1546 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1547 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1548 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1549 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1550 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1551 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1552 @BeanReference(type = AssetEntryPersistence.class)
1553 protected AssetEntryPersistence assetEntryPersistence;
1554 @BeanReference(type = AssetEntryFinder.class)
1555 protected AssetEntryFinder assetEntryFinder;
1556 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1557 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1558 @BeanReference(type = RatingsStatsPersistence.class)
1559 protected RatingsStatsPersistence ratingsStatsPersistence;
1560 @BeanReference(type = RatingsStatsFinder.class)
1561 protected RatingsStatsFinder ratingsStatsFinder;
1562 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1563 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1564 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1565 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1566 @BeanReference(type = SocialActivityPersistence.class)
1567 protected SocialActivityPersistence socialActivityPersistence;
1568 @BeanReference(type = SocialActivityFinder.class)
1569 protected SocialActivityFinder socialActivityFinder;
1570 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1571 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1572 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1573 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1574 @BeanReference(type = TrashEntryPersistence.class)
1575 protected TrashEntryPersistence trashEntryPersistence;
1576 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1577 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1578 @BeanReference(type = TrashVersionPersistence.class)
1579 protected TrashVersionPersistence trashVersionPersistence;
1580 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1581 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1582 private String _beanIdentifier;
1583 }