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