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.ClassNamePersistence;
049 import com.liferay.portal.service.persistence.CompanyPersistence;
050 import com.liferay.portal.service.persistence.GroupFinder;
051 import com.liferay.portal.service.persistence.GroupPersistence;
052 import com.liferay.portal.service.persistence.LockFinder;
053 import com.liferay.portal.service.persistence.LockPersistence;
054 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
055 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
056 import com.liferay.portal.service.persistence.SubscriptionPersistence;
057 import com.liferay.portal.service.persistence.UserFinder;
058 import com.liferay.portal.service.persistence.UserPersistence;
059 import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
060 import com.liferay.portal.util.PortalUtil;
061
062 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
063 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
064 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
065 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
066 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
067 import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
068 import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
069 import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
070 import com.liferay.portlet.messageboards.model.MBMessage;
071 import com.liferay.portlet.messageboards.service.MBMessageLocalService;
072 import com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder;
073 import com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence;
074 import com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence;
075 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
076 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
077 import com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence;
078 import com.liferay.portlet.messageboards.service.persistence.MBThreadFinder;
079 import com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence;
080 import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
081 import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
082 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
083 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
084 import com.liferay.portlet.wiki.service.persistence.WikiPageFinder;
085 import com.liferay.portlet.wiki.service.persistence.WikiPagePersistence;
086
087 import java.io.Serializable;
088
089 import java.util.List;
090
091 import javax.sql.DataSource;
092
093
105 @ProviderType
106 public abstract class MBMessageLocalServiceBaseImpl extends BaseLocalServiceImpl
107 implements MBMessageLocalService, IdentifiableBean {
108
113
114
120 @Indexable(type = IndexableType.REINDEX)
121 @Override
122 public MBMessage addMBMessage(MBMessage mbMessage) {
123 mbMessage.setNew(true);
124
125 return mbMessagePersistence.update(mbMessage);
126 }
127
128
134 @Override
135 public MBMessage createMBMessage(long messageId) {
136 return mbMessagePersistence.create(messageId);
137 }
138
139
146 @Indexable(type = IndexableType.DELETE)
147 @Override
148 public MBMessage deleteMBMessage(long messageId) throws PortalException {
149 return mbMessagePersistence.remove(messageId);
150 }
151
152
158 @Indexable(type = IndexableType.DELETE)
159 @Override
160 public MBMessage deleteMBMessage(MBMessage mbMessage) {
161 return mbMessagePersistence.remove(mbMessage);
162 }
163
164 @Override
165 public DynamicQuery dynamicQuery() {
166 Class<?> clazz = getClass();
167
168 return DynamicQueryFactoryUtil.forClass(MBMessage.class,
169 clazz.getClassLoader());
170 }
171
172
178 @Override
179 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
180 return mbMessagePersistence.findWithDynamicQuery(dynamicQuery);
181 }
182
183
195 @Override
196 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
197 int end) {
198 return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
199 end);
200 }
201
202
215 @Override
216 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
217 int end, OrderByComparator<T> orderByComparator) {
218 return mbMessagePersistence.findWithDynamicQuery(dynamicQuery, start,
219 end, orderByComparator);
220 }
221
222
228 @Override
229 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
230 return mbMessagePersistence.countWithDynamicQuery(dynamicQuery);
231 }
232
233
240 @Override
241 public long dynamicQueryCount(DynamicQuery dynamicQuery,
242 Projection projection) {
243 return mbMessagePersistence.countWithDynamicQuery(dynamicQuery,
244 projection);
245 }
246
247 @Override
248 public MBMessage fetchMBMessage(long messageId) {
249 return mbMessagePersistence.fetchByPrimaryKey(messageId);
250 }
251
252
259 @Override
260 public MBMessage fetchMBMessageByUuidAndGroupId(String uuid, long groupId) {
261 return mbMessagePersistence.fetchByUUID_G(uuid, groupId);
262 }
263
264
271 @Override
272 public MBMessage getMBMessage(long messageId) throws PortalException {
273 return mbMessagePersistence.findByPrimaryKey(messageId);
274 }
275
276 @Override
277 public ActionableDynamicQuery getActionableDynamicQuery() {
278 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
279
280 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil.getService());
281 actionableDynamicQuery.setClass(MBMessage.class);
282 actionableDynamicQuery.setClassLoader(getClassLoader());
283
284 actionableDynamicQuery.setPrimaryKeyPropertyName("messageId");
285
286 return actionableDynamicQuery;
287 }
288
289 protected void initActionableDynamicQuery(
290 ActionableDynamicQuery actionableDynamicQuery) {
291 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.messageboards.service.MBMessageLocalServiceUtil.getService());
292 actionableDynamicQuery.setClass(MBMessage.class);
293 actionableDynamicQuery.setClassLoader(getClassLoader());
294
295 actionableDynamicQuery.setPrimaryKeyPropertyName("messageId");
296 }
297
298 @Override
299 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
300 final PortletDataContext portletDataContext) {
301 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
302 @Override
303 public long performCount() throws PortalException {
304 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
305
306 StagedModelType stagedModelType = getStagedModelType();
307
308 long modelAdditionCount = super.performCount();
309
310 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
311 modelAdditionCount);
312
313 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
314 stagedModelType);
315
316 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
317 modelDeletionCount);
318
319 return modelAdditionCount;
320 }
321 };
322
323 initActionableDynamicQuery(exportActionableDynamicQuery);
324
325 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
326 @Override
327 public void addCriteria(DynamicQuery dynamicQuery) {
328 portletDataContext.addDateRangeCriteria(dynamicQuery,
329 "modifiedDate");
330
331 StagedModelType stagedModelType = exportActionableDynamicQuery.getStagedModelType();
332
333 if (stagedModelType.getReferrerClassNameId() >= 0) {
334 Property classNameIdProperty = PropertyFactoryUtil.forName(
335 "classNameId");
336
337 dynamicQuery.add(classNameIdProperty.eq(
338 stagedModelType.getReferrerClassNameId()));
339 }
340
341 StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(MBMessage.class.getName());
342
343 Property workflowStatusProperty = PropertyFactoryUtil.forName(
344 "status");
345
346 dynamicQuery.add(workflowStatusProperty.in(
347 stagedModelDataHandler.getExportableStatuses()));
348 }
349 });
350
351 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
352
353 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
354
355 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
356 @Override
357 public void performAction(Object object)
358 throws PortalException {
359 MBMessage stagedModel = (MBMessage)object;
360
361 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
362 stagedModel);
363 }
364 });
365 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
366 PortalUtil.getClassNameId(MBMessage.class.getName())));
367
368 return exportActionableDynamicQuery;
369 }
370
371
374 @Override
375 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
376 throws PortalException {
377 return mbMessageLocalService.deleteMBMessage((MBMessage)persistedModel);
378 }
379
380 @Override
381 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
382 throws PortalException {
383 return mbMessagePersistence.findByPrimaryKey(primaryKeyObj);
384 }
385
386 @Override
387 public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
388 long companyId) {
389 return mbMessagePersistence.findByUuid_C(uuid, companyId);
390 }
391
392 @Override
393 public List<MBMessage> getMBMessagesByUuidAndCompanyId(String uuid,
394 long companyId, int start, int end,
395 OrderByComparator<MBMessage> orderByComparator) {
396 return mbMessagePersistence.findByUuid_C(uuid, companyId, start, end,
397 orderByComparator);
398 }
399
400
408 @Override
409 public MBMessage getMBMessageByUuidAndGroupId(String uuid, long groupId)
410 throws PortalException {
411 return mbMessagePersistence.findByUUID_G(uuid, groupId);
412 }
413
414
425 @Override
426 public List<MBMessage> getMBMessages(int start, int end) {
427 return mbMessagePersistence.findAll(start, end);
428 }
429
430
435 @Override
436 public int getMBMessagesCount() {
437 return mbMessagePersistence.countAll();
438 }
439
440
446 @Indexable(type = IndexableType.REINDEX)
447 @Override
448 public MBMessage updateMBMessage(MBMessage mbMessage) {
449 return mbMessagePersistence.update(mbMessage);
450 }
451
452
457 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
458 return mbMessageLocalService;
459 }
460
461
466 public void setMBMessageLocalService(
467 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
468 this.mbMessageLocalService = mbMessageLocalService;
469 }
470
471
476 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
477 return mbMessageService;
478 }
479
480
485 public void setMBMessageService(
486 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
487 this.mbMessageService = mbMessageService;
488 }
489
490
495 public MBMessagePersistence getMBMessagePersistence() {
496 return mbMessagePersistence;
497 }
498
499
504 public void setMBMessagePersistence(
505 MBMessagePersistence mbMessagePersistence) {
506 this.mbMessagePersistence = mbMessagePersistence;
507 }
508
509
514 public MBMessageFinder getMBMessageFinder() {
515 return mbMessageFinder;
516 }
517
518
523 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
524 this.mbMessageFinder = mbMessageFinder;
525 }
526
527
532 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
533 return counterLocalService;
534 }
535
536
541 public void setCounterLocalService(
542 com.liferay.counter.service.CounterLocalService counterLocalService) {
543 this.counterLocalService = counterLocalService;
544 }
545
546
551 public com.liferay.mail.service.MailService getMailService() {
552 return mailService;
553 }
554
555
560 public void setMailService(com.liferay.mail.service.MailService mailService) {
561 this.mailService = mailService;
562 }
563
564
569 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
570 return classNameLocalService;
571 }
572
573
578 public void setClassNameLocalService(
579 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
580 this.classNameLocalService = classNameLocalService;
581 }
582
583
588 public com.liferay.portal.service.ClassNameService getClassNameService() {
589 return classNameService;
590 }
591
592
597 public void setClassNameService(
598 com.liferay.portal.service.ClassNameService classNameService) {
599 this.classNameService = classNameService;
600 }
601
602
607 public ClassNamePersistence getClassNamePersistence() {
608 return classNamePersistence;
609 }
610
611
616 public void setClassNamePersistence(
617 ClassNamePersistence classNamePersistence) {
618 this.classNamePersistence = classNamePersistence;
619 }
620
621
626 public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
627 return companyLocalService;
628 }
629
630
635 public void setCompanyLocalService(
636 com.liferay.portal.service.CompanyLocalService companyLocalService) {
637 this.companyLocalService = companyLocalService;
638 }
639
640
645 public com.liferay.portal.service.CompanyService getCompanyService() {
646 return companyService;
647 }
648
649
654 public void setCompanyService(
655 com.liferay.portal.service.CompanyService companyService) {
656 this.companyService = companyService;
657 }
658
659
664 public CompanyPersistence getCompanyPersistence() {
665 return companyPersistence;
666 }
667
668
673 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
674 this.companyPersistence = companyPersistence;
675 }
676
677
682 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
683 return groupLocalService;
684 }
685
686
691 public void setGroupLocalService(
692 com.liferay.portal.service.GroupLocalService groupLocalService) {
693 this.groupLocalService = groupLocalService;
694 }
695
696
701 public com.liferay.portal.service.GroupService getGroupService() {
702 return groupService;
703 }
704
705
710 public void setGroupService(
711 com.liferay.portal.service.GroupService groupService) {
712 this.groupService = groupService;
713 }
714
715
720 public GroupPersistence getGroupPersistence() {
721 return groupPersistence;
722 }
723
724
729 public void setGroupPersistence(GroupPersistence groupPersistence) {
730 this.groupPersistence = groupPersistence;
731 }
732
733
738 public GroupFinder getGroupFinder() {
739 return groupFinder;
740 }
741
742
747 public void setGroupFinder(GroupFinder groupFinder) {
748 this.groupFinder = groupFinder;
749 }
750
751
756 public com.liferay.portal.service.LockLocalService getLockLocalService() {
757 return lockLocalService;
758 }
759
760
765 public void setLockLocalService(
766 com.liferay.portal.service.LockLocalService lockLocalService) {
767 this.lockLocalService = lockLocalService;
768 }
769
770
775 public LockPersistence getLockPersistence() {
776 return lockPersistence;
777 }
778
779
784 public void setLockPersistence(LockPersistence lockPersistence) {
785 this.lockPersistence = lockPersistence;
786 }
787
788
793 public LockFinder getLockFinder() {
794 return lockFinder;
795 }
796
797
802 public void setLockFinder(LockFinder lockFinder) {
803 this.lockFinder = lockFinder;
804 }
805
806
811 public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
812 return portletPreferencesLocalService;
813 }
814
815
820 public void setPortletPreferencesLocalService(
821 com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
822 this.portletPreferencesLocalService = portletPreferencesLocalService;
823 }
824
825
830 public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
831 return portletPreferencesService;
832 }
833
834
839 public void setPortletPreferencesService(
840 com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
841 this.portletPreferencesService = portletPreferencesService;
842 }
843
844
849 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
850 return portletPreferencesPersistence;
851 }
852
853
858 public void setPortletPreferencesPersistence(
859 PortletPreferencesPersistence portletPreferencesPersistence) {
860 this.portletPreferencesPersistence = portletPreferencesPersistence;
861 }
862
863
868 public PortletPreferencesFinder getPortletPreferencesFinder() {
869 return portletPreferencesFinder;
870 }
871
872
877 public void setPortletPreferencesFinder(
878 PortletPreferencesFinder portletPreferencesFinder) {
879 this.portletPreferencesFinder = portletPreferencesFinder;
880 }
881
882
887 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
888 return resourceLocalService;
889 }
890
891
896 public void setResourceLocalService(
897 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
898 this.resourceLocalService = resourceLocalService;
899 }
900
901
906 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
907 return subscriptionLocalService;
908 }
909
910
915 public void setSubscriptionLocalService(
916 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
917 this.subscriptionLocalService = subscriptionLocalService;
918 }
919
920
925 public SubscriptionPersistence getSubscriptionPersistence() {
926 return subscriptionPersistence;
927 }
928
929
934 public void setSubscriptionPersistence(
935 SubscriptionPersistence subscriptionPersistence) {
936 this.subscriptionPersistence = subscriptionPersistence;
937 }
938
939
944 public com.liferay.portal.service.UserLocalService getUserLocalService() {
945 return userLocalService;
946 }
947
948
953 public void setUserLocalService(
954 com.liferay.portal.service.UserLocalService userLocalService) {
955 this.userLocalService = userLocalService;
956 }
957
958
963 public com.liferay.portal.service.UserService getUserService() {
964 return userService;
965 }
966
967
972 public void setUserService(
973 com.liferay.portal.service.UserService userService) {
974 this.userService = userService;
975 }
976
977
982 public UserPersistence getUserPersistence() {
983 return userPersistence;
984 }
985
986
991 public void setUserPersistence(UserPersistence userPersistence) {
992 this.userPersistence = userPersistence;
993 }
994
995
1000 public UserFinder getUserFinder() {
1001 return userFinder;
1002 }
1003
1004
1009 public void setUserFinder(UserFinder userFinder) {
1010 this.userFinder = userFinder;
1011 }
1012
1013
1018 public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1019 return workflowInstanceLinkLocalService;
1020 }
1021
1022
1027 public void setWorkflowInstanceLinkLocalService(
1028 com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1029 this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1030 }
1031
1032
1037 public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1038 return workflowInstanceLinkPersistence;
1039 }
1040
1041
1046 public void setWorkflowInstanceLinkPersistence(
1047 WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1048 this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1049 }
1050
1051
1056 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1057 return assetEntryLocalService;
1058 }
1059
1060
1065 public void setAssetEntryLocalService(
1066 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1067 this.assetEntryLocalService = assetEntryLocalService;
1068 }
1069
1070
1075 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1076 return assetEntryService;
1077 }
1078
1079
1084 public void setAssetEntryService(
1085 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1086 this.assetEntryService = assetEntryService;
1087 }
1088
1089
1094 public AssetEntryPersistence getAssetEntryPersistence() {
1095 return assetEntryPersistence;
1096 }
1097
1098
1103 public void setAssetEntryPersistence(
1104 AssetEntryPersistence assetEntryPersistence) {
1105 this.assetEntryPersistence = assetEntryPersistence;
1106 }
1107
1108
1113 public AssetEntryFinder getAssetEntryFinder() {
1114 return assetEntryFinder;
1115 }
1116
1117
1122 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1123 this.assetEntryFinder = assetEntryFinder;
1124 }
1125
1126
1131 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1132 return assetLinkLocalService;
1133 }
1134
1135
1140 public void setAssetLinkLocalService(
1141 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1142 this.assetLinkLocalService = assetLinkLocalService;
1143 }
1144
1145
1150 public AssetLinkPersistence getAssetLinkPersistence() {
1151 return assetLinkPersistence;
1152 }
1153
1154
1159 public void setAssetLinkPersistence(
1160 AssetLinkPersistence assetLinkPersistence) {
1161 this.assetLinkPersistence = assetLinkPersistence;
1162 }
1163
1164
1169 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1170 return assetTagLocalService;
1171 }
1172
1173
1178 public void setAssetTagLocalService(
1179 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1180 this.assetTagLocalService = assetTagLocalService;
1181 }
1182
1183
1188 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1189 return assetTagService;
1190 }
1191
1192
1197 public void setAssetTagService(
1198 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1199 this.assetTagService = assetTagService;
1200 }
1201
1202
1207 public AssetTagPersistence getAssetTagPersistence() {
1208 return assetTagPersistence;
1209 }
1210
1211
1216 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1217 this.assetTagPersistence = assetTagPersistence;
1218 }
1219
1220
1225 public AssetTagFinder getAssetTagFinder() {
1226 return assetTagFinder;
1227 }
1228
1229
1234 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1235 this.assetTagFinder = assetTagFinder;
1236 }
1237
1238
1243 public com.liferay.portlet.blogs.service.BlogsEntryLocalService getBlogsEntryLocalService() {
1244 return blogsEntryLocalService;
1245 }
1246
1247
1252 public void setBlogsEntryLocalService(
1253 com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService) {
1254 this.blogsEntryLocalService = blogsEntryLocalService;
1255 }
1256
1257
1262 public com.liferay.portlet.blogs.service.BlogsEntryService getBlogsEntryService() {
1263 return blogsEntryService;
1264 }
1265
1266
1271 public void setBlogsEntryService(
1272 com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService) {
1273 this.blogsEntryService = blogsEntryService;
1274 }
1275
1276
1281 public BlogsEntryPersistence getBlogsEntryPersistence() {
1282 return blogsEntryPersistence;
1283 }
1284
1285
1290 public void setBlogsEntryPersistence(
1291 BlogsEntryPersistence blogsEntryPersistence) {
1292 this.blogsEntryPersistence = blogsEntryPersistence;
1293 }
1294
1295
1300 public BlogsEntryFinder getBlogsEntryFinder() {
1301 return blogsEntryFinder;
1302 }
1303
1304
1309 public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
1310 this.blogsEntryFinder = blogsEntryFinder;
1311 }
1312
1313
1318 public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1319 return expandoRowLocalService;
1320 }
1321
1322
1327 public void setExpandoRowLocalService(
1328 com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1329 this.expandoRowLocalService = expandoRowLocalService;
1330 }
1331
1332
1337 public ExpandoRowPersistence getExpandoRowPersistence() {
1338 return expandoRowPersistence;
1339 }
1340
1341
1346 public void setExpandoRowPersistence(
1347 ExpandoRowPersistence expandoRowPersistence) {
1348 this.expandoRowPersistence = expandoRowPersistence;
1349 }
1350
1351
1356 public com.liferay.portlet.messageboards.service.MBCategoryLocalService getMBCategoryLocalService() {
1357 return mbCategoryLocalService;
1358 }
1359
1360
1365 public void setMBCategoryLocalService(
1366 com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService) {
1367 this.mbCategoryLocalService = mbCategoryLocalService;
1368 }
1369
1370
1375 public com.liferay.portlet.messageboards.service.MBCategoryService getMBCategoryService() {
1376 return mbCategoryService;
1377 }
1378
1379
1384 public void setMBCategoryService(
1385 com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService) {
1386 this.mbCategoryService = mbCategoryService;
1387 }
1388
1389
1394 public MBCategoryPersistence getMBCategoryPersistence() {
1395 return mbCategoryPersistence;
1396 }
1397
1398
1403 public void setMBCategoryPersistence(
1404 MBCategoryPersistence mbCategoryPersistence) {
1405 this.mbCategoryPersistence = mbCategoryPersistence;
1406 }
1407
1408
1413 public MBCategoryFinder getMBCategoryFinder() {
1414 return mbCategoryFinder;
1415 }
1416
1417
1422 public void setMBCategoryFinder(MBCategoryFinder mbCategoryFinder) {
1423 this.mbCategoryFinder = mbCategoryFinder;
1424 }
1425
1426
1431 public com.liferay.portlet.messageboards.service.MBDiscussionLocalService getMBDiscussionLocalService() {
1432 return mbDiscussionLocalService;
1433 }
1434
1435
1440 public void setMBDiscussionLocalService(
1441 com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService) {
1442 this.mbDiscussionLocalService = mbDiscussionLocalService;
1443 }
1444
1445
1450 public MBDiscussionPersistence getMBDiscussionPersistence() {
1451 return mbDiscussionPersistence;
1452 }
1453
1454
1459 public void setMBDiscussionPersistence(
1460 MBDiscussionPersistence mbDiscussionPersistence) {
1461 this.mbDiscussionPersistence = mbDiscussionPersistence;
1462 }
1463
1464
1469 public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1470 return ratingsStatsLocalService;
1471 }
1472
1473
1478 public void setRatingsStatsLocalService(
1479 com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1480 this.ratingsStatsLocalService = ratingsStatsLocalService;
1481 }
1482
1483
1488 public RatingsStatsPersistence getRatingsStatsPersistence() {
1489 return ratingsStatsPersistence;
1490 }
1491
1492
1497 public void setRatingsStatsPersistence(
1498 RatingsStatsPersistence ratingsStatsPersistence) {
1499 this.ratingsStatsPersistence = ratingsStatsPersistence;
1500 }
1501
1502
1507 public RatingsStatsFinder getRatingsStatsFinder() {
1508 return ratingsStatsFinder;
1509 }
1510
1511
1516 public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1517 this.ratingsStatsFinder = ratingsStatsFinder;
1518 }
1519
1520
1525 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1526 return socialActivityLocalService;
1527 }
1528
1529
1534 public void setSocialActivityLocalService(
1535 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1536 this.socialActivityLocalService = socialActivityLocalService;
1537 }
1538
1539
1544 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1545 return socialActivityService;
1546 }
1547
1548
1553 public void setSocialActivityService(
1554 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1555 this.socialActivityService = socialActivityService;
1556 }
1557
1558
1563 public SocialActivityPersistence getSocialActivityPersistence() {
1564 return socialActivityPersistence;
1565 }
1566
1567
1572 public void setSocialActivityPersistence(
1573 SocialActivityPersistence socialActivityPersistence) {
1574 this.socialActivityPersistence = socialActivityPersistence;
1575 }
1576
1577
1582 public SocialActivityFinder getSocialActivityFinder() {
1583 return socialActivityFinder;
1584 }
1585
1586
1591 public void setSocialActivityFinder(
1592 SocialActivityFinder socialActivityFinder) {
1593 this.socialActivityFinder = socialActivityFinder;
1594 }
1595
1596
1601 public com.liferay.portlet.wiki.service.WikiPageLocalService getWikiPageLocalService() {
1602 return wikiPageLocalService;
1603 }
1604
1605
1610 public void setWikiPageLocalService(
1611 com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService) {
1612 this.wikiPageLocalService = wikiPageLocalService;
1613 }
1614
1615
1620 public com.liferay.portlet.wiki.service.WikiPageService getWikiPageService() {
1621 return wikiPageService;
1622 }
1623
1624
1629 public void setWikiPageService(
1630 com.liferay.portlet.wiki.service.WikiPageService wikiPageService) {
1631 this.wikiPageService = wikiPageService;
1632 }
1633
1634
1639 public WikiPagePersistence getWikiPagePersistence() {
1640 return wikiPagePersistence;
1641 }
1642
1643
1648 public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
1649 this.wikiPagePersistence = wikiPagePersistence;
1650 }
1651
1652
1657 public WikiPageFinder getWikiPageFinder() {
1658 return wikiPageFinder;
1659 }
1660
1661
1666 public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
1667 this.wikiPageFinder = wikiPageFinder;
1668 }
1669
1670
1675 public com.liferay.portlet.messageboards.service.MBStatsUserLocalService getMBStatsUserLocalService() {
1676 return mbStatsUserLocalService;
1677 }
1678
1679
1684 public void setMBStatsUserLocalService(
1685 com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService) {
1686 this.mbStatsUserLocalService = mbStatsUserLocalService;
1687 }
1688
1689
1694 public MBStatsUserPersistence getMBStatsUserPersistence() {
1695 return mbStatsUserPersistence;
1696 }
1697
1698
1703 public void setMBStatsUserPersistence(
1704 MBStatsUserPersistence mbStatsUserPersistence) {
1705 this.mbStatsUserPersistence = mbStatsUserPersistence;
1706 }
1707
1708
1713 public com.liferay.portlet.messageboards.service.MBThreadLocalService getMBThreadLocalService() {
1714 return mbThreadLocalService;
1715 }
1716
1717
1722 public void setMBThreadLocalService(
1723 com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService) {
1724 this.mbThreadLocalService = mbThreadLocalService;
1725 }
1726
1727
1732 public com.liferay.portlet.messageboards.service.MBThreadService getMBThreadService() {
1733 return mbThreadService;
1734 }
1735
1736
1741 public void setMBThreadService(
1742 com.liferay.portlet.messageboards.service.MBThreadService mbThreadService) {
1743 this.mbThreadService = mbThreadService;
1744 }
1745
1746
1751 public MBThreadPersistence getMBThreadPersistence() {
1752 return mbThreadPersistence;
1753 }
1754
1755
1760 public void setMBThreadPersistence(MBThreadPersistence mbThreadPersistence) {
1761 this.mbThreadPersistence = mbThreadPersistence;
1762 }
1763
1764
1769 public MBThreadFinder getMBThreadFinder() {
1770 return mbThreadFinder;
1771 }
1772
1773
1778 public void setMBThreadFinder(MBThreadFinder mbThreadFinder) {
1779 this.mbThreadFinder = mbThreadFinder;
1780 }
1781
1782 public void afterPropertiesSet() {
1783 persistedModelLocalServiceRegistry.register("com.liferay.portlet.messageboards.model.MBMessage",
1784 mbMessageLocalService);
1785 }
1786
1787 public void destroy() {
1788 persistedModelLocalServiceRegistry.unregister(
1789 "com.liferay.portlet.messageboards.model.MBMessage");
1790 }
1791
1792
1797 @Override
1798 public String getBeanIdentifier() {
1799 return _beanIdentifier;
1800 }
1801
1802
1807 @Override
1808 public void setBeanIdentifier(String beanIdentifier) {
1809 _beanIdentifier = beanIdentifier;
1810 }
1811
1812 protected Class<?> getModelClass() {
1813 return MBMessage.class;
1814 }
1815
1816 protected String getModelClassName() {
1817 return MBMessage.class.getName();
1818 }
1819
1820
1825 protected void runSQL(String sql) {
1826 try {
1827 DataSource dataSource = mbMessagePersistence.getDataSource();
1828
1829 DB db = DBFactoryUtil.getDB();
1830
1831 sql = db.buildSQL(sql);
1832 sql = PortalUtil.transformSQL(sql);
1833
1834 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1835 sql, new int[0]);
1836
1837 sqlUpdate.update();
1838 }
1839 catch (Exception e) {
1840 throw new SystemException(e);
1841 }
1842 }
1843
1844 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1845 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1846 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1847 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1848 @BeanReference(type = MBMessagePersistence.class)
1849 protected MBMessagePersistence mbMessagePersistence;
1850 @BeanReference(type = MBMessageFinder.class)
1851 protected MBMessageFinder mbMessageFinder;
1852 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1853 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1854 @BeanReference(type = com.liferay.mail.service.MailService.class)
1855 protected com.liferay.mail.service.MailService mailService;
1856 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1857 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1858 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1859 protected com.liferay.portal.service.ClassNameService classNameService;
1860 @BeanReference(type = ClassNamePersistence.class)
1861 protected ClassNamePersistence classNamePersistence;
1862 @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1863 protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1864 @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1865 protected com.liferay.portal.service.CompanyService companyService;
1866 @BeanReference(type = CompanyPersistence.class)
1867 protected CompanyPersistence companyPersistence;
1868 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1869 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1870 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1871 protected com.liferay.portal.service.GroupService groupService;
1872 @BeanReference(type = GroupPersistence.class)
1873 protected GroupPersistence groupPersistence;
1874 @BeanReference(type = GroupFinder.class)
1875 protected GroupFinder groupFinder;
1876 @BeanReference(type = com.liferay.portal.service.LockLocalService.class)
1877 protected com.liferay.portal.service.LockLocalService lockLocalService;
1878 @BeanReference(type = LockPersistence.class)
1879 protected LockPersistence lockPersistence;
1880 @BeanReference(type = LockFinder.class)
1881 protected LockFinder lockFinder;
1882 @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1883 protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1884 @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1885 protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1886 @BeanReference(type = PortletPreferencesPersistence.class)
1887 protected PortletPreferencesPersistence portletPreferencesPersistence;
1888 @BeanReference(type = PortletPreferencesFinder.class)
1889 protected PortletPreferencesFinder portletPreferencesFinder;
1890 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1891 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1892 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1893 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1894 @BeanReference(type = SubscriptionPersistence.class)
1895 protected SubscriptionPersistence subscriptionPersistence;
1896 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1897 protected com.liferay.portal.service.UserLocalService userLocalService;
1898 @BeanReference(type = com.liferay.portal.service.UserService.class)
1899 protected com.liferay.portal.service.UserService userService;
1900 @BeanReference(type = UserPersistence.class)
1901 protected UserPersistence userPersistence;
1902 @BeanReference(type = UserFinder.class)
1903 protected UserFinder userFinder;
1904 @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1905 protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1906 @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1907 protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1908 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1909 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1910 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1911 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1912 @BeanReference(type = AssetEntryPersistence.class)
1913 protected AssetEntryPersistence assetEntryPersistence;
1914 @BeanReference(type = AssetEntryFinder.class)
1915 protected AssetEntryFinder assetEntryFinder;
1916 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1917 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1918 @BeanReference(type = AssetLinkPersistence.class)
1919 protected AssetLinkPersistence assetLinkPersistence;
1920 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1921 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1922 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1923 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1924 @BeanReference(type = AssetTagPersistence.class)
1925 protected AssetTagPersistence assetTagPersistence;
1926 @BeanReference(type = AssetTagFinder.class)
1927 protected AssetTagFinder assetTagFinder;
1928 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryLocalService.class)
1929 protected com.liferay.portlet.blogs.service.BlogsEntryLocalService blogsEntryLocalService;
1930 @BeanReference(type = com.liferay.portlet.blogs.service.BlogsEntryService.class)
1931 protected com.liferay.portlet.blogs.service.BlogsEntryService blogsEntryService;
1932 @BeanReference(type = BlogsEntryPersistence.class)
1933 protected BlogsEntryPersistence blogsEntryPersistence;
1934 @BeanReference(type = BlogsEntryFinder.class)
1935 protected BlogsEntryFinder blogsEntryFinder;
1936 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1937 protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1938 @BeanReference(type = ExpandoRowPersistence.class)
1939 protected ExpandoRowPersistence expandoRowPersistence;
1940 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryLocalService.class)
1941 protected com.liferay.portlet.messageboards.service.MBCategoryLocalService mbCategoryLocalService;
1942 @BeanReference(type = com.liferay.portlet.messageboards.service.MBCategoryService.class)
1943 protected com.liferay.portlet.messageboards.service.MBCategoryService mbCategoryService;
1944 @BeanReference(type = MBCategoryPersistence.class)
1945 protected MBCategoryPersistence mbCategoryPersistence;
1946 @BeanReference(type = MBCategoryFinder.class)
1947 protected MBCategoryFinder mbCategoryFinder;
1948 @BeanReference(type = com.liferay.portlet.messageboards.service.MBDiscussionLocalService.class)
1949 protected com.liferay.portlet.messageboards.service.MBDiscussionLocalService mbDiscussionLocalService;
1950 @BeanReference(type = MBDiscussionPersistence.class)
1951 protected MBDiscussionPersistence mbDiscussionPersistence;
1952 @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1953 protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1954 @BeanReference(type = RatingsStatsPersistence.class)
1955 protected RatingsStatsPersistence ratingsStatsPersistence;
1956 @BeanReference(type = RatingsStatsFinder.class)
1957 protected RatingsStatsFinder ratingsStatsFinder;
1958 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1959 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1960 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1961 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1962 @BeanReference(type = SocialActivityPersistence.class)
1963 protected SocialActivityPersistence socialActivityPersistence;
1964 @BeanReference(type = SocialActivityFinder.class)
1965 protected SocialActivityFinder socialActivityFinder;
1966 @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageLocalService.class)
1967 protected com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService;
1968 @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageService.class)
1969 protected com.liferay.portlet.wiki.service.WikiPageService wikiPageService;
1970 @BeanReference(type = WikiPagePersistence.class)
1971 protected WikiPagePersistence wikiPagePersistence;
1972 @BeanReference(type = WikiPageFinder.class)
1973 protected WikiPageFinder wikiPageFinder;
1974 @BeanReference(type = com.liferay.portlet.messageboards.service.MBStatsUserLocalService.class)
1975 protected com.liferay.portlet.messageboards.service.MBStatsUserLocalService mbStatsUserLocalService;
1976 @BeanReference(type = MBStatsUserPersistence.class)
1977 protected MBStatsUserPersistence mbStatsUserPersistence;
1978 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadLocalService.class)
1979 protected com.liferay.portlet.messageboards.service.MBThreadLocalService mbThreadLocalService;
1980 @BeanReference(type = com.liferay.portlet.messageboards.service.MBThreadService.class)
1981 protected com.liferay.portlet.messageboards.service.MBThreadService mbThreadService;
1982 @BeanReference(type = MBThreadPersistence.class)
1983 protected MBThreadPersistence mbThreadPersistence;
1984 @BeanReference(type = MBThreadFinder.class)
1985 protected MBThreadFinder mbThreadFinder;
1986 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1987 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1988 private String _beanIdentifier;
1989 }