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.search.Indexable;
034 import com.liferay.portal.kernel.search.IndexableType;
035 import com.liferay.portal.kernel.util.OrderByComparator;
036 import com.liferay.portal.model.PersistedModel;
037 import com.liferay.portal.service.BaseLocalServiceImpl;
038 import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
039 import com.liferay.portal.service.persistence.ClassNamePersistence;
040 import com.liferay.portal.service.persistence.CompanyPersistence;
041 import com.liferay.portal.service.persistence.GroupFinder;
042 import com.liferay.portal.service.persistence.GroupPersistence;
043 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
044 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
045 import com.liferay.portal.service.persistence.SubscriptionPersistence;
046 import com.liferay.portal.service.persistence.UserFinder;
047 import com.liferay.portal.service.persistence.UserPersistence;
048 import com.liferay.portal.util.PortalUtil;
049
050 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
051 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
052 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
053 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
054 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
055 import com.liferay.portlet.calendar.model.CalEvent;
056 import com.liferay.portlet.calendar.service.CalEventLocalService;
057 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
058 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
059 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
060 import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
061 import com.liferay.portlet.exportimport.lar.ManifestSummary;
062 import com.liferay.portlet.exportimport.lar.PortletDataContext;
063 import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
064 import com.liferay.portlet.exportimport.lar.StagedModelType;
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
089 @Deprecated
090 @ProviderType
091 public abstract class CalEventLocalServiceBaseImpl extends BaseLocalServiceImpl
092 implements CalEventLocalService, IdentifiableBean {
093
098
099
105 @Indexable(type = IndexableType.REINDEX)
106 @Override
107 public CalEvent addCalEvent(CalEvent calEvent) {
108 calEvent.setNew(true);
109
110 return calEventPersistence.update(calEvent);
111 }
112
113
119 @Override
120 public CalEvent createCalEvent(long eventId) {
121 return calEventPersistence.create(eventId);
122 }
123
124
131 @Indexable(type = IndexableType.DELETE)
132 @Override
133 public CalEvent deleteCalEvent(long eventId) throws PortalException {
134 return calEventPersistence.remove(eventId);
135 }
136
137
143 @Indexable(type = IndexableType.DELETE)
144 @Override
145 public CalEvent deleteCalEvent(CalEvent calEvent) {
146 return calEventPersistence.remove(calEvent);
147 }
148
149 @Override
150 public DynamicQuery dynamicQuery() {
151 Class<?> clazz = getClass();
152
153 return DynamicQueryFactoryUtil.forClass(CalEvent.class,
154 clazz.getClassLoader());
155 }
156
157
163 @Override
164 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
165 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
166 }
167
168
180 @Override
181 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
182 int end) {
183 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
184 }
185
186
199 @Override
200 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
201 int end, OrderByComparator<T> orderByComparator) {
202 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start,
203 end, orderByComparator);
204 }
205
206
212 @Override
213 public long dynamicQueryCount(DynamicQuery dynamicQuery) {
214 return calEventPersistence.countWithDynamicQuery(dynamicQuery);
215 }
216
217
224 @Override
225 public long dynamicQueryCount(DynamicQuery dynamicQuery,
226 Projection projection) {
227 return calEventPersistence.countWithDynamicQuery(dynamicQuery,
228 projection);
229 }
230
231 @Override
232 public CalEvent fetchCalEvent(long eventId) {
233 return calEventPersistence.fetchByPrimaryKey(eventId);
234 }
235
236
243 @Override
244 public CalEvent fetchCalEventByUuidAndGroupId(String uuid, long groupId) {
245 return calEventPersistence.fetchByUUID_G(uuid, groupId);
246 }
247
248
255 @Override
256 public CalEvent getCalEvent(long eventId) throws PortalException {
257 return calEventPersistence.findByPrimaryKey(eventId);
258 }
259
260 @Override
261 public ActionableDynamicQuery getActionableDynamicQuery() {
262 ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
263
264 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
265 actionableDynamicQuery.setClass(CalEvent.class);
266 actionableDynamicQuery.setClassLoader(getClassLoader());
267
268 actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");
269
270 return actionableDynamicQuery;
271 }
272
273 protected void initActionableDynamicQuery(
274 ActionableDynamicQuery actionableDynamicQuery) {
275 actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.calendar.service.CalEventLocalServiceUtil.getService());
276 actionableDynamicQuery.setClass(CalEvent.class);
277 actionableDynamicQuery.setClassLoader(getClassLoader());
278
279 actionableDynamicQuery.setPrimaryKeyPropertyName("eventId");
280 }
281
282 @Override
283 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
284 final PortletDataContext portletDataContext) {
285 final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
286 @Override
287 public long performCount() throws PortalException {
288 ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
289
290 StagedModelType stagedModelType = getStagedModelType();
291
292 long modelAdditionCount = super.performCount();
293
294 manifestSummary.addModelAdditionCount(stagedModelType,
295 modelAdditionCount);
296
297 long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
298 stagedModelType);
299
300 manifestSummary.addModelDeletionCount(stagedModelType,
301 modelDeletionCount);
302
303 return modelAdditionCount;
304 }
305 };
306
307 initActionableDynamicQuery(exportActionableDynamicQuery);
308
309 exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
310 @Override
311 public void addCriteria(DynamicQuery dynamicQuery) {
312 portletDataContext.addDateRangeCriteria(dynamicQuery,
313 "modifiedDate");
314 }
315 });
316
317 exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
318
319 exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod<CalEvent>() {
320 @Override
321 public void performAction(CalEvent calEvent)
322 throws PortalException {
323 StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
324 calEvent);
325 }
326 });
327 exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
328 PortalUtil.getClassNameId(CalEvent.class.getName())));
329
330 return exportActionableDynamicQuery;
331 }
332
333
336 @Override
337 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
338 throws PortalException {
339 return calEventLocalService.deleteCalEvent((CalEvent)persistedModel);
340 }
341
342 @Override
343 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
344 throws PortalException {
345 return calEventPersistence.findByPrimaryKey(primaryKeyObj);
346 }
347
348
355 @Override
356 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
357 long companyId) {
358 return calEventPersistence.findByUuid_C(uuid, companyId);
359 }
360
361
371 @Override
372 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
373 long companyId, int start, int end,
374 OrderByComparator<CalEvent> orderByComparator) {
375 return calEventPersistence.findByUuid_C(uuid, companyId, start, end,
376 orderByComparator);
377 }
378
379
387 @Override
388 public CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId)
389 throws PortalException {
390 return calEventPersistence.findByUUID_G(uuid, groupId);
391 }
392
393
404 @Override
405 public List<CalEvent> getCalEvents(int start, int end) {
406 return calEventPersistence.findAll(start, end);
407 }
408
409
414 @Override
415 public int getCalEventsCount() {
416 return calEventPersistence.countAll();
417 }
418
419
425 @Indexable(type = IndexableType.REINDEX)
426 @Override
427 public CalEvent updateCalEvent(CalEvent calEvent) {
428 return calEventPersistence.update(calEvent);
429 }
430
431
436 public CalEventLocalService getCalEventLocalService() {
437 return calEventLocalService;
438 }
439
440
445 public void setCalEventLocalService(
446 CalEventLocalService calEventLocalService) {
447 this.calEventLocalService = calEventLocalService;
448 }
449
450
455 public CalEventPersistence getCalEventPersistence() {
456 return calEventPersistence;
457 }
458
459
464 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
465 this.calEventPersistence = calEventPersistence;
466 }
467
468
473 public CalEventFinder getCalEventFinder() {
474 return calEventFinder;
475 }
476
477
482 public void setCalEventFinder(CalEventFinder calEventFinder) {
483 this.calEventFinder = calEventFinder;
484 }
485
486
491 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
492 return counterLocalService;
493 }
494
495
500 public void setCounterLocalService(
501 com.liferay.counter.service.CounterLocalService counterLocalService) {
502 this.counterLocalService = counterLocalService;
503 }
504
505
510 public com.liferay.mail.service.MailService getMailService() {
511 return mailService;
512 }
513
514
519 public void setMailService(com.liferay.mail.service.MailService mailService) {
520 this.mailService = mailService;
521 }
522
523
528 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
529 return classNameLocalService;
530 }
531
532
537 public void setClassNameLocalService(
538 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
539 this.classNameLocalService = classNameLocalService;
540 }
541
542
547 public com.liferay.portal.service.ClassNameService getClassNameService() {
548 return classNameService;
549 }
550
551
556 public void setClassNameService(
557 com.liferay.portal.service.ClassNameService classNameService) {
558 this.classNameService = classNameService;
559 }
560
561
566 public ClassNamePersistence getClassNamePersistence() {
567 return classNamePersistence;
568 }
569
570
575 public void setClassNamePersistence(
576 ClassNamePersistence classNamePersistence) {
577 this.classNamePersistence = classNamePersistence;
578 }
579
580
585 public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
586 return companyLocalService;
587 }
588
589
594 public void setCompanyLocalService(
595 com.liferay.portal.service.CompanyLocalService companyLocalService) {
596 this.companyLocalService = companyLocalService;
597 }
598
599
604 public com.liferay.portal.service.CompanyService getCompanyService() {
605 return companyService;
606 }
607
608
613 public void setCompanyService(
614 com.liferay.portal.service.CompanyService companyService) {
615 this.companyService = companyService;
616 }
617
618
623 public CompanyPersistence getCompanyPersistence() {
624 return companyPersistence;
625 }
626
627
632 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
633 this.companyPersistence = companyPersistence;
634 }
635
636
641 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
642 return groupLocalService;
643 }
644
645
650 public void setGroupLocalService(
651 com.liferay.portal.service.GroupLocalService groupLocalService) {
652 this.groupLocalService = groupLocalService;
653 }
654
655
660 public com.liferay.portal.service.GroupService getGroupService() {
661 return groupService;
662 }
663
664
669 public void setGroupService(
670 com.liferay.portal.service.GroupService groupService) {
671 this.groupService = groupService;
672 }
673
674
679 public GroupPersistence getGroupPersistence() {
680 return groupPersistence;
681 }
682
683
688 public void setGroupPersistence(GroupPersistence groupPersistence) {
689 this.groupPersistence = groupPersistence;
690 }
691
692
697 public GroupFinder getGroupFinder() {
698 return groupFinder;
699 }
700
701
706 public void setGroupFinder(GroupFinder groupFinder) {
707 this.groupFinder = groupFinder;
708 }
709
710
715 public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
716 return portletPreferencesLocalService;
717 }
718
719
724 public void setPortletPreferencesLocalService(
725 com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
726 this.portletPreferencesLocalService = portletPreferencesLocalService;
727 }
728
729
734 public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
735 return portletPreferencesService;
736 }
737
738
743 public void setPortletPreferencesService(
744 com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
745 this.portletPreferencesService = portletPreferencesService;
746 }
747
748
753 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
754 return portletPreferencesPersistence;
755 }
756
757
762 public void setPortletPreferencesPersistence(
763 PortletPreferencesPersistence portletPreferencesPersistence) {
764 this.portletPreferencesPersistence = portletPreferencesPersistence;
765 }
766
767
772 public PortletPreferencesFinder getPortletPreferencesFinder() {
773 return portletPreferencesFinder;
774 }
775
776
781 public void setPortletPreferencesFinder(
782 PortletPreferencesFinder portletPreferencesFinder) {
783 this.portletPreferencesFinder = portletPreferencesFinder;
784 }
785
786
791 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
792 return resourceLocalService;
793 }
794
795
800 public void setResourceLocalService(
801 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
802 this.resourceLocalService = resourceLocalService;
803 }
804
805
810 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
811 return subscriptionLocalService;
812 }
813
814
819 public void setSubscriptionLocalService(
820 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
821 this.subscriptionLocalService = subscriptionLocalService;
822 }
823
824
829 public SubscriptionPersistence getSubscriptionPersistence() {
830 return subscriptionPersistence;
831 }
832
833
838 public void setSubscriptionPersistence(
839 SubscriptionPersistence subscriptionPersistence) {
840 this.subscriptionPersistence = subscriptionPersistence;
841 }
842
843
848 public com.liferay.portal.service.UserLocalService getUserLocalService() {
849 return userLocalService;
850 }
851
852
857 public void setUserLocalService(
858 com.liferay.portal.service.UserLocalService userLocalService) {
859 this.userLocalService = userLocalService;
860 }
861
862
867 public com.liferay.portal.service.UserService getUserService() {
868 return userService;
869 }
870
871
876 public void setUserService(
877 com.liferay.portal.service.UserService userService) {
878 this.userService = userService;
879 }
880
881
886 public UserPersistence getUserPersistence() {
887 return userPersistence;
888 }
889
890
895 public void setUserPersistence(UserPersistence userPersistence) {
896 this.userPersistence = userPersistence;
897 }
898
899
904 public UserFinder getUserFinder() {
905 return userFinder;
906 }
907
908
913 public void setUserFinder(UserFinder userFinder) {
914 this.userFinder = userFinder;
915 }
916
917
922 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
923 return assetEntryLocalService;
924 }
925
926
931 public void setAssetEntryLocalService(
932 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
933 this.assetEntryLocalService = assetEntryLocalService;
934 }
935
936
941 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
942 return assetEntryService;
943 }
944
945
950 public void setAssetEntryService(
951 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
952 this.assetEntryService = assetEntryService;
953 }
954
955
960 public AssetEntryPersistence getAssetEntryPersistence() {
961 return assetEntryPersistence;
962 }
963
964
969 public void setAssetEntryPersistence(
970 AssetEntryPersistence assetEntryPersistence) {
971 this.assetEntryPersistence = assetEntryPersistence;
972 }
973
974
979 public AssetEntryFinder getAssetEntryFinder() {
980 return assetEntryFinder;
981 }
982
983
988 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
989 this.assetEntryFinder = assetEntryFinder;
990 }
991
992
997 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
998 return assetLinkLocalService;
999 }
1000
1001
1006 public void setAssetLinkLocalService(
1007 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1008 this.assetLinkLocalService = assetLinkLocalService;
1009 }
1010
1011
1016 public AssetLinkPersistence getAssetLinkPersistence() {
1017 return assetLinkPersistence;
1018 }
1019
1020
1025 public void setAssetLinkPersistence(
1026 AssetLinkPersistence assetLinkPersistence) {
1027 this.assetLinkPersistence = assetLinkPersistence;
1028 }
1029
1030
1035 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1036 return assetTagLocalService;
1037 }
1038
1039
1044 public void setAssetTagLocalService(
1045 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1046 this.assetTagLocalService = assetTagLocalService;
1047 }
1048
1049
1054 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1055 return assetTagService;
1056 }
1057
1058
1063 public void setAssetTagService(
1064 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1065 this.assetTagService = assetTagService;
1066 }
1067
1068
1073 public AssetTagPersistence getAssetTagPersistence() {
1074 return assetTagPersistence;
1075 }
1076
1077
1082 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1083 this.assetTagPersistence = assetTagPersistence;
1084 }
1085
1086
1091 public AssetTagFinder getAssetTagFinder() {
1092 return assetTagFinder;
1093 }
1094
1095
1100 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1101 this.assetTagFinder = assetTagFinder;
1102 }
1103
1104
1109 public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1110 return expandoValueLocalService;
1111 }
1112
1113
1118 public void setExpandoValueLocalService(
1119 com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1120 this.expandoValueLocalService = expandoValueLocalService;
1121 }
1122
1123
1128 public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1129 return expandoValueService;
1130 }
1131
1132
1137 public void setExpandoValueService(
1138 com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1139 this.expandoValueService = expandoValueService;
1140 }
1141
1142
1147 public ExpandoValuePersistence getExpandoValuePersistence() {
1148 return expandoValuePersistence;
1149 }
1150
1151
1156 public void setExpandoValuePersistence(
1157 ExpandoValuePersistence expandoValuePersistence) {
1158 this.expandoValuePersistence = expandoValuePersistence;
1159 }
1160
1161
1166 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
1167 return mbMessageLocalService;
1168 }
1169
1170
1175 public void setMBMessageLocalService(
1176 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1177 this.mbMessageLocalService = mbMessageLocalService;
1178 }
1179
1180
1185 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1186 return mbMessageService;
1187 }
1188
1189
1194 public void setMBMessageService(
1195 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1196 this.mbMessageService = mbMessageService;
1197 }
1198
1199
1204 public MBMessagePersistence getMBMessagePersistence() {
1205 return mbMessagePersistence;
1206 }
1207
1208
1213 public void setMBMessagePersistence(
1214 MBMessagePersistence mbMessagePersistence) {
1215 this.mbMessagePersistence = mbMessagePersistence;
1216 }
1217
1218
1223 public MBMessageFinder getMBMessageFinder() {
1224 return mbMessageFinder;
1225 }
1226
1227
1232 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1233 this.mbMessageFinder = mbMessageFinder;
1234 }
1235
1236
1241 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1242 return socialActivityLocalService;
1243 }
1244
1245
1250 public void setSocialActivityLocalService(
1251 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1252 this.socialActivityLocalService = socialActivityLocalService;
1253 }
1254
1255
1260 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1261 return socialActivityService;
1262 }
1263
1264
1269 public void setSocialActivityService(
1270 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1271 this.socialActivityService = socialActivityService;
1272 }
1273
1274
1279 public SocialActivityPersistence getSocialActivityPersistence() {
1280 return socialActivityPersistence;
1281 }
1282
1283
1288 public void setSocialActivityPersistence(
1289 SocialActivityPersistence socialActivityPersistence) {
1290 this.socialActivityPersistence = socialActivityPersistence;
1291 }
1292
1293
1298 public SocialActivityFinder getSocialActivityFinder() {
1299 return socialActivityFinder;
1300 }
1301
1302
1307 public void setSocialActivityFinder(
1308 SocialActivityFinder socialActivityFinder) {
1309 this.socialActivityFinder = socialActivityFinder;
1310 }
1311
1312 public void afterPropertiesSet() {
1313 persistedModelLocalServiceRegistry.register("com.liferay.portlet.calendar.model.CalEvent",
1314 calEventLocalService);
1315 }
1316
1317 public void destroy() {
1318 persistedModelLocalServiceRegistry.unregister(
1319 "com.liferay.portlet.calendar.model.CalEvent");
1320 }
1321
1322
1327 @Override
1328 public String getBeanIdentifier() {
1329 return _beanIdentifier;
1330 }
1331
1332
1337 @Override
1338 public void setBeanIdentifier(String beanIdentifier) {
1339 _beanIdentifier = beanIdentifier;
1340 }
1341
1342 protected Class<?> getModelClass() {
1343 return CalEvent.class;
1344 }
1345
1346 protected String getModelClassName() {
1347 return CalEvent.class.getName();
1348 }
1349
1350
1355 protected void runSQL(String sql) {
1356 try {
1357 DataSource dataSource = calEventPersistence.getDataSource();
1358
1359 DB db = DBFactoryUtil.getDB();
1360
1361 sql = db.buildSQL(sql);
1362 sql = PortalUtil.transformSQL(sql);
1363
1364 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1365 sql, new int[0]);
1366
1367 sqlUpdate.update();
1368 }
1369 catch (Exception e) {
1370 throw new SystemException(e);
1371 }
1372 }
1373
1374 @BeanReference(type = com.liferay.portlet.calendar.service.CalEventLocalService.class)
1375 protected CalEventLocalService calEventLocalService;
1376 @BeanReference(type = CalEventPersistence.class)
1377 protected CalEventPersistence calEventPersistence;
1378 @BeanReference(type = CalEventFinder.class)
1379 protected CalEventFinder calEventFinder;
1380 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1381 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1382 @BeanReference(type = com.liferay.mail.service.MailService.class)
1383 protected com.liferay.mail.service.MailService mailService;
1384 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1385 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1386 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1387 protected com.liferay.portal.service.ClassNameService classNameService;
1388 @BeanReference(type = ClassNamePersistence.class)
1389 protected ClassNamePersistence classNamePersistence;
1390 @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1391 protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1392 @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1393 protected com.liferay.portal.service.CompanyService companyService;
1394 @BeanReference(type = CompanyPersistence.class)
1395 protected CompanyPersistence companyPersistence;
1396 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1397 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1398 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1399 protected com.liferay.portal.service.GroupService groupService;
1400 @BeanReference(type = GroupPersistence.class)
1401 protected GroupPersistence groupPersistence;
1402 @BeanReference(type = GroupFinder.class)
1403 protected GroupFinder groupFinder;
1404 @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1405 protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1406 @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1407 protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1408 @BeanReference(type = PortletPreferencesPersistence.class)
1409 protected PortletPreferencesPersistence portletPreferencesPersistence;
1410 @BeanReference(type = PortletPreferencesFinder.class)
1411 protected PortletPreferencesFinder portletPreferencesFinder;
1412 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1413 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1414 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1415 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1416 @BeanReference(type = SubscriptionPersistence.class)
1417 protected SubscriptionPersistence subscriptionPersistence;
1418 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1419 protected com.liferay.portal.service.UserLocalService userLocalService;
1420 @BeanReference(type = com.liferay.portal.service.UserService.class)
1421 protected com.liferay.portal.service.UserService userService;
1422 @BeanReference(type = UserPersistence.class)
1423 protected UserPersistence userPersistence;
1424 @BeanReference(type = UserFinder.class)
1425 protected UserFinder userFinder;
1426 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1427 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1428 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1429 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1430 @BeanReference(type = AssetEntryPersistence.class)
1431 protected AssetEntryPersistence assetEntryPersistence;
1432 @BeanReference(type = AssetEntryFinder.class)
1433 protected AssetEntryFinder assetEntryFinder;
1434 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1435 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1436 @BeanReference(type = AssetLinkPersistence.class)
1437 protected AssetLinkPersistence assetLinkPersistence;
1438 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1439 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1440 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1441 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1442 @BeanReference(type = AssetTagPersistence.class)
1443 protected AssetTagPersistence assetTagPersistence;
1444 @BeanReference(type = AssetTagFinder.class)
1445 protected AssetTagFinder assetTagFinder;
1446 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1447 protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1448 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1449 protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1450 @BeanReference(type = ExpandoValuePersistence.class)
1451 protected ExpandoValuePersistence expandoValuePersistence;
1452 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1453 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1454 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1455 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1456 @BeanReference(type = MBMessagePersistence.class)
1457 protected MBMessagePersistence mbMessagePersistence;
1458 @BeanReference(type = MBMessageFinder.class)
1459 protected MBMessageFinder mbMessageFinder;
1460 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1461 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1462 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1463 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1464 @BeanReference(type = SocialActivityPersistence.class)
1465 protected SocialActivityPersistence socialActivityPersistence;
1466 @BeanReference(type = SocialActivityFinder.class)
1467 protected SocialActivityFinder socialActivityFinder;
1468 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1469 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1470 private String _beanIdentifier;
1471 }