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 persistence.
318             *
319             * @return the social activity persistence
320             */
321            public SocialActivityPersistence getSocialActivityPersistence() {
322                    return socialActivityPersistence;
323            }
324    
325            /**
326             * Sets the social activity persistence.
327             *
328             * @param socialActivityPersistence the social activity persistence
329             */
330            public void setSocialActivityPersistence(
331                    SocialActivityPersistence socialActivityPersistence) {
332                    this.socialActivityPersistence = socialActivityPersistence;
333            }
334    
335            /**
336             * Returns the social activity finder.
337             *
338             * @return the social activity finder
339             */
340            public SocialActivityFinder getSocialActivityFinder() {
341                    return socialActivityFinder;
342            }
343    
344            /**
345             * Sets the social activity finder.
346             *
347             * @param socialActivityFinder the social activity finder
348             */
349            public void setSocialActivityFinder(
350                    SocialActivityFinder socialActivityFinder) {
351                    this.socialActivityFinder = socialActivityFinder;
352            }
353    
354            /**
355             * Returns the social activity achievement local service.
356             *
357             * @return the social activity achievement local service
358             */
359            public com.liferay.portlet.social.service.SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
360                    return socialActivityAchievementLocalService;
361            }
362    
363            /**
364             * Sets the social activity achievement local service.
365             *
366             * @param socialActivityAchievementLocalService the social activity achievement local service
367             */
368            public void setSocialActivityAchievementLocalService(
369                    com.liferay.portlet.social.service.SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
370                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
371            }
372    
373            /**
374             * Returns the social activity achievement persistence.
375             *
376             * @return the social activity achievement persistence
377             */
378            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
379                    return socialActivityAchievementPersistence;
380            }
381    
382            /**
383             * Sets the social activity achievement persistence.
384             *
385             * @param socialActivityAchievementPersistence the social activity achievement persistence
386             */
387            public void setSocialActivityAchievementPersistence(
388                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
389                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
390            }
391    
392            /**
393             * Returns the social activity counter local service.
394             *
395             * @return the social activity counter local service
396             */
397            public com.liferay.portlet.social.service.SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
398                    return socialActivityCounterLocalService;
399            }
400    
401            /**
402             * Sets the social activity counter local service.
403             *
404             * @param socialActivityCounterLocalService the social activity counter local service
405             */
406            public void setSocialActivityCounterLocalService(
407                    com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService) {
408                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
409            }
410    
411            /**
412             * Returns the social activity counter persistence.
413             *
414             * @return the social activity counter persistence
415             */
416            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
417                    return socialActivityCounterPersistence;
418            }
419    
420            /**
421             * Sets the social activity counter persistence.
422             *
423             * @param socialActivityCounterPersistence the social activity counter persistence
424             */
425            public void setSocialActivityCounterPersistence(
426                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
427                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
428            }
429    
430            /**
431             * Returns the social activity counter finder.
432             *
433             * @return the social activity counter finder
434             */
435            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
436                    return socialActivityCounterFinder;
437            }
438    
439            /**
440             * Sets the social activity counter finder.
441             *
442             * @param socialActivityCounterFinder the social activity counter finder
443             */
444            public void setSocialActivityCounterFinder(
445                    SocialActivityCounterFinder socialActivityCounterFinder) {
446                    this.socialActivityCounterFinder = socialActivityCounterFinder;
447            }
448    
449            /**
450             * Returns the social activity interpreter local service.
451             *
452             * @return the social activity interpreter local service
453             */
454            public com.liferay.portlet.social.service.SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
455                    return socialActivityInterpreterLocalService;
456            }
457    
458            /**
459             * Sets the social activity interpreter local service.
460             *
461             * @param socialActivityInterpreterLocalService the social activity interpreter local service
462             */
463            public void setSocialActivityInterpreterLocalService(
464                    com.liferay.portlet.social.service.SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
465                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
466            }
467    
468            /**
469             * Returns the social activity limit local service.
470             *
471             * @return the social activity limit local service
472             */
473            public com.liferay.portlet.social.service.SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
474                    return socialActivityLimitLocalService;
475            }
476    
477            /**
478             * Sets the social activity limit local service.
479             *
480             * @param socialActivityLimitLocalService the social activity limit local service
481             */
482            public void setSocialActivityLimitLocalService(
483                    com.liferay.portlet.social.service.SocialActivityLimitLocalService socialActivityLimitLocalService) {
484                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
485            }
486    
487            /**
488             * Returns the social activity limit persistence.
489             *
490             * @return the social activity limit persistence
491             */
492            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
493                    return socialActivityLimitPersistence;
494            }
495    
496            /**
497             * Sets the social activity limit persistence.
498             *
499             * @param socialActivityLimitPersistence the social activity limit persistence
500             */
501            public void setSocialActivityLimitPersistence(
502                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
503                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
504            }
505    
506            /**
507             * Returns the social activity set local service.
508             *
509             * @return the social activity set local service
510             */
511            public com.liferay.portlet.social.service.SocialActivitySetLocalService getSocialActivitySetLocalService() {
512                    return socialActivitySetLocalService;
513            }
514    
515            /**
516             * Sets the social activity set local service.
517             *
518             * @param socialActivitySetLocalService the social activity set local service
519             */
520            public void setSocialActivitySetLocalService(
521                    com.liferay.portlet.social.service.SocialActivitySetLocalService socialActivitySetLocalService) {
522                    this.socialActivitySetLocalService = socialActivitySetLocalService;
523            }
524    
525            /**
526             * Returns the social activity set persistence.
527             *
528             * @return the social activity set persistence
529             */
530            public SocialActivitySetPersistence getSocialActivitySetPersistence() {
531                    return socialActivitySetPersistence;
532            }
533    
534            /**
535             * Sets the social activity set persistence.
536             *
537             * @param socialActivitySetPersistence the social activity set persistence
538             */
539            public void setSocialActivitySetPersistence(
540                    SocialActivitySetPersistence socialActivitySetPersistence) {
541                    this.socialActivitySetPersistence = socialActivitySetPersistence;
542            }
543    
544            /**
545             * Returns the social activity set finder.
546             *
547             * @return the social activity set finder
548             */
549            public SocialActivitySetFinder getSocialActivitySetFinder() {
550                    return socialActivitySetFinder;
551            }
552    
553            /**
554             * Sets the social activity set finder.
555             *
556             * @param socialActivitySetFinder the social activity set finder
557             */
558            public void setSocialActivitySetFinder(
559                    SocialActivitySetFinder socialActivitySetFinder) {
560                    this.socialActivitySetFinder = socialActivitySetFinder;
561            }
562    
563            /**
564             * Returns the social activity setting local service.
565             *
566             * @return the social activity setting local service
567             */
568            public com.liferay.portlet.social.service.SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
569                    return socialActivitySettingLocalService;
570            }
571    
572            /**
573             * Sets the social activity setting local service.
574             *
575             * @param socialActivitySettingLocalService the social activity setting local service
576             */
577            public void setSocialActivitySettingLocalService(
578                    com.liferay.portlet.social.service.SocialActivitySettingLocalService socialActivitySettingLocalService) {
579                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
580            }
581    
582            /**
583             * Returns the social activity setting remote service.
584             *
585             * @return the social activity setting remote service
586             */
587            public com.liferay.portlet.social.service.SocialActivitySettingService getSocialActivitySettingService() {
588                    return socialActivitySettingService;
589            }
590    
591            /**
592             * Sets the social activity setting remote service.
593             *
594             * @param socialActivitySettingService the social activity setting remote service
595             */
596            public void setSocialActivitySettingService(
597                    com.liferay.portlet.social.service.SocialActivitySettingService socialActivitySettingService) {
598                    this.socialActivitySettingService = socialActivitySettingService;
599            }
600    
601            /**
602             * Returns the social activity setting persistence.
603             *
604             * @return the social activity setting persistence
605             */
606            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
607                    return socialActivitySettingPersistence;
608            }
609    
610            /**
611             * Sets the social activity setting persistence.
612             *
613             * @param socialActivitySettingPersistence the social activity setting persistence
614             */
615            public void setSocialActivitySettingPersistence(
616                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
617                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
618            }
619    
620            /**
621             * Returns the social relation local service.
622             *
623             * @return the social relation local service
624             */
625            public com.liferay.portlet.social.service.SocialRelationLocalService getSocialRelationLocalService() {
626                    return socialRelationLocalService;
627            }
628    
629            /**
630             * Sets the social relation local service.
631             *
632             * @param socialRelationLocalService the social relation local service
633             */
634            public void setSocialRelationLocalService(
635                    com.liferay.portlet.social.service.SocialRelationLocalService socialRelationLocalService) {
636                    this.socialRelationLocalService = socialRelationLocalService;
637            }
638    
639            /**
640             * Returns the social relation persistence.
641             *
642             * @return the social relation persistence
643             */
644            public SocialRelationPersistence getSocialRelationPersistence() {
645                    return socialRelationPersistence;
646            }
647    
648            /**
649             * Sets the social relation persistence.
650             *
651             * @param socialRelationPersistence the social relation persistence
652             */
653            public void setSocialRelationPersistence(
654                    SocialRelationPersistence socialRelationPersistence) {
655                    this.socialRelationPersistence = socialRelationPersistence;
656            }
657    
658            /**
659             * Returns the social request local service.
660             *
661             * @return the social request local service
662             */
663            public com.liferay.portlet.social.service.SocialRequestLocalService getSocialRequestLocalService() {
664                    return socialRequestLocalService;
665            }
666    
667            /**
668             * Sets the social request local service.
669             *
670             * @param socialRequestLocalService the social request local service
671             */
672            public void setSocialRequestLocalService(
673                    com.liferay.portlet.social.service.SocialRequestLocalService socialRequestLocalService) {
674                    this.socialRequestLocalService = socialRequestLocalService;
675            }
676    
677            /**
678             * Returns the social request remote service.
679             *
680             * @return the social request remote service
681             */
682            public com.liferay.portlet.social.service.SocialRequestService getSocialRequestService() {
683                    return socialRequestService;
684            }
685    
686            /**
687             * Sets the social request remote service.
688             *
689             * @param socialRequestService the social request remote service
690             */
691            public void setSocialRequestService(
692                    com.liferay.portlet.social.service.SocialRequestService socialRequestService) {
693                    this.socialRequestService = socialRequestService;
694            }
695    
696            /**
697             * Returns the social request persistence.
698             *
699             * @return the social request persistence
700             */
701            public SocialRequestPersistence getSocialRequestPersistence() {
702                    return socialRequestPersistence;
703            }
704    
705            /**
706             * Sets the social request persistence.
707             *
708             * @param socialRequestPersistence the social request persistence
709             */
710            public void setSocialRequestPersistence(
711                    SocialRequestPersistence socialRequestPersistence) {
712                    this.socialRequestPersistence = socialRequestPersistence;
713            }
714    
715            /**
716             * Returns the social request interpreter local service.
717             *
718             * @return the social request interpreter local service
719             */
720            public com.liferay.portlet.social.service.SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
721                    return socialRequestInterpreterLocalService;
722            }
723    
724            /**
725             * Sets the social request interpreter local service.
726             *
727             * @param socialRequestInterpreterLocalService the social request interpreter local service
728             */
729            public void setSocialRequestInterpreterLocalService(
730                    com.liferay.portlet.social.service.SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
731                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
732            }
733    
734            /**
735             * Returns the counter local service.
736             *
737             * @return the counter local service
738             */
739            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
740                    return counterLocalService;
741            }
742    
743            /**
744             * Sets the counter local service.
745             *
746             * @param counterLocalService the counter local service
747             */
748            public void setCounterLocalService(
749                    com.liferay.counter.service.CounterLocalService counterLocalService) {
750                    this.counterLocalService = counterLocalService;
751            }
752    
753            /**
754             * Returns the group local service.
755             *
756             * @return the group local service
757             */
758            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
759                    return groupLocalService;
760            }
761    
762            /**
763             * Sets the group local service.
764             *
765             * @param groupLocalService the group local service
766             */
767            public void setGroupLocalService(
768                    com.liferay.portal.service.GroupLocalService groupLocalService) {
769                    this.groupLocalService = groupLocalService;
770            }
771    
772            /**
773             * Returns the group remote service.
774             *
775             * @return the group remote service
776             */
777            public com.liferay.portal.service.GroupService getGroupService() {
778                    return groupService;
779            }
780    
781            /**
782             * Sets the group remote service.
783             *
784             * @param groupService the group remote service
785             */
786            public void setGroupService(
787                    com.liferay.portal.service.GroupService groupService) {
788                    this.groupService = groupService;
789            }
790    
791            /**
792             * Returns the group persistence.
793             *
794             * @return the group persistence
795             */
796            public GroupPersistence getGroupPersistence() {
797                    return groupPersistence;
798            }
799    
800            /**
801             * Sets the group persistence.
802             *
803             * @param groupPersistence the group persistence
804             */
805            public void setGroupPersistence(GroupPersistence groupPersistence) {
806                    this.groupPersistence = groupPersistence;
807            }
808    
809            /**
810             * Returns the group finder.
811             *
812             * @return the group finder
813             */
814            public GroupFinder getGroupFinder() {
815                    return groupFinder;
816            }
817    
818            /**
819             * Sets the group finder.
820             *
821             * @param groupFinder the group finder
822             */
823            public void setGroupFinder(GroupFinder groupFinder) {
824                    this.groupFinder = groupFinder;
825            }
826    
827            /**
828             * Returns the resource local service.
829             *
830             * @return the resource local service
831             */
832            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
833                    return resourceLocalService;
834            }
835    
836            /**
837             * Sets the resource local service.
838             *
839             * @param resourceLocalService the resource local service
840             */
841            public void setResourceLocalService(
842                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
843                    this.resourceLocalService = resourceLocalService;
844            }
845    
846            /**
847             * Returns the user local service.
848             *
849             * @return the user local service
850             */
851            public com.liferay.portal.service.UserLocalService getUserLocalService() {
852                    return userLocalService;
853            }
854    
855            /**
856             * Sets the user local service.
857             *
858             * @param userLocalService the user local service
859             */
860            public void setUserLocalService(
861                    com.liferay.portal.service.UserLocalService userLocalService) {
862                    this.userLocalService = userLocalService;
863            }
864    
865            /**
866             * Returns the user remote service.
867             *
868             * @return the user remote service
869             */
870            public com.liferay.portal.service.UserService getUserService() {
871                    return userService;
872            }
873    
874            /**
875             * Sets the user remote service.
876             *
877             * @param userService the user remote service
878             */
879            public void setUserService(
880                    com.liferay.portal.service.UserService userService) {
881                    this.userService = userService;
882            }
883    
884            /**
885             * Returns the user persistence.
886             *
887             * @return the user persistence
888             */
889            public UserPersistence getUserPersistence() {
890                    return userPersistence;
891            }
892    
893            /**
894             * Sets the user persistence.
895             *
896             * @param userPersistence the user persistence
897             */
898            public void setUserPersistence(UserPersistence userPersistence) {
899                    this.userPersistence = userPersistence;
900            }
901    
902            /**
903             * Returns the user finder.
904             *
905             * @return the user finder
906             */
907            public UserFinder getUserFinder() {
908                    return userFinder;
909            }
910    
911            /**
912             * Sets the user finder.
913             *
914             * @param userFinder the user finder
915             */
916            public void setUserFinder(UserFinder userFinder) {
917                    this.userFinder = userFinder;
918            }
919    
920            public void afterPropertiesSet() {
921                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivitySetting",
922                            socialActivitySettingLocalService);
923            }
924    
925            public void destroy() {
926                    persistedModelLocalServiceRegistry.unregister(
927                            "com.liferay.portlet.social.model.SocialActivitySetting");
928            }
929    
930            /**
931             * Returns the Spring bean ID for this bean.
932             *
933             * @return the Spring bean ID for this bean
934             */
935            @Override
936            public String getBeanIdentifier() {
937                    return _beanIdentifier;
938            }
939    
940            /**
941             * Sets the Spring bean ID for this bean.
942             *
943             * @param beanIdentifier the Spring bean ID for this bean
944             */
945            @Override
946            public void setBeanIdentifier(String beanIdentifier) {
947                    _beanIdentifier = beanIdentifier;
948            }
949    
950            protected Class<?> getModelClass() {
951                    return SocialActivitySetting.class;
952            }
953    
954            protected String getModelClassName() {
955                    return SocialActivitySetting.class.getName();
956            }
957    
958            /**
959             * Performs an SQL query.
960             *
961             * @param sql the sql query
962             */
963            protected void runSQL(String sql) throws SystemException {
964                    try {
965                            DataSource dataSource = socialActivitySettingPersistence.getDataSource();
966    
967                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
968                                            sql, new int[0]);
969    
970                            sqlUpdate.update();
971                    }
972                    catch (Exception e) {
973                            throw new SystemException(e);
974                    }
975            }
976    
977            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
978            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
979            @BeanReference(type = SocialActivityPersistence.class)
980            protected SocialActivityPersistence socialActivityPersistence;
981            @BeanReference(type = SocialActivityFinder.class)
982            protected SocialActivityFinder socialActivityFinder;
983            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityAchievementLocalService.class)
984            protected com.liferay.portlet.social.service.SocialActivityAchievementLocalService socialActivityAchievementLocalService;
985            @BeanReference(type = SocialActivityAchievementPersistence.class)
986            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
987            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityCounterLocalService.class)
988            protected com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
989            @BeanReference(type = SocialActivityCounterPersistence.class)
990            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
991            @BeanReference(type = SocialActivityCounterFinder.class)
992            protected SocialActivityCounterFinder socialActivityCounterFinder;
993            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityInterpreterLocalService.class)
994            protected com.liferay.portlet.social.service.SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
995            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLimitLocalService.class)
996            protected com.liferay.portlet.social.service.SocialActivityLimitLocalService socialActivityLimitLocalService;
997            @BeanReference(type = SocialActivityLimitPersistence.class)
998            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
999            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySetLocalService.class)
1000            protected com.liferay.portlet.social.service.SocialActivitySetLocalService socialActivitySetLocalService;
1001            @BeanReference(type = SocialActivitySetPersistence.class)
1002            protected SocialActivitySetPersistence socialActivitySetPersistence;
1003            @BeanReference(type = SocialActivitySetFinder.class)
1004            protected SocialActivitySetFinder socialActivitySetFinder;
1005            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingLocalService.class)
1006            protected com.liferay.portlet.social.service.SocialActivitySettingLocalService socialActivitySettingLocalService;
1007            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingService.class)
1008            protected com.liferay.portlet.social.service.SocialActivitySettingService socialActivitySettingService;
1009            @BeanReference(type = SocialActivitySettingPersistence.class)
1010            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
1011            @BeanReference(type = com.liferay.portlet.social.service.SocialRelationLocalService.class)
1012            protected com.liferay.portlet.social.service.SocialRelationLocalService socialRelationLocalService;
1013            @BeanReference(type = SocialRelationPersistence.class)
1014            protected SocialRelationPersistence socialRelationPersistence;
1015            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestLocalService.class)
1016            protected com.liferay.portlet.social.service.SocialRequestLocalService socialRequestLocalService;
1017            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestService.class)
1018            protected com.liferay.portlet.social.service.SocialRequestService socialRequestService;
1019            @BeanReference(type = SocialRequestPersistence.class)
1020            protected SocialRequestPersistence socialRequestPersistence;
1021            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestInterpreterLocalService.class)
1022            protected com.liferay.portlet.social.service.SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
1023            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1024            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1025            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1026            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1027            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1028            protected com.liferay.portal.service.GroupService groupService;
1029            @BeanReference(type = GroupPersistence.class)
1030            protected GroupPersistence groupPersistence;
1031            @BeanReference(type = GroupFinder.class)
1032            protected GroupFinder groupFinder;
1033            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1034            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1035            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1036            protected com.liferay.portal.service.UserLocalService userLocalService;
1037            @BeanReference(type = com.liferay.portal.service.UserService.class)
1038            protected com.liferay.portal.service.UserService userService;
1039            @BeanReference(type = UserPersistence.class)
1040            protected UserPersistence userPersistence;
1041            @BeanReference(type = UserFinder.class)
1042            protected UserFinder userFinder;
1043            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1044            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1045            private String _beanIdentifier;
1046    }