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