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