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