001
014
015 package com.liferay.portlet.calendar.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.exception.PortalException;
032 import com.liferay.portal.kernel.exception.SystemException;
033 import com.liferay.portal.kernel.lar.ExportImportHelperUtil;
034 import com.liferay.portal.kernel.lar.ManifestSummary;
035 import com.liferay.portal.kernel.lar.PortletDataContext;
036 import com.liferay.portal.kernel.lar.StagedModelDataHandlerUtil;
037 import com.liferay.portal.kernel.lar.StagedModelType;
038 import com.liferay.portal.kernel.search.Indexable;
039 import com.liferay.portal.kernel.search.IndexableType;
040 import com.liferay.portal.kernel.util.OrderByComparator;
041 import com.liferay.portal.model.PersistedModel;
042 import com.liferay.portal.service.BaseLocalServiceImpl;
043 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
044 import com.liferay.portal.service.persistence.ClassNamePersistence;
045 import com.liferay.portal.service.persistence.CompanyPersistence;
046 import com.liferay.portal.service.persistence.GroupFinder;
047 import com.liferay.portal.service.persistence.GroupPersistence;
048 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
049 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
050 import com.liferay.portal.service.persistence.SubscriptionPersistence;
051 import com.liferay.portal.service.persistence.UserFinder;
052 import com.liferay.portal.service.persistence.UserPersistence;
053 import com.liferay.portal.util.PortalUtil;
054
055 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
056 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
057 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
058 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
059 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
060 import com.liferay.portlet.calendar.model.CalEvent;
061 import com.liferay.portlet.calendar.service.CalEventLocalService;
062 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
063 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
064 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
065 import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
066 import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
067 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
068 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
069
070 import java.io.Serializable;
071
072 import java.util.List;
073
074 import javax.sql.DataSource;
075
076
088 @ProviderType
089 public abstract class CalEventLocalServiceBaseImpl extends BaseLocalServiceImpl
090 implements CalEventLocalService, IdentifiableBean {
091
096
097
103 @Indexable(type = IndexableType.REINDEX)
104 @Override
105 public CalEvent addCalEvent(CalEvent calEvent) {
106 calEvent.setNew(true);
107
108 return calEventPersistence.update(calEvent);
109 }
110
111
117 @Override
118 public CalEvent createCalEvent(long eventId) {
119 return calEventPersistence.create(eventId);
120 }
121
122
129 @Indexable(type = IndexableType.DELETE)
130 @Override
131 public CalEvent deleteCalEvent(long eventId) throws PortalException {
132 return calEventPersistence.remove(eventId);
133 }
134
135
141 @Indexable(type = IndexableType.DELETE)
142 @Override
143 public CalEvent deleteCalEvent(CalEvent calEvent) {
144 return calEventPersistence.remove(calEvent);
145 }
146
147 @Override
148 public DynamicQuery dynamicQuery() {
149 Class<?> clazz = getClass();
150
151 return DynamicQueryFactoryUtil.forClass(CalEvent.class,
152 clazz.getClassLoader());
153 }
154
155
161 @Override
162 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
163 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
164 }
165
166
178 @Override
179 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
180 int end) {
181 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
182 }
183
184
197 @Override
198 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
199 int end, OrderByComparator<T> orderByComparator) {
200 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start,
201 end, orderByComparator);
202 }
203
204
210 @Override
211 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
212 return calEventPersistence.countWithDynamicQuery(dynamicQuery);
213 }
214
215
222 @Override
223 public long dynamicQueryCount(DynamicQuery dynamicQuery,
224 Projection projection) {
225 return calEventPersistence.countWithDynamicQuery(dynamicQuery,
226 projection);
227 }
228
229 @Override
230 public CalEvent fetchCalEvent(long eventId) {
231 return calEventPersistence.fetchByPrimaryKey(eventId);
232 }
233
234
241 @Override
242 public CalEvent fetchCalEventByUuidAndGroupId(String uuid, long groupId) {
243 return calEventPersistence.fetchByUUID_G(uuid, groupId);
244 }
245
246
253 @Override
254 public CalEvent getCalEvent(long eventId) throws PortalException {
255 return calEventPersistence.findByPrimaryKey(eventId);
256 }
257
258 @Override
259 public ActionableDynamicQuery getActionableDynamicQuery() {
260 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
261
262 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
263 actionableDynamicQuery.setClass(CalEvent.class);
264 actionableDynamicQuery.setClassLoader(getClassLoader());
265
266 actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");
267
268 return actionableDynamicQuery;
269 }
270
271 protected void initActionableDynamicQuery(
272 ActionableDynamicQuery actionableDynamicQuery) {
273 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
274 actionableDynamicQuery.setClass(CalEvent.class);
275 actionableDynamicQuery.setClassLoader(getClassLoader());
276
277 actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");
278 }
279
280 @Override
281 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
282 final PortletDataContext portletDataContext) {
283 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
284 @Override
285 public long performCount() throws PortalException {
286 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
287
288 StagedModelType stagedModelType = getStagedModelType();
289
290 long modelAdditionCount = super.performCount();
291
292 manifestSummary.addModelAdditionCount(stagedModelType.toString(),
293 modelAdditionCount);
294
295 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
296 stagedModelType);
297
298 manifestSummary.addModelDeletionCount(stagedModelType.toString(),
299 modelDeletionCount);
300
301 return modelAdditionCount;
302 }
303 };
304
305 initActionableDynamicQuery(exportActionableDynamicQuery);
306
307 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
308 @Override
309 public void addCriteria(DynamicQuery dynamicQuery) {
310 portletDataContext.addDateRangeCriteria(dynamicQuery,
311 "modifiedDate");
312 }
313 });
314
315 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
316
317 exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
318
319 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
320 @Override
321 public void performAction(Object object)
322 throws PortalException {
323 CalEvent stagedModel = (CalEvent)object;
324
325 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
326 stagedModel);
327 }
328 });
329 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
330 PortalUtil.getClassNameId(CalEvent.class.getName())));
331
332 return exportActionableDynamicQuery;
333 }
334
335
338 @Override
339 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
340 throws PortalException {
341 return calEventLocalService.deleteCalEvent((CalEvent)persistedModel);
342 }
343
344 @Override
345 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
346 throws PortalException {
347 return calEventPersistence.findByPrimaryKey(primaryKeyObj);
348 }
349
350 @Override
351 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
352 long companyId) {
353 return calEventPersistence.findByUuid_C(uuid, companyId);
354 }
355
356 @Override
357 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
358 long companyId, int start, int end,
359 OrderByComparator<CalEvent> orderByComparator) {
360 return calEventPersistence.findByUuid_C(uuid, companyId, start, end,
361 orderByComparator);
362 }
363
364
372 @Override
373 public CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId)
374 throws PortalException {
375 return calEventPersistence.findByUUID_G(uuid, groupId);
376 }
377
378
389 @Override
390 public List<CalEvent> getCalEvents(int start, int end) {
391 return calEventPersistence.findAll(start, end);
392 }
393
394
399 @Override
400 public int getCalEventsCount() {
401 return calEventPersistence.countAll();
402 }
403
404
410 @Indexable(type = IndexableType.REINDEX)
411 @Override
412 public CalEvent updateCalEvent(CalEvent calEvent) {
413 return calEventPersistence.update(calEvent);
414 }
415
416
421 public com.liferay.portlet.calendar.service.CalEventLocalService getCalEventLocalService() {
422 return calEventLocalService;
423 }
424
425
430 public void setCalEventLocalService(
431 com.liferay.portlet.calendar.service.CalEventLocalService calEventLocalService) {
432 this.calEventLocalService = calEventLocalService;
433 }
434
435
440 public CalEventPersistence getCalEventPersistence() {
441 return calEventPersistence;
442 }
443
444
449 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
450 this.calEventPersistence = calEventPersistence;
451 }
452
453
458 public CalEventFinder getCalEventFinder() {
459 return calEventFinder;
460 }
461
462
467 public void setCalEventFinder(CalEventFinder calEventFinder) {
468 this.calEventFinder = calEventFinder;
469 }
470
471
476 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
477 return counterLocalService;
478 }
479
480
485 public void setCounterLocalService(
486 com.liferay.counter.service.CounterLocalService counterLocalService) {
487 this.counterLocalService = counterLocalService;
488 }
489
490
495 public com.liferay.mail.service.MailService getMailService() {
496 return mailService;
497 }
498
499
504 public void setMailService(com.liferay.mail.service.MailService mailService) {
505 this.mailService = mailService;
506 }
507
508
513 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
514 return classNameLocalService;
515 }
516
517
522 public void setClassNameLocalService(
523 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
524 this.classNameLocalService = classNameLocalService;
525 }
526
527
532 public com.liferay.portal.service.ClassNameService getClassNameService() {
533 return classNameService;
534 }
535
536
541 public void setClassNameService(
542 com.liferay.portal.service.ClassNameService classNameService) {
543 this.classNameService = classNameService;
544 }
545
546
551 public ClassNamePersistence getClassNamePersistence() {
552 return classNamePersistence;
553 }
554
555
560 public void setClassNamePersistence(
561 ClassNamePersistence classNamePersistence) {
562 this.classNamePersistence = classNamePersistence;
563 }
564
565
570 public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
571 return companyLocalService;
572 }
573
574
579 public void setCompanyLocalService(
580 com.liferay.portal.service.CompanyLocalService companyLocalService) {
581 this.companyLocalService = companyLocalService;
582 }
583
584
589 public com.liferay.portal.service.CompanyService getCompanyService() {
590 return companyService;
591 }
592
593
598 public void setCompanyService(
599 com.liferay.portal.service.CompanyService companyService) {
600 this.companyService = companyService;
601 }
602
603
608 public CompanyPersistence getCompanyPersistence() {
609 return companyPersistence;
610 }
611
612
617 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
618 this.companyPersistence = companyPersistence;
619 }
620
621
626 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
627 return groupLocalService;
628 }
629
630
635 public void setGroupLocalService(
636 com.liferay.portal.service.GroupLocalService groupLocalService) {
637 this.groupLocalService = groupLocalService;
638 }
639
640
645 public com.liferay.portal.service.GroupService getGroupService() {
646 return groupService;
647 }
648
649
654 public void setGroupService(
655 com.liferay.portal.service.GroupService groupService) {
656 this.groupService = groupService;
657 }
658
659
664 public GroupPersistence getGroupPersistence() {
665 return groupPersistence;
666 }
667
668
673 public void setGroupPersistence(GroupPersistence groupPersistence) {
674 this.groupPersistence = groupPersistence;
675 }
676
677
682 public GroupFinder getGroupFinder() {
683 return groupFinder;
684 }
685
686
691 public void setGroupFinder(GroupFinder groupFinder) {
692 this.groupFinder = groupFinder;
693 }
694
695
700 public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
701 return portletPreferencesLocalService;
702 }
703
704
709 public void setPortletPreferencesLocalService(
710 com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
711 this.portletPreferencesLocalService = portletPreferencesLocalService;
712 }
713
714
719 public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
720 return portletPreferencesService;
721 }
722
723
728 public void setPortletPreferencesService(
729 com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
730 this.portletPreferencesService = portletPreferencesService;
731 }
732
733
738 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
739 return portletPreferencesPersistence;
740 }
741
742
747 public void setPortletPreferencesPersistence(
748 PortletPreferencesPersistence portletPreferencesPersistence) {
749 this.portletPreferencesPersistence = portletPreferencesPersistence;
750 }
751
752
757 public PortletPreferencesFinder getPortletPreferencesFinder() {
758 return portletPreferencesFinder;
759 }
760
761
766 public void setPortletPreferencesFinder(
767 PortletPreferencesFinder portletPreferencesFinder) {
768 this.portletPreferencesFinder = portletPreferencesFinder;
769 }
770
771
776 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
777 return resourceLocalService;
778 }
779
780
785 public void setResourceLocalService(
786 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
787 this.resourceLocalService = resourceLocalService;
788 }
789
790
795 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
796 return subscriptionLocalService;
797 }
798
799
804 public void setSubscriptionLocalService(
805 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
806 this.subscriptionLocalService = subscriptionLocalService;
807 }
808
809
814 public SubscriptionPersistence getSubscriptionPersistence() {
815 return subscriptionPersistence;
816 }
817
818
823 public void setSubscriptionPersistence(
824 SubscriptionPersistence subscriptionPersistence) {
825 this.subscriptionPersistence = subscriptionPersistence;
826 }
827
828
833 public com.liferay.portal.service.UserLocalService getUserLocalService() {
834 return userLocalService;
835 }
836
837
842 public void setUserLocalService(
843 com.liferay.portal.service.UserLocalService userLocalService) {
844 this.userLocalService = userLocalService;
845 }
846
847
852 public com.liferay.portal.service.UserService getUserService() {
853 return userService;
854 }
855
856
861 public void setUserService(
862 com.liferay.portal.service.UserService userService) {
863 this.userService = userService;
864 }
865
866
871 public UserPersistence getUserPersistence() {
872 return userPersistence;
873 }
874
875
880 public void setUserPersistence(UserPersistence userPersistence) {
881 this.userPersistence = userPersistence;
882 }
883
884
889 public UserFinder getUserFinder() {
890 return userFinder;
891 }
892
893
898 public void setUserFinder(UserFinder userFinder) {
899 this.userFinder = userFinder;
900 }
901
902
907 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
908 return assetEntryLocalService;
909 }
910
911
916 public void setAssetEntryLocalService(
917 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
918 this.assetEntryLocalService = assetEntryLocalService;
919 }
920
921
926 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
927 return assetEntryService;
928 }
929
930
935 public void setAssetEntryService(
936 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
937 this.assetEntryService = assetEntryService;
938 }
939
940
945 public AssetEntryPersistence getAssetEntryPersistence() {
946 return assetEntryPersistence;
947 }
948
949
954 public void setAssetEntryPersistence(
955 AssetEntryPersistence assetEntryPersistence) {
956 this.assetEntryPersistence = assetEntryPersistence;
957 }
958
959
964 public AssetEntryFinder getAssetEntryFinder() {
965 return assetEntryFinder;
966 }
967
968
973 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
974 this.assetEntryFinder = assetEntryFinder;
975 }
976
977
982 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
983 return assetLinkLocalService;
984 }
985
986
991 public void setAssetLinkLocalService(
992 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
993 this.assetLinkLocalService = assetLinkLocalService;
994 }
995
996
1001 public AssetLinkPersistence getAssetLinkPersistence() {
1002 return assetLinkPersistence;
1003 }
1004
1005
1010 public void setAssetLinkPersistence(
1011 AssetLinkPersistence assetLinkPersistence) {
1012 this.assetLinkPersistence = assetLinkPersistence;
1013 }
1014
1015
1020 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1021 return assetTagLocalService;
1022 }
1023
1024
1029 public void setAssetTagLocalService(
1030 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1031 this.assetTagLocalService = assetTagLocalService;
1032 }
1033
1034
1039 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1040 return assetTagService;
1041 }
1042
1043
1048 public void setAssetTagService(
1049 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1050 this.assetTagService = assetTagService;
1051 }
1052
1053
1058 public AssetTagPersistence getAssetTagPersistence() {
1059 return assetTagPersistence;
1060 }
1061
1062
1067 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1068 this.assetTagPersistence = assetTagPersistence;
1069 }
1070
1071
1076 public AssetTagFinder getAssetTagFinder() {
1077 return assetTagFinder;
1078 }
1079
1080
1085 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1086 this.assetTagFinder = assetTagFinder;
1087 }
1088
1089
1094 public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1095 return expandoValueLocalService;
1096 }
1097
1098
1103 public void setExpandoValueLocalService(
1104 com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1105 this.expandoValueLocalService = expandoValueLocalService;
1106 }
1107
1108
1113 public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1114 return expandoValueService;
1115 }
1116
1117
1122 public void setExpandoValueService(
1123 com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1124 this.expandoValueService = expandoValueService;
1125 }
1126
1127
1132 public ExpandoValuePersistence getExpandoValuePersistence() {
1133 return expandoValuePersistence;
1134 }
1135
1136
1141 public void setExpandoValuePersistence(
1142 ExpandoValuePersistence expandoValuePersistence) {
1143 this.expandoValuePersistence = expandoValuePersistence;
1144 }
1145
1146
1151 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
1152 return mbMessageLocalService;
1153 }
1154
1155
1160 public void setMBMessageLocalService(
1161 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1162 this.mbMessageLocalService = mbMessageLocalService;
1163 }
1164
1165
1170 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1171 return mbMessageService;
1172 }
1173
1174
1179 public void setMBMessageService(
1180 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1181 this.mbMessageService = mbMessageService;
1182 }
1183
1184
1189 public MBMessagePersistence getMBMessagePersistence() {
1190 return mbMessagePersistence;
1191 }
1192
1193
1198 public void setMBMessagePersistence(
1199 MBMessagePersistence mbMessagePersistence) {
1200 this.mbMessagePersistence = mbMessagePersistence;
1201 }
1202
1203
1208 public MBMessageFinder getMBMessageFinder() {
1209 return mbMessageFinder;
1210 }
1211
1212
1217 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1218 this.mbMessageFinder = mbMessageFinder;
1219 }
1220
1221
1226 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1227 return socialActivityLocalService;
1228 }
1229
1230
1235 public void setSocialActivityLocalService(
1236 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1237 this.socialActivityLocalService = socialActivityLocalService;
1238 }
1239
1240
1245 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1246 return socialActivityService;
1247 }
1248
1249
1254 public void setSocialActivityService(
1255 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1256 this.socialActivityService = socialActivityService;
1257 }
1258
1259
1264 public SocialActivityPersistence getSocialActivityPersistence() {
1265 return socialActivityPersistence;
1266 }
1267
1268
1273 public void setSocialActivityPersistence(
1274 SocialActivityPersistence socialActivityPersistence) {
1275 this.socialActivityPersistence = socialActivityPersistence;
1276 }
1277
1278
1283 public SocialActivityFinder getSocialActivityFinder() {
1284 return socialActivityFinder;
1285 }
1286
1287
1292 public void setSocialActivityFinder(
1293 SocialActivityFinder socialActivityFinder) {
1294 this.socialActivityFinder = socialActivityFinder;
1295 }
1296
1297 public void afterPropertiesSet() {
1298 persistedModelLocalServiceRegistry.register("com.liferay.portlet.calendar.model.CalEvent",
1299 calEventLocalService);
1300 }
1301
1302 public void destroy() {
1303 persistedModelLocalServiceRegistry.unregister(
1304 "com.liferay.portlet.calendar.model.CalEvent");
1305 }
1306
1307
1312 @Override
1313 public String getBeanIdentifier() {
1314 return _beanIdentifier;
1315 }
1316
1317
1322 @Override
1323 public void setBeanIdentifier(String beanIdentifier) {
1324 _beanIdentifier = beanIdentifier;
1325 }
1326
1327 protected Class<?> getModelClass() {
1328 return CalEvent.class;
1329 }
1330
1331 protected String getModelClassName() {
1332 return CalEvent.class.getName();
1333 }
1334
1335
1340 protected void runSQL(String sql) {
1341 try {
1342 DataSource dataSource = calEventPersistence.getDataSource();
1343
1344 DB db = DBFactoryUtil.getDB();
1345
1346 sql = db.buildSQL(sql);
1347 sql = PortalUtil.transformSQL(sql);
1348
1349 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1350 sql, new int[0]);
1351
1352 sqlUpdate.update();
1353 }
1354 catch (Exception e) {
1355 throw new SystemException(e);
1356 }
1357 }
1358
1359 @BeanReference(type = com.liferay.portlet.calendar.service.CalEventLocalService.class)
1360 protected com.liferay.portlet.calendar.service.CalEventLocalService calEventLocalService;
1361 @BeanReference(type = CalEventPersistence.class)
1362 protected CalEventPersistence calEventPersistence;
1363 @BeanReference(type = CalEventFinder.class)
1364 protected CalEventFinder calEventFinder;
1365 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1366 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1367 @BeanReference(type = com.liferay.mail.service.MailService.class)
1368 protected com.liferay.mail.service.MailService mailService;
1369 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1370 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1371 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1372 protected com.liferay.portal.service.ClassNameService classNameService;
1373 @BeanReference(type = ClassNamePersistence.class)
1374 protected ClassNamePersistence classNamePersistence;
1375 @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1376 protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1377 @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1378 protected com.liferay.portal.service.CompanyService companyService;
1379 @BeanReference(type = CompanyPersistence.class)
1380 protected CompanyPersistence companyPersistence;
1381 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1382 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1383 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1384 protected com.liferay.portal.service.GroupService groupService;
1385 @BeanReference(type = GroupPersistence.class)
1386 protected GroupPersistence groupPersistence;
1387 @BeanReference(type = GroupFinder.class)
1388 protected GroupFinder groupFinder;
1389 @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1390 protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1391 @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1392 protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1393 @BeanReference(type = PortletPreferencesPersistence.class)
1394 protected PortletPreferencesPersistence portletPreferencesPersistence;
1395 @BeanReference(type = PortletPreferencesFinder.class)
1396 protected PortletPreferencesFinder portletPreferencesFinder;
1397 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1398 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1399 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1400 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1401 @BeanReference(type = SubscriptionPersistence.class)
1402 protected SubscriptionPersistence subscriptionPersistence;
1403 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1404 protected com.liferay.portal.service.UserLocalService userLocalService;
1405 @BeanReference(type = com.liferay.portal.service.UserService.class)
1406 protected com.liferay.portal.service.UserService userService;
1407 @BeanReference(type = UserPersistence.class)
1408 protected UserPersistence userPersistence;
1409 @BeanReference(type = UserFinder.class)
1410 protected UserFinder userFinder;
1411 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1412 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1413 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1414 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1415 @BeanReference(type = AssetEntryPersistence.class)
1416 protected AssetEntryPersistence assetEntryPersistence;
1417 @BeanReference(type = AssetEntryFinder.class)
1418 protected AssetEntryFinder assetEntryFinder;
1419 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1420 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1421 @BeanReference(type = AssetLinkPersistence.class)
1422 protected AssetLinkPersistence assetLinkPersistence;
1423 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1424 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1425 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1426 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1427 @BeanReference(type = AssetTagPersistence.class)
1428 protected AssetTagPersistence assetTagPersistence;
1429 @BeanReference(type = AssetTagFinder.class)
1430 protected AssetTagFinder assetTagFinder;
1431 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1432 protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1433 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1434 protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1435 @BeanReference(type = ExpandoValuePersistence.class)
1436 protected ExpandoValuePersistence expandoValuePersistence;
1437 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1438 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1439 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1440 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1441 @BeanReference(type = MBMessagePersistence.class)
1442 protected MBMessagePersistence mbMessagePersistence;
1443 @BeanReference(type = MBMessageFinder.class)
1444 protected MBMessageFinder mbMessageFinder;
1445 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1446 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1447 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1448 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1449 @BeanReference(type = SocialActivityPersistence.class)
1450 protected SocialActivityPersistence socialActivityPersistence;
1451 @BeanReference(type = SocialActivityFinder.class)
1452 protected SocialActivityFinder socialActivityFinder;
1453 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1454 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1455 private String _beanIdentifier;
1456 }