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.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.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.GroupFinder;
039    import com.liferay.portal.service.persistence.GroupPersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.social.model.SocialActivityLimit;
044    import com.liferay.portlet.social.service.SocialActivityAchievementLocalService;
045    import com.liferay.portlet.social.service.SocialActivityCounterLocalService;
046    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
047    import com.liferay.portlet.social.service.SocialActivityLimitLocalService;
048    import com.liferay.portlet.social.service.SocialActivityLocalService;
049    import com.liferay.portlet.social.service.SocialActivitySettingLocalService;
050    import com.liferay.portlet.social.service.SocialActivitySettingService;
051    import com.liferay.portlet.social.service.SocialRelationLocalService;
052    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
053    import com.liferay.portlet.social.service.SocialRequestLocalService;
054    import com.liferay.portlet.social.service.SocialRequestService;
055    import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
056    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
057    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
058    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
059    import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
060    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
061    import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
062    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
063    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
064    
065    import java.io.Serializable;
066    
067    import java.util.List;
068    
069    import javax.sql.DataSource;
070    
071    /**
072     * The base implementation of the social activity limit local service.
073     *
074     * <p>
075     * 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}.
076     * </p>
077     *
078     * @author Brian Wing Shun Chan
079     * @see com.liferay.portlet.social.service.impl.SocialActivityLimitLocalServiceImpl
080     * @see com.liferay.portlet.social.service.SocialActivityLimitLocalServiceUtil
081     * @generated
082     */
083    public abstract class SocialActivityLimitLocalServiceBaseImpl
084            extends BaseLocalServiceImpl implements SocialActivityLimitLocalService,
085                    IdentifiableBean {
086            /*
087             * NOTE FOR DEVELOPERS:
088             *
089             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivityLimitLocalServiceUtil} to access the social activity limit local service.
090             */
091    
092            /**
093             * Adds the social activity limit to the database. Also notifies the appropriate model listeners.
094             *
095             * @param socialActivityLimit the social activity limit
096             * @return the social activity limit that was added
097             * @throws SystemException if a system exception occurred
098             */
099            @Indexable(type = IndexableType.REINDEX)
100            public SocialActivityLimit addSocialActivityLimit(
101                    SocialActivityLimit socialActivityLimit) throws SystemException {
102                    socialActivityLimit.setNew(true);
103    
104                    return socialActivityLimitPersistence.update(socialActivityLimit);
105            }
106    
107            /**
108             * Creates a new social activity limit with the primary key. Does not add the social activity limit to the database.
109             *
110             * @param activityLimitId the primary key for the new social activity limit
111             * @return the new social activity limit
112             */
113            public SocialActivityLimit createSocialActivityLimit(long activityLimitId) {
114                    return socialActivityLimitPersistence.create(activityLimitId);
115            }
116    
117            /**
118             * Deletes the social activity limit with the primary key from the database. Also notifies the appropriate model listeners.
119             *
120             * @param activityLimitId the primary key of the social activity limit
121             * @return the social activity limit that was removed
122             * @throws PortalException if a social activity limit with the primary key could not be found
123             * @throws SystemException if a system exception occurred
124             */
125            @Indexable(type = IndexableType.DELETE)
126            public SocialActivityLimit deleteSocialActivityLimit(long activityLimitId)
127                    throws PortalException, SystemException {
128                    return socialActivityLimitPersistence.remove(activityLimitId);
129            }
130    
131            /**
132             * Deletes the social activity limit from the database. Also notifies the appropriate model listeners.
133             *
134             * @param socialActivityLimit the social activity limit
135             * @return the social activity limit that was removed
136             * @throws SystemException if a system exception occurred
137             */
138            @Indexable(type = IndexableType.DELETE)
139            public SocialActivityLimit deleteSocialActivityLimit(
140                    SocialActivityLimit socialActivityLimit) throws SystemException {
141                    return socialActivityLimitPersistence.remove(socialActivityLimit);
142            }
143    
144            public DynamicQuery dynamicQuery() {
145                    Class<?> clazz = getClass();
146    
147                    return DynamicQueryFactoryUtil.forClass(SocialActivityLimit.class,
148                            clazz.getClassLoader());
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns the matching rows.
153             *
154             * @param dynamicQuery the dynamic query
155             * @return the matching rows
156             * @throws SystemException if a system exception occurred
157             */
158            @SuppressWarnings("rawtypes")
159            public List dynamicQuery(DynamicQuery dynamicQuery)
160                    throws SystemException {
161                    return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery);
162            }
163    
164            /**
165             * Performs a dynamic query on the database and returns a range of the matching rows.
166             *
167             * <p>
168             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityLimitModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
169             * </p>
170             *
171             * @param dynamicQuery the dynamic query
172             * @param start the lower bound of the range of model instances
173             * @param end the upper bound of the range of model instances (not inclusive)
174             * @return the range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @SuppressWarnings("rawtypes")
178            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
179                    throws SystemException {
180                    return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery,
181                            start, end);
182            }
183    
184            /**
185             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
186             *
187             * <p>
188             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityLimitModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
189             * </p>
190             *
191             * @param dynamicQuery the dynamic query
192             * @param start the lower bound of the range of model instances
193             * @param end the upper bound of the range of model instances (not inclusive)
194             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
195             * @return the ordered range of matching rows
196             * @throws SystemException if a system exception occurred
197             */
198            @SuppressWarnings("rawtypes")
199            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
200                    OrderByComparator orderByComparator) throws SystemException {
201                    return socialActivityLimitPersistence.findWithDynamicQuery(dynamicQuery,
202                            start, end, orderByComparator);
203            }
204    
205            /**
206             * Returns the number of rows that match the dynamic query.
207             *
208             * @param dynamicQuery the dynamic query
209             * @return the number of rows that match the dynamic query
210             * @throws SystemException if a system exception occurred
211             */
212            public long dynamicQueryCount(DynamicQuery dynamicQuery)
213                    throws SystemException {
214                    return socialActivityLimitPersistence.countWithDynamicQuery(dynamicQuery);
215            }
216    
217            public SocialActivityLimit fetchSocialActivityLimit(long activityLimitId)
218                    throws SystemException {
219                    return socialActivityLimitPersistence.fetchByPrimaryKey(activityLimitId);
220            }
221    
222            /**
223             * Returns the social activity limit with the primary key.
224             *
225             * @param activityLimitId the primary key of the social activity limit
226             * @return the social activity limit
227             * @throws PortalException if a social activity limit with the primary key could not be found
228             * @throws SystemException if a system exception occurred
229             */
230            public SocialActivityLimit getSocialActivityLimit(long activityLimitId)
231                    throws PortalException, SystemException {
232                    return socialActivityLimitPersistence.findByPrimaryKey(activityLimitId);
233            }
234    
235            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
236                    throws PortalException, SystemException {
237                    return socialActivityLimitPersistence.findByPrimaryKey(primaryKeyObj);
238            }
239    
240            /**
241             * Returns a range of all the social activity limits.
242             *
243             * <p>
244             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.social.model.impl.SocialActivityLimitModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
245             * </p>
246             *
247             * @param start the lower bound of the range of social activity limits
248             * @param end the upper bound of the range of social activity limits (not inclusive)
249             * @return the range of social activity limits
250             * @throws SystemException if a system exception occurred
251             */
252            public List<SocialActivityLimit> getSocialActivityLimits(int start, int end)
253                    throws SystemException {
254                    return socialActivityLimitPersistence.findAll(start, end);
255            }
256    
257            /**
258             * Returns the number of social activity limits.
259             *
260             * @return the number of social activity limits
261             * @throws SystemException if a system exception occurred
262             */
263            public int getSocialActivityLimitsCount() throws SystemException {
264                    return socialActivityLimitPersistence.countAll();
265            }
266    
267            /**
268             * Updates the social activity limit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
269             *
270             * @param socialActivityLimit the social activity limit
271             * @return the social activity limit that was updated
272             * @throws SystemException if a system exception occurred
273             */
274            @Indexable(type = IndexableType.REINDEX)
275            public SocialActivityLimit updateSocialActivityLimit(
276                    SocialActivityLimit socialActivityLimit) throws SystemException {
277                    return socialActivityLimitPersistence.update(socialActivityLimit);
278            }
279    
280            /**
281             * Returns the social activity local service.
282             *
283             * @return the social activity local service
284             */
285            public SocialActivityLocalService getSocialActivityLocalService() {
286                    return socialActivityLocalService;
287            }
288    
289            /**
290             * Sets the social activity local service.
291             *
292             * @param socialActivityLocalService the social activity local service
293             */
294            public void setSocialActivityLocalService(
295                    SocialActivityLocalService socialActivityLocalService) {
296                    this.socialActivityLocalService = socialActivityLocalService;
297            }
298    
299            /**
300             * Returns the social activity persistence.
301             *
302             * @return the social activity persistence
303             */
304            public SocialActivityPersistence getSocialActivityPersistence() {
305                    return socialActivityPersistence;
306            }
307    
308            /**
309             * Sets the social activity persistence.
310             *
311             * @param socialActivityPersistence the social activity persistence
312             */
313            public void setSocialActivityPersistence(
314                    SocialActivityPersistence socialActivityPersistence) {
315                    this.socialActivityPersistence = socialActivityPersistence;
316            }
317    
318            /**
319             * Returns the social activity finder.
320             *
321             * @return the social activity finder
322             */
323            public SocialActivityFinder getSocialActivityFinder() {
324                    return socialActivityFinder;
325            }
326    
327            /**
328             * Sets the social activity finder.
329             *
330             * @param socialActivityFinder the social activity finder
331             */
332            public void setSocialActivityFinder(
333                    SocialActivityFinder socialActivityFinder) {
334                    this.socialActivityFinder = socialActivityFinder;
335            }
336    
337            /**
338             * Returns the social activity achievement local service.
339             *
340             * @return the social activity achievement local service
341             */
342            public SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
343                    return socialActivityAchievementLocalService;
344            }
345    
346            /**
347             * Sets the social activity achievement local service.
348             *
349             * @param socialActivityAchievementLocalService the social activity achievement local service
350             */
351            public void setSocialActivityAchievementLocalService(
352                    SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
353                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
354            }
355    
356            /**
357             * Returns the social activity achievement persistence.
358             *
359             * @return the social activity achievement persistence
360             */
361            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
362                    return socialActivityAchievementPersistence;
363            }
364    
365            /**
366             * Sets the social activity achievement persistence.
367             *
368             * @param socialActivityAchievementPersistence the social activity achievement persistence
369             */
370            public void setSocialActivityAchievementPersistence(
371                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
372                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
373            }
374    
375            /**
376             * Returns the social activity counter local service.
377             *
378             * @return the social activity counter local service
379             */
380            public SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
381                    return socialActivityCounterLocalService;
382            }
383    
384            /**
385             * Sets the social activity counter local service.
386             *
387             * @param socialActivityCounterLocalService the social activity counter local service
388             */
389            public void setSocialActivityCounterLocalService(
390                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
391                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
392            }
393    
394            /**
395             * Returns the social activity counter persistence.
396             *
397             * @return the social activity counter persistence
398             */
399            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
400                    return socialActivityCounterPersistence;
401            }
402    
403            /**
404             * Sets the social activity counter persistence.
405             *
406             * @param socialActivityCounterPersistence the social activity counter persistence
407             */
408            public void setSocialActivityCounterPersistence(
409                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
410                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
411            }
412    
413            /**
414             * Returns the social activity counter finder.
415             *
416             * @return the social activity counter finder
417             */
418            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
419                    return socialActivityCounterFinder;
420            }
421    
422            /**
423             * Sets the social activity counter finder.
424             *
425             * @param socialActivityCounterFinder the social activity counter finder
426             */
427            public void setSocialActivityCounterFinder(
428                    SocialActivityCounterFinder socialActivityCounterFinder) {
429                    this.socialActivityCounterFinder = socialActivityCounterFinder;
430            }
431    
432            /**
433             * Returns the social activity interpreter local service.
434             *
435             * @return the social activity interpreter local service
436             */
437            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
438                    return socialActivityInterpreterLocalService;
439            }
440    
441            /**
442             * Sets the social activity interpreter local service.
443             *
444             * @param socialActivityInterpreterLocalService the social activity interpreter local service
445             */
446            public void setSocialActivityInterpreterLocalService(
447                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
448                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
449            }
450    
451            /**
452             * Returns the social activity limit local service.
453             *
454             * @return the social activity limit local service
455             */
456            public SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
457                    return socialActivityLimitLocalService;
458            }
459    
460            /**
461             * Sets the social activity limit local service.
462             *
463             * @param socialActivityLimitLocalService the social activity limit local service
464             */
465            public void setSocialActivityLimitLocalService(
466                    SocialActivityLimitLocalService socialActivityLimitLocalService) {
467                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
468            }
469    
470            /**
471             * Returns the social activity limit persistence.
472             *
473             * @return the social activity limit persistence
474             */
475            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
476                    return socialActivityLimitPersistence;
477            }
478    
479            /**
480             * Sets the social activity limit persistence.
481             *
482             * @param socialActivityLimitPersistence the social activity limit persistence
483             */
484            public void setSocialActivityLimitPersistence(
485                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
486                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
487            }
488    
489            /**
490             * Returns the social activity setting local service.
491             *
492             * @return the social activity setting local service
493             */
494            public SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
495                    return socialActivitySettingLocalService;
496            }
497    
498            /**
499             * Sets the social activity setting local service.
500             *
501             * @param socialActivitySettingLocalService the social activity setting local service
502             */
503            public void setSocialActivitySettingLocalService(
504                    SocialActivitySettingLocalService socialActivitySettingLocalService) {
505                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
506            }
507    
508            /**
509             * Returns the social activity setting remote service.
510             *
511             * @return the social activity setting remote service
512             */
513            public SocialActivitySettingService getSocialActivitySettingService() {
514                    return socialActivitySettingService;
515            }
516    
517            /**
518             * Sets the social activity setting remote service.
519             *
520             * @param socialActivitySettingService the social activity setting remote service
521             */
522            public void setSocialActivitySettingService(
523                    SocialActivitySettingService socialActivitySettingService) {
524                    this.socialActivitySettingService = socialActivitySettingService;
525            }
526    
527            /**
528             * Returns the social activity setting persistence.
529             *
530             * @return the social activity setting persistence
531             */
532            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
533                    return socialActivitySettingPersistence;
534            }
535    
536            /**
537             * Sets the social activity setting persistence.
538             *
539             * @param socialActivitySettingPersistence the social activity setting persistence
540             */
541            public void setSocialActivitySettingPersistence(
542                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
543                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
544            }
545    
546            /**
547             * Returns the social relation local service.
548             *
549             * @return the social relation local service
550             */
551            public SocialRelationLocalService getSocialRelationLocalService() {
552                    return socialRelationLocalService;
553            }
554    
555            /**
556             * Sets the social relation local service.
557             *
558             * @param socialRelationLocalService the social relation local service
559             */
560            public void setSocialRelationLocalService(
561                    SocialRelationLocalService socialRelationLocalService) {
562                    this.socialRelationLocalService = socialRelationLocalService;
563            }
564    
565            /**
566             * Returns the social relation persistence.
567             *
568             * @return the social relation persistence
569             */
570            public SocialRelationPersistence getSocialRelationPersistence() {
571                    return socialRelationPersistence;
572            }
573    
574            /**
575             * Sets the social relation persistence.
576             *
577             * @param socialRelationPersistence the social relation persistence
578             */
579            public void setSocialRelationPersistence(
580                    SocialRelationPersistence socialRelationPersistence) {
581                    this.socialRelationPersistence = socialRelationPersistence;
582            }
583    
584            /**
585             * Returns the social request local service.
586             *
587             * @return the social request local service
588             */
589            public SocialRequestLocalService getSocialRequestLocalService() {
590                    return socialRequestLocalService;
591            }
592    
593            /**
594             * Sets the social request local service.
595             *
596             * @param socialRequestLocalService the social request local service
597             */
598            public void setSocialRequestLocalService(
599                    SocialRequestLocalService socialRequestLocalService) {
600                    this.socialRequestLocalService = socialRequestLocalService;
601            }
602    
603            /**
604             * Returns the social request remote service.
605             *
606             * @return the social request remote service
607             */
608            public SocialRequestService getSocialRequestService() {
609                    return socialRequestService;
610            }
611    
612            /**
613             * Sets the social request remote service.
614             *
615             * @param socialRequestService the social request remote service
616             */
617            public void setSocialRequestService(
618                    SocialRequestService socialRequestService) {
619                    this.socialRequestService = socialRequestService;
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 user local service.
771             *
772             * @return the user local service
773             */
774            public UserLocalService getUserLocalService() {
775                    return userLocalService;
776            }
777    
778            /**
779             * Sets the user local service.
780             *
781             * @param userLocalService the user local service
782             */
783            public void setUserLocalService(UserLocalService userLocalService) {
784                    this.userLocalService = userLocalService;
785            }
786    
787            /**
788             * Returns the user remote service.
789             *
790             * @return the user remote service
791             */
792            public UserService getUserService() {
793                    return userService;
794            }
795    
796            /**
797             * Sets the user remote service.
798             *
799             * @param userService the user remote service
800             */
801            public void setUserService(UserService userService) {
802                    this.userService = userService;
803            }
804    
805            /**
806             * Returns the user persistence.
807             *
808             * @return the user persistence
809             */
810            public UserPersistence getUserPersistence() {
811                    return userPersistence;
812            }
813    
814            /**
815             * Sets the user persistence.
816             *
817             * @param userPersistence the user persistence
818             */
819            public void setUserPersistence(UserPersistence userPersistence) {
820                    this.userPersistence = userPersistence;
821            }
822    
823            /**
824             * Returns the user finder.
825             *
826             * @return the user finder
827             */
828            public UserFinder getUserFinder() {
829                    return userFinder;
830            }
831    
832            /**
833             * Sets the user finder.
834             *
835             * @param userFinder the user finder
836             */
837            public void setUserFinder(UserFinder userFinder) {
838                    this.userFinder = userFinder;
839            }
840    
841            public void afterPropertiesSet() {
842                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivityLimit",
843                            socialActivityLimitLocalService);
844            }
845    
846            public void destroy() {
847                    persistedModelLocalServiceRegistry.unregister(
848                            "com.liferay.portlet.social.model.SocialActivityLimit");
849            }
850    
851            /**
852             * Returns the Spring bean ID for this bean.
853             *
854             * @return the Spring bean ID for this bean
855             */
856            public String getBeanIdentifier() {
857                    return _beanIdentifier;
858            }
859    
860            /**
861             * Sets the Spring bean ID for this bean.
862             *
863             * @param beanIdentifier the Spring bean ID for this bean
864             */
865            public void setBeanIdentifier(String beanIdentifier) {
866                    _beanIdentifier = beanIdentifier;
867            }
868    
869            protected Class<?> getModelClass() {
870                    return SocialActivityLimit.class;
871            }
872    
873            protected String getModelClassName() {
874                    return SocialActivityLimit.class.getName();
875            }
876    
877            /**
878             * Performs an SQL query.
879             *
880             * @param sql the sql query
881             */
882            protected void runSQL(String sql) throws SystemException {
883                    try {
884                            DataSource dataSource = socialActivityLimitPersistence.getDataSource();
885    
886                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
887                                            sql, new int[0]);
888    
889                            sqlUpdate.update();
890                    }
891                    catch (Exception e) {
892                            throw new SystemException(e);
893                    }
894            }
895    
896            @BeanReference(type = SocialActivityLocalService.class)
897            protected SocialActivityLocalService socialActivityLocalService;
898            @BeanReference(type = SocialActivityPersistence.class)
899            protected SocialActivityPersistence socialActivityPersistence;
900            @BeanReference(type = SocialActivityFinder.class)
901            protected SocialActivityFinder socialActivityFinder;
902            @BeanReference(type = SocialActivityAchievementLocalService.class)
903            protected SocialActivityAchievementLocalService socialActivityAchievementLocalService;
904            @BeanReference(type = SocialActivityAchievementPersistence.class)
905            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
906            @BeanReference(type = SocialActivityCounterLocalService.class)
907            protected SocialActivityCounterLocalService socialActivityCounterLocalService;
908            @BeanReference(type = SocialActivityCounterPersistence.class)
909            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
910            @BeanReference(type = SocialActivityCounterFinder.class)
911            protected SocialActivityCounterFinder socialActivityCounterFinder;
912            @BeanReference(type = SocialActivityInterpreterLocalService.class)
913            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
914            @BeanReference(type = SocialActivityLimitLocalService.class)
915            protected SocialActivityLimitLocalService socialActivityLimitLocalService;
916            @BeanReference(type = SocialActivityLimitPersistence.class)
917            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
918            @BeanReference(type = SocialActivitySettingLocalService.class)
919            protected SocialActivitySettingLocalService socialActivitySettingLocalService;
920            @BeanReference(type = SocialActivitySettingService.class)
921            protected SocialActivitySettingService socialActivitySettingService;
922            @BeanReference(type = SocialActivitySettingPersistence.class)
923            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
924            @BeanReference(type = SocialRelationLocalService.class)
925            protected SocialRelationLocalService socialRelationLocalService;
926            @BeanReference(type = SocialRelationPersistence.class)
927            protected SocialRelationPersistence socialRelationPersistence;
928            @BeanReference(type = SocialRequestLocalService.class)
929            protected SocialRequestLocalService socialRequestLocalService;
930            @BeanReference(type = SocialRequestService.class)
931            protected SocialRequestService socialRequestService;
932            @BeanReference(type = SocialRequestPersistence.class)
933            protected SocialRequestPersistence socialRequestPersistence;
934            @BeanReference(type = SocialRequestInterpreterLocalService.class)
935            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
936            @BeanReference(type = CounterLocalService.class)
937            protected CounterLocalService counterLocalService;
938            @BeanReference(type = GroupLocalService.class)
939            protected GroupLocalService groupLocalService;
940            @BeanReference(type = GroupService.class)
941            protected GroupService groupService;
942            @BeanReference(type = GroupPersistence.class)
943            protected GroupPersistence groupPersistence;
944            @BeanReference(type = GroupFinder.class)
945            protected GroupFinder groupFinder;
946            @BeanReference(type = ResourceLocalService.class)
947            protected ResourceLocalService resourceLocalService;
948            @BeanReference(type = UserLocalService.class)
949            protected UserLocalService userLocalService;
950            @BeanReference(type = UserService.class)
951            protected UserService userService;
952            @BeanReference(type = UserPersistence.class)
953            protected UserPersistence userPersistence;
954            @BeanReference(type = UserFinder.class)
955            protected UserFinder userFinder;
956            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
957            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
958            private String _beanIdentifier;
959    }