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