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