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