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