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