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