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 persistence.
374             *
375             * @return the social activity persistence
376             */
377            public SocialActivityPersistence getSocialActivityPersistence() {
378                    return socialActivityPersistence;
379            }
380    
381            /**
382             * Sets the social activity persistence.
383             *
384             * @param socialActivityPersistence the social activity persistence
385             */
386            public void setSocialActivityPersistence(
387                    SocialActivityPersistence socialActivityPersistence) {
388                    this.socialActivityPersistence = socialActivityPersistence;
389            }
390    
391            /**
392             * Returns the social activity finder.
393             *
394             * @return the social activity finder
395             */
396            public SocialActivityFinder getSocialActivityFinder() {
397                    return socialActivityFinder;
398            }
399    
400            /**
401             * Sets the social activity finder.
402             *
403             * @param socialActivityFinder the social activity finder
404             */
405            public void setSocialActivityFinder(
406                    SocialActivityFinder socialActivityFinder) {
407                    this.socialActivityFinder = socialActivityFinder;
408            }
409    
410            /**
411             * Returns the social activity achievement local service.
412             *
413             * @return the social activity achievement local service
414             */
415            public com.liferay.portlet.social.service.SocialActivityAchievementLocalService getSocialActivityAchievementLocalService() {
416                    return socialActivityAchievementLocalService;
417            }
418    
419            /**
420             * Sets the social activity achievement local service.
421             *
422             * @param socialActivityAchievementLocalService the social activity achievement local service
423             */
424            public void setSocialActivityAchievementLocalService(
425                    com.liferay.portlet.social.service.SocialActivityAchievementLocalService socialActivityAchievementLocalService) {
426                    this.socialActivityAchievementLocalService = socialActivityAchievementLocalService;
427            }
428    
429            /**
430             * Returns the social activity achievement persistence.
431             *
432             * @return the social activity achievement persistence
433             */
434            public SocialActivityAchievementPersistence getSocialActivityAchievementPersistence() {
435                    return socialActivityAchievementPersistence;
436            }
437    
438            /**
439             * Sets the social activity achievement persistence.
440             *
441             * @param socialActivityAchievementPersistence the social activity achievement persistence
442             */
443            public void setSocialActivityAchievementPersistence(
444                    SocialActivityAchievementPersistence socialActivityAchievementPersistence) {
445                    this.socialActivityAchievementPersistence = socialActivityAchievementPersistence;
446            }
447    
448            /**
449             * Returns the social activity counter local service.
450             *
451             * @return the social activity counter local service
452             */
453            public com.liferay.portlet.social.service.SocialActivityCounterLocalService getSocialActivityCounterLocalService() {
454                    return socialActivityCounterLocalService;
455            }
456    
457            /**
458             * Sets the social activity counter local service.
459             *
460             * @param socialActivityCounterLocalService the social activity counter local service
461             */
462            public void setSocialActivityCounterLocalService(
463                    com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService) {
464                    this.socialActivityCounterLocalService = socialActivityCounterLocalService;
465            }
466    
467            /**
468             * Returns the social activity counter persistence.
469             *
470             * @return the social activity counter persistence
471             */
472            public SocialActivityCounterPersistence getSocialActivityCounterPersistence() {
473                    return socialActivityCounterPersistence;
474            }
475    
476            /**
477             * Sets the social activity counter persistence.
478             *
479             * @param socialActivityCounterPersistence the social activity counter persistence
480             */
481            public void setSocialActivityCounterPersistence(
482                    SocialActivityCounterPersistence socialActivityCounterPersistence) {
483                    this.socialActivityCounterPersistence = socialActivityCounterPersistence;
484            }
485    
486            /**
487             * Returns the social activity counter finder.
488             *
489             * @return the social activity counter finder
490             */
491            public SocialActivityCounterFinder getSocialActivityCounterFinder() {
492                    return socialActivityCounterFinder;
493            }
494    
495            /**
496             * Sets the social activity counter finder.
497             *
498             * @param socialActivityCounterFinder the social activity counter finder
499             */
500            public void setSocialActivityCounterFinder(
501                    SocialActivityCounterFinder socialActivityCounterFinder) {
502                    this.socialActivityCounterFinder = socialActivityCounterFinder;
503            }
504    
505            /**
506             * Returns the social activity interpreter local service.
507             *
508             * @return the social activity interpreter local service
509             */
510            public com.liferay.portlet.social.service.SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
511                    return socialActivityInterpreterLocalService;
512            }
513    
514            /**
515             * Sets the social activity interpreter local service.
516             *
517             * @param socialActivityInterpreterLocalService the social activity interpreter local service
518             */
519            public void setSocialActivityInterpreterLocalService(
520                    com.liferay.portlet.social.service.SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
521                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
522            }
523    
524            /**
525             * Returns the social activity limit local service.
526             *
527             * @return the social activity limit local service
528             */
529            public com.liferay.portlet.social.service.SocialActivityLimitLocalService getSocialActivityLimitLocalService() {
530                    return socialActivityLimitLocalService;
531            }
532    
533            /**
534             * Sets the social activity limit local service.
535             *
536             * @param socialActivityLimitLocalService the social activity limit local service
537             */
538            public void setSocialActivityLimitLocalService(
539                    com.liferay.portlet.social.service.SocialActivityLimitLocalService socialActivityLimitLocalService) {
540                    this.socialActivityLimitLocalService = socialActivityLimitLocalService;
541            }
542    
543            /**
544             * Returns the social activity limit persistence.
545             *
546             * @return the social activity limit persistence
547             */
548            public SocialActivityLimitPersistence getSocialActivityLimitPersistence() {
549                    return socialActivityLimitPersistence;
550            }
551    
552            /**
553             * Sets the social activity limit persistence.
554             *
555             * @param socialActivityLimitPersistence the social activity limit persistence
556             */
557            public void setSocialActivityLimitPersistence(
558                    SocialActivityLimitPersistence socialActivityLimitPersistence) {
559                    this.socialActivityLimitPersistence = socialActivityLimitPersistence;
560            }
561    
562            /**
563             * Returns the social activity set local service.
564             *
565             * @return the social activity set local service
566             */
567            public com.liferay.portlet.social.service.SocialActivitySetLocalService getSocialActivitySetLocalService() {
568                    return socialActivitySetLocalService;
569            }
570    
571            /**
572             * Sets the social activity set local service.
573             *
574             * @param socialActivitySetLocalService the social activity set local service
575             */
576            public void setSocialActivitySetLocalService(
577                    com.liferay.portlet.social.service.SocialActivitySetLocalService socialActivitySetLocalService) {
578                    this.socialActivitySetLocalService = socialActivitySetLocalService;
579            }
580    
581            /**
582             * Returns the social activity set persistence.
583             *
584             * @return the social activity set persistence
585             */
586            public SocialActivitySetPersistence getSocialActivitySetPersistence() {
587                    return socialActivitySetPersistence;
588            }
589    
590            /**
591             * Sets the social activity set persistence.
592             *
593             * @param socialActivitySetPersistence the social activity set persistence
594             */
595            public void setSocialActivitySetPersistence(
596                    SocialActivitySetPersistence socialActivitySetPersistence) {
597                    this.socialActivitySetPersistence = socialActivitySetPersistence;
598            }
599    
600            /**
601             * Returns the social activity set finder.
602             *
603             * @return the social activity set finder
604             */
605            public SocialActivitySetFinder getSocialActivitySetFinder() {
606                    return socialActivitySetFinder;
607            }
608    
609            /**
610             * Sets the social activity set finder.
611             *
612             * @param socialActivitySetFinder the social activity set finder
613             */
614            public void setSocialActivitySetFinder(
615                    SocialActivitySetFinder socialActivitySetFinder) {
616                    this.socialActivitySetFinder = socialActivitySetFinder;
617            }
618    
619            /**
620             * Returns the social activity setting local service.
621             *
622             * @return the social activity setting local service
623             */
624            public com.liferay.portlet.social.service.SocialActivitySettingLocalService getSocialActivitySettingLocalService() {
625                    return socialActivitySettingLocalService;
626            }
627    
628            /**
629             * Sets the social activity setting local service.
630             *
631             * @param socialActivitySettingLocalService the social activity setting local service
632             */
633            public void setSocialActivitySettingLocalService(
634                    com.liferay.portlet.social.service.SocialActivitySettingLocalService socialActivitySettingLocalService) {
635                    this.socialActivitySettingLocalService = socialActivitySettingLocalService;
636            }
637    
638            /**
639             * Returns the social activity setting remote service.
640             *
641             * @return the social activity setting remote service
642             */
643            public com.liferay.portlet.social.service.SocialActivitySettingService getSocialActivitySettingService() {
644                    return socialActivitySettingService;
645            }
646    
647            /**
648             * Sets the social activity setting remote service.
649             *
650             * @param socialActivitySettingService the social activity setting remote service
651             */
652            public void setSocialActivitySettingService(
653                    com.liferay.portlet.social.service.SocialActivitySettingService socialActivitySettingService) {
654                    this.socialActivitySettingService = socialActivitySettingService;
655            }
656    
657            /**
658             * Returns the social activity setting persistence.
659             *
660             * @return the social activity setting persistence
661             */
662            public SocialActivitySettingPersistence getSocialActivitySettingPersistence() {
663                    return socialActivitySettingPersistence;
664            }
665    
666            /**
667             * Sets the social activity setting persistence.
668             *
669             * @param socialActivitySettingPersistence the social activity setting persistence
670             */
671            public void setSocialActivitySettingPersistence(
672                    SocialActivitySettingPersistence socialActivitySettingPersistence) {
673                    this.socialActivitySettingPersistence = socialActivitySettingPersistence;
674            }
675    
676            /**
677             * Returns the social relation local service.
678             *
679             * @return the social relation local service
680             */
681            public com.liferay.portlet.social.service.SocialRelationLocalService getSocialRelationLocalService() {
682                    return socialRelationLocalService;
683            }
684    
685            /**
686             * Sets the social relation local service.
687             *
688             * @param socialRelationLocalService the social relation local service
689             */
690            public void setSocialRelationLocalService(
691                    com.liferay.portlet.social.service.SocialRelationLocalService socialRelationLocalService) {
692                    this.socialRelationLocalService = socialRelationLocalService;
693            }
694    
695            /**
696             * Returns the social relation persistence.
697             *
698             * @return the social relation persistence
699             */
700            public SocialRelationPersistence getSocialRelationPersistence() {
701                    return socialRelationPersistence;
702            }
703    
704            /**
705             * Sets the social relation persistence.
706             *
707             * @param socialRelationPersistence the social relation persistence
708             */
709            public void setSocialRelationPersistence(
710                    SocialRelationPersistence socialRelationPersistence) {
711                    this.socialRelationPersistence = socialRelationPersistence;
712            }
713    
714            /**
715             * Returns the social request local service.
716             *
717             * @return the social request local service
718             */
719            public com.liferay.portlet.social.service.SocialRequestLocalService getSocialRequestLocalService() {
720                    return socialRequestLocalService;
721            }
722    
723            /**
724             * Sets the social request local service.
725             *
726             * @param socialRequestLocalService the social request local service
727             */
728            public void setSocialRequestLocalService(
729                    com.liferay.portlet.social.service.SocialRequestLocalService socialRequestLocalService) {
730                    this.socialRequestLocalService = socialRequestLocalService;
731            }
732    
733            /**
734             * Returns the social request remote service.
735             *
736             * @return the social request remote service
737             */
738            public com.liferay.portlet.social.service.SocialRequestService getSocialRequestService() {
739                    return socialRequestService;
740            }
741    
742            /**
743             * Sets the social request remote service.
744             *
745             * @param socialRequestService the social request remote service
746             */
747            public void setSocialRequestService(
748                    com.liferay.portlet.social.service.SocialRequestService socialRequestService) {
749                    this.socialRequestService = socialRequestService;
750            }
751    
752            /**
753             * Returns the social request persistence.
754             *
755             * @return the social request persistence
756             */
757            public SocialRequestPersistence getSocialRequestPersistence() {
758                    return socialRequestPersistence;
759            }
760    
761            /**
762             * Sets the social request persistence.
763             *
764             * @param socialRequestPersistence the social request persistence
765             */
766            public void setSocialRequestPersistence(
767                    SocialRequestPersistence socialRequestPersistence) {
768                    this.socialRequestPersistence = socialRequestPersistence;
769            }
770    
771            /**
772             * Returns the social request interpreter local service.
773             *
774             * @return the social request interpreter local service
775             */
776            public com.liferay.portlet.social.service.SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
777                    return socialRequestInterpreterLocalService;
778            }
779    
780            /**
781             * Sets the social request interpreter local service.
782             *
783             * @param socialRequestInterpreterLocalService the social request interpreter local service
784             */
785            public void setSocialRequestInterpreterLocalService(
786                    com.liferay.portlet.social.service.SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
787                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
788            }
789    
790            /**
791             * Returns the counter local service.
792             *
793             * @return the counter local service
794             */
795            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
796                    return counterLocalService;
797            }
798    
799            /**
800             * Sets the counter local service.
801             *
802             * @param counterLocalService the counter local service
803             */
804            public void setCounterLocalService(
805                    com.liferay.counter.service.CounterLocalService counterLocalService) {
806                    this.counterLocalService = counterLocalService;
807            }
808    
809            /**
810             * Returns the resource local service.
811             *
812             * @return the resource local service
813             */
814            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
815                    return resourceLocalService;
816            }
817    
818            /**
819             * Sets the resource local service.
820             *
821             * @param resourceLocalService the resource local service
822             */
823            public void setResourceLocalService(
824                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
825                    this.resourceLocalService = resourceLocalService;
826            }
827    
828            /**
829             * Returns the user local service.
830             *
831             * @return the user local service
832             */
833            public com.liferay.portal.service.UserLocalService getUserLocalService() {
834                    return userLocalService;
835            }
836    
837            /**
838             * Sets the user local service.
839             *
840             * @param userLocalService the user local service
841             */
842            public void setUserLocalService(
843                    com.liferay.portal.service.UserLocalService userLocalService) {
844                    this.userLocalService = userLocalService;
845            }
846    
847            /**
848             * Returns the user remote service.
849             *
850             * @return the user remote service
851             */
852            public com.liferay.portal.service.UserService getUserService() {
853                    return userService;
854            }
855    
856            /**
857             * Sets the user remote service.
858             *
859             * @param userService the user remote service
860             */
861            public void setUserService(
862                    com.liferay.portal.service.UserService userService) {
863                    this.userService = userService;
864            }
865    
866            /**
867             * Returns the user persistence.
868             *
869             * @return the user persistence
870             */
871            public UserPersistence getUserPersistence() {
872                    return userPersistence;
873            }
874    
875            /**
876             * Sets the user persistence.
877             *
878             * @param userPersistence the user persistence
879             */
880            public void setUserPersistence(UserPersistence userPersistence) {
881                    this.userPersistence = userPersistence;
882            }
883    
884            /**
885             * Returns the user finder.
886             *
887             * @return the user finder
888             */
889            public UserFinder getUserFinder() {
890                    return userFinder;
891            }
892    
893            /**
894             * Sets the user finder.
895             *
896             * @param userFinder the user finder
897             */
898            public void setUserFinder(UserFinder userFinder) {
899                    this.userFinder = userFinder;
900            }
901    
902            public void afterPropertiesSet() {
903                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.social.model.SocialRequest",
904                            socialRequestLocalService);
905            }
906    
907            public void destroy() {
908                    persistedModelLocalServiceRegistry.unregister(
909                            "com.liferay.portlet.social.model.SocialRequest");
910            }
911    
912            /**
913             * Returns the Spring bean ID for this bean.
914             *
915             * @return the Spring bean ID for this bean
916             */
917            @Override
918            public String getBeanIdentifier() {
919                    return _beanIdentifier;
920            }
921    
922            /**
923             * Sets the Spring bean ID for this bean.
924             *
925             * @param beanIdentifier the Spring bean ID for this bean
926             */
927            @Override
928            public void setBeanIdentifier(String beanIdentifier) {
929                    _beanIdentifier = beanIdentifier;
930            }
931    
932            protected Class<?> getModelClass() {
933                    return SocialRequest.class;
934            }
935    
936            protected String getModelClassName() {
937                    return SocialRequest.class.getName();
938            }
939    
940            /**
941             * Performs an SQL query.
942             *
943             * @param sql the sql query
944             */
945            protected void runSQL(String sql) throws SystemException {
946                    try {
947                            DataSource dataSource = socialRequestPersistence.getDataSource();
948    
949                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
950                                            sql, new int[0]);
951    
952                            sqlUpdate.update();
953                    }
954                    catch (Exception e) {
955                            throw new SystemException(e);
956                    }
957            }
958    
959            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
960            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
961            @BeanReference(type = SocialActivityPersistence.class)
962            protected SocialActivityPersistence socialActivityPersistence;
963            @BeanReference(type = SocialActivityFinder.class)
964            protected SocialActivityFinder socialActivityFinder;
965            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityAchievementLocalService.class)
966            protected com.liferay.portlet.social.service.SocialActivityAchievementLocalService socialActivityAchievementLocalService;
967            @BeanReference(type = SocialActivityAchievementPersistence.class)
968            protected SocialActivityAchievementPersistence socialActivityAchievementPersistence;
969            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityCounterLocalService.class)
970            protected com.liferay.portlet.social.service.SocialActivityCounterLocalService socialActivityCounterLocalService;
971            @BeanReference(type = SocialActivityCounterPersistence.class)
972            protected SocialActivityCounterPersistence socialActivityCounterPersistence;
973            @BeanReference(type = SocialActivityCounterFinder.class)
974            protected SocialActivityCounterFinder socialActivityCounterFinder;
975            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityInterpreterLocalService.class)
976            protected com.liferay.portlet.social.service.SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
977            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLimitLocalService.class)
978            protected com.liferay.portlet.social.service.SocialActivityLimitLocalService socialActivityLimitLocalService;
979            @BeanReference(type = SocialActivityLimitPersistence.class)
980            protected SocialActivityLimitPersistence socialActivityLimitPersistence;
981            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySetLocalService.class)
982            protected com.liferay.portlet.social.service.SocialActivitySetLocalService socialActivitySetLocalService;
983            @BeanReference(type = SocialActivitySetPersistence.class)
984            protected SocialActivitySetPersistence socialActivitySetPersistence;
985            @BeanReference(type = SocialActivitySetFinder.class)
986            protected SocialActivitySetFinder socialActivitySetFinder;
987            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingLocalService.class)
988            protected com.liferay.portlet.social.service.SocialActivitySettingLocalService socialActivitySettingLocalService;
989            @BeanReference(type = com.liferay.portlet.social.service.SocialActivitySettingService.class)
990            protected com.liferay.portlet.social.service.SocialActivitySettingService socialActivitySettingService;
991            @BeanReference(type = SocialActivitySettingPersistence.class)
992            protected SocialActivitySettingPersistence socialActivitySettingPersistence;
993            @BeanReference(type = com.liferay.portlet.social.service.SocialRelationLocalService.class)
994            protected com.liferay.portlet.social.service.SocialRelationLocalService socialRelationLocalService;
995            @BeanReference(type = SocialRelationPersistence.class)
996            protected SocialRelationPersistence socialRelationPersistence;
997            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestLocalService.class)
998            protected com.liferay.portlet.social.service.SocialRequestLocalService socialRequestLocalService;
999            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestService.class)
1000            protected com.liferay.portlet.social.service.SocialRequestService socialRequestService;
1001            @BeanReference(type = SocialRequestPersistence.class)
1002            protected SocialRequestPersistence socialRequestPersistence;
1003            @BeanReference(type = com.liferay.portlet.social.service.SocialRequestInterpreterLocalService.class)
1004            protected com.liferay.portlet.social.service.SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
1005            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1006            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1007            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1008            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1009            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1010            protected com.liferay.portal.service.UserLocalService userLocalService;
1011            @BeanReference(type = com.liferay.portal.service.UserService.class)
1012            protected com.liferay.portal.service.UserService userService;
1013            @BeanReference(type = UserPersistence.class)
1014            protected UserPersistence userPersistence;
1015            @BeanReference(type = UserFinder.class)
1016            protected UserFinder userFinder;
1017            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1018            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1019            private String _beanIdentifier;
1020    }