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