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