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