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