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
062 import java.io.Serializable;
063
064 import java.util.List;
065
066 import javax.sql.DataSource;
067
068
080 public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
081 implements MBThreadLocalService, IdentifiableBean {
082
087
088
095 @Indexable(type = IndexableType.REINDEX)
096 @Override
097 public MBThread addMBThread(MBThread mbThread) throws SystemException {
098 mbThread.setNew(true);
099
100 return mbThreadPersistence.update(mbThread);
101 }
102
103
109 @Override
110 public MBThread createMBThread(long threadId) {
111 return mbThreadPersistence.create(threadId);
112 }
113
114
122 @Indexable(type = IndexableType.DELETE)
123 @Override
124 public MBThread deleteMBThread(long threadId)
125 throws PortalException, SystemException {
126 return mbThreadPersistence.remove(threadId);
127 }
128
129
136 @Indexable(type = IndexableType.DELETE)
137 @Override
138 public MBThread deleteMBThread(MBThread mbThread) throws SystemException {
139 return mbThreadPersistence.remove(mbThread);
140 }
141
142 @Override
143 public DynamicQuery dynamicQuery() {
144 Class<?> clazz = getClass();
145
146 return DynamicQueryFactoryUtil.forClass(MBThread.class,
147 clazz.getClassLoader());
148 }
149
150
157 @Override
158 @SuppressWarnings("rawtypes")
159 public List dynamicQuery(DynamicQuery dynamicQuery)
160 throws SystemException {
161 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
162 }
163
164
177 @Override
178 @SuppressWarnings("rawtypes")
179 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
180 throws SystemException {
181 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
182 }
183
184
198 @Override
199 @SuppressWarnings("rawtypes")
200 public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
201 OrderByComparator orderByComparator) throws SystemException {
202 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
203 end, orderByComparator);
204 }
205
206
213 @Override
214 public long dynamicQueryCount(DynamicQuery dynamicQuery)
215 throws SystemException {
216 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
217 }
218
219
227 @Override
228 public long dynamicQueryCount(DynamicQuery dynamicQuery,
229 Projection projection) throws SystemException {
230 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
231 projection);
232 }
233
234 @Override
235 public MBThread fetchMBThread(long threadId) throws SystemException {
236 return mbThreadPersistence.fetchByPrimaryKey(threadId);
237 }
238
239
247 @Override
248 public MBThread fetchMBThreadByUuidAndCompanyId(String uuid, long companyId)
249 throws SystemException {
250 return mbThreadPersistence.fetchByUuid_C_First(uuid, companyId, null);
251 }
252
253
261 @Override
262 public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId)
263 throws SystemException {
264 return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
265 }
266
267
275 @Override
276 public MBThread getMBThread(long threadId)
277 throws PortalException, SystemException {
278 return mbThreadPersistence.findByPrimaryKey(threadId);
279 }
280
281 @Override
282 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
283 throws PortalException, SystemException {
284 return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
285 }
286
287
296 @Override
297 public MBThread getMBThreadByUuidAndCompanyId(String uuid, long companyId)
298 throws PortalException, SystemException {
299 return mbThreadPersistence.findByUuid_C_First(uuid, companyId, null);
300 }
301
302
311 @Override
312 public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
313 throws PortalException, SystemException {
314 return mbThreadPersistence.findByUUID_G(uuid, groupId);
315 }
316
317
329 @Override
330 public List<MBThread> getMBThreads(int start, int end)
331 throws SystemException {
332 return mbThreadPersistence.findAll(start, end);
333 }
334
335
341 @Override
342 public int getMBThreadsCount() throws SystemException {
343 return mbThreadPersistence.countAll();
344 }
345
346
353 @Indexable(type = IndexableType.REINDEX)
354 @Override
355 public MBThread updateMBThread(MBThread mbThread) throws SystemException {
356 return mbThreadPersistence.update(mbThread);
357 }
358
359
364 public com.liferay.portlet.messageboards.service.MBBanLocalService getMBBanLocalService() {
365 return mbBanLocalService;
366 }
367
368
373 public void setMBBanLocalService(
374 com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService) {
375 this.mbBanLocalService = mbBanLocalService;
376 }
377
378
383 public com.liferay.portlet.messageboards.service.MBBanService getMBBanService() {
384 return mbBanService;
385 }
386
387
392 public void setMBBanService(
393 com.liferay.portlet.messageboards.service.MBBanService mbBanService) {
394 this.mbBanService = mbBanService;
395 }
396
397
402 public MBBanPersistence getMBBanPersistence() {
403 return mbBanPersistence;
404 }
405
406
411 public void setMBBanPersistence(MBBanPersistence mbBanPersistence) {
412 this.mbBanPersistence = mbBanPersistence;
413 }
414
415
420 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
421 return mbCategoryLocalService;
422 }
423
424
429 public void setMBCategoryLocalService(
430 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
431 this.mbCategoryLocalService = mbCategoryLocalService;
432 }
433
434
439 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
440 return mbCategoryService;
441 }
442
443
448 public void setMBCategoryService(
449 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
450 this.mbCategoryService = mbCategoryService;
451 }
452
453
458 public MBCategoryPersistence getMBCategoryPersistence() {
459 return mbCategoryPersistence;
460 }
461
462
467 public void setMBCategoryPersistence(
468 MBCategoryPersistence mbCategoryPersistence) {
469 this.mbCategoryPersistence = mbCategoryPersistence;
470 }
471
472
477 public MBCategoryFinder getMBCategoryFinder() {
478 return mbCategoryFinder;
479 }
480
481
486 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
487 this.mbCategoryFinder = mbCategoryFinder;
488 }
489
490
495 public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
496 return mbDiscussionLocalService;
497 }
498
499
504 public void setMBDiscussionLocalService(
505 com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
506 this.mbDiscussionLocalService = mbDiscussionLocalService;
507 }
508
509
514 public MBDiscussionPersistence getMBDiscussionPersistence() {
515 return mbDiscussionPersistence;
516 }
517
518
523 public void setMBDiscussionPersistence(
524 MBDiscussionPersistence mbDiscussionPersistence) {
525 this.mbDiscussionPersistence = mbDiscussionPersistence;
526 }
527
528
533 public com.liferay.portlet.messageboards.service.MBMailingListLocalService getMBMailingListLocalService() {
534 return mbMailingListLocalService;
535 }
536
537
542 public void setMBMailingListLocalService(
543 com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService) {
544 this.mbMailingListLocalService = mbMailingListLocalService;
545 }
546
547
552 public MBMailingListPersistence getMBMailingListPersistence() {
553 return mbMailingListPersistence;
554 }
555
556
561 public void setMBMailingListPersistence(
562 MBMailingListPersistence mbMailingListPersistence) {
563 this.mbMailingListPersistence = mbMailingListPersistence;
564 }
565
566
571 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
572 return mbMessageLocalService;
573 }
574
575
580 public void setMBMessageLocalService(
581 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
582 this.mbMessageLocalService = mbMessageLocalService;
583 }
584
585
590 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
591 return mbMessageService;
592 }
593
594
599 public void setMBMessageService(
600 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
601 this.mbMessageService = mbMessageService;
602 }
603
604
609 public MBMessagePersistence getMBMessagePersistence() {
610 return mbMessagePersistence;
611 }
612
613
618 public void setMBMessagePersistence(
619 MBMessagePersistence mbMessagePersistence) {
620 this.mbMessagePersistence = mbMessagePersistence;
621 }
622
623
628 public MBMessageFinder getMBMessageFinder() {
629 return mbMessageFinder;
630 }
631
632
637 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
638 this.mbMessageFinder = mbMessageFinder;
639 }
640
641
646 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
647 return mbStatsUserLocalService;
648 }
649
650
655 public void setMBStatsUserLocalService(
656 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
657 this.mbStatsUserLocalService = mbStatsUserLocalService;
658 }
659
660
665 public MBStatsUserPersistence getMBStatsUserPersistence() {
666 return mbStatsUserPersistence;
667 }
668
669
674 public void setMBStatsUserPersistence(
675 MBStatsUserPersistence mbStatsUserPersistence) {
676 this.mbStatsUserPersistence = mbStatsUserPersistence;
677 }
678
679
684 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
685 return mbThreadLocalService;
686 }
687
688
693 public void setMBThreadLocalService(
694 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
695 this.mbThreadLocalService = mbThreadLocalService;
696 }
697
698
703 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
704 return mbThreadService;
705 }
706
707
712 public void setMBThreadService(
713 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
714 this.mbThreadService = mbThreadService;
715 }
716
717
722 public MBThreadPersistence getMBThreadPersistence() {
723 return mbThreadPersistence;
724 }
725
726
731 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
732 this.mbThreadPersistence = mbThreadPersistence;
733 }
734
735
740 public MBThreadFinder getMBThreadFinder() {
741 return mbThreadFinder;
742 }
743
744
749 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
750 this.mbThreadFinder = mbThreadFinder;
751 }
752
753
758 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
759 return mbThreadFlagLocalService;
760 }
761
762
767 public void setMBThreadFlagLocalService(
768 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
769 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
770 }
771
772
777 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
778 return mbThreadFlagPersistence;
779 }
780
781
786 public void setMBThreadFlagPersistence(
787 MBThreadFlagPersistence mbThreadFlagPersistence) {
788 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
789 }
790
791
796 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
797 return counterLocalService;
798 }
799
800
805 public void setCounterLocalService(
806 com.liferay.counter.service.CounterLocalService counterLocalService) {
807 this.counterLocalService = counterLocalService;
808 }
809
810
815 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
816 return groupLocalService;
817 }
818
819
824 public void setGroupLocalService(
825 com.liferay.portal.service.GroupLocalService groupLocalService) {
826 this.groupLocalService = groupLocalService;
827 }
828
829
834 public com.liferay.portal.service.GroupService getGroupService() {
835 return groupService;
836 }
837
838
843 public void setGroupService(
844 com.liferay.portal.service.GroupService groupService) {
845 this.groupService = groupService;
846 }
847
848
853 public GroupPersistence getGroupPersistence() {
854 return groupPersistence;
855 }
856
857
862 public void setGroupPersistence(GroupPersistence groupPersistence) {
863 this.groupPersistence = groupPersistence;
864 }
865
866
871 public GroupFinder getGroupFinder() {
872 return groupFinder;
873 }
874
875
880 public void setGroupFinder(GroupFinder groupFinder) {
881 this.groupFinder = groupFinder;
882 }
883
884
889 public com.liferay.portal.service.LockLocalService getLockLocalService() {
890 return lockLocalService;
891 }
892
893
898 public void setLockLocalService(
899 com.liferay.portal.service.LockLocalService lockLocalService) {
900 this.lockLocalService = lockLocalService;
901 }
902
903
908 public LockPersistence getLockPersistence() {
909 return lockPersistence;
910 }
911
912
917 public void setLockPersistence(LockPersistence lockPersistence) {
918 this.lockPersistence = lockPersistence;
919 }
920
921
926 public LockFinder getLockFinder() {
927 return lockFinder;
928 }
929
930
935 public void setLockFinder(LockFinder lockFinder) {
936 this.lockFinder = lockFinder;
937 }
938
939
944 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
945 return resourceLocalService;
946 }
947
948
953 public void setResourceLocalService(
954 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
955 this.resourceLocalService = resourceLocalService;
956 }
957
958
963 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
964 return subscriptionLocalService;
965 }
966
967
972 public void setSubscriptionLocalService(
973 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
974 this.subscriptionLocalService = subscriptionLocalService;
975 }
976
977
982 public SubscriptionPersistence getSubscriptionPersistence() {
983 return subscriptionPersistence;
984 }
985
986
991 public void setSubscriptionPersistence(
992 SubscriptionPersistence subscriptionPersistence) {
993 this.subscriptionPersistence = subscriptionPersistence;
994 }
995
996
1001 public com.liferay.portal.service.UserLocalService getUserLocalService() {
1002 return userLocalService;
1003 }
1004
1005
1010 public void setUserLocalService(
1011 com.liferay.portal.service.UserLocalService userLocalService) {
1012 this.userLocalService = userLocalService;
1013 }
1014
1015
1020 public com.liferay.portal.service.UserService getUserService() {
1021 return userService;
1022 }
1023
1024
1029 public void setUserService(
1030 com.liferay.portal.service.UserService userService) {
1031 this.userService = userService;
1032 }
1033
1034
1039 public UserPersistence getUserPersistence() {
1040 return userPersistence;
1041 }
1042
1043
1048 public void setUserPersistence(UserPersistence userPersistence) {
1049 this.userPersistence = userPersistence;
1050 }
1051
1052
1057 public UserFinder getUserFinder() {
1058 return userFinder;
1059 }
1060
1061
1066 public void setUserFinder(UserFinder userFinder) {
1067 this.userFinder = userFinder;
1068 }
1069
1070
1075 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1076 return workflowInstanceLinkLocalService;
1077 }
1078
1079
1084 public void setWorkflowInstanceLinkLocalService(
1085 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1086 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1087 }
1088
1089
1094 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1095 return workflowInstanceLinkPersistence;
1096 }
1097
1098
1103 public void setWorkflowInstanceLinkPersistence(
1104 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1105 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1106 }
1107
1108
1113 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1114 return assetEntryLocalService;
1115 }
1116
1117
1122 public void setAssetEntryLocalService(
1123 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1124 this.assetEntryLocalService = assetEntryLocalService;
1125 }
1126
1127
1132 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1133 return assetEntryService;
1134 }
1135
1136
1141 public void setAssetEntryService(
1142 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1143 this.assetEntryService = assetEntryService;
1144 }
1145
1146
1151 public AssetEntryPersistence getAssetEntryPersistence() {
1152 return assetEntryPersistence;
1153 }
1154
1155
1160 public void setAssetEntryPersistence(
1161 AssetEntryPersistence assetEntryPersistence) {
1162 this.assetEntryPersistence = assetEntryPersistence;
1163 }
1164
1165
1170 public AssetEntryFinder getAssetEntryFinder() {
1171 return assetEntryFinder;
1172 }
1173
1174
1179 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1180 this.assetEntryFinder = assetEntryFinder;
1181 }
1182
1183
1188 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1189 return ratingsStatsLocalService;
1190 }
1191
1192
1197 public void setRatingsStatsLocalService(
1198 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1199 this.ratingsStatsLocalService = ratingsStatsLocalService;
1200 }
1201
1202
1207 public RatingsStatsPersistence getRatingsStatsPersistence() {
1208 return ratingsStatsPersistence;
1209 }
1210
1211
1216 public void setRatingsStatsPersistence(
1217 RatingsStatsPersistence ratingsStatsPersistence) {
1218 this.ratingsStatsPersistence = ratingsStatsPersistence;
1219 }
1220
1221
1226 public RatingsStatsFinder getRatingsStatsFinder() {
1227 return ratingsStatsFinder;
1228 }
1229
1230
1235 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1236 this.ratingsStatsFinder = ratingsStatsFinder;
1237 }
1238
1239
1244 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1245 return socialActivityLocalService;
1246 }
1247
1248
1253 public void setSocialActivityLocalService(
1254 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1255 this.socialActivityLocalService = socialActivityLocalService;
1256 }
1257
1258
1263 public SocialActivityPersistence getSocialActivityPersistence() {
1264 return socialActivityPersistence;
1265 }
1266
1267
1272 public void setSocialActivityPersistence(
1273 SocialActivityPersistence socialActivityPersistence) {
1274 this.socialActivityPersistence = socialActivityPersistence;
1275 }
1276
1277
1282 public SocialActivityFinder getSocialActivityFinder() {
1283 return socialActivityFinder;
1284 }
1285
1286
1291 public void setSocialActivityFinder(
1292 SocialActivityFinder socialActivityFinder) {
1293 this.socialActivityFinder = socialActivityFinder;
1294 }
1295
1296
1301 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1302 return trashEntryLocalService;
1303 }
1304
1305
1310 public void setTrashEntryLocalService(
1311 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1312 this.trashEntryLocalService = trashEntryLocalService;
1313 }
1314
1315
1320 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1321 return trashEntryService;
1322 }
1323
1324
1329 public void setTrashEntryService(
1330 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1331 this.trashEntryService = trashEntryService;
1332 }
1333
1334
1339 public TrashEntryPersistence getTrashEntryPersistence() {
1340 return trashEntryPersistence;
1341 }
1342
1343
1348 public void setTrashEntryPersistence(
1349 TrashEntryPersistence trashEntryPersistence) {
1350 this.trashEntryPersistence = trashEntryPersistence;
1351 }
1352
1353 public void afterPropertiesSet() {
1354 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1355 mbThreadLocalService);
1356 }
1357
1358 public void destroy() {
1359 persistedModelLocalServiceRegistry.unregister(
1360 "com.liferay.portlet.messageboards.model.MBThread");
1361 }
1362
1363
1368 @Override
1369 public String getBeanIdentifier() {
1370 return _beanIdentifier;
1371 }
1372
1373
1378 @Override
1379 public void setBeanIdentifier(String beanIdentifier) {
1380 _beanIdentifier = beanIdentifier;
1381 }
1382
1383 protected Class<?> getModelClass() {
1384 return MBThread.class;
1385 }
1386
1387 protected String getModelClassName() {
1388 return MBThread.class.getName();
1389 }
1390
1391
1396 protected void runSQL(String sql) throws SystemException {
1397 try {
1398 DataSource dataSource = mbThreadPersistence.getDataSource();
1399
1400 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1401 sql, new int[0]);
1402
1403 sqlUpdate.update();
1404 }
1405 catch (Exception e) {
1406 throw new SystemException(e);
1407 }
1408 }
1409
1410 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanLocalService.class)
1411 protected com.liferay.portlet.messageboards.service.MBBanLocalService mbBanLocalService;
1412 @BeanReference(type = com.liferay.portlet.messageboards.service.MBBanService.class)
1413 protected com.liferay.portlet.messageboards.service.MBBanService mbBanService;
1414 @BeanReference(type = MBBanPersistence.class)
1415 protected MBBanPersistence mbBanPersistence;
1416 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1417 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1418 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1419 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1420 @BeanReference(type = MBCategoryPersistence.class)
1421 protected MBCategoryPersistence mbCategoryPersistence;
1422 @BeanReference(type = MBCategoryFinder.class)
1423 protected MBCategoryFinder mbCategoryFinder;
1424 @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1425 protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1426 @BeanReference(type = MBDiscussionPersistence.class)
1427 protected MBDiscussionPersistence mbDiscussionPersistence;
1428 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMailingListLocalService.class)
1429 protected com.liferay.portlet.messageboards.service.MBMailingListLocalService mbMailingListLocalService;
1430 @BeanReference(type = MBMailingListPersistence.class)
1431 protected MBMailingListPersistence mbMailingListPersistence;
1432 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1433 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1434 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1435 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1436 @BeanReference(type = MBMessagePersistence.class)
1437 protected MBMessagePersistence mbMessagePersistence;
1438 @BeanReference(type = MBMessageFinder.class)
1439 protected MBMessageFinder mbMessageFinder;
1440 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1441 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1442 @BeanReference(type = MBStatsUserPersistence.class)
1443 protected MBStatsUserPersistence mbStatsUserPersistence;
1444 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1445 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1446 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1447 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1448 @BeanReference(type = MBThreadPersistence.class)
1449 protected MBThreadPersistence mbThreadPersistence;
1450 @BeanReference(type = MBThreadFinder.class)
1451 protected MBThreadFinder mbThreadFinder;
1452 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1453 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1454 @BeanReference(type = MBThreadFlagPersistence.class)
1455 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1456 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1457 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1458 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1459 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1460 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1461 protected com.liferay.portal.service.GroupService groupService;
1462 @BeanReference(type = GroupPersistence.class)
1463 protected GroupPersistence groupPersistence;
1464 @BeanReference(type = GroupFinder.class)
1465 protected GroupFinder groupFinder;
1466 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1467 protected com.liferay.portal.service.LockLocalService lockLocalService;
1468 @BeanReference(type = LockPersistence.class)
1469 protected LockPersistence lockPersistence;
1470 @BeanReference(type = LockFinder.class)
1471 protected LockFinder lockFinder;
1472 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1473 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1474 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1475 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1476 @BeanReference(type = SubscriptionPersistence.class)
1477 protected SubscriptionPersistence subscriptionPersistence;
1478 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1479 protected com.liferay.portal.service.UserLocalService userLocalService;
1480 @BeanReference(type = com.liferay.portal.service.UserService.class)
1481 protected com.liferay.portal.service.UserService userService;
1482 @BeanReference(type = UserPersistence.class)
1483 protected UserPersistence userPersistence;
1484 @BeanReference(type = UserFinder.class)
1485 protected UserFinder userFinder;
1486 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1487 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1488 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1489 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1490 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1491 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1492 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1493 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1494 @BeanReference(type = AssetEntryPersistence.class)
1495 protected AssetEntryPersistence assetEntryPersistence;
1496 @BeanReference(type = AssetEntryFinder.class)
1497 protected AssetEntryFinder assetEntryFinder;
1498 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1499 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1500 @BeanReference(type = RatingsStatsPersistence.class)
1501 protected RatingsStatsPersistence ratingsStatsPersistence;
1502 @BeanReference(type = RatingsStatsFinder.class)
1503 protected RatingsStatsFinder ratingsStatsFinder;
1504 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1505 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1506 @BeanReference(type = SocialActivityPersistence.class)
1507 protected SocialActivityPersistence socialActivityPersistence;
1508 @BeanReference(type = SocialActivityFinder.class)
1509 protected SocialActivityFinder socialActivityFinder;
1510 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1511 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1512 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1513 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1514 @BeanReference(type = TrashEntryPersistence.class)
1515 protected TrashEntryPersistence trashEntryPersistence;
1516 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1517 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1518 private String _beanIdentifier;
1519 }