1
14
15 package com.liferay.portlet.calendar.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18 import com.liferay.counter.service.CounterService;
19
20 import com.liferay.mail.service.MailService;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.BeanReference;
25 import com.liferay.portal.kernel.dao.db.DB;
26 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
27 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28 import com.liferay.portal.kernel.util.OrderByComparator;
29 import com.liferay.portal.service.CompanyLocalService;
30 import com.liferay.portal.service.CompanyService;
31 import com.liferay.portal.service.GroupLocalService;
32 import com.liferay.portal.service.GroupService;
33 import com.liferay.portal.service.PortletPreferencesLocalService;
34 import com.liferay.portal.service.PortletPreferencesService;
35 import com.liferay.portal.service.ResourceLocalService;
36 import com.liferay.portal.service.ResourceService;
37 import com.liferay.portal.service.UserLocalService;
38 import com.liferay.portal.service.UserService;
39 import com.liferay.portal.service.persistence.CompanyPersistence;
40 import com.liferay.portal.service.persistence.GroupFinder;
41 import com.liferay.portal.service.persistence.GroupPersistence;
42 import com.liferay.portal.service.persistence.PortletPreferencesFinder;
43 import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
44 import com.liferay.portal.service.persistence.ResourceFinder;
45 import com.liferay.portal.service.persistence.ResourcePersistence;
46 import com.liferay.portal.service.persistence.UserFinder;
47 import com.liferay.portal.service.persistence.UserPersistence;
48
49 import com.liferay.portlet.calendar.model.CalEvent;
50 import com.liferay.portlet.calendar.service.CalEventLocalService;
51 import com.liferay.portlet.calendar.service.CalEventService;
52 import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
53 import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
54 import com.liferay.portlet.expando.service.ExpandoValueLocalService;
55 import com.liferay.portlet.expando.service.ExpandoValueService;
56 import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
57 import com.liferay.portlet.social.service.SocialActivityLocalService;
58 import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
59 import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
60 import com.liferay.portlet.tags.service.TagsAssetLocalService;
61 import com.liferay.portlet.tags.service.TagsAssetService;
62 import com.liferay.portlet.tags.service.TagsEntryLocalService;
63 import com.liferay.portlet.tags.service.TagsEntryService;
64 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
65 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
66 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
67 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
68
69 import java.util.List;
70
71
77 public abstract class CalEventLocalServiceBaseImpl
78 implements CalEventLocalService {
79 public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
80 calEvent.setNew(true);
81
82 return calEventPersistence.update(calEvent, false);
83 }
84
85 public CalEvent createCalEvent(long eventId) {
86 return calEventPersistence.create(eventId);
87 }
88
89 public void deleteCalEvent(long eventId)
90 throws PortalException, SystemException {
91 calEventPersistence.remove(eventId);
92 }
93
94 public void deleteCalEvent(CalEvent calEvent) throws SystemException {
95 calEventPersistence.remove(calEvent);
96 }
97
98 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
99 throws SystemException {
100 return calEventPersistence.findWithDynamicQuery(dynamicQuery);
101 }
102
103 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
104 int end) throws SystemException {
105 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
106 }
107
108 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
109 int end, OrderByComparator orderByComparator) throws SystemException {
110 return calEventPersistence.findWithDynamicQuery(dynamicQuery, start,
111 end, orderByComparator);
112 }
113
114 public int dynamicQueryCount(DynamicQuery dynamicQuery)
115 throws SystemException {
116 return calEventPersistence.countWithDynamicQuery(dynamicQuery);
117 }
118
119 public CalEvent getCalEvent(long eventId)
120 throws PortalException, SystemException {
121 return calEventPersistence.findByPrimaryKey(eventId);
122 }
123
124 public List<CalEvent> getCalEvents(int start, int end)
125 throws SystemException {
126 return calEventPersistence.findAll(start, end);
127 }
128
129 public int getCalEventsCount() throws SystemException {
130 return calEventPersistence.countAll();
131 }
132
133 public CalEvent updateCalEvent(CalEvent calEvent) throws SystemException {
134 calEvent.setNew(false);
135
136 return calEventPersistence.update(calEvent, true);
137 }
138
139 public CalEvent updateCalEvent(CalEvent calEvent, boolean merge)
140 throws SystemException {
141 calEvent.setNew(false);
142
143 return calEventPersistence.update(calEvent, merge);
144 }
145
146 public CalEventLocalService getCalEventLocalService() {
147 return calEventLocalService;
148 }
149
150 public void setCalEventLocalService(
151 CalEventLocalService calEventLocalService) {
152 this.calEventLocalService = calEventLocalService;
153 }
154
155 public CalEventService getCalEventService() {
156 return calEventService;
157 }
158
159 public void setCalEventService(CalEventService calEventService) {
160 this.calEventService = calEventService;
161 }
162
163 public CalEventPersistence getCalEventPersistence() {
164 return calEventPersistence;
165 }
166
167 public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
168 this.calEventPersistence = calEventPersistence;
169 }
170
171 public CalEventFinder getCalEventFinder() {
172 return calEventFinder;
173 }
174
175 public void setCalEventFinder(CalEventFinder calEventFinder) {
176 this.calEventFinder = calEventFinder;
177 }
178
179 public CounterLocalService getCounterLocalService() {
180 return counterLocalService;
181 }
182
183 public void setCounterLocalService(CounterLocalService counterLocalService) {
184 this.counterLocalService = counterLocalService;
185 }
186
187 public CounterService getCounterService() {
188 return counterService;
189 }
190
191 public void setCounterService(CounterService counterService) {
192 this.counterService = counterService;
193 }
194
195 public MailService getMailService() {
196 return mailService;
197 }
198
199 public void setMailService(MailService mailService) {
200 this.mailService = mailService;
201 }
202
203 public CompanyLocalService getCompanyLocalService() {
204 return companyLocalService;
205 }
206
207 public void setCompanyLocalService(CompanyLocalService companyLocalService) {
208 this.companyLocalService = companyLocalService;
209 }
210
211 public CompanyService getCompanyService() {
212 return companyService;
213 }
214
215 public void setCompanyService(CompanyService companyService) {
216 this.companyService = companyService;
217 }
218
219 public CompanyPersistence getCompanyPersistence() {
220 return companyPersistence;
221 }
222
223 public void setCompanyPersistence(CompanyPersistence companyPersistence) {
224 this.companyPersistence = companyPersistence;
225 }
226
227 public GroupLocalService getGroupLocalService() {
228 return groupLocalService;
229 }
230
231 public void setGroupLocalService(GroupLocalService groupLocalService) {
232 this.groupLocalService = groupLocalService;
233 }
234
235 public GroupService getGroupService() {
236 return groupService;
237 }
238
239 public void setGroupService(GroupService groupService) {
240 this.groupService = groupService;
241 }
242
243 public GroupPersistence getGroupPersistence() {
244 return groupPersistence;
245 }
246
247 public void setGroupPersistence(GroupPersistence groupPersistence) {
248 this.groupPersistence = groupPersistence;
249 }
250
251 public GroupFinder getGroupFinder() {
252 return groupFinder;
253 }
254
255 public void setGroupFinder(GroupFinder groupFinder) {
256 this.groupFinder = groupFinder;
257 }
258
259 public PortletPreferencesLocalService getPortletPreferencesLocalService() {
260 return portletPreferencesLocalService;
261 }
262
263 public void setPortletPreferencesLocalService(
264 PortletPreferencesLocalService portletPreferencesLocalService) {
265 this.portletPreferencesLocalService = portletPreferencesLocalService;
266 }
267
268 public PortletPreferencesService getPortletPreferencesService() {
269 return portletPreferencesService;
270 }
271
272 public void setPortletPreferencesService(
273 PortletPreferencesService portletPreferencesService) {
274 this.portletPreferencesService = portletPreferencesService;
275 }
276
277 public PortletPreferencesPersistence getPortletPreferencesPersistence() {
278 return portletPreferencesPersistence;
279 }
280
281 public void setPortletPreferencesPersistence(
282 PortletPreferencesPersistence portletPreferencesPersistence) {
283 this.portletPreferencesPersistence = portletPreferencesPersistence;
284 }
285
286 public PortletPreferencesFinder getPortletPreferencesFinder() {
287 return portletPreferencesFinder;
288 }
289
290 public void setPortletPreferencesFinder(
291 PortletPreferencesFinder portletPreferencesFinder) {
292 this.portletPreferencesFinder = portletPreferencesFinder;
293 }
294
295 public ResourceLocalService getResourceLocalService() {
296 return resourceLocalService;
297 }
298
299 public void setResourceLocalService(
300 ResourceLocalService resourceLocalService) {
301 this.resourceLocalService = resourceLocalService;
302 }
303
304 public ResourceService getResourceService() {
305 return resourceService;
306 }
307
308 public void setResourceService(ResourceService resourceService) {
309 this.resourceService = resourceService;
310 }
311
312 public ResourcePersistence getResourcePersistence() {
313 return resourcePersistence;
314 }
315
316 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
317 this.resourcePersistence = resourcePersistence;
318 }
319
320 public ResourceFinder getResourceFinder() {
321 return resourceFinder;
322 }
323
324 public void setResourceFinder(ResourceFinder resourceFinder) {
325 this.resourceFinder = resourceFinder;
326 }
327
328 public UserLocalService getUserLocalService() {
329 return userLocalService;
330 }
331
332 public void setUserLocalService(UserLocalService userLocalService) {
333 this.userLocalService = userLocalService;
334 }
335
336 public UserService getUserService() {
337 return userService;
338 }
339
340 public void setUserService(UserService userService) {
341 this.userService = userService;
342 }
343
344 public UserPersistence getUserPersistence() {
345 return userPersistence;
346 }
347
348 public void setUserPersistence(UserPersistence userPersistence) {
349 this.userPersistence = userPersistence;
350 }
351
352 public UserFinder getUserFinder() {
353 return userFinder;
354 }
355
356 public void setUserFinder(UserFinder userFinder) {
357 this.userFinder = userFinder;
358 }
359
360 public ExpandoValueLocalService getExpandoValueLocalService() {
361 return expandoValueLocalService;
362 }
363
364 public void setExpandoValueLocalService(
365 ExpandoValueLocalService expandoValueLocalService) {
366 this.expandoValueLocalService = expandoValueLocalService;
367 }
368
369 public ExpandoValueService getExpandoValueService() {
370 return expandoValueService;
371 }
372
373 public void setExpandoValueService(ExpandoValueService expandoValueService) {
374 this.expandoValueService = expandoValueService;
375 }
376
377 public ExpandoValuePersistence getExpandoValuePersistence() {
378 return expandoValuePersistence;
379 }
380
381 public void setExpandoValuePersistence(
382 ExpandoValuePersistence expandoValuePersistence) {
383 this.expandoValuePersistence = expandoValuePersistence;
384 }
385
386 public SocialActivityLocalService getSocialActivityLocalService() {
387 return socialActivityLocalService;
388 }
389
390 public void setSocialActivityLocalService(
391 SocialActivityLocalService socialActivityLocalService) {
392 this.socialActivityLocalService = socialActivityLocalService;
393 }
394
395 public SocialActivityPersistence getSocialActivityPersistence() {
396 return socialActivityPersistence;
397 }
398
399 public void setSocialActivityPersistence(
400 SocialActivityPersistence socialActivityPersistence) {
401 this.socialActivityPersistence = socialActivityPersistence;
402 }
403
404 public SocialActivityFinder getSocialActivityFinder() {
405 return socialActivityFinder;
406 }
407
408 public void setSocialActivityFinder(
409 SocialActivityFinder socialActivityFinder) {
410 this.socialActivityFinder = socialActivityFinder;
411 }
412
413 public TagsAssetLocalService getTagsAssetLocalService() {
414 return tagsAssetLocalService;
415 }
416
417 public void setTagsAssetLocalService(
418 TagsAssetLocalService tagsAssetLocalService) {
419 this.tagsAssetLocalService = tagsAssetLocalService;
420 }
421
422 public TagsAssetService getTagsAssetService() {
423 return tagsAssetService;
424 }
425
426 public void setTagsAssetService(TagsAssetService tagsAssetService) {
427 this.tagsAssetService = tagsAssetService;
428 }
429
430 public TagsAssetPersistence getTagsAssetPersistence() {
431 return tagsAssetPersistence;
432 }
433
434 public void setTagsAssetPersistence(
435 TagsAssetPersistence tagsAssetPersistence) {
436 this.tagsAssetPersistence = tagsAssetPersistence;
437 }
438
439 public TagsAssetFinder getTagsAssetFinder() {
440 return tagsAssetFinder;
441 }
442
443 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
444 this.tagsAssetFinder = tagsAssetFinder;
445 }
446
447 public TagsEntryLocalService getTagsEntryLocalService() {
448 return tagsEntryLocalService;
449 }
450
451 public void setTagsEntryLocalService(
452 TagsEntryLocalService tagsEntryLocalService) {
453 this.tagsEntryLocalService = tagsEntryLocalService;
454 }
455
456 public TagsEntryService getTagsEntryService() {
457 return tagsEntryService;
458 }
459
460 public void setTagsEntryService(TagsEntryService tagsEntryService) {
461 this.tagsEntryService = tagsEntryService;
462 }
463
464 public TagsEntryPersistence getTagsEntryPersistence() {
465 return tagsEntryPersistence;
466 }
467
468 public void setTagsEntryPersistence(
469 TagsEntryPersistence tagsEntryPersistence) {
470 this.tagsEntryPersistence = tagsEntryPersistence;
471 }
472
473 public TagsEntryFinder getTagsEntryFinder() {
474 return tagsEntryFinder;
475 }
476
477 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
478 this.tagsEntryFinder = tagsEntryFinder;
479 }
480
481 protected void runSQL(String sql) throws SystemException {
482 try {
483 DB db = DBFactoryUtil.getDB();
484
485 db.runSQL(sql);
486 }
487 catch (Exception e) {
488 throw new SystemException(e);
489 }
490 }
491
492 @BeanReference(type = CalEventLocalService.class)
493 protected CalEventLocalService calEventLocalService;
494 @BeanReference(type = CalEventService.class)
495 protected CalEventService calEventService;
496 @BeanReference(type = CalEventPersistence.class)
497 protected CalEventPersistence calEventPersistence;
498 @BeanReference(type = CalEventFinder.class)
499 protected CalEventFinder calEventFinder;
500 @BeanReference(type = CounterLocalService.class)
501 protected CounterLocalService counterLocalService;
502 @BeanReference(type = CounterService.class)
503 protected CounterService counterService;
504 @BeanReference(type = MailService.class)
505 protected MailService mailService;
506 @BeanReference(type = CompanyLocalService.class)
507 protected CompanyLocalService companyLocalService;
508 @BeanReference(type = CompanyService.class)
509 protected CompanyService companyService;
510 @BeanReference(type = CompanyPersistence.class)
511 protected CompanyPersistence companyPersistence;
512 @BeanReference(type = GroupLocalService.class)
513 protected GroupLocalService groupLocalService;
514 @BeanReference(type = GroupService.class)
515 protected GroupService groupService;
516 @BeanReference(type = GroupPersistence.class)
517 protected GroupPersistence groupPersistence;
518 @BeanReference(type = GroupFinder.class)
519 protected GroupFinder groupFinder;
520 @BeanReference(type = PortletPreferencesLocalService.class)
521 protected PortletPreferencesLocalService portletPreferencesLocalService;
522 @BeanReference(type = PortletPreferencesService.class)
523 protected PortletPreferencesService portletPreferencesService;
524 @BeanReference(type = PortletPreferencesPersistence.class)
525 protected PortletPreferencesPersistence portletPreferencesPersistence;
526 @BeanReference(type = PortletPreferencesFinder.class)
527 protected PortletPreferencesFinder portletPreferencesFinder;
528 @BeanReference(type = ResourceLocalService.class)
529 protected ResourceLocalService resourceLocalService;
530 @BeanReference(type = ResourceService.class)
531 protected ResourceService resourceService;
532 @BeanReference(type = ResourcePersistence.class)
533 protected ResourcePersistence resourcePersistence;
534 @BeanReference(type = ResourceFinder.class)
535 protected ResourceFinder resourceFinder;
536 @BeanReference(type = UserLocalService.class)
537 protected UserLocalService userLocalService;
538 @BeanReference(type = UserService.class)
539 protected UserService userService;
540 @BeanReference(type = UserPersistence.class)
541 protected UserPersistence userPersistence;
542 @BeanReference(type = UserFinder.class)
543 protected UserFinder userFinder;
544 @BeanReference(type = ExpandoValueLocalService.class)
545 protected ExpandoValueLocalService expandoValueLocalService;
546 @BeanReference(type = ExpandoValueService.class)
547 protected ExpandoValueService expandoValueService;
548 @BeanReference(type = ExpandoValuePersistence.class)
549 protected ExpandoValuePersistence expandoValuePersistence;
550 @BeanReference(type = SocialActivityLocalService.class)
551 protected SocialActivityLocalService socialActivityLocalService;
552 @BeanReference(type = SocialActivityPersistence.class)
553 protected SocialActivityPersistence socialActivityPersistence;
554 @BeanReference(type = SocialActivityFinder.class)
555 protected SocialActivityFinder socialActivityFinder;
556 @BeanReference(type = TagsAssetLocalService.class)
557 protected TagsAssetLocalService tagsAssetLocalService;
558 @BeanReference(type = TagsAssetService.class)
559 protected TagsAssetService tagsAssetService;
560 @BeanReference(type = TagsAssetPersistence.class)
561 protected TagsAssetPersistence tagsAssetPersistence;
562 @BeanReference(type = TagsAssetFinder.class)
563 protected TagsAssetFinder tagsAssetFinder;
564 @BeanReference(type = TagsEntryLocalService.class)
565 protected TagsEntryLocalService tagsEntryLocalService;
566 @BeanReference(type = TagsEntryService.class)
567 protected TagsEntryService tagsEntryService;
568 @BeanReference(type = TagsEntryPersistence.class)
569 protected TagsEntryPersistence tagsEntryPersistence;
570 @BeanReference(type = TagsEntryFinder.class)
571 protected TagsEntryFinder tagsEntryFinder;
572 }