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