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