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