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