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