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