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