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