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