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