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