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.dao.orm.DynamicQuery;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.util.OrderByComparator;
028    import com.liferay.portal.service.CompanyLocalService;
029    import com.liferay.portal.service.CompanyService;
030    import com.liferay.portal.service.GroupLocalService;
031    import com.liferay.portal.service.GroupService;
032    import com.liferay.portal.service.PortletPreferencesLocalService;
033    import com.liferay.portal.service.PortletPreferencesService;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.ResourceService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.CompanyPersistence;
039    import com.liferay.portal.service.persistence.GroupFinder;
040    import com.liferay.portal.service.persistence.GroupPersistence;
041    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
042    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
043    import com.liferay.portal.service.persistence.ResourceFinder;
044    import com.liferay.portal.service.persistence.ResourcePersistence;
045    import com.liferay.portal.service.persistence.UserFinder;
046    import com.liferay.portal.service.persistence.UserPersistence;
047    
048    import com.liferay.portlet.asset.service.AssetEntryLocalService;
049    import com.liferay.portlet.asset.service.AssetEntryService;
050    import com.liferay.portlet.asset.service.AssetTagLocalService;
051    import com.liferay.portlet.asset.service.AssetTagService;
052    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
053    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
054    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
056    import com.liferay.portlet.calendar.model.CalEvent;
057    import com.liferay.portlet.calendar.service.CalEventLocalService;
058    import com.liferay.portlet.calendar.service.CalEventService;
059    import com.liferay.portlet.calendar.service.persistence.CalEventFinder;
060    import com.liferay.portlet.calendar.service.persistence.CalEventPersistence;
061    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
062    import com.liferay.portlet.expando.service.ExpandoValueService;
063    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
064    import com.liferay.portlet.social.service.SocialActivityLocalService;
065    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
066    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
067    
068    import java.util.List;
069    
070    import javax.sql.DataSource;
071    
072    /**
073     * The base implementation of the cal event local service.
074     *
075     * <p>
076     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl}.
077     * </p>
078     *
079     * <p>
080     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.calendar.service.CalEventLocalServiceUtil} to access the cal event local service.
081     * </p>
082     *
083     * @author Brian Wing Shun Chan
084     * @see com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl
085     * @see com.liferay.portlet.calendar.service.CalEventLocalServiceUtil
086     * @generated
087     */
088    public abstract class CalEventLocalServiceBaseImpl
089            implements CalEventLocalService {
090            /**
091             * Adds the cal event to the database. Also notifies the appropriate model listeners.
092             *
093             * @param calEvent the cal event to add
094             * @return the cal event that was added
095             * @throws SystemException if a system exception occurred
096             */
097            public CalEvent addCalEvent(CalEvent calEvent) throws SystemException {
098                    calEvent.setNew(true);
099    
100                    return calEventPersistence.update(calEvent, false);
101            }
102    
103            /**
104             * Creates a new cal event with the primary key. Does not add the cal event to the database.
105             *
106             * @param eventId the primary key for the new cal event
107             * @return the new cal event
108             */
109            public CalEvent createCalEvent(long eventId) {
110                    return calEventPersistence.create(eventId);
111            }
112    
113            /**
114             * Deletes the cal event with the primary key from the database. Also notifies the appropriate model listeners.
115             *
116             * @param eventId the primary key of the cal event to delete
117             * @throws PortalException if a cal event with the primary key could not be found
118             * @throws SystemException if a system exception occurred
119             */
120            public void deleteCalEvent(long eventId)
121                    throws PortalException, SystemException {
122                    calEventPersistence.remove(eventId);
123            }
124    
125            /**
126             * Deletes the cal event from the database. Also notifies the appropriate model listeners.
127             *
128             * @param calEvent the cal event to delete
129             * @throws SystemException if a system exception occurred
130             */
131            public void deleteCalEvent(CalEvent calEvent) throws SystemException {
132                    calEventPersistence.remove(calEvent);
133            }
134    
135            /**
136             * Performs a dynamic query on the database and returns the matching rows.
137             *
138             * @param dynamicQuery the dynamic query to search with
139             * @return the matching rows
140             * @throws SystemException if a system exception occurred
141             */
142            @SuppressWarnings("rawtypes")
143            public List dynamicQuery(DynamicQuery dynamicQuery)
144                    throws SystemException {
145                    return calEventPersistence.findWithDynamicQuery(dynamicQuery);
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns a range of the matching rows.
150             *
151             * <p>
152             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
153             * </p>
154             *
155             * @param dynamicQuery the dynamic query to search with
156             * @param start the lower bound of the range of model instances to return
157             * @param end the upper bound of the range of model instances to return (not inclusive)
158             * @return the range of matching rows
159             * @throws SystemException if a system exception occurred
160             */
161            @SuppressWarnings("rawtypes")
162            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
163                    throws SystemException {
164                    return calEventPersistence.findWithDynamicQuery(dynamicQuery, start, end);
165            }
166    
167            /**
168             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
169             *
170             * <p>
171             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
172             * </p>
173             *
174             * @param dynamicQuery the dynamic query to search with
175             * @param start the lower bound of the range of model instances to return
176             * @param end the upper bound of the range of model instances to return (not inclusive)
177             * @param orderByComparator the comparator to order the results by
178             * @return the ordered range of matching rows
179             * @throws SystemException if a system exception occurred
180             */
181            @SuppressWarnings("rawtypes")
182            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
183                    OrderByComparator orderByComparator) throws SystemException {
184                    return calEventPersistence.findWithDynamicQuery(dynamicQuery, start,
185                            end, orderByComparator);
186            }
187    
188            /**
189             * Counts the number of rows that match the dynamic query.
190             *
191             * @param dynamicQuery the dynamic query to search with
192             * @return the number of rows that match the dynamic query
193             * @throws SystemException if a system exception occurred
194             */
195            public long dynamicQueryCount(DynamicQuery dynamicQuery)
196                    throws SystemException {
197                    return calEventPersistence.countWithDynamicQuery(dynamicQuery);
198            }
199    
200            /**
201             * Gets the cal event with the primary key.
202             *
203             * @param eventId the primary key of the cal event to get
204             * @return the cal event
205             * @throws PortalException if a cal event with the primary key could not be found
206             * @throws SystemException if a system exception occurred
207             */
208            public CalEvent getCalEvent(long eventId)
209                    throws PortalException, SystemException {
210                    return calEventPersistence.findByPrimaryKey(eventId);
211            }
212    
213            /**
214             * Gets the cal event with the UUID and group id.
215             *
216             * @param uuid the UUID of cal event to get
217             * @param groupId the group id of the cal event to get
218             * @return the cal event
219             * @throws PortalException if a cal event with the UUID and group id could not be found
220             * @throws SystemException if a system exception occurred
221             */
222            public CalEvent getCalEventByUuidAndGroupId(String uuid, long groupId)
223                    throws PortalException, SystemException {
224                    return calEventPersistence.findByUUID_G(uuid, groupId);
225            }
226    
227            /**
228             * Gets a range of all the cal events.
229             *
230             * <p>
231             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
232             * </p>
233             *
234             * @param start the lower bound of the range of cal events to return
235             * @param end the upper bound of the range of cal events to return (not inclusive)
236             * @return the range of cal events
237             * @throws SystemException if a system exception occurred
238             */
239            public List<CalEvent> getCalEvents(int start, int end)
240                    throws SystemException {
241                    return calEventPersistence.findAll(start, end);
242            }
243    
244            /**
245             * Gets the number of cal events.
246             *
247             * @return the number of cal events
248             * @throws SystemException if a system exception occurred
249             */
250            public int getCalEventsCount() throws SystemException {
251                    return calEventPersistence.countAll();
252            }
253    
254            /**
255             * Updates the cal event in the database. Also notifies the appropriate model listeners.
256             *
257             * @param calEvent the cal event to update
258             * @return the cal event that was updated
259             * @throws SystemException if a system exception occurred
260             */
261            public CalEvent updateCalEvent(CalEvent calEvent) throws SystemException {
262                    calEvent.setNew(false);
263    
264                    return calEventPersistence.update(calEvent, true);
265            }
266    
267            /**
268             * Updates the cal event in the database. Also notifies the appropriate model listeners.
269             *
270             * @param calEvent the cal event to update
271             * @param merge whether to merge the cal event with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
272             * @return the cal event that was updated
273             * @throws SystemException if a system exception occurred
274             */
275            public CalEvent updateCalEvent(CalEvent calEvent, boolean merge)
276                    throws SystemException {
277                    calEvent.setNew(false);
278    
279                    return calEventPersistence.update(calEvent, merge);
280            }
281    
282            /**
283             * Gets the cal event local service.
284             *
285             * @return the cal event local service
286             */
287            public CalEventLocalService getCalEventLocalService() {
288                    return calEventLocalService;
289            }
290    
291            /**
292             * Sets the cal event local service.
293             *
294             * @param calEventLocalService the cal event local service
295             */
296            public void setCalEventLocalService(
297                    CalEventLocalService calEventLocalService) {
298                    this.calEventLocalService = calEventLocalService;
299            }
300    
301            /**
302             * Gets the cal event remote service.
303             *
304             * @return the cal event remote service
305             */
306            public CalEventService getCalEventService() {
307                    return calEventService;
308            }
309    
310            /**
311             * Sets the cal event remote service.
312             *
313             * @param calEventService the cal event remote service
314             */
315            public void setCalEventService(CalEventService calEventService) {
316                    this.calEventService = calEventService;
317            }
318    
319            /**
320             * Gets the cal event persistence.
321             *
322             * @return the cal event persistence
323             */
324            public CalEventPersistence getCalEventPersistence() {
325                    return calEventPersistence;
326            }
327    
328            /**
329             * Sets the cal event persistence.
330             *
331             * @param calEventPersistence the cal event persistence
332             */
333            public void setCalEventPersistence(CalEventPersistence calEventPersistence) {
334                    this.calEventPersistence = calEventPersistence;
335            }
336    
337            /**
338             * Gets the cal event finder.
339             *
340             * @return the cal event finder
341             */
342            public CalEventFinder getCalEventFinder() {
343                    return calEventFinder;
344            }
345    
346            /**
347             * Sets the cal event finder.
348             *
349             * @param calEventFinder the cal event finder
350             */
351            public void setCalEventFinder(CalEventFinder calEventFinder) {
352                    this.calEventFinder = calEventFinder;
353            }
354    
355            /**
356             * Gets the counter local service.
357             *
358             * @return the counter local service
359             */
360            public CounterLocalService getCounterLocalService() {
361                    return counterLocalService;
362            }
363    
364            /**
365             * Sets the counter local service.
366             *
367             * @param counterLocalService the counter local service
368             */
369            public void setCounterLocalService(CounterLocalService counterLocalService) {
370                    this.counterLocalService = counterLocalService;
371            }
372    
373            /**
374             * Gets the mail remote service.
375             *
376             * @return the mail remote service
377             */
378            public MailService getMailService() {
379                    return mailService;
380            }
381    
382            /**
383             * Sets the mail remote service.
384             *
385             * @param mailService the mail remote service
386             */
387            public void setMailService(MailService mailService) {
388                    this.mailService = mailService;
389            }
390    
391            /**
392             * Gets the company local service.
393             *
394             * @return the company local service
395             */
396            public CompanyLocalService getCompanyLocalService() {
397                    return companyLocalService;
398            }
399    
400            /**
401             * Sets the company local service.
402             *
403             * @param companyLocalService the company local service
404             */
405            public void setCompanyLocalService(CompanyLocalService companyLocalService) {
406                    this.companyLocalService = companyLocalService;
407            }
408    
409            /**
410             * Gets the company remote service.
411             *
412             * @return the company remote service
413             */
414            public CompanyService getCompanyService() {
415                    return companyService;
416            }
417    
418            /**
419             * Sets the company remote service.
420             *
421             * @param companyService the company remote service
422             */
423            public void setCompanyService(CompanyService companyService) {
424                    this.companyService = companyService;
425            }
426    
427            /**
428             * Gets the company persistence.
429             *
430             * @return the company persistence
431             */
432            public CompanyPersistence getCompanyPersistence() {
433                    return companyPersistence;
434            }
435    
436            /**
437             * Sets the company persistence.
438             *
439             * @param companyPersistence the company persistence
440             */
441            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
442                    this.companyPersistence = companyPersistence;
443            }
444    
445            /**
446             * Gets the group local service.
447             *
448             * @return the group local service
449             */
450            public GroupLocalService getGroupLocalService() {
451                    return groupLocalService;
452            }
453    
454            /**
455             * Sets the group local service.
456             *
457             * @param groupLocalService the group local service
458             */
459            public void setGroupLocalService(GroupLocalService groupLocalService) {
460                    this.groupLocalService = groupLocalService;
461            }
462    
463            /**
464             * Gets the group remote service.
465             *
466             * @return the group remote service
467             */
468            public GroupService getGroupService() {
469                    return groupService;
470            }
471    
472            /**
473             * Sets the group remote service.
474             *
475             * @param groupService the group remote service
476             */
477            public void setGroupService(GroupService groupService) {
478                    this.groupService = groupService;
479            }
480    
481            /**
482             * Gets the group persistence.
483             *
484             * @return the group persistence
485             */
486            public GroupPersistence getGroupPersistence() {
487                    return groupPersistence;
488            }
489    
490            /**
491             * Sets the group persistence.
492             *
493             * @param groupPersistence the group persistence
494             */
495            public void setGroupPersistence(GroupPersistence groupPersistence) {
496                    this.groupPersistence = groupPersistence;
497            }
498    
499            /**
500             * Gets the group finder.
501             *
502             * @return the group finder
503             */
504            public GroupFinder getGroupFinder() {
505                    return groupFinder;
506            }
507    
508            /**
509             * Sets the group finder.
510             *
511             * @param groupFinder the group finder
512             */
513            public void setGroupFinder(GroupFinder groupFinder) {
514                    this.groupFinder = groupFinder;
515            }
516    
517            /**
518             * Gets the portlet preferences local service.
519             *
520             * @return the portlet preferences local service
521             */
522            public PortletPreferencesLocalService getPortletPreferencesLocalService() {
523                    return portletPreferencesLocalService;
524            }
525    
526            /**
527             * Sets the portlet preferences local service.
528             *
529             * @param portletPreferencesLocalService the portlet preferences local service
530             */
531            public void setPortletPreferencesLocalService(
532                    PortletPreferencesLocalService portletPreferencesLocalService) {
533                    this.portletPreferencesLocalService = portletPreferencesLocalService;
534            }
535    
536            /**
537             * Gets the portlet preferences remote service.
538             *
539             * @return the portlet preferences remote service
540             */
541            public PortletPreferencesService getPortletPreferencesService() {
542                    return portletPreferencesService;
543            }
544    
545            /**
546             * Sets the portlet preferences remote service.
547             *
548             * @param portletPreferencesService the portlet preferences remote service
549             */
550            public void setPortletPreferencesService(
551                    PortletPreferencesService portletPreferencesService) {
552                    this.portletPreferencesService = portletPreferencesService;
553            }
554    
555            /**
556             * Gets the portlet preferences persistence.
557             *
558             * @return the portlet preferences persistence
559             */
560            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
561                    return portletPreferencesPersistence;
562            }
563    
564            /**
565             * Sets the portlet preferences persistence.
566             *
567             * @param portletPreferencesPersistence the portlet preferences persistence
568             */
569            public void setPortletPreferencesPersistence(
570                    PortletPreferencesPersistence portletPreferencesPersistence) {
571                    this.portletPreferencesPersistence = portletPreferencesPersistence;
572            }
573    
574            /**
575             * Gets the portlet preferences finder.
576             *
577             * @return the portlet preferences finder
578             */
579            public PortletPreferencesFinder getPortletPreferencesFinder() {
580                    return portletPreferencesFinder;
581            }
582    
583            /**
584             * Sets the portlet preferences finder.
585             *
586             * @param portletPreferencesFinder the portlet preferences finder
587             */
588            public void setPortletPreferencesFinder(
589                    PortletPreferencesFinder portletPreferencesFinder) {
590                    this.portletPreferencesFinder = portletPreferencesFinder;
591            }
592    
593            /**
594             * Gets the resource local service.
595             *
596             * @return the resource local service
597             */
598            public ResourceLocalService getResourceLocalService() {
599                    return resourceLocalService;
600            }
601    
602            /**
603             * Sets the resource local service.
604             *
605             * @param resourceLocalService the resource local service
606             */
607            public void setResourceLocalService(
608                    ResourceLocalService resourceLocalService) {
609                    this.resourceLocalService = resourceLocalService;
610            }
611    
612            /**
613             * Gets the resource remote service.
614             *
615             * @return the resource remote service
616             */
617            public ResourceService getResourceService() {
618                    return resourceService;
619            }
620    
621            /**
622             * Sets the resource remote service.
623             *
624             * @param resourceService the resource remote service
625             */
626            public void setResourceService(ResourceService resourceService) {
627                    this.resourceService = resourceService;
628            }
629    
630            /**
631             * Gets the resource persistence.
632             *
633             * @return the resource persistence
634             */
635            public ResourcePersistence getResourcePersistence() {
636                    return resourcePersistence;
637            }
638    
639            /**
640             * Sets the resource persistence.
641             *
642             * @param resourcePersistence the resource persistence
643             */
644            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
645                    this.resourcePersistence = resourcePersistence;
646            }
647    
648            /**
649             * Gets the resource finder.
650             *
651             * @return the resource finder
652             */
653            public ResourceFinder getResourceFinder() {
654                    return resourceFinder;
655            }
656    
657            /**
658             * Sets the resource finder.
659             *
660             * @param resourceFinder the resource finder
661             */
662            public void setResourceFinder(ResourceFinder resourceFinder) {
663                    this.resourceFinder = resourceFinder;
664            }
665    
666            /**
667             * Gets the user local service.
668             *
669             * @return the user local service
670             */
671            public UserLocalService getUserLocalService() {
672                    return userLocalService;
673            }
674    
675            /**
676             * Sets the user local service.
677             *
678             * @param userLocalService the user local service
679             */
680            public void setUserLocalService(UserLocalService userLocalService) {
681                    this.userLocalService = userLocalService;
682            }
683    
684            /**
685             * Gets the user remote service.
686             *
687             * @return the user remote service
688             */
689            public UserService getUserService() {
690                    return userService;
691            }
692    
693            /**
694             * Sets the user remote service.
695             *
696             * @param userService the user remote service
697             */
698            public void setUserService(UserService userService) {
699                    this.userService = userService;
700            }
701    
702            /**
703             * Gets the user persistence.
704             *
705             * @return the user persistence
706             */
707            public UserPersistence getUserPersistence() {
708                    return userPersistence;
709            }
710    
711            /**
712             * Sets the user persistence.
713             *
714             * @param userPersistence the user persistence
715             */
716            public void setUserPersistence(UserPersistence userPersistence) {
717                    this.userPersistence = userPersistence;
718            }
719    
720            /**
721             * Gets the user finder.
722             *
723             * @return the user finder
724             */
725            public UserFinder getUserFinder() {
726                    return userFinder;
727            }
728    
729            /**
730             * Sets the user finder.
731             *
732             * @param userFinder the user finder
733             */
734            public void setUserFinder(UserFinder userFinder) {
735                    this.userFinder = userFinder;
736            }
737    
738            /**
739             * Gets the asset entry local service.
740             *
741             * @return the asset entry local service
742             */
743            public AssetEntryLocalService getAssetEntryLocalService() {
744                    return assetEntryLocalService;
745            }
746    
747            /**
748             * Sets the asset entry local service.
749             *
750             * @param assetEntryLocalService the asset entry local service
751             */
752            public void setAssetEntryLocalService(
753                    AssetEntryLocalService assetEntryLocalService) {
754                    this.assetEntryLocalService = assetEntryLocalService;
755            }
756    
757            /**
758             * Gets the asset entry remote service.
759             *
760             * @return the asset entry remote service
761             */
762            public AssetEntryService getAssetEntryService() {
763                    return assetEntryService;
764            }
765    
766            /**
767             * Sets the asset entry remote service.
768             *
769             * @param assetEntryService the asset entry remote service
770             */
771            public void setAssetEntryService(AssetEntryService assetEntryService) {
772                    this.assetEntryService = assetEntryService;
773            }
774    
775            /**
776             * Gets the asset entry persistence.
777             *
778             * @return the asset entry persistence
779             */
780            public AssetEntryPersistence getAssetEntryPersistence() {
781                    return assetEntryPersistence;
782            }
783    
784            /**
785             * Sets the asset entry persistence.
786             *
787             * @param assetEntryPersistence the asset entry persistence
788             */
789            public void setAssetEntryPersistence(
790                    AssetEntryPersistence assetEntryPersistence) {
791                    this.assetEntryPersistence = assetEntryPersistence;
792            }
793    
794            /**
795             * Gets the asset entry finder.
796             *
797             * @return the asset entry finder
798             */
799            public AssetEntryFinder getAssetEntryFinder() {
800                    return assetEntryFinder;
801            }
802    
803            /**
804             * Sets the asset entry finder.
805             *
806             * @param assetEntryFinder the asset entry finder
807             */
808            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
809                    this.assetEntryFinder = assetEntryFinder;
810            }
811    
812            /**
813             * Gets the asset tag local service.
814             *
815             * @return the asset tag local service
816             */
817            public AssetTagLocalService getAssetTagLocalService() {
818                    return assetTagLocalService;
819            }
820    
821            /**
822             * Sets the asset tag local service.
823             *
824             * @param assetTagLocalService the asset tag local service
825             */
826            public void setAssetTagLocalService(
827                    AssetTagLocalService assetTagLocalService) {
828                    this.assetTagLocalService = assetTagLocalService;
829            }
830    
831            /**
832             * Gets the asset tag remote service.
833             *
834             * @return the asset tag remote service
835             */
836            public AssetTagService getAssetTagService() {
837                    return assetTagService;
838            }
839    
840            /**
841             * Sets the asset tag remote service.
842             *
843             * @param assetTagService the asset tag remote service
844             */
845            public void setAssetTagService(AssetTagService assetTagService) {
846                    this.assetTagService = assetTagService;
847            }
848    
849            /**
850             * Gets the asset tag persistence.
851             *
852             * @return the asset tag persistence
853             */
854            public AssetTagPersistence getAssetTagPersistence() {
855                    return assetTagPersistence;
856            }
857    
858            /**
859             * Sets the asset tag persistence.
860             *
861             * @param assetTagPersistence the asset tag persistence
862             */
863            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
864                    this.assetTagPersistence = assetTagPersistence;
865            }
866    
867            /**
868             * Gets the asset tag finder.
869             *
870             * @return the asset tag finder
871             */
872            public AssetTagFinder getAssetTagFinder() {
873                    return assetTagFinder;
874            }
875    
876            /**
877             * Sets the asset tag finder.
878             *
879             * @param assetTagFinder the asset tag finder
880             */
881            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
882                    this.assetTagFinder = assetTagFinder;
883            }
884    
885            /**
886             * Gets the expando value local service.
887             *
888             * @return the expando value local service
889             */
890            public ExpandoValueLocalService getExpandoValueLocalService() {
891                    return expandoValueLocalService;
892            }
893    
894            /**
895             * Sets the expando value local service.
896             *
897             * @param expandoValueLocalService the expando value local service
898             */
899            public void setExpandoValueLocalService(
900                    ExpandoValueLocalService expandoValueLocalService) {
901                    this.expandoValueLocalService = expandoValueLocalService;
902            }
903    
904            /**
905             * Gets the expando value remote service.
906             *
907             * @return the expando value remote service
908             */
909            public ExpandoValueService getExpandoValueService() {
910                    return expandoValueService;
911            }
912    
913            /**
914             * Sets the expando value remote service.
915             *
916             * @param expandoValueService the expando value remote service
917             */
918            public void setExpandoValueService(ExpandoValueService expandoValueService) {
919                    this.expandoValueService = expandoValueService;
920            }
921    
922            /**
923             * Gets the expando value persistence.
924             *
925             * @return the expando value persistence
926             */
927            public ExpandoValuePersistence getExpandoValuePersistence() {
928                    return expandoValuePersistence;
929            }
930    
931            /**
932             * Sets the expando value persistence.
933             *
934             * @param expandoValuePersistence the expando value persistence
935             */
936            public void setExpandoValuePersistence(
937                    ExpandoValuePersistence expandoValuePersistence) {
938                    this.expandoValuePersistence = expandoValuePersistence;
939            }
940    
941            /**
942             * Gets the social activity local service.
943             *
944             * @return the social activity local service
945             */
946            public SocialActivityLocalService getSocialActivityLocalService() {
947                    return socialActivityLocalService;
948            }
949    
950            /**
951             * Sets the social activity local service.
952             *
953             * @param socialActivityLocalService the social activity local service
954             */
955            public void setSocialActivityLocalService(
956                    SocialActivityLocalService socialActivityLocalService) {
957                    this.socialActivityLocalService = socialActivityLocalService;
958            }
959    
960            /**
961             * Gets the social activity persistence.
962             *
963             * @return the social activity persistence
964             */
965            public SocialActivityPersistence getSocialActivityPersistence() {
966                    return socialActivityPersistence;
967            }
968    
969            /**
970             * Sets the social activity persistence.
971             *
972             * @param socialActivityPersistence the social activity persistence
973             */
974            public void setSocialActivityPersistence(
975                    SocialActivityPersistence socialActivityPersistence) {
976                    this.socialActivityPersistence = socialActivityPersistence;
977            }
978    
979            /**
980             * Gets the social activity finder.
981             *
982             * @return the social activity finder
983             */
984            public SocialActivityFinder getSocialActivityFinder() {
985                    return socialActivityFinder;
986            }
987    
988            /**
989             * Sets the social activity finder.
990             *
991             * @param socialActivityFinder the social activity finder
992             */
993            public void setSocialActivityFinder(
994                    SocialActivityFinder socialActivityFinder) {
995                    this.socialActivityFinder = socialActivityFinder;
996            }
997    
998            /**
999             * Performs an SQL query.
1000             *
1001             * @param sql the sql query to perform
1002             */
1003            protected void runSQL(String sql) throws SystemException {
1004                    try {
1005                            DataSource dataSource = calEventPersistence.getDataSource();
1006    
1007                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1008                                            sql, new int[0]);
1009    
1010                            sqlUpdate.update();
1011                    }
1012                    catch (Exception e) {
1013                            throw new SystemException(e);
1014                    }
1015            }
1016    
1017            @BeanReference(type = CalEventLocalService.class)
1018            protected CalEventLocalService calEventLocalService;
1019            @BeanReference(type = CalEventService.class)
1020            protected CalEventService calEventService;
1021            @BeanReference(type = CalEventPersistence.class)
1022            protected CalEventPersistence calEventPersistence;
1023            @BeanReference(type = CalEventFinder.class)
1024            protected CalEventFinder calEventFinder;
1025            @BeanReference(type = CounterLocalService.class)
1026            protected CounterLocalService counterLocalService;
1027            @BeanReference(type = MailService.class)
1028            protected MailService mailService;
1029            @BeanReference(type = CompanyLocalService.class)
1030            protected CompanyLocalService companyLocalService;
1031            @BeanReference(type = CompanyService.class)
1032            protected CompanyService companyService;
1033            @BeanReference(type = CompanyPersistence.class)
1034            protected CompanyPersistence companyPersistence;
1035            @BeanReference(type = GroupLocalService.class)
1036            protected GroupLocalService groupLocalService;
1037            @BeanReference(type = GroupService.class)
1038            protected GroupService groupService;
1039            @BeanReference(type = GroupPersistence.class)
1040            protected GroupPersistence groupPersistence;
1041            @BeanReference(type = GroupFinder.class)
1042            protected GroupFinder groupFinder;
1043            @BeanReference(type = PortletPreferencesLocalService.class)
1044            protected PortletPreferencesLocalService portletPreferencesLocalService;
1045            @BeanReference(type = PortletPreferencesService.class)
1046            protected PortletPreferencesService portletPreferencesService;
1047            @BeanReference(type = PortletPreferencesPersistence.class)
1048            protected PortletPreferencesPersistence portletPreferencesPersistence;
1049            @BeanReference(type = PortletPreferencesFinder.class)
1050            protected PortletPreferencesFinder portletPreferencesFinder;
1051            @BeanReference(type = ResourceLocalService.class)
1052            protected ResourceLocalService resourceLocalService;
1053            @BeanReference(type = ResourceService.class)
1054            protected ResourceService resourceService;
1055            @BeanReference(type = ResourcePersistence.class)
1056            protected ResourcePersistence resourcePersistence;
1057            @BeanReference(type = ResourceFinder.class)
1058            protected ResourceFinder resourceFinder;
1059            @BeanReference(type = UserLocalService.class)
1060            protected UserLocalService userLocalService;
1061            @BeanReference(type = UserService.class)
1062            protected UserService userService;
1063            @BeanReference(type = UserPersistence.class)
1064            protected UserPersistence userPersistence;
1065            @BeanReference(type = UserFinder.class)
1066            protected UserFinder userFinder;
1067            @BeanReference(type = AssetEntryLocalService.class)
1068            protected AssetEntryLocalService assetEntryLocalService;
1069            @BeanReference(type = AssetEntryService.class)
1070            protected AssetEntryService assetEntryService;
1071            @BeanReference(type = AssetEntryPersistence.class)
1072            protected AssetEntryPersistence assetEntryPersistence;
1073            @BeanReference(type = AssetEntryFinder.class)
1074            protected AssetEntryFinder assetEntryFinder;
1075            @BeanReference(type = AssetTagLocalService.class)
1076            protected AssetTagLocalService assetTagLocalService;
1077            @BeanReference(type = AssetTagService.class)
1078            protected AssetTagService assetTagService;
1079            @BeanReference(type = AssetTagPersistence.class)
1080            protected AssetTagPersistence assetTagPersistence;
1081            @BeanReference(type = AssetTagFinder.class)
1082            protected AssetTagFinder assetTagFinder;
1083            @BeanReference(type = ExpandoValueLocalService.class)
1084            protected ExpandoValueLocalService expandoValueLocalService;
1085            @BeanReference(type = ExpandoValueService.class)
1086            protected ExpandoValueService expandoValueService;
1087            @BeanReference(type = ExpandoValuePersistence.class)
1088            protected ExpandoValuePersistence expandoValuePersistence;
1089            @BeanReference(type = SocialActivityLocalService.class)
1090            protected SocialActivityLocalService socialActivityLocalService;
1091            @BeanReference(type = SocialActivityPersistence.class)
1092            protected SocialActivityPersistence socialActivityPersistence;
1093            @BeanReference(type = SocialActivityFinder.class)
1094            protected SocialActivityFinder socialActivityFinder;
1095    }