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