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.social.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.GroupLocalService;
027    import com.liferay.portal.service.GroupService;
028    import com.liferay.portal.service.LayoutLocalService;
029    import com.liferay.portal.service.LayoutService;
030    import com.liferay.portal.service.ResourceLocalService;
031    import com.liferay.portal.service.ResourceService;
032    import com.liferay.portal.service.UserLocalService;
033    import com.liferay.portal.service.UserService;
034    import com.liferay.portal.service.persistence.GroupFinder;
035    import com.liferay.portal.service.persistence.GroupPersistence;
036    import com.liferay.portal.service.persistence.LayoutFinder;
037    import com.liferay.portal.service.persistence.LayoutPersistence;
038    import com.liferay.portal.service.persistence.ResourceFinder;
039    import com.liferay.portal.service.persistence.ResourcePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.social.model.SocialActivity;
044    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
045    import com.liferay.portlet.social.service.SocialActivityLocalService;
046    import com.liferay.portlet.social.service.SocialEquityHistoryLocalService;
047    import com.liferay.portlet.social.service.SocialEquityLogLocalService;
048    import com.liferay.portlet.social.service.SocialEquitySettingLocalService;
049    import com.liferay.portlet.social.service.SocialEquityUserLocalService;
050    import com.liferay.portlet.social.service.SocialRelationLocalService;
051    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
052    import com.liferay.portlet.social.service.SocialRequestLocalService;
053    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
054    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
055    import com.liferay.portlet.social.service.persistence.SocialEquityAssetEntryPersistence;
056    import com.liferay.portlet.social.service.persistence.SocialEquityHistoryPersistence;
057    import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
058    import com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistence;
059    import com.liferay.portlet.social.service.persistence.SocialEquityUserPersistence;
060    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
061    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
062    
063    import java.util.List;
064    
065    import javax.sql.DataSource;
066    
067    /**
068     * The base implementation of the social activity local service.
069     *
070     * <p>
071     * 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.social.service.impl.SocialActivityLocalServiceImpl}.
072     * </p>
073     *
074     * <p>
075     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivityLocalServiceUtil} to access the social activity local service.
076     * </p>
077     *
078     * @author Brian Wing Shun Chan
079     * @see com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl
080     * @see com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
081     * @generated
082     */
083    public abstract class SocialActivityLocalServiceBaseImpl
084            implements SocialActivityLocalService {
085            /**
086             * Adds the social activity to the database. Also notifies the appropriate model listeners.
087             *
088             * @param socialActivity the social activity to add
089             * @return the social activity that was added
090             * @throws SystemException if a system exception occurred
091             */
092            public SocialActivity addSocialActivity(SocialActivity socialActivity)
093                    throws SystemException {
094                    socialActivity.setNew(true);
095    
096                    return socialActivityPersistence.update(socialActivity, false);
097            }
098    
099            /**
100             * Creates a new social activity with the primary key. Does not add the social activity to the database.
101             *
102             * @param activityId the primary key for the new social activity
103             * @return the new social activity
104             */
105            public SocialActivity createSocialActivity(long activityId) {
106                    return socialActivityPersistence.create(activityId);
107            }
108    
109            /**
110             * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
111             *
112             * @param activityId the primary key of the social activity to delete
113             * @throws PortalException if a social activity with the primary key could not be found
114             * @throws SystemException if a system exception occurred
115             */
116            public void deleteSocialActivity(long activityId)
117                    throws PortalException, SystemException {
118                    socialActivityPersistence.remove(activityId);
119            }
120    
121            /**
122             * Deletes the social activity from the database. Also notifies the appropriate model listeners.
123             *
124             * @param socialActivity the social activity to delete
125             * @throws SystemException if a system exception occurred
126             */
127            public void deleteSocialActivity(SocialActivity socialActivity)
128                    throws SystemException {
129                    socialActivityPersistence.remove(socialActivity);
130            }
131    
132            /**
133             * Performs a dynamic query on the database and returns the matching rows.
134             *
135             * @param dynamicQuery the dynamic query to search with
136             * @return the matching rows
137             * @throws SystemException if a system exception occurred
138             */
139            @SuppressWarnings("rawtypes")
140            public List dynamicQuery(DynamicQuery dynamicQuery)
141                    throws SystemException {
142                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery);
143            }
144    
145            /**
146             * Performs a dynamic query on the database and returns a range of the matching rows.
147             *
148             * <p>
149             * 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.
150             * </p>
151             *
152             * @param dynamicQuery the dynamic query to search with
153             * @param start the lower bound of the range of model instances to return
154             * @param end the upper bound of the range of model instances to return (not inclusive)
155             * @return the range of matching rows
156             * @throws SystemException if a system exception occurred
157             */
158            @SuppressWarnings("rawtypes")
159            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
160                    throws SystemException {
161                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
162                            start, end);
163            }
164    
165            /**
166             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
167             *
168             * <p>
169             * 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.
170             * </p>
171             *
172             * @param dynamicQuery the dynamic query to search with
173             * @param start the lower bound of the range of model instances to return
174             * @param end the upper bound of the range of model instances to return (not inclusive)
175             * @param orderByComparator the comparator to order the results by
176             * @return the ordered range of matching rows
177             * @throws SystemException if a system exception occurred
178             */
179            @SuppressWarnings("rawtypes")
180            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
181                    OrderByComparator orderByComparator) throws SystemException {
182                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
183                            start, end, orderByComparator);
184            }
185    
186            /**
187             * Counts the number of rows that match the dynamic query.
188             *
189             * @param dynamicQuery the dynamic query to search with
190             * @return the number of rows that match the dynamic query
191             * @throws SystemException if a system exception occurred
192             */
193            public long dynamicQueryCount(DynamicQuery dynamicQuery)
194                    throws SystemException {
195                    return socialActivityPersistence.countWithDynamicQuery(dynamicQuery);
196            }
197    
198            /**
199             * Gets the social activity with the primary key.
200             *
201             * @param activityId the primary key of the social activity to get
202             * @return the social activity
203             * @throws PortalException if a social activity with the primary key could not be found
204             * @throws SystemException if a system exception occurred
205             */
206            public SocialActivity getSocialActivity(long activityId)
207                    throws PortalException, SystemException {
208                    return socialActivityPersistence.findByPrimaryKey(activityId);
209            }
210    
211            /**
212             * Gets a range of all the social activities.
213             *
214             * <p>
215             * 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.
216             * </p>
217             *
218             * @param start the lower bound of the range of social activities to return
219             * @param end the upper bound of the range of social activities to return (not inclusive)
220             * @return the range of social activities
221             * @throws SystemException if a system exception occurred
222             */
223            public List<SocialActivity> getSocialActivities(int start, int end)
224                    throws SystemException {
225                    return socialActivityPersistence.findAll(start, end);
226            }
227    
228            /**
229             * Gets the number of social activities.
230             *
231             * @return the number of social activities
232             * @throws SystemException if a system exception occurred
233             */
234            public int getSocialActivitiesCount() throws SystemException {
235                    return socialActivityPersistence.countAll();
236            }
237    
238            /**
239             * Updates the social activity in the database. Also notifies the appropriate model listeners.
240             *
241             * @param socialActivity the social activity to update
242             * @return the social activity that was updated
243             * @throws SystemException if a system exception occurred
244             */
245            public SocialActivity updateSocialActivity(SocialActivity socialActivity)
246                    throws SystemException {
247                    socialActivity.setNew(false);
248    
249                    return socialActivityPersistence.update(socialActivity, true);
250            }
251    
252            /**
253             * Updates the social activity in the database. Also notifies the appropriate model listeners.
254             *
255             * @param socialActivity the social activity to update
256             * @param merge whether to merge the social activity 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.
257             * @return the social activity that was updated
258             * @throws SystemException if a system exception occurred
259             */
260            public SocialActivity updateSocialActivity(SocialActivity socialActivity,
261                    boolean merge) throws SystemException {
262                    socialActivity.setNew(false);
263    
264                    return socialActivityPersistence.update(socialActivity, merge);
265            }
266    
267            /**
268             * Gets the social activity local service.
269             *
270             * @return the social activity local service
271             */
272            public SocialActivityLocalService getSocialActivityLocalService() {
273                    return socialActivityLocalService;
274            }
275    
276            /**
277             * Sets the social activity local service.
278             *
279             * @param socialActivityLocalService the social activity local service
280             */
281            public void setSocialActivityLocalService(
282                    SocialActivityLocalService socialActivityLocalService) {
283                    this.socialActivityLocalService = socialActivityLocalService;
284            }
285    
286            /**
287             * Gets the social activity persistence.
288             *
289             * @return the social activity persistence
290             */
291            public SocialActivityPersistence getSocialActivityPersistence() {
292                    return socialActivityPersistence;
293            }
294    
295            /**
296             * Sets the social activity persistence.
297             *
298             * @param socialActivityPersistence the social activity persistence
299             */
300            public void setSocialActivityPersistence(
301                    SocialActivityPersistence socialActivityPersistence) {
302                    this.socialActivityPersistence = socialActivityPersistence;
303            }
304    
305            /**
306             * Gets the social activity finder.
307             *
308             * @return the social activity finder
309             */
310            public SocialActivityFinder getSocialActivityFinder() {
311                    return socialActivityFinder;
312            }
313    
314            /**
315             * Sets the social activity finder.
316             *
317             * @param socialActivityFinder the social activity finder
318             */
319            public void setSocialActivityFinder(
320                    SocialActivityFinder socialActivityFinder) {
321                    this.socialActivityFinder = socialActivityFinder;
322            }
323    
324            /**
325             * Gets the social activity interpreter local service.
326             *
327             * @return the social activity interpreter local service
328             */
329            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
330                    return socialActivityInterpreterLocalService;
331            }
332    
333            /**
334             * Sets the social activity interpreter local service.
335             *
336             * @param socialActivityInterpreterLocalService the social activity interpreter local service
337             */
338            public void setSocialActivityInterpreterLocalService(
339                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
340                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
341            }
342    
343            /**
344             * Gets the social equity asset entry persistence.
345             *
346             * @return the social equity asset entry persistence
347             */
348            public SocialEquityAssetEntryPersistence getSocialEquityAssetEntryPersistence() {
349                    return socialEquityAssetEntryPersistence;
350            }
351    
352            /**
353             * Sets the social equity asset entry persistence.
354             *
355             * @param socialEquityAssetEntryPersistence the social equity asset entry persistence
356             */
357            public void setSocialEquityAssetEntryPersistence(
358                    SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence) {
359                    this.socialEquityAssetEntryPersistence = socialEquityAssetEntryPersistence;
360            }
361    
362            /**
363             * Gets the social equity history local service.
364             *
365             * @return the social equity history local service
366             */
367            public SocialEquityHistoryLocalService getSocialEquityHistoryLocalService() {
368                    return socialEquityHistoryLocalService;
369            }
370    
371            /**
372             * Sets the social equity history local service.
373             *
374             * @param socialEquityHistoryLocalService the social equity history local service
375             */
376            public void setSocialEquityHistoryLocalService(
377                    SocialEquityHistoryLocalService socialEquityHistoryLocalService) {
378                    this.socialEquityHistoryLocalService = socialEquityHistoryLocalService;
379            }
380    
381            /**
382             * Gets the social equity history persistence.
383             *
384             * @return the social equity history persistence
385             */
386            public SocialEquityHistoryPersistence getSocialEquityHistoryPersistence() {
387                    return socialEquityHistoryPersistence;
388            }
389    
390            /**
391             * Sets the social equity history persistence.
392             *
393             * @param socialEquityHistoryPersistence the social equity history persistence
394             */
395            public void setSocialEquityHistoryPersistence(
396                    SocialEquityHistoryPersistence socialEquityHistoryPersistence) {
397                    this.socialEquityHistoryPersistence = socialEquityHistoryPersistence;
398            }
399    
400            /**
401             * Gets the social equity log local service.
402             *
403             * @return the social equity log local service
404             */
405            public SocialEquityLogLocalService getSocialEquityLogLocalService() {
406                    return socialEquityLogLocalService;
407            }
408    
409            /**
410             * Sets the social equity log local service.
411             *
412             * @param socialEquityLogLocalService the social equity log local service
413             */
414            public void setSocialEquityLogLocalService(
415                    SocialEquityLogLocalService socialEquityLogLocalService) {
416                    this.socialEquityLogLocalService = socialEquityLogLocalService;
417            }
418    
419            /**
420             * Gets the social equity log persistence.
421             *
422             * @return the social equity log persistence
423             */
424            public SocialEquityLogPersistence getSocialEquityLogPersistence() {
425                    return socialEquityLogPersistence;
426            }
427    
428            /**
429             * Sets the social equity log persistence.
430             *
431             * @param socialEquityLogPersistence the social equity log persistence
432             */
433            public void setSocialEquityLogPersistence(
434                    SocialEquityLogPersistence socialEquityLogPersistence) {
435                    this.socialEquityLogPersistence = socialEquityLogPersistence;
436            }
437    
438            /**
439             * Gets the social equity setting local service.
440             *
441             * @return the social equity setting local service
442             */
443            public SocialEquitySettingLocalService getSocialEquitySettingLocalService() {
444                    return socialEquitySettingLocalService;
445            }
446    
447            /**
448             * Sets the social equity setting local service.
449             *
450             * @param socialEquitySettingLocalService the social equity setting local service
451             */
452            public void setSocialEquitySettingLocalService(
453                    SocialEquitySettingLocalService socialEquitySettingLocalService) {
454                    this.socialEquitySettingLocalService = socialEquitySettingLocalService;
455            }
456    
457            /**
458             * Gets the social equity setting persistence.
459             *
460             * @return the social equity setting persistence
461             */
462            public SocialEquitySettingPersistence getSocialEquitySettingPersistence() {
463                    return socialEquitySettingPersistence;
464            }
465    
466            /**
467             * Sets the social equity setting persistence.
468             *
469             * @param socialEquitySettingPersistence the social equity setting persistence
470             */
471            public void setSocialEquitySettingPersistence(
472                    SocialEquitySettingPersistence socialEquitySettingPersistence) {
473                    this.socialEquitySettingPersistence = socialEquitySettingPersistence;
474            }
475    
476            /**
477             * Gets the social equity user local service.
478             *
479             * @return the social equity user local service
480             */
481            public SocialEquityUserLocalService getSocialEquityUserLocalService() {
482                    return socialEquityUserLocalService;
483            }
484    
485            /**
486             * Sets the social equity user local service.
487             *
488             * @param socialEquityUserLocalService the social equity user local service
489             */
490            public void setSocialEquityUserLocalService(
491                    SocialEquityUserLocalService socialEquityUserLocalService) {
492                    this.socialEquityUserLocalService = socialEquityUserLocalService;
493            }
494    
495            /**
496             * Gets the social equity user persistence.
497             *
498             * @return the social equity user persistence
499             */
500            public SocialEquityUserPersistence getSocialEquityUserPersistence() {
501                    return socialEquityUserPersistence;
502            }
503    
504            /**
505             * Sets the social equity user persistence.
506             *
507             * @param socialEquityUserPersistence the social equity user persistence
508             */
509            public void setSocialEquityUserPersistence(
510                    SocialEquityUserPersistence socialEquityUserPersistence) {
511                    this.socialEquityUserPersistence = socialEquityUserPersistence;
512            }
513    
514            /**
515             * Gets the social relation local service.
516             *
517             * @return the social relation local service
518             */
519            public SocialRelationLocalService getSocialRelationLocalService() {
520                    return socialRelationLocalService;
521            }
522    
523            /**
524             * Sets the social relation local service.
525             *
526             * @param socialRelationLocalService the social relation local service
527             */
528            public void setSocialRelationLocalService(
529                    SocialRelationLocalService socialRelationLocalService) {
530                    this.socialRelationLocalService = socialRelationLocalService;
531            }
532    
533            /**
534             * Gets the social relation persistence.
535             *
536             * @return the social relation persistence
537             */
538            public SocialRelationPersistence getSocialRelationPersistence() {
539                    return socialRelationPersistence;
540            }
541    
542            /**
543             * Sets the social relation persistence.
544             *
545             * @param socialRelationPersistence the social relation persistence
546             */
547            public void setSocialRelationPersistence(
548                    SocialRelationPersistence socialRelationPersistence) {
549                    this.socialRelationPersistence = socialRelationPersistence;
550            }
551    
552            /**
553             * Gets the social request local service.
554             *
555             * @return the social request local service
556             */
557            public SocialRequestLocalService getSocialRequestLocalService() {
558                    return socialRequestLocalService;
559            }
560    
561            /**
562             * Sets the social request local service.
563             *
564             * @param socialRequestLocalService the social request local service
565             */
566            public void setSocialRequestLocalService(
567                    SocialRequestLocalService socialRequestLocalService) {
568                    this.socialRequestLocalService = socialRequestLocalService;
569            }
570    
571            /**
572             * Gets the social request persistence.
573             *
574             * @return the social request persistence
575             */
576            public SocialRequestPersistence getSocialRequestPersistence() {
577                    return socialRequestPersistence;
578            }
579    
580            /**
581             * Sets the social request persistence.
582             *
583             * @param socialRequestPersistence the social request persistence
584             */
585            public void setSocialRequestPersistence(
586                    SocialRequestPersistence socialRequestPersistence) {
587                    this.socialRequestPersistence = socialRequestPersistence;
588            }
589    
590            /**
591             * Gets the social request interpreter local service.
592             *
593             * @return the social request interpreter local service
594             */
595            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
596                    return socialRequestInterpreterLocalService;
597            }
598    
599            /**
600             * Sets the social request interpreter local service.
601             *
602             * @param socialRequestInterpreterLocalService the social request interpreter local service
603             */
604            public void setSocialRequestInterpreterLocalService(
605                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
606                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
607            }
608    
609            /**
610             * Gets the counter local service.
611             *
612             * @return the counter local service
613             */
614            public CounterLocalService getCounterLocalService() {
615                    return counterLocalService;
616            }
617    
618            /**
619             * Sets the counter local service.
620             *
621             * @param counterLocalService the counter local service
622             */
623            public void setCounterLocalService(CounterLocalService counterLocalService) {
624                    this.counterLocalService = counterLocalService;
625            }
626    
627            /**
628             * Gets the group local service.
629             *
630             * @return the group local service
631             */
632            public GroupLocalService getGroupLocalService() {
633                    return groupLocalService;
634            }
635    
636            /**
637             * Sets the group local service.
638             *
639             * @param groupLocalService the group local service
640             */
641            public void setGroupLocalService(GroupLocalService groupLocalService) {
642                    this.groupLocalService = groupLocalService;
643            }
644    
645            /**
646             * Gets the group remote service.
647             *
648             * @return the group remote service
649             */
650            public GroupService getGroupService() {
651                    return groupService;
652            }
653    
654            /**
655             * Sets the group remote service.
656             *
657             * @param groupService the group remote service
658             */
659            public void setGroupService(GroupService groupService) {
660                    this.groupService = groupService;
661            }
662    
663            /**
664             * Gets the group persistence.
665             *
666             * @return the group persistence
667             */
668            public GroupPersistence getGroupPersistence() {
669                    return groupPersistence;
670            }
671    
672            /**
673             * Sets the group persistence.
674             *
675             * @param groupPersistence the group persistence
676             */
677            public void setGroupPersistence(GroupPersistence groupPersistence) {
678                    this.groupPersistence = groupPersistence;
679            }
680    
681            /**
682             * Gets the group finder.
683             *
684             * @return the group finder
685             */
686            public GroupFinder getGroupFinder() {
687                    return groupFinder;
688            }
689    
690            /**
691             * Sets the group finder.
692             *
693             * @param groupFinder the group finder
694             */
695            public void setGroupFinder(GroupFinder groupFinder) {
696                    this.groupFinder = groupFinder;
697            }
698    
699            /**
700             * Gets the layout local service.
701             *
702             * @return the layout local service
703             */
704            public LayoutLocalService getLayoutLocalService() {
705                    return layoutLocalService;
706            }
707    
708            /**
709             * Sets the layout local service.
710             *
711             * @param layoutLocalService the layout local service
712             */
713            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
714                    this.layoutLocalService = layoutLocalService;
715            }
716    
717            /**
718             * Gets the layout remote service.
719             *
720             * @return the layout remote service
721             */
722            public LayoutService getLayoutService() {
723                    return layoutService;
724            }
725    
726            /**
727             * Sets the layout remote service.
728             *
729             * @param layoutService the layout remote service
730             */
731            public void setLayoutService(LayoutService layoutService) {
732                    this.layoutService = layoutService;
733            }
734    
735            /**
736             * Gets the layout persistence.
737             *
738             * @return the layout persistence
739             */
740            public LayoutPersistence getLayoutPersistence() {
741                    return layoutPersistence;
742            }
743    
744            /**
745             * Sets the layout persistence.
746             *
747             * @param layoutPersistence the layout persistence
748             */
749            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
750                    this.layoutPersistence = layoutPersistence;
751            }
752    
753            /**
754             * Gets the layout finder.
755             *
756             * @return the layout finder
757             */
758            public LayoutFinder getLayoutFinder() {
759                    return layoutFinder;
760            }
761    
762            /**
763             * Sets the layout finder.
764             *
765             * @param layoutFinder the layout finder
766             */
767            public void setLayoutFinder(LayoutFinder layoutFinder) {
768                    this.layoutFinder = layoutFinder;
769            }
770    
771            /**
772             * Gets the resource local service.
773             *
774             * @return the resource local service
775             */
776            public ResourceLocalService getResourceLocalService() {
777                    return resourceLocalService;
778            }
779    
780            /**
781             * Sets the resource local service.
782             *
783             * @param resourceLocalService the resource local service
784             */
785            public void setResourceLocalService(
786                    ResourceLocalService resourceLocalService) {
787                    this.resourceLocalService = resourceLocalService;
788            }
789    
790            /**
791             * Gets the resource remote service.
792             *
793             * @return the resource remote service
794             */
795            public ResourceService getResourceService() {
796                    return resourceService;
797            }
798    
799            /**
800             * Sets the resource remote service.
801             *
802             * @param resourceService the resource remote service
803             */
804            public void setResourceService(ResourceService resourceService) {
805                    this.resourceService = resourceService;
806            }
807    
808            /**
809             * Gets the resource persistence.
810             *
811             * @return the resource persistence
812             */
813            public ResourcePersistence getResourcePersistence() {
814                    return resourcePersistence;
815            }
816    
817            /**
818             * Sets the resource persistence.
819             *
820             * @param resourcePersistence the resource persistence
821             */
822            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
823                    this.resourcePersistence = resourcePersistence;
824            }
825    
826            /**
827             * Gets the resource finder.
828             *
829             * @return the resource finder
830             */
831            public ResourceFinder getResourceFinder() {
832                    return resourceFinder;
833            }
834    
835            /**
836             * Sets the resource finder.
837             *
838             * @param resourceFinder the resource finder
839             */
840            public void setResourceFinder(ResourceFinder resourceFinder) {
841                    this.resourceFinder = resourceFinder;
842            }
843    
844            /**
845             * Gets the user local service.
846             *
847             * @return the user local service
848             */
849            public UserLocalService getUserLocalService() {
850                    return userLocalService;
851            }
852    
853            /**
854             * Sets the user local service.
855             *
856             * @param userLocalService the user local service
857             */
858            public void setUserLocalService(UserLocalService userLocalService) {
859                    this.userLocalService = userLocalService;
860            }
861    
862            /**
863             * Gets the user remote service.
864             *
865             * @return the user remote service
866             */
867            public UserService getUserService() {
868                    return userService;
869            }
870    
871            /**
872             * Sets the user remote service.
873             *
874             * @param userService the user remote service
875             */
876            public void setUserService(UserService userService) {
877                    this.userService = userService;
878            }
879    
880            /**
881             * Gets the user persistence.
882             *
883             * @return the user persistence
884             */
885            public UserPersistence getUserPersistence() {
886                    return userPersistence;
887            }
888    
889            /**
890             * Sets the user persistence.
891             *
892             * @param userPersistence the user persistence
893             */
894            public void setUserPersistence(UserPersistence userPersistence) {
895                    this.userPersistence = userPersistence;
896            }
897    
898            /**
899             * Gets the user finder.
900             *
901             * @return the user finder
902             */
903            public UserFinder getUserFinder() {
904                    return userFinder;
905            }
906    
907            /**
908             * Sets the user finder.
909             *
910             * @param userFinder the user finder
911             */
912            public void setUserFinder(UserFinder userFinder) {
913                    this.userFinder = userFinder;
914            }
915    
916            /**
917             * Performs an SQL query.
918             *
919             * @param sql the sql query to perform
920             */
921            protected void runSQL(String sql) throws SystemException {
922                    try {
923                            DataSource dataSource = socialActivityPersistence.getDataSource();
924    
925                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
926                                            sql, new int[0]);
927    
928                            sqlUpdate.update();
929                    }
930                    catch (Exception e) {
931                            throw new SystemException(e);
932                    }
933            }
934    
935            @BeanReference(type = SocialActivityLocalService.class)
936            protected SocialActivityLocalService socialActivityLocalService;
937            @BeanReference(type = SocialActivityPersistence.class)
938            protected SocialActivityPersistence socialActivityPersistence;
939            @BeanReference(type = SocialActivityFinder.class)
940            protected SocialActivityFinder socialActivityFinder;
941            @BeanReference(type = SocialActivityInterpreterLocalService.class)
942            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
943            @BeanReference(type = SocialEquityAssetEntryPersistence.class)
944            protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
945            @BeanReference(type = SocialEquityHistoryLocalService.class)
946            protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
947            @BeanReference(type = SocialEquityHistoryPersistence.class)
948            protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
949            @BeanReference(type = SocialEquityLogLocalService.class)
950            protected SocialEquityLogLocalService socialEquityLogLocalService;
951            @BeanReference(type = SocialEquityLogPersistence.class)
952            protected SocialEquityLogPersistence socialEquityLogPersistence;
953            @BeanReference(type = SocialEquitySettingLocalService.class)
954            protected SocialEquitySettingLocalService socialEquitySettingLocalService;
955            @BeanReference(type = SocialEquitySettingPersistence.class)
956            protected SocialEquitySettingPersistence socialEquitySettingPersistence;
957            @BeanReference(type = SocialEquityUserLocalService.class)
958            protected SocialEquityUserLocalService socialEquityUserLocalService;
959            @BeanReference(type = SocialEquityUserPersistence.class)
960            protected SocialEquityUserPersistence socialEquityUserPersistence;
961            @BeanReference(type = SocialRelationLocalService.class)
962            protected SocialRelationLocalService socialRelationLocalService;
963            @BeanReference(type = SocialRelationPersistence.class)
964            protected SocialRelationPersistence socialRelationPersistence;
965            @BeanReference(type = SocialRequestLocalService.class)
966            protected SocialRequestLocalService socialRequestLocalService;
967            @BeanReference(type = SocialRequestPersistence.class)
968            protected SocialRequestPersistence socialRequestPersistence;
969            @BeanReference(type = SocialRequestInterpreterLocalService.class)
970            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
971            @BeanReference(type = CounterLocalService.class)
972            protected CounterLocalService counterLocalService;
973            @BeanReference(type = GroupLocalService.class)
974            protected GroupLocalService groupLocalService;
975            @BeanReference(type = GroupService.class)
976            protected GroupService groupService;
977            @BeanReference(type = GroupPersistence.class)
978            protected GroupPersistence groupPersistence;
979            @BeanReference(type = GroupFinder.class)
980            protected GroupFinder groupFinder;
981            @BeanReference(type = LayoutLocalService.class)
982            protected LayoutLocalService layoutLocalService;
983            @BeanReference(type = LayoutService.class)
984            protected LayoutService layoutService;
985            @BeanReference(type = LayoutPersistence.class)
986            protected LayoutPersistence layoutPersistence;
987            @BeanReference(type = LayoutFinder.class)
988            protected LayoutFinder layoutFinder;
989            @BeanReference(type = ResourceLocalService.class)
990            protected ResourceLocalService resourceLocalService;
991            @BeanReference(type = ResourceService.class)
992            protected ResourceService resourceService;
993            @BeanReference(type = ResourcePersistence.class)
994            protected ResourcePersistence resourcePersistence;
995            @BeanReference(type = ResourceFinder.class)
996            protected ResourceFinder resourceFinder;
997            @BeanReference(type = UserLocalService.class)
998            protected UserLocalService userLocalService;
999            @BeanReference(type = UserService.class)
1000            protected UserService userService;
1001            @BeanReference(type = UserPersistence.class)
1002            protected UserPersistence userPersistence;
1003            @BeanReference(type = UserFinder.class)
1004            protected UserFinder userFinder;
1005    }