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