001
014
015 package com.liferay.portlet.messageboards.service.base;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.BeanReference;
020 import com.liferay.portal.kernel.bean.IdentifiableBean;
021 import com.liferay.portal.kernel.dao.db.DB;
022 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023 import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024 import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028 import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030 import com.liferay.portal.kernel.dao.orm.Projection;
031 import com.liferay.portal.kernel.dao.orm.Property;
032 import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
033 import com.liferay.portal.kernel.exception.PortalException;
034 import com.liferay.portal.kernel.exception.SystemException;
035 import com.liferay.portal.kernel.lar.ExportImportHelperUtil;
036 import com.liferay.portal.kernel.lar.ManifestSummary;
037 import com.liferay.portal.kernel.lar.PortletDataContext;
038 import com.liferay.portal.kernel.lar.StagedModelDataHandler;
039 import com.liferay.portal.kernel.lar.StagedModelDataHandlerRegistryUtil;
040 import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
041 import com.liferay.portal.kernel.lar.StagedModelType;
042 import com.liferay.portal.kernel.search.Indexable;
043 import com.liferay.portal.kernel.search.IndexableType;
044 import com.liferay.portal.kernel.util.OrderByComparator;
045 import com.liferay.portal.model.PersistedModel;
046 import com.liferay.portal.service.BaseLocalServiceImpl;
047 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
048 import com.liferay.portal.service.persistence.GroupFinder;
049 import com.liferay.portal.service.persistence.GroupPersistence;
050 import com.liferay.portal.service.persistence.LockFinder;
051 import com.liferay.portal.service.persistence.LockPersistence;
052 import com.liferay.portal.service.persistence.SubscriptionPersistence;
053 import com.liferay.portal.service.persistence.UserFinder;
054 import com.liferay.portal.service.persistence.UserPersistence;
055 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
056 import com.liferay.portal.util.PortalUtil;
057
058 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060 import com.liferay.portlet.messageboards.model.MBThread;
061 import com.liferay.portlet.messageboards.service.MBThreadLocalService;
062 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
063 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
064 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
065 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
066 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
067 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
068 import com.liferay.portlet.messageboards.service.persistence.MBThreadFlagPersistence;
069 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
070 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
071 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
072 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
073 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
074 import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
075 import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
076
077 import java.io.Serializable;
078
079 import java.util.List;
080
081 import javax.sql.DataSource;
082
083
095 @ProviderType
096 public abstract class MBThreadLocalServiceBaseImpl extends BaseLocalServiceImpl
097 implements MBThreadLocalService, IdentifiableBean {
098
103
104
110 @Indexable(type = IndexableType.REINDEX)
111 @Override
112 public MBThread addMBThread(MBThread mbThread) {
113 mbThread.setNew(true);
114
115 return mbThreadPersistence.update(mbThread);
116 }
117
118
124 @Override
125 public MBThread createMBThread(long threadId) {
126 return mbThreadPersistence.create(threadId);
127 }
128
129
136 @Indexable(type = IndexableType.DELETE)
137 @Override
138 public MBThread deleteMBThread(long threadId) throws PortalException {
139 return mbThreadPersistence.remove(threadId);
140 }
141
142
148 @Indexable(type = IndexableType.DELETE)
149 @Override
150 public MBThread deleteMBThread(MBThread mbThread) {
151 return mbThreadPersistence.remove(mbThread);
152 }
153
154 @Override
155 public DynamicQuery dynamicQuery() {
156 Class<?> clazz = getClass();
157
158 return DynamicQueryFactoryUtil.forClass(MBThread.class,
159 clazz.getClassLoader());
160 }
161
162
168 @Override
169 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
170 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery);
171 }
172
173
185 @Override
186 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
187 int end) {
188 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start, end);
189 }
190
191
204 @Override
205 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
206 int end, OrderByComparator<T> orderByComparator) {
207 return mbThreadPersistence.findWithDynamicQuery(dynamicQuery, start,
208 end, orderByComparator);
209 }
210
211
217 @Override
218 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
219 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery);
220 }
221
222
229 @Override
230 public long dynamicQueryCount(DynamicQuery dynamicQuery,
231 Projection projection) {
232 return mbThreadPersistence.countWithDynamicQuery(dynamicQuery,
233 projection);
234 }
235
236 @Override
237 public MBThread fetchMBThread(long threadId) {
238 return mbThreadPersistence.fetchByPrimaryKey(threadId);
239 }
240
241
248 @Override
249 public MBThread fetchMBThreadByUuidAndGroupId(String uuid, long groupId) {
250 return mbThreadPersistence.fetchByUUID_G(uuid, groupId);
251 }
252
253
260 @Override
261 public MBThread getMBThread(long threadId) throws PortalException {
262 return mbThreadPersistence.findByPrimaryKey(threadId);
263 }
264
265 @Override
266 public ActionableDynamicQuery getActionableDynamicQuery() {
267 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
268
269 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil.getService());
270 actionableDynamicQuery.setClass(MBThread.class);
271 actionableDynamicQuery.setClassLoader(getClassLoader());
272
273 actionableDynamicQuery.setPrimaryKeyPropertyName("threadId");
274
275 return actionableDynamicQuery;
276 }
277
278 protected void initActionableDynamicQuery(
279 ActionableDynamicQuery actionableDynamicQuery) {
280 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil.getService());
281 actionableDynamicQuery.setClass(MBThread.class);
282 actionableDynamicQuery.setClassLoader(getClassLoader());
283
284 actionableDynamicQuery.setPrimaryKeyPropertyName("threadId");
285 }
286
287 @Override
288 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
289 final PortletDataContext portletDataContext) {
290 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
291 @Override
292 public long performCount() throws PortalException {
293 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
294
295 StagedModelType stagedModelType = getStagedModelType();
296
297 long modelAdditionCount = super.performCount();
298
299 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
300 modelAdditionCount);
301
302 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
303 stagedModelType);
304
305 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
306 modelDeletionCount);
307
308 return modelAdditionCount;
309 }
310 };
311
312 initActionableDynamicQuery(exportActionableDynamicQuery);
313
314 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
315 @Override
316 public void addCriteria(DynamicQuery dynamicQuery) {
317 portletDataContext.addDateRangeCriteria(dynamicQuery,
318 "modifiedDate");
319
320 StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(MBThread.class.getName());
321
322 Property workflowStatusProperty = PropertyFactoryUtil.forName(
323 "status");
324
325 dynamicQuery.add(workflowStatusProperty.in(
326 stagedModelDataHandler.getExportableStatuses()));
327 }
328 });
329
330 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
331
332 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
333
334 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
335 @Override
336 public void performAction(Object object)
337 throws PortalException {
338 MBThread stagedModel = (MBThread)object;
339
340 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
341 stagedModel);
342 }
343 });
344 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
345 PortalUtil.getClassNameId(MBThread.class.getName())));
346
347 return exportActionableDynamicQuery;
348 }
349
350
353 @Override
354 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
355 throws PortalException {
356 return mbThreadLocalService.deleteMBThread((MBThread)persistedModel);
357 }
358
359 @Override
360 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
361 throws PortalException {
362 return mbThreadPersistence.findByPrimaryKey(primaryKeyObj);
363 }
364
365 @Override
366 public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
367 long companyId) {
368 return mbThreadPersistence.findByUuid_C(uuid, companyId);
369 }
370
371 @Override
372 public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
373 long companyId, int start, int end,
374 OrderByComparator<MBThread> orderByComparator) {
375 return mbThreadPersistence.findByUuid_C(uuid, companyId, start, end,
376 orderByComparator);
377 }
378
379
387 @Override
388 public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
389 throws PortalException {
390 return mbThreadPersistence.findByUUID_G(uuid, groupId);
391 }
392
393
404 @Override
405 public List<MBThread> getMBThreads(int start, int end) {
406 return mbThreadPersistence.findAll(start, end);
407 }
408
409
414 @Override
415 public int getMBThreadsCount() {
416 return mbThreadPersistence.countAll();
417 }
418
419
425 @Indexable(type = IndexableType.REINDEX)
426 @Override
427 public MBThread updateMBThread(MBThread mbThread) {
428 return mbThreadPersistence.update(mbThread);
429 }
430
431
436 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
437 return mbThreadLocalService;
438 }
439
440
445 public void setMBThreadLocalService(
446 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
447 this.mbThreadLocalService = mbThreadLocalService;
448 }
449
450
455 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
456 return mbThreadService;
457 }
458
459
464 public void setMBThreadService(
465 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
466 this.mbThreadService = mbThreadService;
467 }
468
469
474 public MBThreadPersistence getMBThreadPersistence() {
475 return mbThreadPersistence;
476 }
477
478
483 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
484 this.mbThreadPersistence = mbThreadPersistence;
485 }
486
487
492 public MBThreadFinder getMBThreadFinder() {
493 return mbThreadFinder;
494 }
495
496
501 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
502 this.mbThreadFinder = mbThreadFinder;
503 }
504
505
510 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
511 return counterLocalService;
512 }
513
514
519 public void setCounterLocalService(
520 com.liferay.counter.service.CounterLocalService counterLocalService) {
521 this.counterLocalService = counterLocalService;
522 }
523
524
529 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
530 return groupLocalService;
531 }
532
533
538 public void setGroupLocalService(
539 com.liferay.portal.service.GroupLocalService groupLocalService) {
540 this.groupLocalService = groupLocalService;
541 }
542
543
548 public com.liferay.portal.service.GroupService getGroupService() {
549 return groupService;
550 }
551
552
557 public void setGroupService(
558 com.liferay.portal.service.GroupService groupService) {
559 this.groupService = groupService;
560 }
561
562
567 public GroupPersistence getGroupPersistence() {
568 return groupPersistence;
569 }
570
571
576 public void setGroupPersistence(GroupPersistence groupPersistence) {
577 this.groupPersistence = groupPersistence;
578 }
579
580
585 public GroupFinder getGroupFinder() {
586 return groupFinder;
587 }
588
589
594 public void setGroupFinder(GroupFinder groupFinder) {
595 this.groupFinder = groupFinder;
596 }
597
598
603 public com.liferay.portal.service.LockLocalService getLockLocalService() {
604 return lockLocalService;
605 }
606
607
612 public void setLockLocalService(
613 com.liferay.portal.service.LockLocalService lockLocalService) {
614 this.lockLocalService = lockLocalService;
615 }
616
617
622 public LockPersistence getLockPersistence() {
623 return lockPersistence;
624 }
625
626
631 public void setLockPersistence(LockPersistence lockPersistence) {
632 this.lockPersistence = lockPersistence;
633 }
634
635
640 public LockFinder getLockFinder() {
641 return lockFinder;
642 }
643
644
649 public void setLockFinder(LockFinder lockFinder) {
650 this.lockFinder = lockFinder;
651 }
652
653
658 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
659 return resourceLocalService;
660 }
661
662
667 public void setResourceLocalService(
668 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
669 this.resourceLocalService = resourceLocalService;
670 }
671
672
677 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
678 return subscriptionLocalService;
679 }
680
681
686 public void setSubscriptionLocalService(
687 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
688 this.subscriptionLocalService = subscriptionLocalService;
689 }
690
691
696 public SubscriptionPersistence getSubscriptionPersistence() {
697 return subscriptionPersistence;
698 }
699
700
705 public void setSubscriptionPersistence(
706 SubscriptionPersistence subscriptionPersistence) {
707 this.subscriptionPersistence = subscriptionPersistence;
708 }
709
710
715 public com.liferay.portal.service.UserLocalService getUserLocalService() {
716 return userLocalService;
717 }
718
719
724 public void setUserLocalService(
725 com.liferay.portal.service.UserLocalService userLocalService) {
726 this.userLocalService = userLocalService;
727 }
728
729
734 public com.liferay.portal.service.UserService getUserService() {
735 return userService;
736 }
737
738
743 public void setUserService(
744 com.liferay.portal.service.UserService userService) {
745 this.userService = userService;
746 }
747
748
753 public UserPersistence getUserPersistence() {
754 return userPersistence;
755 }
756
757
762 public void setUserPersistence(UserPersistence userPersistence) {
763 this.userPersistence = userPersistence;
764 }
765
766
771 public UserFinder getUserFinder() {
772 return userFinder;
773 }
774
775
780 public void setUserFinder(UserFinder userFinder) {
781 this.userFinder = userFinder;
782 }
783
784
789 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
790 return workflowInstanceLinkLocalService;
791 }
792
793
798 public void setWorkflowInstanceLinkLocalService(
799 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
800 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
801 }
802
803
808 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
809 return workflowInstanceLinkPersistence;
810 }
811
812
817 public void setWorkflowInstanceLinkPersistence(
818 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
819 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
820 }
821
822
827 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
828 return assetEntryLocalService;
829 }
830
831
836 public void setAssetEntryLocalService(
837 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
838 this.assetEntryLocalService = assetEntryLocalService;
839 }
840
841
846 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
847 return assetEntryService;
848 }
849
850
855 public void setAssetEntryService(
856 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
857 this.assetEntryService = assetEntryService;
858 }
859
860
865 public AssetEntryPersistence getAssetEntryPersistence() {
866 return assetEntryPersistence;
867 }
868
869
874 public void setAssetEntryPersistence(
875 AssetEntryPersistence assetEntryPersistence) {
876 this.assetEntryPersistence = assetEntryPersistence;
877 }
878
879
884 public AssetEntryFinder getAssetEntryFinder() {
885 return assetEntryFinder;
886 }
887
888
893 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
894 this.assetEntryFinder = assetEntryFinder;
895 }
896
897
902 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
903 return mbCategoryLocalService;
904 }
905
906
911 public void setMBCategoryLocalService(
912 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
913 this.mbCategoryLocalService = mbCategoryLocalService;
914 }
915
916
921 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
922 return mbCategoryService;
923 }
924
925
930 public void setMBCategoryService(
931 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
932 this.mbCategoryService = mbCategoryService;
933 }
934
935
940 public MBCategoryPersistence getMBCategoryPersistence() {
941 return mbCategoryPersistence;
942 }
943
944
949 public void setMBCategoryPersistence(
950 MBCategoryPersistence mbCategoryPersistence) {
951 this.mbCategoryPersistence = mbCategoryPersistence;
952 }
953
954
959 public MBCategoryFinder getMBCategoryFinder() {
960 return mbCategoryFinder;
961 }
962
963
968 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
969 this.mbCategoryFinder = mbCategoryFinder;
970 }
971
972
977 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
978 return mbMessageLocalService;
979 }
980
981
986 public void setMBMessageLocalService(
987 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
988 this.mbMessageLocalService = mbMessageLocalService;
989 }
990
991
996 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
997 return mbMessageService;
998 }
999
1000
1005 public void setMBMessageService(
1006 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1007 this.mbMessageService = mbMessageService;
1008 }
1009
1010
1015 public MBMessagePersistence getMBMessagePersistence() {
1016 return mbMessagePersistence;
1017 }
1018
1019
1024 public void setMBMessagePersistence(
1025 MBMessagePersistence mbMessagePersistence) {
1026 this.mbMessagePersistence = mbMessagePersistence;
1027 }
1028
1029
1034 public MBMessageFinder getMBMessageFinder() {
1035 return mbMessageFinder;
1036 }
1037
1038
1043 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1044 this.mbMessageFinder = mbMessageFinder;
1045 }
1046
1047
1052 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1053 return mbStatsUserLocalService;
1054 }
1055
1056
1061 public void setMBStatsUserLocalService(
1062 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1063 this.mbStatsUserLocalService = mbStatsUserLocalService;
1064 }
1065
1066
1071 public MBStatsUserPersistence getMBStatsUserPersistence() {
1072 return mbStatsUserPersistence;
1073 }
1074
1075
1080 public void setMBStatsUserPersistence(
1081 MBStatsUserPersistence mbStatsUserPersistence) {
1082 this.mbStatsUserPersistence = mbStatsUserPersistence;
1083 }
1084
1085
1090 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1091 return ratingsStatsLocalService;
1092 }
1093
1094
1099 public void setRatingsStatsLocalService(
1100 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1101 this.ratingsStatsLocalService = ratingsStatsLocalService;
1102 }
1103
1104
1109 public RatingsStatsPersistence getRatingsStatsPersistence() {
1110 return ratingsStatsPersistence;
1111 }
1112
1113
1118 public void setRatingsStatsPersistence(
1119 RatingsStatsPersistence ratingsStatsPersistence) {
1120 this.ratingsStatsPersistence = ratingsStatsPersistence;
1121 }
1122
1123
1128 public RatingsStatsFinder getRatingsStatsFinder() {
1129 return ratingsStatsFinder;
1130 }
1131
1132
1137 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1138 this.ratingsStatsFinder = ratingsStatsFinder;
1139 }
1140
1141
1146 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1147 return socialActivityLocalService;
1148 }
1149
1150
1155 public void setSocialActivityLocalService(
1156 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1157 this.socialActivityLocalService = socialActivityLocalService;
1158 }
1159
1160
1165 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1166 return socialActivityService;
1167 }
1168
1169
1174 public void setSocialActivityService(
1175 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1176 this.socialActivityService = socialActivityService;
1177 }
1178
1179
1184 public SocialActivityPersistence getSocialActivityPersistence() {
1185 return socialActivityPersistence;
1186 }
1187
1188
1193 public void setSocialActivityPersistence(
1194 SocialActivityPersistence socialActivityPersistence) {
1195 this.socialActivityPersistence = socialActivityPersistence;
1196 }
1197
1198
1203 public SocialActivityFinder getSocialActivityFinder() {
1204 return socialActivityFinder;
1205 }
1206
1207
1212 public void setSocialActivityFinder(
1213 SocialActivityFinder socialActivityFinder) {
1214 this.socialActivityFinder = socialActivityFinder;
1215 }
1216
1217
1222 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1223 return trashEntryLocalService;
1224 }
1225
1226
1231 public void setTrashEntryLocalService(
1232 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1233 this.trashEntryLocalService = trashEntryLocalService;
1234 }
1235
1236
1241 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1242 return trashEntryService;
1243 }
1244
1245
1250 public void setTrashEntryService(
1251 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1252 this.trashEntryService = trashEntryService;
1253 }
1254
1255
1260 public TrashEntryPersistence getTrashEntryPersistence() {
1261 return trashEntryPersistence;
1262 }
1263
1264
1269 public void setTrashEntryPersistence(
1270 TrashEntryPersistence trashEntryPersistence) {
1271 this.trashEntryPersistence = trashEntryPersistence;
1272 }
1273
1274
1279 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1280 return trashVersionLocalService;
1281 }
1282
1283
1288 public void setTrashVersionLocalService(
1289 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1290 this.trashVersionLocalService = trashVersionLocalService;
1291 }
1292
1293
1298 public TrashVersionPersistence getTrashVersionPersistence() {
1299 return trashVersionPersistence;
1300 }
1301
1302
1307 public void setTrashVersionPersistence(
1308 TrashVersionPersistence trashVersionPersistence) {
1309 this.trashVersionPersistence = trashVersionPersistence;
1310 }
1311
1312
1317 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
1318 return mbThreadFlagLocalService;
1319 }
1320
1321
1326 public void setMBThreadFlagLocalService(
1327 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
1328 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
1329 }
1330
1331
1336 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
1337 return mbThreadFlagPersistence;
1338 }
1339
1340
1345 public void setMBThreadFlagPersistence(
1346 MBThreadFlagPersistence mbThreadFlagPersistence) {
1347 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
1348 }
1349
1350 public void afterPropertiesSet() {
1351 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1352 mbThreadLocalService);
1353 }
1354
1355 public void destroy() {
1356 persistedModelLocalServiceRegistry.unregister(
1357 "com.liferay.portlet.messageboards.model.MBThread");
1358 }
1359
1360
1365 @Override
1366 public String getBeanIdentifier() {
1367 return _beanIdentifier;
1368 }
1369
1370
1375 @Override
1376 public void setBeanIdentifier(String beanIdentifier) {
1377 _beanIdentifier = beanIdentifier;
1378 }
1379
1380 protected Class<?> getModelClass() {
1381 return MBThread.class;
1382 }
1383
1384 protected String getModelClassName() {
1385 return MBThread.class.getName();
1386 }
1387
1388
1393 protected void runSQL(String sql) {
1394 try {
1395 DataSource dataSource = mbThreadPersistence.getDataSource();
1396
1397 DB db = DBFactoryUtil.getDB();
1398
1399 sql = db.buildSQL(sql);
1400 sql = PortalUtil.transformSQL(sql);
1401
1402 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1403 sql, new int[0]);
1404
1405 sqlUpdate.update();
1406 }
1407 catch (Exception e) {
1408 throw new SystemException(e);
1409 }
1410 }
1411
1412 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1413 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1414 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1415 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1416 @BeanReference(type = MBThreadPersistence.class)
1417 protected MBThreadPersistence mbThreadPersistence;
1418 @BeanReference(type = MBThreadFinder.class)
1419 protected MBThreadFinder mbThreadFinder;
1420 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1421 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1422 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1423 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1424 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1425 protected com.liferay.portal.service.GroupService groupService;
1426 @BeanReference(type = GroupPersistence.class)
1427 protected GroupPersistence groupPersistence;
1428 @BeanReference(type = GroupFinder.class)
1429 protected GroupFinder groupFinder;
1430 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1431 protected com.liferay.portal.service.LockLocalService lockLocalService;
1432 @BeanReference(type = LockPersistence.class)
1433 protected LockPersistence lockPersistence;
1434 @BeanReference(type = LockFinder.class)
1435 protected LockFinder lockFinder;
1436 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1437 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1438 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1439 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1440 @BeanReference(type = SubscriptionPersistence.class)
1441 protected SubscriptionPersistence subscriptionPersistence;
1442 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1443 protected com.liferay.portal.service.UserLocalService userLocalService;
1444 @BeanReference(type = com.liferay.portal.service.UserService.class)
1445 protected com.liferay.portal.service.UserService userService;
1446 @BeanReference(type = UserPersistence.class)
1447 protected UserPersistence userPersistence;
1448 @BeanReference(type = UserFinder.class)
1449 protected UserFinder userFinder;
1450 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1451 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1452 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1453 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1454 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1455 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1456 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1457 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1458 @BeanReference(type = AssetEntryPersistence.class)
1459 protected AssetEntryPersistence assetEntryPersistence;
1460 @BeanReference(type = AssetEntryFinder.class)
1461 protected AssetEntryFinder assetEntryFinder;
1462 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1463 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1464 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1465 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1466 @BeanReference(type = MBCategoryPersistence.class)
1467 protected MBCategoryPersistence mbCategoryPersistence;
1468 @BeanReference(type = MBCategoryFinder.class)
1469 protected MBCategoryFinder mbCategoryFinder;
1470 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1471 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1472 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1473 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1474 @BeanReference(type = MBMessagePersistence.class)
1475 protected MBMessagePersistence mbMessagePersistence;
1476 @BeanReference(type = MBMessageFinder.class)
1477 protected MBMessageFinder mbMessageFinder;
1478 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1479 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1480 @BeanReference(type = MBStatsUserPersistence.class)
1481 protected MBStatsUserPersistence mbStatsUserPersistence;
1482 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1483 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1484 @BeanReference(type = RatingsStatsPersistence.class)
1485 protected RatingsStatsPersistence ratingsStatsPersistence;
1486 @BeanReference(type = RatingsStatsFinder.class)
1487 protected RatingsStatsFinder ratingsStatsFinder;
1488 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1489 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1490 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1491 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1492 @BeanReference(type = SocialActivityPersistence.class)
1493 protected SocialActivityPersistence socialActivityPersistence;
1494 @BeanReference(type = SocialActivityFinder.class)
1495 protected SocialActivityFinder socialActivityFinder;
1496 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1497 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1498 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1499 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1500 @BeanReference(type = TrashEntryPersistence.class)
1501 protected TrashEntryPersistence trashEntryPersistence;
1502 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1503 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1504 @BeanReference(type = TrashVersionPersistence.class)
1505 protected TrashVersionPersistence trashVersionPersistence;
1506 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1507 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1508 @BeanReference(type = MBThreadFlagPersistence.class)
1509 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1510 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1511 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1512 private String _beanIdentifier;
1513 }