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.LayoutFinder;
035    import com.liferay.portal.service.persistence.LayoutPersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
040    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
041    import com.liferay.portlet.social.model.SocialActivity;
042    import com.liferay.portlet.social.service.SocialActivityLocalService;
043    import com.liferay.portlet.social.service.persistence.SocialActivityAchievementPersistence;
044    import com.liferay.portlet.social.service.persistence.SocialActivityCounterFinder;
045    import com.liferay.portlet.social.service.persistence.SocialActivityCounterPersistence;
046    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
047    import com.liferay.portlet.social.service.persistence.SocialActivityLimitPersistence;
048    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
049    import com.liferay.portlet.social.service.persistence.SocialActivitySetFinder;
050    import com.liferay.portlet.social.service.persistence.SocialActivitySetPersistence;
051    import com.liferay.portlet.social.service.persistence.SocialActivitySettingPersistence;
052    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
053    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
054    
055    import java.io.Serializable;
056    
057    import java.util.List;
058    
059    import javax.sql.DataSource;
060    
061    /**
062     * Provides the base implementation for the social activity local service.
063     *
064     * <p>
065     * 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.SocialActivityLocalServiceImpl}.
066     * </p>
067     *
068     * @author Brian Wing Shun Chan
069     * @see com.liferay.portlet.social.service.impl.SocialActivityLocalServiceImpl
070     * @see com.liferay.portlet.social.service.SocialActivityLocalServiceUtil
071     * @generated
072     */
073    public abstract class SocialActivityLocalServiceBaseImpl
074            extends BaseLocalServiceImpl implements SocialActivityLocalService,
075                    IdentifiableBean {
076            /*
077             * NOTE FOR DEVELOPERS:
078             *
079             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialActivityLocalServiceUtil} to access the social activity local service.
080             */
081    
082            /**
083             * Adds the social activity to the database. Also notifies the appropriate model listeners.
084             *
085             * @param socialActivity the social activity
086             * @return the social activity that was added
087             * @throws SystemException if a system exception occurred
088             */
089            @Indexable(type = IndexableType.REINDEX)
090            @Override
091            public SocialActivity addSocialActivity(SocialActivity socialActivity)
092                    throws SystemException {
093                    socialActivity.setNew(true);
094    
095                    return socialActivityPersistence.update(socialActivity);
096            }
097    
098            /**
099             * Creates a new social activity with the primary key. Does not add the social activity to the database.
100             *
101             * @param activityId the primary key for the new social activity
102             * @return the new social activity
103             */
104            @Override
105            public SocialActivity createSocialActivity(long activityId) {
106                    return socialActivityPersistence.create(activityId);
107            }
108    
109            /**
110             * Deletes the social activity with the primary key from the database. Also notifies the appropriate model listeners.
111             *
112             * @param activityId the primary key of the social activity
113             * @return the social activity that was removed
114             * @throws PortalException if a social activity with the primary key could not be found
115             * @throws SystemException if a system exception occurred
116             */
117            @Indexable(type = IndexableType.DELETE)
118            @Override
119            public SocialActivity deleteSocialActivity(long activityId)
120                    throws PortalException, SystemException {
121                    return socialActivityPersistence.remove(activityId);
122            }
123    
124            /**
125             * Deletes the social activity from the database. Also notifies the appropriate model listeners.
126             *
127             * @param socialActivity the social activity
128             * @return the social activity that was removed
129             * @throws SystemException if a system exception occurred
130             */
131            @Indexable(type = IndexableType.DELETE)
132            @Override
133            public SocialActivity deleteSocialActivity(SocialActivity socialActivity)
134                    throws SystemException {
135                    return socialActivityPersistence.remove(socialActivity);
136            }
137    
138            @Override
139            public DynamicQuery dynamicQuery() {
140                    Class<?> clazz = getClass();
141    
142                    return DynamicQueryFactoryUtil.forClass(SocialActivity.class,
143                            clazz.getClassLoader());
144            }
145    
146            /**
147             * Performs a dynamic query on the database and returns the matching rows.
148             *
149             * @param dynamicQuery the dynamic query
150             * @return the matching rows
151             * @throws SystemException if a system exception occurred
152             */
153            @Override
154            @SuppressWarnings("rawtypes")
155            public List dynamicQuery(DynamicQuery dynamicQuery)
156                    throws SystemException {
157                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery);
158            }
159    
160            /**
161             * Performs a dynamic query on the database and returns a range of the matching rows.
162             *
163             * <p>
164             * 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.SocialActivityModelImpl}. 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.
165             * </p>
166             *
167             * @param dynamicQuery the dynamic query
168             * @param start the lower bound of the range of model instances
169             * @param end the upper bound of the range of model instances (not inclusive)
170             * @return the range of matching rows
171             * @throws SystemException if a system exception occurred
172             */
173            @Override
174            @SuppressWarnings("rawtypes")
175            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
176                    throws SystemException {
177                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
178                            start, end);
179            }
180    
181            /**
182             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
183             *
184             * <p>
185             * 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.SocialActivityModelImpl}. 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.
186             * </p>
187             *
188             * @param dynamicQuery the dynamic query
189             * @param start the lower bound of the range of model instances
190             * @param end the upper bound of the range of model instances (not inclusive)
191             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
192             * @return the ordered range of matching rows
193             * @throws SystemException if a system exception occurred
194             */
195            @Override
196            @SuppressWarnings("rawtypes")
197            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
198                    OrderByComparator orderByComparator) throws SystemException {
199                    return socialActivityPersistence.findWithDynamicQuery(dynamicQuery,
200                            start, end, orderByComparator);
201            }
202    
203            /**
204             * Returns the number of rows that match the dynamic query.
205             *
206             * @param dynamicQuery the dynamic query
207             * @return the number of rows that match the dynamic query
208             * @throws SystemException if a system exception occurred
209             */
210            @Override
211            public long dynamicQueryCount(DynamicQuery dynamicQuery)
212                    throws SystemException {
213                    return socialActivityPersistence.countWithDynamicQuery(dynamicQuery);
214            }
215    
216            /**
217             * Returns the number of rows that match the dynamic query.
218             *
219             * @param dynamicQuery the dynamic query
220             * @param projection the projection to apply to the query
221             * @return the number of rows that match the dynamic query
222             * @throws SystemException if a system exception occurred
223             */
224            @Override
225            public long dynamicQueryCount(DynamicQuery dynamicQuery,
226                    Projection projection) throws SystemException {
227                    return socialActivityPersistence.countWithDynamicQuery(dynamicQuery,
228                            projection);
229            }
230    
231            @Override
232            public SocialActivity fetchSocialActivity(long activityId)
233                    throws SystemException {
234                    return socialActivityPersistence.fetchByPrimaryKey(activityId);
235            }
236    
237            /**
238             * Returns the social activity with the primary key.
239             *
240             * @param activityId the primary key of the social activity
241             * @return the social activity
242             * @throws PortalException if a social activity with the primary key could not be found
243             * @throws SystemException if a system exception occurred
244             */
245            @Override
246            public SocialActivity getSocialActivity(long activityId)
247                    throws PortalException, SystemException {
248                    return socialActivityPersistence.findByPrimaryKey(activityId);
249            }
250    
251            @Override
252            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
253                    throws PortalException, SystemException {
254                    return socialActivityPersistence.findByPrimaryKey(primaryKeyObj);
255            }
256    
257            /**
258             * Returns a range of all the social activities.
259             *
260             * <p>
261             * 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.SocialActivityModelImpl}. 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.
262             * </p>
263             *
264             * @param start the lower bound of the range of social activities
265             * @param end the upper bound of the range of social activities (not inclusive)
266             * @return the range of social activities
267             * @throws SystemException if a system exception occurred
268             */
269            @Override
270            public List<SocialActivity> getSocialActivities(int start, int end)
271                    throws SystemException {
272                    return socialActivityPersistence.findAll(start, end);
273            }
274    
275            /**
276             * Returns the number of social activities.
277             *
278             * @return the number of social activities
279             * @throws SystemException if a system exception occurred
280             */
281            @Override
282            public int getSocialActivitiesCount() throws SystemException {
283                    return socialActivityPersistence.countAll();
284            }
285    
286            /**
287             * Updates the social activity in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
288             *
289             * @param socialActivity the social activity
290             * @return the social activity that was updated
291             * @throws SystemException if a system exception occurred
292             */
293            @Indexable(type = IndexableType.REINDEX)
294            @Override
295            public SocialActivity updateSocialActivity(SocialActivity socialActivity)
296                    throws SystemException {
297                    return socialActivityPersistence.update(socialActivity);
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 layout local service.
832             *
833             * @return the layout local service
834             */
835            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
836                    return layoutLocalService;
837            }
838    
839            /**
840             * Sets the layout local service.
841             *
842             * @param layoutLocalService the layout local service
843             */
844            public void setLayoutLocalService(
845                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
846                    this.layoutLocalService = layoutLocalService;
847            }
848    
849            /**
850             * Returns the layout remote service.
851             *
852             * @return the layout remote service
853             */
854            public com.liferay.portal.service.LayoutService getLayoutService() {
855                    return layoutService;
856            }
857    
858            /**
859             * Sets the layout remote service.
860             *
861             * @param layoutService the layout remote service
862             */
863            public void setLayoutService(
864                    com.liferay.portal.service.LayoutService layoutService) {
865                    this.layoutService = layoutService;
866            }
867    
868            /**
869             * Returns the layout persistence.
870             *
871             * @return the layout persistence
872             */
873            public LayoutPersistence getLayoutPersistence() {
874                    return layoutPersistence;
875            }
876    
877            /**
878             * Sets the layout persistence.
879             *
880             * @param layoutPersistence the layout persistence
881             */
882            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
883                    this.layoutPersistence = layoutPersistence;
884            }
885    
886            /**
887             * Returns the layout finder.
888             *
889             * @return the layout finder
890             */
891            public LayoutFinder getLayoutFinder() {
892                    return layoutFinder;
893            }
894    
895            /**
896             * Sets the layout finder.
897             *
898             * @param layoutFinder the layout finder
899             */
900            public void setLayoutFinder(LayoutFinder layoutFinder) {
901                    this.layoutFinder = layoutFinder;
902            }
903    
904            /**
905             * Returns the resource local service.
906             *
907             * @return the resource local service
908             */
909            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
910                    return resourceLocalService;
911            }
912    
913            /**
914             * Sets the resource local service.
915             *
916             * @param resourceLocalService the resource local service
917             */
918            public void setResourceLocalService(
919                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
920                    this.resourceLocalService = resourceLocalService;
921            }
922    
923            /**
924             * Returns the user local service.
925             *
926             * @return the user local service
927             */
928            public com.liferay.portal.service.UserLocalService getUserLocalService() {
929                    return userLocalService;
930            }
931    
932            /**
933             * Sets the user local service.
934             *
935             * @param userLocalService the user local service
936             */
937            public void setUserLocalService(
938                    com.liferay.portal.service.UserLocalService userLocalService) {
939                    this.userLocalService = userLocalService;
940            }
941    
942            /**
943             * Returns the user remote service.
944             *
945             * @return the user remote service
946             */
947            public com.liferay.portal.service.UserService getUserService() {
948                    return userService;
949            }
950    
951            /**
952             * Sets the user remote service.
953             *
954             * @param userService the user remote service
955             */
956            public void setUserService(
957                    com.liferay.portal.service.UserService userService) {
958                    this.userService = userService;
959            }
960    
961            /**
962             * Returns the user persistence.
963             *
964             * @return the user persistence
965             */
966            public UserPersistence getUserPersistence() {
967                    return userPersistence;
968            }
969    
970            /**
971             * Sets the user persistence.
972             *
973             * @param userPersistence the user persistence
974             */
975            public void setUserPersistence(UserPersistence userPersistence) {
976                    this.userPersistence = userPersistence;
977            }
978    
979            /**
980             * Returns the user finder.
981             *
982             * @return the user finder
983             */
984            public UserFinder getUserFinder() {
985                    return userFinder;
986            }
987    
988            /**
989             * Sets the user finder.
990             *
991             * @param userFinder the user finder
992             */
993            public void setUserFinder(UserFinder userFinder) {
994                    this.userFinder = userFinder;
995            }
996    
997            /**
998             * Returns the asset entry local service.
999             *
1000             * @return the asset entry local service
1001             */
1002            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1003                    return assetEntryLocalService;
1004            }
1005    
1006            /**
1007             * Sets the asset entry local service.
1008             *
1009             * @param assetEntryLocalService the asset entry local service
1010             */
1011            public void setAssetEntryLocalService(
1012                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1013                    this.assetEntryLocalService = assetEntryLocalService;
1014            }
1015    
1016            /**
1017             * Returns the asset entry remote service.
1018             *
1019             * @return the asset entry remote service
1020             */
1021            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1022                    return assetEntryService;
1023            }
1024    
1025            /**
1026             * Sets the asset entry remote service.
1027             *
1028             * @param assetEntryService the asset entry remote service
1029             */
1030            public void setAssetEntryService(
1031                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1032                    this.assetEntryService = assetEntryService;
1033            }
1034    
1035            /**
1036             * Returns the asset entry persistence.
1037             *
1038             * @return the asset entry persistence
1039             */
1040            public AssetEntryPersistence getAssetEntryPersistence() {
1041                    return assetEntryPersistence;
1042            }
1043    
1044            /**
1045             * Sets the asset entry persistence.
1046             *
1047             * @param assetEntryPersistence the asset entry persistence
1048             */
1049            public void setAssetEntryPersistence(
1050                    AssetEntryPersistence assetEntryPersistence) {
1051                    this.assetEntryPersistence = assetEntryPersistence;
1052            }
1053    
1054            /**
1055             * Returns the asset entry finder.
1056             *
1057             * @return the asset entry finder
1058             */
1059            public AssetEntryFinder getAssetEntryFinder() {
1060                    return assetEntryFinder;
1061            }
1062    
1063            /**
1064             * Sets the asset entry finder.
1065             *
1066             * @param assetEntryFinder the asset entry finder
1067             */
1068            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1069                    this.assetEntryFinder = assetEntryFinder;
1070            }
1071    
1072            public void afterPropertiesSet() {
1073                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialActivity",
1074                            socialActivityLocalService);
1075            }
1076    
1077            public void destroy() {
1078                    persistedModelLocalServiceRegistry.unregister(
1079                            "com.liferay.portlet.social.model.SocialActivity");
1080            }
1081    
1082            /**
1083             * Returns the Spring bean ID for this bean.
1084             *
1085             * @return the Spring bean ID for this bean
1086             */
1087            @Override
1088            public String getBeanIdentifier() {
1089                    return _beanIdentifier;
1090            }
1091    
1092            /**
1093             * Sets the Spring bean ID for this bean.
1094             *
1095             * @param beanIdentifier the Spring bean ID for this bean
1096             */
1097            @Override
1098            public void setBeanIdentifier(String beanIdentifier) {
1099                    _beanIdentifier = beanIdentifier;
1100            }
1101    
1102            protected Class<?> getModelClass() {
1103                    return SocialActivity.class;
1104            }
1105    
1106            protected String getModelClassName() {
1107                    return SocialActivity.class.getName();
1108            }
1109    
1110            /**
1111             * Performs an SQL query.
1112             *
1113             * @param sql the sql query
1114             */
1115            protected void runSQL(String sql) throws SystemException {
1116                    try {
1117                            DataSource dataSource = socialActivityPersistence.getDataSource();
1118    
1119                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1120                                            sql, new int[0]);
1121    
1122                            sqlUpdate.update();
1123                    }
1124                    catch (Exception e) {
1125                            throw new SystemException(e);
1126                    }
1127            }
1128    
1129            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1130            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1131            @BeanReference(type = SocialActivityPersistence.class)
1132            protected SocialActivityPersistence socialActivityPersistence;
1133            @BeanReference(type = SocialActivityFinder.class)
1134            protected SocialActivityFinder socialActivityFinder;
1135            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityAchievementLocalService.class)
1136            protected com.liferay.portlet.social.service.SocialActivityAchievementLocalService socialActivityAchievementLocalService;
1137            @BeanReference(type = SocialActivityAchievementPersistence.class)
1138            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
1139            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityCounterLocalService.class)
1140            protected com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
1141            @BeanReference(type = SocialActivityCounterPersistence.class)
1142            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
1143            @BeanReference(type = SocialActivityCounterFinder.class)
1144            protected SocialActivityCounterFinder socialActivityCounterFinder;
1145            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityInterpreterLocalService.class)
1146            protected com.liferay.portlet.social.service.SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
1147            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLimitLocalService.class)
1148            protected com.liferay.portlet.social.service.SocialActivityLimitLocalService socialActivityLimitLocalService;
1149            @BeanReference(type = SocialActivityLimitPersistence.class)
1150            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
1151            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySetLocalService.class)
1152            protected com.liferay.portlet.social.service.SocialActivitySetLocalService socialActivitySetLocalService;
1153            @BeanReference(type = SocialActivitySetPersistence.class)
1154            protected SocialActivitySetPersistence socialActivitySetPersistence;
1155            @BeanReference(type = SocialActivitySetFinder.class)
1156            protected SocialActivitySetFinder socialActivitySetFinder;
1157            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingLocalService.class)
1158            protected com.liferay.portlet.social.service.SocialActivitySettingLocalService socialActivitySettingLocalService;
1159            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingService.class)
1160            protected com.liferay.portlet.social.service.SocialActivitySettingService socialActivitySettingService;
1161            @BeanReference(type = SocialActivitySettingPersistence.class)
1162            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
1163            @BeanReference(type = com.liferay.portlet.social.service.SocialRelationLocalService.class)
1164            protected com.liferay.portlet.social.service.SocialRelationLocalService socialRelationLocalService;
1165            @BeanReference(type = SocialRelationPersistence.class)
1166            protected SocialRelationPersistence socialRelationPersistence;
1167            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestLocalService.class)
1168            protected com.liferay.portlet.social.service.SocialRequestLocalService socialRequestLocalService;
1169            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestService.class)
1170            protected com.liferay.portlet.social.service.SocialRequestService socialRequestService;
1171            @BeanReference(type = SocialRequestPersistence.class)
1172            protected SocialRequestPersistence socialRequestPersistence;
1173            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestInterpreterLocalService.class)
1174            protected com.liferay.portlet.social.service.SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
1175            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1176            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1177            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1178            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1179            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1180            protected com.liferay.portal.service.GroupService groupService;
1181            @BeanReference(type = GroupPersistence.class)
1182            protected GroupPersistence groupPersistence;
1183            @BeanReference(type = GroupFinder.class)
1184            protected GroupFinder groupFinder;
1185            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1186            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1187            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1188            protected com.liferay.portal.service.LayoutService layoutService;
1189            @BeanReference(type = LayoutPersistence.class)
1190            protected LayoutPersistence layoutPersistence;
1191            @BeanReference(type = LayoutFinder.class)
1192            protected LayoutFinder layoutFinder;
1193            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1194            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1195            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1196            protected com.liferay.portal.service.UserLocalService userLocalService;
1197            @BeanReference(type = com.liferay.portal.service.UserService.class)
1198            protected com.liferay.portal.service.UserService userService;
1199            @BeanReference(type = UserPersistence.class)
1200            protected UserPersistence userPersistence;
1201            @BeanReference(type = UserFinder.class)
1202            protected UserFinder userFinder;
1203            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1204            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1205            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1206            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1207            @BeanReference(type = AssetEntryPersistence.class)
1208            protected AssetEntryPersistence assetEntryPersistence;
1209            @BeanReference(type = AssetEntryFinder.class)
1210            protected AssetEntryFinder assetEntryFinder;
1211            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1212            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1213            private String _beanIdentifier;
1214    }