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
357 @Override
358 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
359 long companyId) {
360 return calEventPersistence.findByUuid_C(uuid, companyId);
361 }
362
363
373 @Override
374 public List<CalEvent> getCalEventsByUuidAndCompanyId(String uuid,
375 long companyId, int start, int end,
376 OrderByComparator<CalEvent> orderByComparator) {
377 return calEventPersistence.findByUuid_C(uuid, companyId, start, end,
378 orderByComparator);
379 }
380
381
389 @Override
390 public CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId)
391 throws PortalException {
392 return calEventPersistence.findByUUID_G(uuid, groupId);
393 }
394
395
406 @Override
407 public List<CalEvent> getCalEvents(int start, int end) {
408 return calEventPersistence.findAll(start, end);
409 }
410
411
416 @Override
417 public int getCalEventsCount() {
418 return calEventPersistence.countAll();
419 }
420
421
427 @Indexable(type = IndexableType.REINDEX)
428 @Override
429 public CalEvent updateCalEvent(CalEvent calEvent) {
430 return calEventPersistence.update(calEvent);
431 }
432
433
438 public com.liferay.portlet.calendar.service.CalEventLocalService getCalEventLocalService() {
439 return calEventLocalService;
440 }
441
442
447 public void setCalEventLocalService(
448 com.liferay.portlet.calendar.service.CalEventLocalService calEventLocalService) {
449 this.calEventLocalService = calEventLocalService;
450 }
451
452
457 public CalEventPersistence getCalEventPersistence() {
458 return calEventPersistence;
459 }
460
461
466 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
467 this.calEventPersistence = calEventPersistence;
468 }
469
470
475 public CalEventFinder getCalEventFinder() {
476 return calEventFinder;
477 }
478
479
484 public void setCalEventFinder(CalEventFinder calEventFinder) {
485 this.calEventFinder = calEventFinder;
486 }
487
488
493 public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
494 return counterLocalService;
495 }
496
497
502 public void setCounterLocalService(
503 com.liferay.counter.service.CounterLocalService counterLocalService) {
504 this.counterLocalService = counterLocalService;
505 }
506
507
512 public com.liferay.mail.service.MailService getMailService() {
513 return mailService;
514 }
515
516
521 public void setMailService(com.liferay.mail.service.MailService mailService) {
522 this.mailService = mailService;
523 }
524
525
530 public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
531 return classNameLocalService;
532 }
533
534
539 public void setClassNameLocalService(
540 com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
541 this.classNameLocalService = classNameLocalService;
542 }
543
544
549 public com.liferay.portal.service.ClassNameService getClassNameService() {
550 return classNameService;
551 }
552
553
558 public void setClassNameService(
559 com.liferay.portal.service.ClassNameService classNameService) {
560 this.classNameService = classNameService;
561 }
562
563
568 public ClassNamePersistence getClassNamePersistence() {
569 return classNamePersistence;
570 }
571
572
577 public void setClassNamePersistence(
578 ClassNamePersistence classNamePersistence) {
579 this.classNamePersistence = classNamePersistence;
580 }
581
582
587 public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
588 return companyLocalService;
589 }
590
591
596 public void setCompanyLocalService(
597 com.liferay.portal.service.CompanyLocalService companyLocalService) {
598 this.companyLocalService = companyLocalService;
599 }
600
601
606 public com.liferay.portal.service.CompanyService getCompanyService() {
607 return companyService;
608 }
609
610
615 public void setCompanyService(
616 com.liferay.portal.service.CompanyService companyService) {
617 this.companyService = companyService;
618 }
619
620
625 public CompanyPersistence getCompanyPersistence() {
626 return companyPersistence;
627 }
628
629
634 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
635 this.companyPersistence = companyPersistence;
636 }
637
638
643 public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
644 return groupLocalService;
645 }
646
647
652 public void setGroupLocalService(
653 com.liferay.portal.service.GroupLocalService groupLocalService) {
654 this.groupLocalService = groupLocalService;
655 }
656
657
662 public com.liferay.portal.service.GroupService getGroupService() {
663 return groupService;
664 }
665
666
671 public void setGroupService(
672 com.liferay.portal.service.GroupService groupService) {
673 this.groupService = groupService;
674 }
675
676
681 public GroupPersistence getGroupPersistence() {
682 return groupPersistence;
683 }
684
685
690 public void setGroupPersistence(GroupPersistence groupPersistence) {
691 this.groupPersistence = groupPersistence;
692 }
693
694
699 public GroupFinder getGroupFinder() {
700 return groupFinder;
701 }
702
703
708 public void setGroupFinder(GroupFinder groupFinder) {
709 this.groupFinder = groupFinder;
710 }
711
712
717 public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
718 return portletPreferencesLocalService;
719 }
720
721
726 public void setPortletPreferencesLocalService(
727 com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
728 this.portletPreferencesLocalService = portletPreferencesLocalService;
729 }
730
731
736 public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
737 return portletPreferencesService;
738 }
739
740
745 public void setPortletPreferencesService(
746 com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
747 this.portletPreferencesService = portletPreferencesService;
748 }
749
750
755 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
756 return portletPreferencesPersistence;
757 }
758
759
764 public void setPortletPreferencesPersistence(
765 PortletPreferencesPersistence portletPreferencesPersistence) {
766 this.portletPreferencesPersistence = portletPreferencesPersistence;
767 }
768
769
774 public PortletPreferencesFinder getPortletPreferencesFinder() {
775 return portletPreferencesFinder;
776 }
777
778
783 public void setPortletPreferencesFinder(
784 PortletPreferencesFinder portletPreferencesFinder) {
785 this.portletPreferencesFinder = portletPreferencesFinder;
786 }
787
788
793 public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
794 return resourceLocalService;
795 }
796
797
802 public void setResourceLocalService(
803 com.liferay.portal.service.ResourceLocalService resourceLocalService) {
804 this.resourceLocalService = resourceLocalService;
805 }
806
807
812 public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
813 return subscriptionLocalService;
814 }
815
816
821 public void setSubscriptionLocalService(
822 com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
823 this.subscriptionLocalService = subscriptionLocalService;
824 }
825
826
831 public SubscriptionPersistence getSubscriptionPersistence() {
832 return subscriptionPersistence;
833 }
834
835
840 public void setSubscriptionPersistence(
841 SubscriptionPersistence subscriptionPersistence) {
842 this.subscriptionPersistence = subscriptionPersistence;
843 }
844
845
850 public com.liferay.portal.service.UserLocalService getUserLocalService() {
851 return userLocalService;
852 }
853
854
859 public void setUserLocalService(
860 com.liferay.portal.service.UserLocalService userLocalService) {
861 this.userLocalService = userLocalService;
862 }
863
864
869 public com.liferay.portal.service.UserService getUserService() {
870 return userService;
871 }
872
873
878 public void setUserService(
879 com.liferay.portal.service.UserService userService) {
880 this.userService = userService;
881 }
882
883
888 public UserPersistence getUserPersistence() {
889 return userPersistence;
890 }
891
892
897 public void setUserPersistence(UserPersistence userPersistence) {
898 this.userPersistence = userPersistence;
899 }
900
901
906 public UserFinder getUserFinder() {
907 return userFinder;
908 }
909
910
915 public void setUserFinder(UserFinder userFinder) {
916 this.userFinder = userFinder;
917 }
918
919
924 public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
925 return assetEntryLocalService;
926 }
927
928
933 public void setAssetEntryLocalService(
934 com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
935 this.assetEntryLocalService = assetEntryLocalService;
936 }
937
938
943 public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
944 return assetEntryService;
945 }
946
947
952 public void setAssetEntryService(
953 com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
954 this.assetEntryService = assetEntryService;
955 }
956
957
962 public AssetEntryPersistence getAssetEntryPersistence() {
963 return assetEntryPersistence;
964 }
965
966
971 public void setAssetEntryPersistence(
972 AssetEntryPersistence assetEntryPersistence) {
973 this.assetEntryPersistence = assetEntryPersistence;
974 }
975
976
981 public AssetEntryFinder getAssetEntryFinder() {
982 return assetEntryFinder;
983 }
984
985
990 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
991 this.assetEntryFinder = assetEntryFinder;
992 }
993
994
999 public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1000 return assetLinkLocalService;
1001 }
1002
1003
1008 public void setAssetLinkLocalService(
1009 com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1010 this.assetLinkLocalService = assetLinkLocalService;
1011 }
1012
1013
1018 public AssetLinkPersistence getAssetLinkPersistence() {
1019 return assetLinkPersistence;
1020 }
1021
1022
1027 public void setAssetLinkPersistence(
1028 AssetLinkPersistence assetLinkPersistence) {
1029 this.assetLinkPersistence = assetLinkPersistence;
1030 }
1031
1032
1037 public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1038 return assetTagLocalService;
1039 }
1040
1041
1046 public void setAssetTagLocalService(
1047 com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1048 this.assetTagLocalService = assetTagLocalService;
1049 }
1050
1051
1056 public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1057 return assetTagService;
1058 }
1059
1060
1065 public void setAssetTagService(
1066 com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1067 this.assetTagService = assetTagService;
1068 }
1069
1070
1075 public AssetTagPersistence getAssetTagPersistence() {
1076 return assetTagPersistence;
1077 }
1078
1079
1084 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1085 this.assetTagPersistence = assetTagPersistence;
1086 }
1087
1088
1093 public AssetTagFinder getAssetTagFinder() {
1094 return assetTagFinder;
1095 }
1096
1097
1102 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1103 this.assetTagFinder = assetTagFinder;
1104 }
1105
1106
1111 public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1112 return expandoValueLocalService;
1113 }
1114
1115
1120 public void setExpandoValueLocalService(
1121 com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1122 this.expandoValueLocalService = expandoValueLocalService;
1123 }
1124
1125
1130 public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1131 return expandoValueService;
1132 }
1133
1134
1139 public void setExpandoValueService(
1140 com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1141 this.expandoValueService = expandoValueService;
1142 }
1143
1144
1149 public ExpandoValuePersistence getExpandoValuePersistence() {
1150 return expandoValuePersistence;
1151 }
1152
1153
1158 public void setExpandoValuePersistence(
1159 ExpandoValuePersistence expandoValuePersistence) {
1160 this.expandoValuePersistence = expandoValuePersistence;
1161 }
1162
1163
1168 public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
1169 return mbMessageLocalService;
1170 }
1171
1172
1177 public void setMBMessageLocalService(
1178 com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1179 this.mbMessageLocalService = mbMessageLocalService;
1180 }
1181
1182
1187 public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1188 return mbMessageService;
1189 }
1190
1191
1196 public void setMBMessageService(
1197 com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1198 this.mbMessageService = mbMessageService;
1199 }
1200
1201
1206 public MBMessagePersistence getMBMessagePersistence() {
1207 return mbMessagePersistence;
1208 }
1209
1210
1215 public void setMBMessagePersistence(
1216 MBMessagePersistence mbMessagePersistence) {
1217 this.mbMessagePersistence = mbMessagePersistence;
1218 }
1219
1220
1225 public MBMessageFinder getMBMessageFinder() {
1226 return mbMessageFinder;
1227 }
1228
1229
1234 public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1235 this.mbMessageFinder = mbMessageFinder;
1236 }
1237
1238
1243 public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1244 return socialActivityLocalService;
1245 }
1246
1247
1252 public void setSocialActivityLocalService(
1253 com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1254 this.socialActivityLocalService = socialActivityLocalService;
1255 }
1256
1257
1262 public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1263 return socialActivityService;
1264 }
1265
1266
1271 public void setSocialActivityService(
1272 com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1273 this.socialActivityService = socialActivityService;
1274 }
1275
1276
1281 public SocialActivityPersistence getSocialActivityPersistence() {
1282 return socialActivityPersistence;
1283 }
1284
1285
1290 public void setSocialActivityPersistence(
1291 SocialActivityPersistence socialActivityPersistence) {
1292 this.socialActivityPersistence = socialActivityPersistence;
1293 }
1294
1295
1300 public SocialActivityFinder getSocialActivityFinder() {
1301 return socialActivityFinder;
1302 }
1303
1304
1309 public void setSocialActivityFinder(
1310 SocialActivityFinder socialActivityFinder) {
1311 this.socialActivityFinder = socialActivityFinder;
1312 }
1313
1314 public void afterPropertiesSet() {
1315 persistedModelLocalServiceRegistry.register("com.liferay.portlet.calendar.model.CalEvent",
1316 calEventLocalService);
1317 }
1318
1319 public void destroy() {
1320 persistedModelLocalServiceRegistry.unregister(
1321 "com.liferay.portlet.calendar.model.CalEvent");
1322 }
1323
1324
1329 @Override
1330 public String getBeanIdentifier() {
1331 return _beanIdentifier;
1332 }
1333
1334
1339 @Override
1340 public void setBeanIdentifier(String beanIdentifier) {
1341 _beanIdentifier = beanIdentifier;
1342 }
1343
1344 protected Class<?> getModelClass() {
1345 return CalEvent.class;
1346 }
1347
1348 protected String getModelClassName() {
1349 return CalEvent.class.getName();
1350 }
1351
1352
1357 protected void runSQL(String sql) {
1358 try {
1359 DataSource dataSource = calEventPersistence.getDataSource();
1360
1361 DB db = DBFactoryUtil.getDB();
1362
1363 sql = db.buildSQL(sql);
1364 sql = PortalUtil.transformSQL(sql);
1365
1366 SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1367 sql, new int[0]);
1368
1369 sqlUpdate.update();
1370 }
1371 catch (Exception e) {
1372 throw new SystemException(e);
1373 }
1374 }
1375
1376 @BeanReference(type = com.liferay.portlet.calendar.service.CalEventLocalService.class)
1377 protected com.liferay.portlet.calendar.service.CalEventLocalService calEventLocalService;
1378 @BeanReference(type = CalEventPersistence.class)
1379 protected CalEventPersistence calEventPersistence;
1380 @BeanReference(type = CalEventFinder.class)
1381 protected CalEventFinder calEventFinder;
1382 @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1383 protected com.liferay.counter.service.CounterLocalService counterLocalService;
1384 @BeanReference(type = com.liferay.mail.service.MailService.class)
1385 protected com.liferay.mail.service.MailService mailService;
1386 @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1387 protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1388 @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1389 protected com.liferay.portal.service.ClassNameService classNameService;
1390 @BeanReference(type = ClassNamePersistence.class)
1391 protected ClassNamePersistence classNamePersistence;
1392 @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1393 protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1394 @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1395 protected com.liferay.portal.service.CompanyService companyService;
1396 @BeanReference(type = CompanyPersistence.class)
1397 protected CompanyPersistence companyPersistence;
1398 @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1399 protected com.liferay.portal.service.GroupLocalService groupLocalService;
1400 @BeanReference(type = com.liferay.portal.service.GroupService.class)
1401 protected com.liferay.portal.service.GroupService groupService;
1402 @BeanReference(type = GroupPersistence.class)
1403 protected GroupPersistence groupPersistence;
1404 @BeanReference(type = GroupFinder.class)
1405 protected GroupFinder groupFinder;
1406 @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1407 protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1408 @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1409 protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1410 @BeanReference(type = PortletPreferencesPersistence.class)
1411 protected PortletPreferencesPersistence portletPreferencesPersistence;
1412 @BeanReference(type = PortletPreferencesFinder.class)
1413 protected PortletPreferencesFinder portletPreferencesFinder;
1414 @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1415 protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1416 @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1417 protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1418 @BeanReference(type = SubscriptionPersistence.class)
1419 protected SubscriptionPersistence subscriptionPersistence;
1420 @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1421 protected com.liferay.portal.service.UserLocalService userLocalService;
1422 @BeanReference(type = com.liferay.portal.service.UserService.class)
1423 protected com.liferay.portal.service.UserService userService;
1424 @BeanReference(type = UserPersistence.class)
1425 protected UserPersistence userPersistence;
1426 @BeanReference(type = UserFinder.class)
1427 protected UserFinder userFinder;
1428 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1429 protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1430 @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1431 protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1432 @BeanReference(type = AssetEntryPersistence.class)
1433 protected AssetEntryPersistence assetEntryPersistence;
1434 @BeanReference(type = AssetEntryFinder.class)
1435 protected AssetEntryFinder assetEntryFinder;
1436 @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1437 protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1438 @BeanReference(type = AssetLinkPersistence.class)
1439 protected AssetLinkPersistence assetLinkPersistence;
1440 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1441 protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1442 @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1443 protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1444 @BeanReference(type = AssetTagPersistence.class)
1445 protected AssetTagPersistence assetTagPersistence;
1446 @BeanReference(type = AssetTagFinder.class)
1447 protected AssetTagFinder assetTagFinder;
1448 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1449 protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1450 @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1451 protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1452 @BeanReference(type = ExpandoValuePersistence.class)
1453 protected ExpandoValuePersistence expandoValuePersistence;
1454 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1455 protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1456 @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1457 protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1458 @BeanReference(type = MBMessagePersistence.class)
1459 protected MBMessagePersistence mbMessagePersistence;
1460 @BeanReference(type = MBMessageFinder.class)
1461 protected MBMessageFinder mbMessageFinder;
1462 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1463 protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1464 @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1465 protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1466 @BeanReference(type = SocialActivityPersistence.class)
1467 protected SocialActivityPersistence socialActivityPersistence;
1468 @BeanReference(type = SocialActivityFinder.class)
1469 protected SocialActivityFinder socialActivityFinder;
1470 @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1471 protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1472 private String _beanIdentifier;
1473 }