001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.calendar.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.mail.service.MailService;
020    
021    import com.liferay.portal.kernel.annotation.BeanReference;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.service.CompanyLocalService;
026    import com.liferay.portal.service.CompanyService;
027    import com.liferay.portal.service.GroupLocalService;
028    import com.liferay.portal.service.GroupService;
029    import com.liferay.portal.service.PortletPreferencesLocalService;
030    import com.liferay.portal.service.PortletPreferencesService;
031    import com.liferay.portal.service.ResourceLocalService;
032    import com.liferay.portal.service.ResourceService;
033    import com.liferay.portal.service.UserLocalService;
034    import com.liferay.portal.service.UserService;
035    import com.liferay.portal.service.base.PrincipalBean;
036    import com.liferay.portal.service.persistence.CompanyPersistence;
037    import com.liferay.portal.service.persistence.GroupFinder;
038    import com.liferay.portal.service.persistence.GroupPersistence;
039    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
040    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
041    import com.liferay.portal.service.persistence.ResourceFinder;
042    import com.liferay.portal.service.persistence.ResourcePersistence;
043    import com.liferay.portal.service.persistence.UserFinder;
044    import com.liferay.portal.service.persistence.UserPersistence;
045    
046    import com.liferay.portlet.asset.service.AssetEntryLocalService;
047    import com.liferay.portlet.asset.service.AssetEntryService;
048    import com.liferay.portlet.asset.service.AssetTagLocalService;
049    import com.liferay.portlet.asset.service.AssetTagService;
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.AssetTagFinder;
053    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
054    import com.liferay.portlet.calendar.service.CalEventLocalService;
055    import com.liferay.portlet.calendar.service.CalEventService;
056    import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
057    import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
058    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
059    import com.liferay.portlet.expando.service.ExpandoValueService;
060    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
061    import com.liferay.portlet.social.service.SocialActivityLocalService;
062    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
063    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
064    
065    import javax.sql.DataSource;
066    
067    /**
068     * @author Brian Wing Shun Chan
069     */
070    public abstract class CalEventServiceBaseImpl extends PrincipalBean
071            implements CalEventService {
072            public CalEventLocalService getCalEventLocalService() {
073                    return calEventLocalService;
074            }
075    
076            public void setCalEventLocalService(
077                    CalEventLocalService calEventLocalService) {
078                    this.calEventLocalService = calEventLocalService;
079            }
080    
081            public CalEventService getCalEventService() {
082                    return calEventService;
083            }
084    
085            public void setCalEventService(CalEventService calEventService) {
086                    this.calEventService = calEventService;
087            }
088    
089            public CalEventPersistence getCalEventPersistence() {
090                    return calEventPersistence;
091            }
092    
093            public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
094                    this.calEventPersistence = calEventPersistence;
095            }
096    
097            public CalEventFinder getCalEventFinder() {
098                    return calEventFinder;
099            }
100    
101            public void setCalEventFinder(CalEventFinder calEventFinder) {
102                    this.calEventFinder = calEventFinder;
103            }
104    
105            public CounterLocalService getCounterLocalService() {
106                    return counterLocalService;
107            }
108    
109            public void setCounterLocalService(CounterLocalService counterLocalService) {
110                    this.counterLocalService = counterLocalService;
111            }
112    
113            public MailService getMailService() {
114                    return mailService;
115            }
116    
117            public void setMailService(MailService mailService) {
118                    this.mailService = mailService;
119            }
120    
121            public CompanyLocalService getCompanyLocalService() {
122                    return companyLocalService;
123            }
124    
125            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
126                    this.companyLocalService = companyLocalService;
127            }
128    
129            public CompanyService getCompanyService() {
130                    return companyService;
131            }
132    
133            public void setCompanyService(CompanyService companyService) {
134                    this.companyService = companyService;
135            }
136    
137            public CompanyPersistence getCompanyPersistence() {
138                    return companyPersistence;
139            }
140    
141            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
142                    this.companyPersistence = companyPersistence;
143            }
144    
145            public GroupLocalService getGroupLocalService() {
146                    return groupLocalService;
147            }
148    
149            public void setGroupLocalService(GroupLocalService groupLocalService) {
150                    this.groupLocalService = groupLocalService;
151            }
152    
153            public GroupService getGroupService() {
154                    return groupService;
155            }
156    
157            public void setGroupService(GroupService groupService) {
158                    this.groupService = groupService;
159            }
160    
161            public GroupPersistence getGroupPersistence() {
162                    return groupPersistence;
163            }
164    
165            public void setGroupPersistence(GroupPersistence groupPersistence) {
166                    this.groupPersistence = groupPersistence;
167            }
168    
169            public GroupFinder getGroupFinder() {
170                    return groupFinder;
171            }
172    
173            public void setGroupFinder(GroupFinder groupFinder) {
174                    this.groupFinder = groupFinder;
175            }
176    
177            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
178                    return portletPreferencesLocalService;
179            }
180    
181            public void setPortletPreferencesLocalService(
182                    PortletPreferencesLocalService portletPreferencesLocalService) {
183                    this.portletPreferencesLocalService = portletPreferencesLocalService;
184            }
185    
186            public PortletPreferencesService getPortletPreferencesService() {
187                    return portletPreferencesService;
188            }
189    
190            public void setPortletPreferencesService(
191                    PortletPreferencesService portletPreferencesService) {
192                    this.portletPreferencesService = portletPreferencesService;
193            }
194    
195            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
196                    return portletPreferencesPersistence;
197            }
198    
199            public void setPortletPreferencesPersistence(
200                    PortletPreferencesPersistence portletPreferencesPersistence) {
201                    this.portletPreferencesPersistence = portletPreferencesPersistence;
202            }
203    
204            public PortletPreferencesFinder getPortletPreferencesFinder() {
205                    return portletPreferencesFinder;
206            }
207    
208            public void setPortletPreferencesFinder(
209                    PortletPreferencesFinder portletPreferencesFinder) {
210                    this.portletPreferencesFinder = portletPreferencesFinder;
211            }
212    
213            public ResourceLocalService getResourceLocalService() {
214                    return resourceLocalService;
215            }
216    
217            public void setResourceLocalService(
218                    ResourceLocalService resourceLocalService) {
219                    this.resourceLocalService = resourceLocalService;
220            }
221    
222            public ResourceService getResourceService() {
223                    return resourceService;
224            }
225    
226            public void setResourceService(ResourceService resourceService) {
227                    this.resourceService = resourceService;
228            }
229    
230            public ResourcePersistence getResourcePersistence() {
231                    return resourcePersistence;
232            }
233    
234            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
235                    this.resourcePersistence = resourcePersistence;
236            }
237    
238            public ResourceFinder getResourceFinder() {
239                    return resourceFinder;
240            }
241    
242            public void setResourceFinder(ResourceFinder resourceFinder) {
243                    this.resourceFinder = resourceFinder;
244            }
245    
246            public UserLocalService getUserLocalService() {
247                    return userLocalService;
248            }
249    
250            public void setUserLocalService(UserLocalService userLocalService) {
251                    this.userLocalService = userLocalService;
252            }
253    
254            public UserService getUserService() {
255                    return userService;
256            }
257    
258            public void setUserService(UserService userService) {
259                    this.userService = userService;
260            }
261    
262            public UserPersistence getUserPersistence() {
263                    return userPersistence;
264            }
265    
266            public void setUserPersistence(UserPersistence userPersistence) {
267                    this.userPersistence = userPersistence;
268            }
269    
270            public UserFinder getUserFinder() {
271                    return userFinder;
272            }
273    
274            public void setUserFinder(UserFinder userFinder) {
275                    this.userFinder = userFinder;
276            }
277    
278            public AssetEntryLocalService getAssetEntryLocalService() {
279                    return assetEntryLocalService;
280            }
281    
282            public void setAssetEntryLocalService(
283                    AssetEntryLocalService assetEntryLocalService) {
284                    this.assetEntryLocalService = assetEntryLocalService;
285            }
286    
287            public AssetEntryService getAssetEntryService() {
288                    return assetEntryService;
289            }
290    
291            public void setAssetEntryService(AssetEntryService assetEntryService) {
292                    this.assetEntryService = assetEntryService;
293            }
294    
295            public AssetEntryPersistence getAssetEntryPersistence() {
296                    return assetEntryPersistence;
297            }
298    
299            public void setAssetEntryPersistence(
300                    AssetEntryPersistence assetEntryPersistence) {
301                    this.assetEntryPersistence = assetEntryPersistence;
302            }
303    
304            public AssetEntryFinder getAssetEntryFinder() {
305                    return assetEntryFinder;
306            }
307    
308            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
309                    this.assetEntryFinder = assetEntryFinder;
310            }
311    
312            public AssetTagLocalService getAssetTagLocalService() {
313                    return assetTagLocalService;
314            }
315    
316            public void setAssetTagLocalService(
317                    AssetTagLocalService assetTagLocalService) {
318                    this.assetTagLocalService = assetTagLocalService;
319            }
320    
321            public AssetTagService getAssetTagService() {
322                    return assetTagService;
323            }
324    
325            public void setAssetTagService(AssetTagService assetTagService) {
326                    this.assetTagService = assetTagService;
327            }
328    
329            public AssetTagPersistence getAssetTagPersistence() {
330                    return assetTagPersistence;
331            }
332    
333            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
334                    this.assetTagPersistence = assetTagPersistence;
335            }
336    
337            public AssetTagFinder getAssetTagFinder() {
338                    return assetTagFinder;
339            }
340    
341            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
342                    this.assetTagFinder = assetTagFinder;
343            }
344    
345            public ExpandoValueLocalService getExpandoValueLocalService() {
346                    return expandoValueLocalService;
347            }
348    
349            public void setExpandoValueLocalService(
350                    ExpandoValueLocalService expandoValueLocalService) {
351                    this.expandoValueLocalService = expandoValueLocalService;
352            }
353    
354            public ExpandoValueService getExpandoValueService() {
355                    return expandoValueService;
356            }
357    
358            public void setExpandoValueService(ExpandoValueService expandoValueService) {
359                    this.expandoValueService = expandoValueService;
360            }
361    
362            public ExpandoValuePersistence getExpandoValuePersistence() {
363                    return expandoValuePersistence;
364            }
365    
366            public void setExpandoValuePersistence(
367                    ExpandoValuePersistence expandoValuePersistence) {
368                    this.expandoValuePersistence = expandoValuePersistence;
369            }
370    
371            public SocialActivityLocalService getSocialActivityLocalService() {
372                    return socialActivityLocalService;
373            }
374    
375            public void setSocialActivityLocalService(
376                    SocialActivityLocalService socialActivityLocalService) {
377                    this.socialActivityLocalService = socialActivityLocalService;
378            }
379    
380            public SocialActivityPersistence getSocialActivityPersistence() {
381                    return socialActivityPersistence;
382            }
383    
384            public void setSocialActivityPersistence(
385                    SocialActivityPersistence socialActivityPersistence) {
386                    this.socialActivityPersistence = socialActivityPersistence;
387            }
388    
389            public SocialActivityFinder getSocialActivityFinder() {
390                    return socialActivityFinder;
391            }
392    
393            public void setSocialActivityFinder(
394                    SocialActivityFinder socialActivityFinder) {
395                    this.socialActivityFinder = socialActivityFinder;
396            }
397    
398            protected void runSQL(String sql) throws SystemException {
399                    try {
400                            DataSource dataSource = calEventPersistence.getDataSource();
401    
402                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
403                                            sql, new int[0]);
404    
405                            sqlUpdate.update();
406                    }
407                    catch (Exception e) {
408                            throw new SystemException(e);
409                    }
410            }
411    
412            @BeanReference(type = CalEventLocalService.class)
413            protected CalEventLocalService calEventLocalService;
414            @BeanReference(type = CalEventService.class)
415            protected CalEventService calEventService;
416            @BeanReference(type = CalEventPersistence.class)
417            protected CalEventPersistence calEventPersistence;
418            @BeanReference(type = CalEventFinder.class)
419            protected CalEventFinder calEventFinder;
420            @BeanReference(type = CounterLocalService.class)
421            protected CounterLocalService counterLocalService;
422            @BeanReference(type = MailService.class)
423            protected MailService mailService;
424            @BeanReference(type = CompanyLocalService.class)
425            protected CompanyLocalService companyLocalService;
426            @BeanReference(type = CompanyService.class)
427            protected CompanyService companyService;
428            @BeanReference(type = CompanyPersistence.class)
429            protected CompanyPersistence companyPersistence;
430            @BeanReference(type = GroupLocalService.class)
431            protected GroupLocalService groupLocalService;
432            @BeanReference(type = GroupService.class)
433            protected GroupService groupService;
434            @BeanReference(type = GroupPersistence.class)
435            protected GroupPersistence groupPersistence;
436            @BeanReference(type = GroupFinder.class)
437            protected GroupFinder groupFinder;
438            @BeanReference(type = PortletPreferencesLocalService.class)
439            protected PortletPreferencesLocalService portletPreferencesLocalService;
440            @BeanReference(type = PortletPreferencesService.class)
441            protected PortletPreferencesService portletPreferencesService;
442            @BeanReference(type = PortletPreferencesPersistence.class)
443            protected PortletPreferencesPersistence portletPreferencesPersistence;
444            @BeanReference(type = PortletPreferencesFinder.class)
445            protected PortletPreferencesFinder portletPreferencesFinder;
446            @BeanReference(type = ResourceLocalService.class)
447            protected ResourceLocalService resourceLocalService;
448            @BeanReference(type = ResourceService.class)
449            protected ResourceService resourceService;
450            @BeanReference(type = ResourcePersistence.class)
451            protected ResourcePersistence resourcePersistence;
452            @BeanReference(type = ResourceFinder.class)
453            protected ResourceFinder resourceFinder;
454            @BeanReference(type = UserLocalService.class)
455            protected UserLocalService userLocalService;
456            @BeanReference(type = UserService.class)
457            protected UserService userService;
458            @BeanReference(type = UserPersistence.class)
459            protected UserPersistence userPersistence;
460            @BeanReference(type = UserFinder.class)
461            protected UserFinder userFinder;
462            @BeanReference(type = AssetEntryLocalService.class)
463            protected AssetEntryLocalService assetEntryLocalService;
464            @BeanReference(type = AssetEntryService.class)
465            protected AssetEntryService assetEntryService;
466            @BeanReference(type = AssetEntryPersistence.class)
467            protected AssetEntryPersistence assetEntryPersistence;
468            @BeanReference(type = AssetEntryFinder.class)
469            protected AssetEntryFinder assetEntryFinder;
470            @BeanReference(type = AssetTagLocalService.class)
471            protected AssetTagLocalService assetTagLocalService;
472            @BeanReference(type = AssetTagService.class)
473            protected AssetTagService assetTagService;
474            @BeanReference(type = AssetTagPersistence.class)
475            protected AssetTagPersistence assetTagPersistence;
476            @BeanReference(type = AssetTagFinder.class)
477            protected AssetTagFinder assetTagFinder;
478            @BeanReference(type = ExpandoValueLocalService.class)
479            protected ExpandoValueLocalService expandoValueLocalService;
480            @BeanReference(type = ExpandoValueService.class)
481            protected ExpandoValueService expandoValueService;
482            @BeanReference(type = ExpandoValuePersistence.class)
483            protected ExpandoValuePersistence expandoValuePersistence;
484            @BeanReference(type = SocialActivityLocalService.class)
485            protected SocialActivityLocalService socialActivityLocalService;
486            @BeanReference(type = SocialActivityPersistence.class)
487            protected SocialActivityPersistence socialActivityPersistence;
488            @BeanReference(type = SocialActivityFinder.class)
489            protected SocialActivityFinder socialActivityFinder;
490    }