1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
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.SystemException;
23  import com.liferay.portal.kernel.annotation.BeanReference;
24  import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
25  import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
26  import com.liferay.portal.service.CompanyLocalService;
27  import com.liferay.portal.service.CompanyService;
28  import com.liferay.portal.service.GroupLocalService;
29  import com.liferay.portal.service.GroupService;
30  import com.liferay.portal.service.PortletPreferencesLocalService;
31  import com.liferay.portal.service.PortletPreferencesService;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.base.PrincipalBean;
37  import com.liferay.portal.service.persistence.CompanyPersistence;
38  import com.liferay.portal.service.persistence.GroupFinder;
39  import com.liferay.portal.service.persistence.GroupPersistence;
40  import com.liferay.portal.service.persistence.PortletPreferencesFinder;
41  import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
42  import com.liferay.portal.service.persistence.ResourceFinder;
43  import com.liferay.portal.service.persistence.ResourcePersistence;
44  import com.liferay.portal.service.persistence.UserFinder;
45  import com.liferay.portal.service.persistence.UserPersistence;
46  
47  import com.liferay.portlet.calendar.service.CalEventLocalService;
48  import com.liferay.portlet.calendar.service.CalEventService;
49  import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
50  import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
51  import com.liferay.portlet.expando.service.ExpandoValueLocalService;
52  import com.liferay.portlet.expando.service.ExpandoValueService;
53  import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
54  import com.liferay.portlet.social.service.SocialActivityLocalService;
55  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
56  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
57  import com.liferay.portlet.tags.service.TagsAssetLocalService;
58  import com.liferay.portlet.tags.service.TagsAssetService;
59  import com.liferay.portlet.tags.service.TagsEntryLocalService;
60  import com.liferay.portlet.tags.service.TagsEntryService;
61  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
62  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
63  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
64  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
65  
66  import javax.sql.DataSource;
67  
68  /**
69   * <a href="CalEventServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
70   *
71   * @author Brian Wing Shun Chan
72   */
73  public abstract class CalEventServiceBaseImpl extends PrincipalBean
74      implements CalEventService {
75      public CalEventLocalService getCalEventLocalService() {
76          return calEventLocalService;
77      }
78  
79      public void setCalEventLocalService(
80          CalEventLocalService calEventLocalService) {
81          this.calEventLocalService = calEventLocalService;
82      }
83  
84      public CalEventService getCalEventService() {
85          return calEventService;
86      }
87  
88      public void setCalEventService(CalEventService calEventService) {
89          this.calEventService = calEventService;
90      }
91  
92      public CalEventPersistence getCalEventPersistence() {
93          return calEventPersistence;
94      }
95  
96      public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
97          this.calEventPersistence = calEventPersistence;
98      }
99  
100     public CalEventFinder getCalEventFinder() {
101         return calEventFinder;
102     }
103 
104     public void setCalEventFinder(CalEventFinder calEventFinder) {
105         this.calEventFinder = calEventFinder;
106     }
107 
108     public CounterLocalService getCounterLocalService() {
109         return counterLocalService;
110     }
111 
112     public void setCounterLocalService(CounterLocalService counterLocalService) {
113         this.counterLocalService = counterLocalService;
114     }
115 
116     public CounterService getCounterService() {
117         return counterService;
118     }
119 
120     public void setCounterService(CounterService counterService) {
121         this.counterService = counterService;
122     }
123 
124     public MailService getMailService() {
125         return mailService;
126     }
127 
128     public void setMailService(MailService mailService) {
129         this.mailService = mailService;
130     }
131 
132     public CompanyLocalService getCompanyLocalService() {
133         return companyLocalService;
134     }
135 
136     public void setCompanyLocalService(CompanyLocalService companyLocalService) {
137         this.companyLocalService = companyLocalService;
138     }
139 
140     public CompanyService getCompanyService() {
141         return companyService;
142     }
143 
144     public void setCompanyService(CompanyService companyService) {
145         this.companyService = companyService;
146     }
147 
148     public CompanyPersistence getCompanyPersistence() {
149         return companyPersistence;
150     }
151 
152     public void setCompanyPersistence(CompanyPersistence companyPersistence) {
153         this.companyPersistence = companyPersistence;
154     }
155 
156     public GroupLocalService getGroupLocalService() {
157         return groupLocalService;
158     }
159 
160     public void setGroupLocalService(GroupLocalService groupLocalService) {
161         this.groupLocalService = groupLocalService;
162     }
163 
164     public GroupService getGroupService() {
165         return groupService;
166     }
167 
168     public void setGroupService(GroupService groupService) {
169         this.groupService = groupService;
170     }
171 
172     public GroupPersistence getGroupPersistence() {
173         return groupPersistence;
174     }
175 
176     public void setGroupPersistence(GroupPersistence groupPersistence) {
177         this.groupPersistence = groupPersistence;
178     }
179 
180     public GroupFinder getGroupFinder() {
181         return groupFinder;
182     }
183 
184     public void setGroupFinder(GroupFinder groupFinder) {
185         this.groupFinder = groupFinder;
186     }
187 
188     public PortletPreferencesLocalService getPortletPreferencesLocalService() {
189         return portletPreferencesLocalService;
190     }
191 
192     public void setPortletPreferencesLocalService(
193         PortletPreferencesLocalService portletPreferencesLocalService) {
194         this.portletPreferencesLocalService = portletPreferencesLocalService;
195     }
196 
197     public PortletPreferencesService getPortletPreferencesService() {
198         return portletPreferencesService;
199     }
200 
201     public void setPortletPreferencesService(
202         PortletPreferencesService portletPreferencesService) {
203         this.portletPreferencesService = portletPreferencesService;
204     }
205 
206     public PortletPreferencesPersistence getPortletPreferencesPersistence() {
207         return portletPreferencesPersistence;
208     }
209 
210     public void setPortletPreferencesPersistence(
211         PortletPreferencesPersistence portletPreferencesPersistence) {
212         this.portletPreferencesPersistence = portletPreferencesPersistence;
213     }
214 
215     public PortletPreferencesFinder getPortletPreferencesFinder() {
216         return portletPreferencesFinder;
217     }
218 
219     public void setPortletPreferencesFinder(
220         PortletPreferencesFinder portletPreferencesFinder) {
221         this.portletPreferencesFinder = portletPreferencesFinder;
222     }
223 
224     public ResourceLocalService getResourceLocalService() {
225         return resourceLocalService;
226     }
227 
228     public void setResourceLocalService(
229         ResourceLocalService resourceLocalService) {
230         this.resourceLocalService = resourceLocalService;
231     }
232 
233     public ResourceService getResourceService() {
234         return resourceService;
235     }
236 
237     public void setResourceService(ResourceService resourceService) {
238         this.resourceService = resourceService;
239     }
240 
241     public ResourcePersistence getResourcePersistence() {
242         return resourcePersistence;
243     }
244 
245     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
246         this.resourcePersistence = resourcePersistence;
247     }
248 
249     public ResourceFinder getResourceFinder() {
250         return resourceFinder;
251     }
252 
253     public void setResourceFinder(ResourceFinder resourceFinder) {
254         this.resourceFinder = resourceFinder;
255     }
256 
257     public UserLocalService getUserLocalService() {
258         return userLocalService;
259     }
260 
261     public void setUserLocalService(UserLocalService userLocalService) {
262         this.userLocalService = userLocalService;
263     }
264 
265     public UserService getUserService() {
266         return userService;
267     }
268 
269     public void setUserService(UserService userService) {
270         this.userService = userService;
271     }
272 
273     public UserPersistence getUserPersistence() {
274         return userPersistence;
275     }
276 
277     public void setUserPersistence(UserPersistence userPersistence) {
278         this.userPersistence = userPersistence;
279     }
280 
281     public UserFinder getUserFinder() {
282         return userFinder;
283     }
284 
285     public void setUserFinder(UserFinder userFinder) {
286         this.userFinder = userFinder;
287     }
288 
289     public ExpandoValueLocalService getExpandoValueLocalService() {
290         return expandoValueLocalService;
291     }
292 
293     public void setExpandoValueLocalService(
294         ExpandoValueLocalService expandoValueLocalService) {
295         this.expandoValueLocalService = expandoValueLocalService;
296     }
297 
298     public ExpandoValueService getExpandoValueService() {
299         return expandoValueService;
300     }
301 
302     public void setExpandoValueService(ExpandoValueService expandoValueService) {
303         this.expandoValueService = expandoValueService;
304     }
305 
306     public ExpandoValuePersistence getExpandoValuePersistence() {
307         return expandoValuePersistence;
308     }
309 
310     public void setExpandoValuePersistence(
311         ExpandoValuePersistence expandoValuePersistence) {
312         this.expandoValuePersistence = expandoValuePersistence;
313     }
314 
315     public SocialActivityLocalService getSocialActivityLocalService() {
316         return socialActivityLocalService;
317     }
318 
319     public void setSocialActivityLocalService(
320         SocialActivityLocalService socialActivityLocalService) {
321         this.socialActivityLocalService = socialActivityLocalService;
322     }
323 
324     public SocialActivityPersistence getSocialActivityPersistence() {
325         return socialActivityPersistence;
326     }
327 
328     public void setSocialActivityPersistence(
329         SocialActivityPersistence socialActivityPersistence) {
330         this.socialActivityPersistence = socialActivityPersistence;
331     }
332 
333     public SocialActivityFinder getSocialActivityFinder() {
334         return socialActivityFinder;
335     }
336 
337     public void setSocialActivityFinder(
338         SocialActivityFinder socialActivityFinder) {
339         this.socialActivityFinder = socialActivityFinder;
340     }
341 
342     public TagsAssetLocalService getTagsAssetLocalService() {
343         return tagsAssetLocalService;
344     }
345 
346     public void setTagsAssetLocalService(
347         TagsAssetLocalService tagsAssetLocalService) {
348         this.tagsAssetLocalService = tagsAssetLocalService;
349     }
350 
351     public TagsAssetService getTagsAssetService() {
352         return tagsAssetService;
353     }
354 
355     public void setTagsAssetService(TagsAssetService tagsAssetService) {
356         this.tagsAssetService = tagsAssetService;
357     }
358 
359     public TagsAssetPersistence getTagsAssetPersistence() {
360         return tagsAssetPersistence;
361     }
362 
363     public void setTagsAssetPersistence(
364         TagsAssetPersistence tagsAssetPersistence) {
365         this.tagsAssetPersistence = tagsAssetPersistence;
366     }
367 
368     public TagsAssetFinder getTagsAssetFinder() {
369         return tagsAssetFinder;
370     }
371 
372     public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
373         this.tagsAssetFinder = tagsAssetFinder;
374     }
375 
376     public TagsEntryLocalService getTagsEntryLocalService() {
377         return tagsEntryLocalService;
378     }
379 
380     public void setTagsEntryLocalService(
381         TagsEntryLocalService tagsEntryLocalService) {
382         this.tagsEntryLocalService = tagsEntryLocalService;
383     }
384 
385     public TagsEntryService getTagsEntryService() {
386         return tagsEntryService;
387     }
388 
389     public void setTagsEntryService(TagsEntryService tagsEntryService) {
390         this.tagsEntryService = tagsEntryService;
391     }
392 
393     public TagsEntryPersistence getTagsEntryPersistence() {
394         return tagsEntryPersistence;
395     }
396 
397     public void setTagsEntryPersistence(
398         TagsEntryPersistence tagsEntryPersistence) {
399         this.tagsEntryPersistence = tagsEntryPersistence;
400     }
401 
402     public TagsEntryFinder getTagsEntryFinder() {
403         return tagsEntryFinder;
404     }
405 
406     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
407         this.tagsEntryFinder = tagsEntryFinder;
408     }
409 
410     protected void runSQL(String sql) throws SystemException {
411         try {
412             DataSource dataSource = calEventPersistence.getDataSource();
413 
414             SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
415                     sql, new int[0]);
416 
417             sqlUpdate.update(new Object[0]);
418         }
419         catch (Exception e) {
420             throw new SystemException(e);
421         }
422     }
423 
424     @BeanReference(type = CalEventLocalService.class)
425     protected CalEventLocalService calEventLocalService;
426     @BeanReference(type = CalEventService.class)
427     protected CalEventService calEventService;
428     @BeanReference(type = CalEventPersistence.class)
429     protected CalEventPersistence calEventPersistence;
430     @BeanReference(type = CalEventFinder.class)
431     protected CalEventFinder calEventFinder;
432     @BeanReference(type = CounterLocalService.class)
433     protected CounterLocalService counterLocalService;
434     @BeanReference(type = CounterService.class)
435     protected CounterService counterService;
436     @BeanReference(type = MailService.class)
437     protected MailService mailService;
438     @BeanReference(type = CompanyLocalService.class)
439     protected CompanyLocalService companyLocalService;
440     @BeanReference(type = CompanyService.class)
441     protected CompanyService companyService;
442     @BeanReference(type = CompanyPersistence.class)
443     protected CompanyPersistence companyPersistence;
444     @BeanReference(type = GroupLocalService.class)
445     protected GroupLocalService groupLocalService;
446     @BeanReference(type = GroupService.class)
447     protected GroupService groupService;
448     @BeanReference(type = GroupPersistence.class)
449     protected GroupPersistence groupPersistence;
450     @BeanReference(type = GroupFinder.class)
451     protected GroupFinder groupFinder;
452     @BeanReference(type = PortletPreferencesLocalService.class)
453     protected PortletPreferencesLocalService portletPreferencesLocalService;
454     @BeanReference(type = PortletPreferencesService.class)
455     protected PortletPreferencesService portletPreferencesService;
456     @BeanReference(type = PortletPreferencesPersistence.class)
457     protected PortletPreferencesPersistence portletPreferencesPersistence;
458     @BeanReference(type = PortletPreferencesFinder.class)
459     protected PortletPreferencesFinder portletPreferencesFinder;
460     @BeanReference(type = ResourceLocalService.class)
461     protected ResourceLocalService resourceLocalService;
462     @BeanReference(type = ResourceService.class)
463     protected ResourceService resourceService;
464     @BeanReference(type = ResourcePersistence.class)
465     protected ResourcePersistence resourcePersistence;
466     @BeanReference(type = ResourceFinder.class)
467     protected ResourceFinder resourceFinder;
468     @BeanReference(type = UserLocalService.class)
469     protected UserLocalService userLocalService;
470     @BeanReference(type = UserService.class)
471     protected UserService userService;
472     @BeanReference(type = UserPersistence.class)
473     protected UserPersistence userPersistence;
474     @BeanReference(type = UserFinder.class)
475     protected UserFinder userFinder;
476     @BeanReference(type = ExpandoValueLocalService.class)
477     protected ExpandoValueLocalService expandoValueLocalService;
478     @BeanReference(type = ExpandoValueService.class)
479     protected ExpandoValueService expandoValueService;
480     @BeanReference(type = ExpandoValuePersistence.class)
481     protected ExpandoValuePersistence expandoValuePersistence;
482     @BeanReference(type = SocialActivityLocalService.class)
483     protected SocialActivityLocalService socialActivityLocalService;
484     @BeanReference(type = SocialActivityPersistence.class)
485     protected SocialActivityPersistence socialActivityPersistence;
486     @BeanReference(type = SocialActivityFinder.class)
487     protected SocialActivityFinder socialActivityFinder;
488     @BeanReference(type = TagsAssetLocalService.class)
489     protected TagsAssetLocalService tagsAssetLocalService;
490     @BeanReference(type = TagsAssetService.class)
491     protected TagsAssetService tagsAssetService;
492     @BeanReference(type = TagsAssetPersistence.class)
493     protected TagsAssetPersistence tagsAssetPersistence;
494     @BeanReference(type = TagsAssetFinder.class)
495     protected TagsAssetFinder tagsAssetFinder;
496     @BeanReference(type = TagsEntryLocalService.class)
497     protected TagsEntryLocalService tagsEntryLocalService;
498     @BeanReference(type = TagsEntryService.class)
499     protected TagsEntryService tagsEntryService;
500     @BeanReference(type = TagsEntryPersistence.class)
501     protected TagsEntryPersistence tagsEntryPersistence;
502     @BeanReference(type = TagsEntryFinder.class)
503     protected TagsEntryFinder tagsEntryFinder;
504 }