001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
025    import com.liferay.portal.kernel.exception.PortalException;
026    import com.liferay.portal.kernel.exception.SystemException;
027    import com.liferay.portal.kernel.search.Indexable;
028    import com.liferay.portal.kernel.search.IndexableType;
029    import com.liferay.portal.kernel.util.OrderByComparator;
030    import com.liferay.portal.model.PersistedModel;
031    import com.liferay.portal.service.BaseLocalServiceImpl;
032    import com.liferay.portal.service.GroupLocalService;
033    import com.liferay.portal.service.GroupService;
034    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
035    import com.liferay.portal.service.ResourceLocalService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.GroupFinder;
039    import com.liferay.portal.service.persistence.GroupPersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.social.model.SocialActivitySetting;
044    import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
045    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
046    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
047    import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
048    import com.liferay.portlet.social.service.SocialActivityLocalService;
049    import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
050    import com.liferay.portlet.social.service.SocialActivitySettingService;
051    import com.liferay.portlet.social.service.SocialRelationLocalService;
052    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
053    import com.liferay.portlet.social.service.SocialRequestLocalService;
054    import com.liferay.portlet.social.service.SocialRequestService;
055    import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
056    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
057    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
058    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
059    import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
060    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
061    import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
062    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
063    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
064    
065    import java.io.Serializable;
066    
067    import java.util.List;
068    
069    import javax.sql.DataSource;
070    
071    /**
072     * The base implementation of the social activity setting local service.
073     *
074     * <p>
075     * 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.SocialActivitySettingLocalServiceImpl}.
076     * </p>
077     *
078     * @author Brian Wing Shun Chan
079     * @see com.liferay.portlet.social.service.impl.SocialActivitySettingLocalServiceImpl
080     * @see com.liferay.portlet.social.service.SocialActivitySettingLocalServiceUtil
081     * @generated
082     */
083    public abstract class SocialActivitySettingLocalServiceBaseImpl
084            extends BaseLocalServiceImpl implements SocialActivitySettingLocalService,
085                    IdentifiableBean {
086            /*
087             * NOTE FOR DEVELOPERS:
088             *
089             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivitySettingLocalServiceUtil} to access the social activity setting local service.
090             */
091    
092            /**
093             * Adds the social activity setting to the database. Also notifies the appropriate model listeners.
094             *
095             * @param socialActivitySetting the social activity setting
096             * @return the social activity setting that was added
097             * @throws SystemException if a system exception occurred
098             */
099            @Indexable(type = IndexableType.REINDEX)
100            public SocialActivitySetting addSocialActivitySetting(
101                    SocialActivitySetting socialActivitySetting) throws SystemException {
102                    socialActivitySetting.setNew(true);
103    
104                    return socialActivitySettingPersistence.update(socialActivitySetting);
105            }
106    
107            /**
108             * Creates a new social activity setting with the primary key. Does not add the social activity setting to the database.
109             *
110             * @param activitySettingId the primary key for the new social activity setting
111             * @return the new social activity setting
112             */
113            public SocialActivitySetting createSocialActivitySetting(
114                    long activitySettingId) {
115                    return socialActivitySettingPersistence.create(activitySettingId);
116            }
117    
118            /**
119             * Deletes the social activity setting with the primary key from the database. Also notifies the appropriate model listeners.
120             *
121             * @param activitySettingId the primary key of the social activity setting
122             * @return the social activity setting that was removed
123             * @throws PortalException if a social activity setting with the primary key could not be found
124             * @throws SystemException if a system exception occurred
125             */
126            @Indexable(type = IndexableType.DELETE)
127            public SocialActivitySetting deleteSocialActivitySetting(
128                    long activitySettingId) throws PortalException, SystemException {
129                    return socialActivitySettingPersistence.remove(activitySettingId);
130            }
131    
132            /**
133             * Deletes the social activity setting from the database. Also notifies the appropriate model listeners.
134             *
135             * @param socialActivitySetting the social activity setting
136             * @return the social activity setting that was removed
137             * @throws SystemException if a system exception occurred
138             */
139            @Indexable(type = IndexableType.DELETE)
140            public SocialActivitySetting deleteSocialActivitySetting(
141                    SocialActivitySetting socialActivitySetting) throws SystemException {
142                    return socialActivitySettingPersistence.remove(socialActivitySetting);
143            }
144    
145            public DynamicQuery dynamicQuery() {
146                    Class<?> clazz = getClass();
147    
148                    return DynamicQueryFactoryUtil.forClass(SocialActivitySetting.class,
149                            clazz.getClassLoader());
150            }
151    
152            /**
153             * Performs a dynamic query on the database and returns the matching rows.
154             *
155             * @param dynamicQuery the dynamic query
156             * @return the matching rows
157             * @throws SystemException if a system exception occurred
158             */
159            @SuppressWarnings("rawtypes")
160            public List dynamicQuery(DynamicQuery dynamicQuery)
161                    throws SystemException {
162                    return socialActivitySettingPersistence.findWithDynamicQuery(dynamicQuery);
163            }
164    
165            /**
166             * Performs a dynamic query on the database and returns a range of the matching rows.
167             *
168             * <p>
169             * 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.
170             * </p>
171             *
172             * @param dynamicQuery the dynamic query
173             * @param start the lower bound of the range of model instances
174             * @param end the upper bound of the range of model instances (not inclusive)
175             * @return the range of matching rows
176             * @throws SystemException if a system exception occurred
177             */
178            @SuppressWarnings("rawtypes")
179            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
180                    throws SystemException {
181                    return socialActivitySettingPersistence.findWithDynamicQuery(dynamicQuery,
182                            start, end);
183            }
184    
185            /**
186             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
187             *
188             * <p>
189             * 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.
190             * </p>
191             *
192             * @param dynamicQuery the dynamic query
193             * @param start the lower bound of the range of model instances
194             * @param end the upper bound of the range of model instances (not inclusive)
195             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196             * @return the ordered range of matching rows
197             * @throws SystemException if a system exception occurred
198             */
199            @SuppressWarnings("rawtypes")
200            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
201                    OrderByComparator orderByComparator) throws SystemException {
202                    return socialActivitySettingPersistence.findWithDynamicQuery(dynamicQuery,
203                            start, end, orderByComparator);
204            }
205    
206            /**
207             * Returns the number of rows that match the dynamic query.
208             *
209             * @param dynamicQuery the dynamic query
210             * @return the number of rows that match the dynamic query
211             * @throws SystemException if a system exception occurred
212             */
213            public long dynamicQueryCount(DynamicQuery dynamicQuery)
214                    throws SystemException {
215                    return socialActivitySettingPersistence.countWithDynamicQuery(dynamicQuery);
216            }
217    
218            public SocialActivitySetting fetchSocialActivitySetting(
219                    long activitySettingId) throws SystemException {
220                    return socialActivitySettingPersistence.fetchByPrimaryKey(activitySettingId);
221            }
222    
223            /**
224             * Returns the social activity setting with the primary key.
225             *
226             * @param activitySettingId the primary key of the social activity setting
227             * @return the social activity setting
228             * @throws PortalException if a social activity setting with the primary key could not be found
229             * @throws SystemException if a system exception occurred
230             */
231            public SocialActivitySetting getSocialActivitySetting(
232                    long activitySettingId) throws PortalException, SystemException {
233                    return socialActivitySettingPersistence.findByPrimaryKey(activitySettingId);
234            }
235    
236            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
237                    throws PortalException, SystemException {
238                    return socialActivitySettingPersistence.findByPrimaryKey(primaryKeyObj);
239            }
240    
241            /**
242             * Returns a range of all the social activity settings.
243             *
244             * <p>
245             * 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.
246             * </p>
247             *
248             * @param start the lower bound of the range of social activity settings
249             * @param end the upper bound of the range of social activity settings (not inclusive)
250             * @return the range of social activity settings
251             * @throws SystemException if a system exception occurred
252             */
253            public List<SocialActivitySetting> getSocialActivitySettings(int start,
254                    int end) throws SystemException {
255                    return socialActivitySettingPersistence.findAll(start, end);
256            }
257    
258            /**
259             * Returns the number of social activity settings.
260             *
261             * @return the number of social activity settings
262             * @throws SystemException if a system exception occurred
263             */
264            public int getSocialActivitySettingsCount() throws SystemException {
265                    return socialActivitySettingPersistence.countAll();
266            }
267    
268            /**
269             * Updates the social activity setting in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
270             *
271             * @param socialActivitySetting the social activity setting
272             * @return the social activity setting that was updated
273             * @throws SystemException if a system exception occurred
274             */
275            @Indexable(type = IndexableType.REINDEX)
276            public SocialActivitySetting updateSocialActivitySetting(
277                    SocialActivitySetting socialActivitySetting) throws SystemException {
278                    return socialActivitySettingPersistence.update(socialActivitySetting);
279            }
280    
281            /**
282             * Returns the social activity local service.
283             *
284             * @return the social activity local service
285             */
286            public SocialActivityLocalService getSocialActivityLocalService() {
287                    return socialActivityLocalService;
288            }
289    
290            /**
291             * Sets the social activity local service.
292             *
293             * @param socialActivityLocalService the social activity local service
294             */
295            public void setSocialActivityLocalService(
296                    SocialActivityLocalService socialActivityLocalService) {
297                    this.socialActivityLocalService = socialActivityLocalService;
298            }
299    
300            /**
301             * Returns the social activity persistence.
302             *
303             * @return the social activity persistence
304             */
305            public SocialActivityPersistence getSocialActivityPersistence() {
306                    return socialActivityPersistence;
307            }
308    
309            /**
310             * Sets the social activity persistence.
311             *
312             * @param socialActivityPersistence the social activity persistence
313             */
314            public void setSocialActivityPersistence(
315                    SocialActivityPersistence socialActivityPersistence) {
316                    this.socialActivityPersistence = socialActivityPersistence;
317            }
318    
319            /**
320             * Returns the social activity finder.
321             *
322             * @return the social activity finder
323             */
324            public SocialActivityFinder getSocialActivityFinder() {
325                    return socialActivityFinder;
326            }
327    
328            /**
329             * Sets the social activity finder.
330             *
331             * @param socialActivityFinder the social activity finder
332             */
333            public void setSocialActivityFinder(
334                    SocialActivityFinder socialActivityFinder) {
335                    this.socialActivityFinder = socialActivityFinder;
336            }
337    
338            /**
339             * Returns the social activity achievement local service.
340             *
341             * @return the social activity achievement local service
342             */
343            public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
344                    return socialActivityAchievementLocalService;
345            }
346    
347            /**
348             * Sets the social activity achievement local service.
349             *
350             * @param socialActivityAchievementLocalService the social activity achievement local service
351             */
352            public void setSocialActivityAchievementLocalService(
353                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
354                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
355            }
356    
357            /**
358             * Returns the social activity achievement persistence.
359             *
360             * @return the social activity achievement persistence
361             */
362            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
363                    return socialActivityAchievementPersistence;
364            }
365    
366            /**
367             * Sets the social activity achievement persistence.
368             *
369             * @param socialActivityAchievementPersistence the social activity achievement persistence
370             */
371            public void setSocialActivityAchievementPersistence(
372                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
373                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
374            }
375    
376            /**
377             * Returns the social activity counter local service.
378             *
379             * @return the social activity counter local service
380             */
381            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
382                    return socialActivityCounterLocalService;
383            }
384    
385            /**
386             * Sets the social activity counter local service.
387             *
388             * @param socialActivityCounterLocalService the social activity counter local service
389             */
390            public void setSocialActivityCounterLocalService(
391                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
392                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
393            }
394    
395            /**
396             * Returns the social activity counter persistence.
397             *
398             * @return the social activity counter persistence
399             */
400            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
401                    return socialActivityCounterPersistence;
402            }
403    
404            /**
405             * Sets the social activity counter persistence.
406             *
407             * @param socialActivityCounterPersistence the social activity counter persistence
408             */
409            public void setSocialActivityCounterPersistence(
410                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
411                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
412            }
413    
414            /**
415             * Returns the social activity counter finder.
416             *
417             * @return the social activity counter finder
418             */
419            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
420                    return socialActivityCounterFinder;
421            }
422    
423            /**
424             * Sets the social activity counter finder.
425             *
426             * @param socialActivityCounterFinder the social activity counter finder
427             */
428            public void setSocialActivityCounterFinder(
429                    SocialActivityCounterFinder socialActivityCounterFinder) {
430                    this.socialActivityCounterFinder = socialActivityCounterFinder;
431            }
432    
433            /**
434             * Returns the social activity interpreter local service.
435             *
436             * @return the social activity interpreter local service
437             */
438            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
439                    return socialActivityInterpreterLocalService;
440            }
441    
442            /**
443             * Sets the social activity interpreter local service.
444             *
445             * @param socialActivityInterpreterLocalService the social activity interpreter local service
446             */
447            public void setSocialActivityInterpreterLocalService(
448                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
449                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
450            }
451    
452            /**
453             * Returns the social activity limit local service.
454             *
455             * @return the social activity limit local service
456             */
457            public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
458                    return socialActivityLimitLocalService;
459            }
460    
461            /**
462             * Sets the social activity limit local service.
463             *
464             * @param socialActivityLimitLocalService the social activity limit local service
465             */
466            public void setSocialActivityLimitLocalService(
467                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
468                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
469            }
470    
471            /**
472             * Returns the social activity limit persistence.
473             *
474             * @return the social activity limit persistence
475             */
476            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
477                    return socialActivityLimitPersistence;
478            }
479    
480            /**
481             * Sets the social activity limit persistence.
482             *
483             * @param socialActivityLimitPersistence the social activity limit persistence
484             */
485            public void setSocialActivityLimitPersistence(
486                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
487                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
488            }
489    
490            /**
491             * Returns the social activity setting local service.
492             *
493             * @return the social activity setting local service
494             */
495            public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
496                    return socialActivitySettingLocalService;
497            }
498    
499            /**
500             * Sets the social activity setting local service.
501             *
502             * @param socialActivitySettingLocalService the social activity setting local service
503             */
504            public void setSocialActivitySettingLocalService(
505                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
506                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
507            }
508    
509            /**
510             * Returns the social activity setting remote service.
511             *
512             * @return the social activity setting remote service
513             */
514            public SocialActivitySettingService getSocialActivitySettingService() {
515                    return socialActivitySettingService;
516            }
517    
518            /**
519             * Sets the social activity setting remote service.
520             *
521             * @param socialActivitySettingService the social activity setting remote service
522             */
523            public void setSocialActivitySettingService(
524                    SocialActivitySettingService socialActivitySettingService) {
525                    this.socialActivitySettingService = socialActivitySettingService;
526            }
527    
528            /**
529             * Returns the social activity setting persistence.
530             *
531             * @return the social activity setting persistence
532             */
533            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
534                    return socialActivitySettingPersistence;
535            }
536    
537            /**
538             * Sets the social activity setting persistence.
539             *
540             * @param socialActivitySettingPersistence the social activity setting persistence
541             */
542            public void setSocialActivitySettingPersistence(
543                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
544                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
545            }
546    
547            /**
548             * Returns the social relation local service.
549             *
550             * @return the social relation local service
551             */
552            public SocialRelationLocalService getSocialRelationLocalService() {
553                    return socialRelationLocalService;
554            }
555    
556            /**
557             * Sets the social relation local service.
558             *
559             * @param socialRelationLocalService the social relation local service
560             */
561            public void setSocialRelationLocalService(
562                    SocialRelationLocalService socialRelationLocalService) {
563                    this.socialRelationLocalService = socialRelationLocalService;
564            }
565    
566            /**
567             * Returns the social relation persistence.
568             *
569             * @return the social relation persistence
570             */
571            public SocialRelationPersistence getSocialRelationPersistence() {
572                    return socialRelationPersistence;
573            }
574    
575            /**
576             * Sets the social relation persistence.
577             *
578             * @param socialRelationPersistence the social relation persistence
579             */
580            public void setSocialRelationPersistence(
581                    SocialRelationPersistence socialRelationPersistence) {
582                    this.socialRelationPersistence = socialRelationPersistence;
583            }
584    
585            /**
586             * Returns the social request local service.
587             *
588             * @return the social request local service
589             */
590            public SocialRequestLocalService getSocialRequestLocalService() {
591                    return socialRequestLocalService;
592            }
593    
594            /**
595             * Sets the social request local service.
596             *
597             * @param socialRequestLocalService the social request local service
598             */
599            public void setSocialRequestLocalService(
600                    SocialRequestLocalService socialRequestLocalService) {
601                    this.socialRequestLocalService = socialRequestLocalService;
602            }
603    
604            /**
605             * Returns the social request remote service.
606             *
607             * @return the social request remote service
608             */
609            public SocialRequestService getSocialRequestService() {
610                    return socialRequestService;
611            }
612    
613            /**
614             * Sets the social request remote service.
615             *
616             * @param socialRequestService the social request remote service
617             */
618            public void setSocialRequestService(
619                    SocialRequestService socialRequestService) {
620                    this.socialRequestService = socialRequestService;
621            }
622    
623            /**
624             * Returns the social request persistence.
625             *
626             * @return the social request persistence
627             */
628            public SocialRequestPersistence getSocialRequestPersistence() {
629                    return socialRequestPersistence;
630            }
631    
632            /**
633             * Sets the social request persistence.
634             *
635             * @param socialRequestPersistence the social request persistence
636             */
637            public void setSocialRequestPersistence(
638                    SocialRequestPersistence socialRequestPersistence) {
639                    this.socialRequestPersistence = socialRequestPersistence;
640            }
641    
642            /**
643             * Returns the social request interpreter local service.
644             *
645             * @return the social request interpreter local service
646             */
647            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
648                    return socialRequestInterpreterLocalService;
649            }
650    
651            /**
652             * Sets the social request interpreter local service.
653             *
654             * @param socialRequestInterpreterLocalService the social request interpreter local service
655             */
656            public void setSocialRequestInterpreterLocalService(
657                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
658                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
659            }
660    
661            /**
662             * Returns the counter local service.
663             *
664             * @return the counter local service
665             */
666            public CounterLocalService getCounterLocalService() {
667                    return counterLocalService;
668            }
669    
670            /**
671             * Sets the counter local service.
672             *
673             * @param counterLocalService the counter local service
674             */
675            public void setCounterLocalService(CounterLocalService counterLocalService) {
676                    this.counterLocalService = counterLocalService;
677            }
678    
679            /**
680             * Returns the group local service.
681             *
682             * @return the group local service
683             */
684            public GroupLocalService getGroupLocalService() {
685                    return groupLocalService;
686            }
687    
688            /**
689             * Sets the group local service.
690             *
691             * @param groupLocalService the group local service
692             */
693            public void setGroupLocalService(GroupLocalService groupLocalService) {
694                    this.groupLocalService = groupLocalService;
695            }
696    
697            /**
698             * Returns the group remote service.
699             *
700             * @return the group remote service
701             */
702            public GroupService getGroupService() {
703                    return groupService;
704            }
705    
706            /**
707             * Sets the group remote service.
708             *
709             * @param groupService the group remote service
710             */
711            public void setGroupService(GroupService groupService) {
712                    this.groupService = groupService;
713            }
714    
715            /**
716             * Returns the group persistence.
717             *
718             * @return the group persistence
719             */
720            public GroupPersistence getGroupPersistence() {
721                    return groupPersistence;
722            }
723    
724            /**
725             * Sets the group persistence.
726             *
727             * @param groupPersistence the group persistence
728             */
729            public void setGroupPersistence(GroupPersistence groupPersistence) {
730                    this.groupPersistence = groupPersistence;
731            }
732    
733            /**
734             * Returns the group finder.
735             *
736             * @return the group finder
737             */
738            public GroupFinder getGroupFinder() {
739                    return groupFinder;
740            }
741    
742            /**
743             * Sets the group finder.
744             *
745             * @param groupFinder the group finder
746             */
747            public void setGroupFinder(GroupFinder groupFinder) {
748                    this.groupFinder = groupFinder;
749            }
750    
751            /**
752             * Returns the resource local service.
753             *
754             * @return the resource local service
755             */
756            public ResourceLocalService getResourceLocalService() {
757                    return resourceLocalService;
758            }
759    
760            /**
761             * Sets the resource local service.
762             *
763             * @param resourceLocalService the resource local service
764             */
765            public void setResourceLocalService(
766                    ResourceLocalService resourceLocalService) {
767                    this.resourceLocalService = resourceLocalService;
768            }
769    
770            /**
771             * Returns the user local service.
772             *
773             * @return the user local service
774             */
775            public UserLocalService getUserLocalService() {
776                    return userLocalService;
777            }
778    
779            /**
780             * Sets the user local service.
781             *
782             * @param userLocalService the user local service
783             */
784            public void setUserLocalService(UserLocalService userLocalService) {
785                    this.userLocalService = userLocalService;
786            }
787    
788            /**
789             * Returns the user remote service.
790             *
791             * @return the user remote service
792             */
793            public UserService getUserService() {
794                    return userService;
795            }
796    
797            /**
798             * Sets the user remote service.
799             *
800             * @param userService the user remote service
801             */
802            public void setUserService(UserService userService) {
803                    this.userService = userService;
804            }
805    
806            /**
807             * Returns the user persistence.
808             *
809             * @return the user persistence
810             */
811            public UserPersistence getUserPersistence() {
812                    return userPersistence;
813            }
814    
815            /**
816             * Sets the user persistence.
817             *
818             * @param userPersistence the user persistence
819             */
820            public void setUserPersistence(UserPersistence userPersistence) {
821                    this.userPersistence = userPersistence;
822            }
823    
824            /**
825             * Returns the user finder.
826             *
827             * @return the user finder
828             */
829            public UserFinder getUserFinder() {
830                    return userFinder;
831            }
832    
833            /**
834             * Sets the user finder.
835             *
836             * @param userFinder the user finder
837             */
838            public void setUserFinder(UserFinder userFinder) {
839                    this.userFinder = userFinder;
840            }
841    
842            public void afterPropertiesSet() {
843                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivitySetting",
844                            socialActivitySettingLocalService);
845            }
846    
847            public void destroy() {
848                    persistedModelLocalServiceRegistry.unregister(
849                            "com.liferay.portlet.social.model.SocialActivitySetting");
850            }
851    
852            /**
853             * Returns the Spring bean ID for this bean.
854             *
855             * @return the Spring bean ID for this bean
856             */
857            public String getBeanIdentifier() {
858                    return _beanIdentifier;
859            }
860    
861            /**
862             * Sets the Spring bean ID for this bean.
863             *
864             * @param beanIdentifier the Spring bean ID for this bean
865             */
866            public void setBeanIdentifier(String beanIdentifier) {
867                    _beanIdentifier = beanIdentifier;
868            }
869    
870            protected Class<?> getModelClass() {
871                    return SocialActivitySetting.class;
872            }
873    
874            protected String getModelClassName() {
875                    return SocialActivitySetting.class.getName();
876            }
877    
878            /**
879             * Performs an SQL query.
880             *
881             * @param sql the sql query
882             */
883            protected void runSQL(String sql) throws SystemException {
884                    try {
885                            DataSource dataSource = socialActivitySettingPersistence.getDataSource();
886    
887                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
888                                            sql, new int[0]);
889    
890                            sqlUpdate.update();
891                    }
892                    catch (Exception e) {
893                            throw new SystemException(e);
894                    }
895            }
896    
897            @BeanReference(type = SocialActivityLocalService.class)
898            protected SocialActivityLocalService socialActivityLocalService;
899            @BeanReference(type = SocialActivityPersistence.class)
900            protected SocialActivityPersistence socialActivityPersistence;
901            @BeanReference(type = SocialActivityFinder.class)
902            protected SocialActivityFinder socialActivityFinder;
903            @BeanReference(type = SocialActivityAchievementLocalService.class)
904            protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
905            @BeanReference(type = SocialActivityAchievementPersistence.class)
906            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
907            @BeanReference(type = SocialActivityCounterLocalService.class)
908            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
909            @BeanReference(type = SocialActivityCounterPersistence.class)
910            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
911            @BeanReference(type = SocialActivityCounterFinder.class)
912            protected SocialActivityCounterFinder socialActivityCounterFinder;
913            @BeanReference(type = SocialActivityInterpreterLocalService.class)
914            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
915            @BeanReference(type = SocialActivityLimitLocalService.class)
916            protected SocialActivityLimitLocalService socialActivityLimitLocalService;
917            @BeanReference(type = SocialActivityLimitPersistence.class)
918            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
919            @BeanReference(type = SocialActivitySettingLocalService.class)
920            protected SocialActivitySettingLocalService socialActivitySettingLocalService;
921            @BeanReference(type = SocialActivitySettingService.class)
922            protected SocialActivitySettingService socialActivitySettingService;
923            @BeanReference(type = SocialActivitySettingPersistence.class)
924            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
925            @BeanReference(type = SocialRelationLocalService.class)
926            protected SocialRelationLocalService socialRelationLocalService;
927            @BeanReference(type = SocialRelationPersistence.class)
928            protected SocialRelationPersistence socialRelationPersistence;
929            @BeanReference(type = SocialRequestLocalService.class)
930            protected SocialRequestLocalService socialRequestLocalService;
931            @BeanReference(type = SocialRequestService.class)
932            protected SocialRequestService socialRequestService;
933            @BeanReference(type = SocialRequestPersistence.class)
934            protected SocialRequestPersistence socialRequestPersistence;
935            @BeanReference(type = SocialRequestInterpreterLocalService.class)
936            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
937            @BeanReference(type = CounterLocalService.class)
938            protected CounterLocalService counterLocalService;
939            @BeanReference(type = GroupLocalService.class)
940            protected GroupLocalService groupLocalService;
941            @BeanReference(type = GroupService.class)
942            protected GroupService groupService;
943            @BeanReference(type = GroupPersistence.class)
944            protected GroupPersistence groupPersistence;
945            @BeanReference(type = GroupFinder.class)
946            protected GroupFinder groupFinder;
947            @BeanReference(type = ResourceLocalService.class)
948            protected ResourceLocalService resourceLocalService;
949            @BeanReference(type = UserLocalService.class)
950            protected UserLocalService userLocalService;
951            @BeanReference(type = UserService.class)
952            protected UserService userService;
953            @BeanReference(type = UserPersistence.class)
954            protected UserPersistence userPersistence;
955            @BeanReference(type = UserFinder.class)
956            protected UserFinder userFinder;
957            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
958            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
959            private String _beanIdentifier;
960    }