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
372 @Override
373 public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
374 long companyId) {
375 return mbThreadPersistence.findByUuid_C(uuid, companyId);
376 }
377
378
388 @Override
389 public List<MBThread> getMBThreadsByUuidAndCompanyId(String uuid,
390 long companyId, int start, int end,
391 OrderByComparator<MBThread> orderByComparator) {
392 return mbThreadPersistence.findByUuid_C(uuid, companyId, start, end,
393 orderByComparator);
394 }
395
396
404 @Override
405 public MBThread getMBThreadByUuidAndGroupId(String uuid, long groupId)
406 throws PortalException {
407 return mbThreadPersistence.findByUUID_G(uuid, groupId);
408 }
409
410
421 @Override
422 public List<MBThread> getMBThreads(int start, int end) {
423 return mbThreadPersistence.findAll(start, end);
424 }
425
426
431 @Override
432 public int getMBThreadsCount() {
433 return mbThreadPersistence.countAll();
434 }
435
436
442 @Indexable(type = IndexableType.REINDEX)
443 @Override
444 public MBThread updateMBThread(MBThread mbThread) {
445 return mbThreadPersistence.update(mbThread);
446 }
447
448
453 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
454 return mbThreadLocalService;
455 }
456
457
462 public void setMBThreadLocalService(
463 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
464 this.mbThreadLocalService = mbThreadLocalService;
465 }
466
467
472 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
473 return mbThreadService;
474 }
475
476
481 public void setMBThreadService(
482 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
483 this.mbThreadService = mbThreadService;
484 }
485
486
491 public MBThreadPersistence getMBThreadPersistence() {
492 return mbThreadPersistence;
493 }
494
495
500 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
501 this.mbThreadPersistence = mbThreadPersistence;
502 }
503
504
509 public MBThreadFinder getMBThreadFinder() {
510 return mbThreadFinder;
511 }
512
513
518 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
519 this.mbThreadFinder = mbThreadFinder;
520 }
521
522
527 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
528 return counterLocalService;
529 }
530
531
536 public void setCounterLocalService(
537 com.liferay.counter.service.CounterLocalService counterLocalService) {
538 this.counterLocalService = counterLocalService;
539 }
540
541
546 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
547 return groupLocalService;
548 }
549
550
555 public void setGroupLocalService(
556 com.liferay.portal.service.GroupLocalService groupLocalService) {
557 this.groupLocalService = groupLocalService;
558 }
559
560
565 public com.liferay.portal.service.GroupService getGroupService() {
566 return groupService;
567 }
568
569
574 public void setGroupService(
575 com.liferay.portal.service.GroupService groupService) {
576 this.groupService = groupService;
577 }
578
579
584 public GroupPersistence getGroupPersistence() {
585 return groupPersistence;
586 }
587
588
593 public void setGroupPersistence(GroupPersistence groupPersistence) {
594 this.groupPersistence = groupPersistence;
595 }
596
597
602 public GroupFinder getGroupFinder() {
603 return groupFinder;
604 }
605
606
611 public void setGroupFinder(GroupFinder groupFinder) {
612 this.groupFinder = groupFinder;
613 }
614
615
620 public com.liferay.portal.service.LockLocalService getLockLocalService() {
621 return lockLocalService;
622 }
623
624
629 public void setLockLocalService(
630 com.liferay.portal.service.LockLocalService lockLocalService) {
631 this.lockLocalService = lockLocalService;
632 }
633
634
639 public LockPersistence getLockPersistence() {
640 return lockPersistence;
641 }
642
643
648 public void setLockPersistence(LockPersistence lockPersistence) {
649 this.lockPersistence = lockPersistence;
650 }
651
652
657 public LockFinder getLockFinder() {
658 return lockFinder;
659 }
660
661
666 public void setLockFinder(LockFinder lockFinder) {
667 this.lockFinder = lockFinder;
668 }
669
670
675 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
676 return resourceLocalService;
677 }
678
679
684 public void setResourceLocalService(
685 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
686 this.resourceLocalService = resourceLocalService;
687 }
688
689
694 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
695 return subscriptionLocalService;
696 }
697
698
703 public void setSubscriptionLocalService(
704 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
705 this.subscriptionLocalService = subscriptionLocalService;
706 }
707
708
713 public SubscriptionPersistence getSubscriptionPersistence() {
714 return subscriptionPersistence;
715 }
716
717
722 public void setSubscriptionPersistence(
723 SubscriptionPersistence subscriptionPersistence) {
724 this.subscriptionPersistence = subscriptionPersistence;
725 }
726
727
732 public com.liferay.portal.service.UserLocalService getUserLocalService() {
733 return userLocalService;
734 }
735
736
741 public void setUserLocalService(
742 com.liferay.portal.service.UserLocalService userLocalService) {
743 this.userLocalService = userLocalService;
744 }
745
746
751 public com.liferay.portal.service.UserService getUserService() {
752 return userService;
753 }
754
755
760 public void setUserService(
761 com.liferay.portal.service.UserService userService) {
762 this.userService = userService;
763 }
764
765
770 public UserPersistence getUserPersistence() {
771 return userPersistence;
772 }
773
774
779 public void setUserPersistence(UserPersistence userPersistence) {
780 this.userPersistence = userPersistence;
781 }
782
783
788 public UserFinder getUserFinder() {
789 return userFinder;
790 }
791
792
797 public void setUserFinder(UserFinder userFinder) {
798 this.userFinder = userFinder;
799 }
800
801
806 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
807 return workflowInstanceLinkLocalService;
808 }
809
810
815 public void setWorkflowInstanceLinkLocalService(
816 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
817 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
818 }
819
820
825 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
826 return workflowInstanceLinkPersistence;
827 }
828
829
834 public void setWorkflowInstanceLinkPersistence(
835 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
836 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
837 }
838
839
844 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
845 return assetEntryLocalService;
846 }
847
848
853 public void setAssetEntryLocalService(
854 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
855 this.assetEntryLocalService = assetEntryLocalService;
856 }
857
858
863 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
864 return assetEntryService;
865 }
866
867
872 public void setAssetEntryService(
873 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
874 this.assetEntryService = assetEntryService;
875 }
876
877
882 public AssetEntryPersistence getAssetEntryPersistence() {
883 return assetEntryPersistence;
884 }
885
886
891 public void setAssetEntryPersistence(
892 AssetEntryPersistence assetEntryPersistence) {
893 this.assetEntryPersistence = assetEntryPersistence;
894 }
895
896
901 public AssetEntryFinder getAssetEntryFinder() {
902 return assetEntryFinder;
903 }
904
905
910 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
911 this.assetEntryFinder = assetEntryFinder;
912 }
913
914
919 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
920 return mbCategoryLocalService;
921 }
922
923
928 public void setMBCategoryLocalService(
929 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
930 this.mbCategoryLocalService = mbCategoryLocalService;
931 }
932
933
938 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
939 return mbCategoryService;
940 }
941
942
947 public void setMBCategoryService(
948 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
949 this.mbCategoryService = mbCategoryService;
950 }
951
952
957 public MBCategoryPersistence getMBCategoryPersistence() {
958 return mbCategoryPersistence;
959 }
960
961
966 public void setMBCategoryPersistence(
967 MBCategoryPersistence mbCategoryPersistence) {
968 this.mbCategoryPersistence = mbCategoryPersistence;
969 }
970
971
976 public MBCategoryFinder getMBCategoryFinder() {
977 return mbCategoryFinder;
978 }
979
980
985 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
986 this.mbCategoryFinder = mbCategoryFinder;
987 }
988
989
994 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
995 return mbMessageLocalService;
996 }
997
998
1003 public void setMBMessageLocalService(
1004 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1005 this.mbMessageLocalService = mbMessageLocalService;
1006 }
1007
1008
1013 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1014 return mbMessageService;
1015 }
1016
1017
1022 public void setMBMessageService(
1023 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1024 this.mbMessageService = mbMessageService;
1025 }
1026
1027
1032 public MBMessagePersistence getMBMessagePersistence() {
1033 return mbMessagePersistence;
1034 }
1035
1036
1041 public void setMBMessagePersistence(
1042 MBMessagePersistence mbMessagePersistence) {
1043 this.mbMessagePersistence = mbMessagePersistence;
1044 }
1045
1046
1051 public MBMessageFinder getMBMessageFinder() {
1052 return mbMessageFinder;
1053 }
1054
1055
1060 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1061 this.mbMessageFinder = mbMessageFinder;
1062 }
1063
1064
1069 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1070 return mbStatsUserLocalService;
1071 }
1072
1073
1078 public void setMBStatsUserLocalService(
1079 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1080 this.mbStatsUserLocalService = mbStatsUserLocalService;
1081 }
1082
1083
1088 public MBStatsUserPersistence getMBStatsUserPersistence() {
1089 return mbStatsUserPersistence;
1090 }
1091
1092
1097 public void setMBStatsUserPersistence(
1098 MBStatsUserPersistence mbStatsUserPersistence) {
1099 this.mbStatsUserPersistence = mbStatsUserPersistence;
1100 }
1101
1102
1107 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1108 return ratingsStatsLocalService;
1109 }
1110
1111
1116 public void setRatingsStatsLocalService(
1117 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1118 this.ratingsStatsLocalService = ratingsStatsLocalService;
1119 }
1120
1121
1126 public RatingsStatsPersistence getRatingsStatsPersistence() {
1127 return ratingsStatsPersistence;
1128 }
1129
1130
1135 public void setRatingsStatsPersistence(
1136 RatingsStatsPersistence ratingsStatsPersistence) {
1137 this.ratingsStatsPersistence = ratingsStatsPersistence;
1138 }
1139
1140
1145 public RatingsStatsFinder getRatingsStatsFinder() {
1146 return ratingsStatsFinder;
1147 }
1148
1149
1154 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1155 this.ratingsStatsFinder = ratingsStatsFinder;
1156 }
1157
1158
1163 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1164 return socialActivityLocalService;
1165 }
1166
1167
1172 public void setSocialActivityLocalService(
1173 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1174 this.socialActivityLocalService = socialActivityLocalService;
1175 }
1176
1177
1182 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1183 return socialActivityService;
1184 }
1185
1186
1191 public void setSocialActivityService(
1192 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1193 this.socialActivityService = socialActivityService;
1194 }
1195
1196
1201 public SocialActivityPersistence getSocialActivityPersistence() {
1202 return socialActivityPersistence;
1203 }
1204
1205
1210 public void setSocialActivityPersistence(
1211 SocialActivityPersistence socialActivityPersistence) {
1212 this.socialActivityPersistence = socialActivityPersistence;
1213 }
1214
1215
1220 public SocialActivityFinder getSocialActivityFinder() {
1221 return socialActivityFinder;
1222 }
1223
1224
1229 public void setSocialActivityFinder(
1230 SocialActivityFinder socialActivityFinder) {
1231 this.socialActivityFinder = socialActivityFinder;
1232 }
1233
1234
1239 public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1240 return trashEntryLocalService;
1241 }
1242
1243
1248 public void setTrashEntryLocalService(
1249 com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1250 this.trashEntryLocalService = trashEntryLocalService;
1251 }
1252
1253
1258 public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1259 return trashEntryService;
1260 }
1261
1262
1267 public void setTrashEntryService(
1268 com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1269 this.trashEntryService = trashEntryService;
1270 }
1271
1272
1277 public TrashEntryPersistence getTrashEntryPersistence() {
1278 return trashEntryPersistence;
1279 }
1280
1281
1286 public void setTrashEntryPersistence(
1287 TrashEntryPersistence trashEntryPersistence) {
1288 this.trashEntryPersistence = trashEntryPersistence;
1289 }
1290
1291
1296 public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1297 return trashVersionLocalService;
1298 }
1299
1300
1305 public void setTrashVersionLocalService(
1306 com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1307 this.trashVersionLocalService = trashVersionLocalService;
1308 }
1309
1310
1315 public TrashVersionPersistence getTrashVersionPersistence() {
1316 return trashVersionPersistence;
1317 }
1318
1319
1324 public void setTrashVersionPersistence(
1325 TrashVersionPersistence trashVersionPersistence) {
1326 this.trashVersionPersistence = trashVersionPersistence;
1327 }
1328
1329
1334 public com.liferay.portlet.messageboards.service.MBThreadFlagLocalService getMBThreadFlagLocalService() {
1335 return mbThreadFlagLocalService;
1336 }
1337
1338
1343 public void setMBThreadFlagLocalService(
1344 com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService) {
1345 this.mbThreadFlagLocalService = mbThreadFlagLocalService;
1346 }
1347
1348
1353 public MBThreadFlagPersistence getMBThreadFlagPersistence() {
1354 return mbThreadFlagPersistence;
1355 }
1356
1357
1362 public void setMBThreadFlagPersistence(
1363 MBThreadFlagPersistence mbThreadFlagPersistence) {
1364 this.mbThreadFlagPersistence = mbThreadFlagPersistence;
1365 }
1366
1367 public void afterPropertiesSet() {
1368 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBThread",
1369 mbThreadLocalService);
1370 }
1371
1372 public void destroy() {
1373 persistedModelLocalServiceRegistry.unregister(
1374 "com.liferay.portlet.messageboards.model.MBThread");
1375 }
1376
1377
1382 @Override
1383 public String getBeanIdentifier() {
1384 return _beanIdentifier;
1385 }
1386
1387
1392 @Override
1393 public void setBeanIdentifier(String beanIdentifier) {
1394 _beanIdentifier = beanIdentifier;
1395 }
1396
1397 protected Class<?> getModelClass() {
1398 return MBThread.class;
1399 }
1400
1401 protected String getModelClassName() {
1402 return MBThread.class.getName();
1403 }
1404
1405
1410 protected void runSQL(String sql) {
1411 try {
1412 DataSource dataSource = mbThreadPersistence.getDataSource();
1413
1414 DB db = DBFactoryUtil.getDB();
1415
1416 sql = db.buildSQL(sql);
1417 sql = PortalUtil.transformSQL(sql);
1418
1419 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1420 sql, new int[0]);
1421
1422 sqlUpdate.update();
1423 }
1424 catch (Exception e) {
1425 throw new SystemException(e);
1426 }
1427 }
1428
1429 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1430 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1431 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1432 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1433 @BeanReference(type = MBThreadPersistence.class)
1434 protected MBThreadPersistence mbThreadPersistence;
1435 @BeanReference(type = MBThreadFinder.class)
1436 protected MBThreadFinder mbThreadFinder;
1437 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1438 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1439 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1440 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1441 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1442 protected com.liferay.portal.service.GroupService groupService;
1443 @BeanReference(type = GroupPersistence.class)
1444 protected GroupPersistence groupPersistence;
1445 @BeanReference(type = GroupFinder.class)
1446 protected GroupFinder groupFinder;
1447 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1448 protected com.liferay.portal.service.LockLocalService lockLocalService;
1449 @BeanReference(type = LockPersistence.class)
1450 protected LockPersistence lockPersistence;
1451 @BeanReference(type = LockFinder.class)
1452 protected LockFinder lockFinder;
1453 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1454 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1455 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1456 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1457 @BeanReference(type = SubscriptionPersistence.class)
1458 protected SubscriptionPersistence subscriptionPersistence;
1459 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1460 protected com.liferay.portal.service.UserLocalService userLocalService;
1461 @BeanReference(type = com.liferay.portal.service.UserService.class)
1462 protected com.liferay.portal.service.UserService userService;
1463 @BeanReference(type = UserPersistence.class)
1464 protected UserPersistence userPersistence;
1465 @BeanReference(type = UserFinder.class)
1466 protected UserFinder userFinder;
1467 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1468 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1469 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1470 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1471 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1472 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1473 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1474 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1475 @BeanReference(type = AssetEntryPersistence.class)
1476 protected AssetEntryPersistence assetEntryPersistence;
1477 @BeanReference(type = AssetEntryFinder.class)
1478 protected AssetEntryFinder assetEntryFinder;
1479 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1480 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1481 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1482 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1483 @BeanReference(type = MBCategoryPersistence.class)
1484 protected MBCategoryPersistence mbCategoryPersistence;
1485 @BeanReference(type = MBCategoryFinder.class)
1486 protected MBCategoryFinder mbCategoryFinder;
1487 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1488 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1489 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1490 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1491 @BeanReference(type = MBMessagePersistence.class)
1492 protected MBMessagePersistence mbMessagePersistence;
1493 @BeanReference(type = MBMessageFinder.class)
1494 protected MBMessageFinder mbMessageFinder;
1495 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1496 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1497 @BeanReference(type = MBStatsUserPersistence.class)
1498 protected MBStatsUserPersistence mbStatsUserPersistence;
1499 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1500 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1501 @BeanReference(type = RatingsStatsPersistence.class)
1502 protected RatingsStatsPersistence ratingsStatsPersistence;
1503 @BeanReference(type = RatingsStatsFinder.class)
1504 protected RatingsStatsFinder ratingsStatsFinder;
1505 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1506 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1507 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1508 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1509 @BeanReference(type = SocialActivityPersistence.class)
1510 protected SocialActivityPersistence socialActivityPersistence;
1511 @BeanReference(type = SocialActivityFinder.class)
1512 protected SocialActivityFinder socialActivityFinder;
1513 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1514 protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1515 @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1516 protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1517 @BeanReference(type = TrashEntryPersistence.class)
1518 protected TrashEntryPersistence trashEntryPersistence;
1519 @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1520 protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1521 @BeanReference(type = TrashVersionPersistence.class)
1522 protected TrashVersionPersistence trashVersionPersistence;
1523 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadFlagLocalService.class)
1524 protected com.liferay.portlet.messageboards.service.MBThreadFlagLocalService mbThreadFlagLocalService;
1525 @BeanReference(type = MBThreadFlagPersistence.class)
1526 protected MBThreadFlagPersistence mbThreadFlagPersistence;
1527 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1528 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1529 private String _beanIdentifier;
1530 }