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