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