001    /**
002     * Copyright (c) 2000-2010 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.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.asset.service.AssetEntryLocalService;
036    import com.liferay.portlet.asset.service.AssetEntryService;
037    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
038    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
039    import com.liferay.portlet.social.model.SocialEquityLog;
040    import com.liferay.portlet.social.service.SocialActivityInterpreterLocalService;
041    import com.liferay.portlet.social.service.SocialActivityLocalService;
042    import com.liferay.portlet.social.service.SocialEquityHistoryLocalService;
043    import com.liferay.portlet.social.service.SocialEquityLogLocalService;
044    import com.liferay.portlet.social.service.SocialEquitySettingLocalService;
045    import com.liferay.portlet.social.service.SocialEquityUserLocalService;
046    import com.liferay.portlet.social.service.SocialRelationLocalService;
047    import com.liferay.portlet.social.service.SocialRequestInterpreterLocalService;
048    import com.liferay.portlet.social.service.SocialRequestLocalService;
049    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
050    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
051    import com.liferay.portlet.social.service.persistence.SocialEquityAssetEntryPersistence;
052    import com.liferay.portlet.social.service.persistence.SocialEquityHistoryPersistence;
053    import com.liferay.portlet.social.service.persistence.SocialEquityLogPersistence;
054    import com.liferay.portlet.social.service.persistence.SocialEquitySettingPersistence;
055    import com.liferay.portlet.social.service.persistence.SocialEquityUserPersistence;
056    import com.liferay.portlet.social.service.persistence.SocialRelationPersistence;
057    import com.liferay.portlet.social.service.persistence.SocialRequestPersistence;
058    
059    import java.util.List;
060    
061    import javax.sql.DataSource;
062    
063    /**
064     * The base implementation of the social equity log local service.
065     *
066     * <p>
067     * 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.SocialEquityLogLocalServiceImpl}.
068     * </p>
069     *
070     * <p>
071     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.social.service.SocialEquityLogLocalServiceUtil} to access the social equity log local service.
072     * </p>
073     *
074     * @author Brian Wing Shun Chan
075     * @see com.liferay.portlet.social.service.impl.SocialEquityLogLocalServiceImpl
076     * @see com.liferay.portlet.social.service.SocialEquityLogLocalServiceUtil
077     * @generated
078     */
079    public abstract class SocialEquityLogLocalServiceBaseImpl
080            implements SocialEquityLogLocalService {
081            /**
082             * Adds the social equity log to the database. Also notifies the appropriate model listeners.
083             *
084             * @param socialEquityLog the social equity log to add
085             * @return the social equity log that was added
086             * @throws SystemException if a system exception occurred
087             */
088            public SocialEquityLog addSocialEquityLog(SocialEquityLog socialEquityLog)
089                    throws SystemException {
090                    socialEquityLog.setNew(true);
091    
092                    return socialEquityLogPersistence.update(socialEquityLog, false);
093            }
094    
095            /**
096             * Creates a new social equity log with the primary key. Does not add the social equity log to the database.
097             *
098             * @param equityLogId the primary key for the new social equity log
099             * @return the new social equity log
100             */
101            public SocialEquityLog createSocialEquityLog(long equityLogId) {
102                    return socialEquityLogPersistence.create(equityLogId);
103            }
104    
105            /**
106             * Deletes the social equity log with the primary key from the database. Also notifies the appropriate model listeners.
107             *
108             * @param equityLogId the primary key of the social equity log to delete
109             * @throws PortalException if a social equity log with the primary key could not be found
110             * @throws SystemException if a system exception occurred
111             */
112            public void deleteSocialEquityLog(long equityLogId)
113                    throws PortalException, SystemException {
114                    socialEquityLogPersistence.remove(equityLogId);
115            }
116    
117            /**
118             * Deletes the social equity log from the database. Also notifies the appropriate model listeners.
119             *
120             * @param socialEquityLog the social equity log to delete
121             * @throws SystemException if a system exception occurred
122             */
123            public void deleteSocialEquityLog(SocialEquityLog socialEquityLog)
124                    throws SystemException {
125                    socialEquityLogPersistence.remove(socialEquityLog);
126            }
127    
128            /**
129             * Performs a dynamic query on the database and returns the matching rows.
130             *
131             * @param dynamicQuery the dynamic query to search with
132             * @return the matching rows
133             * @throws SystemException if a system exception occurred
134             */
135            @SuppressWarnings("rawtypes")
136            public List dynamicQuery(DynamicQuery dynamicQuery)
137                    throws SystemException {
138                    return socialEquityLogPersistence.findWithDynamicQuery(dynamicQuery);
139            }
140    
141            /**
142             * Performs a dynamic query on the database and returns a range of the matching rows.
143             *
144             * <p>
145             * 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.
146             * </p>
147             *
148             * @param dynamicQuery the dynamic query to search with
149             * @param start the lower bound of the range of model instances to return
150             * @param end the upper bound of the range of model instances to return (not inclusive)
151             * @return the range of matching rows
152             * @throws SystemException if a system exception occurred
153             */
154            @SuppressWarnings("rawtypes")
155            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
156                    throws SystemException {
157                    return socialEquityLogPersistence.findWithDynamicQuery(dynamicQuery,
158                            start, end);
159            }
160    
161            /**
162             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
163             *
164             * <p>
165             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
166             * </p>
167             *
168             * @param dynamicQuery the dynamic query to search with
169             * @param start the lower bound of the range of model instances to return
170             * @param end the upper bound of the range of model instances to return (not inclusive)
171             * @param orderByComparator the comparator to order the results by
172             * @return the ordered range of matching rows
173             * @throws SystemException if a system exception occurred
174             */
175            @SuppressWarnings("rawtypes")
176            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
177                    OrderByComparator orderByComparator) throws SystemException {
178                    return socialEquityLogPersistence.findWithDynamicQuery(dynamicQuery,
179                            start, end, orderByComparator);
180            }
181    
182            /**
183             * Counts the number of rows that match the dynamic query.
184             *
185             * @param dynamicQuery the dynamic query to search with
186             * @return the number of rows that match the dynamic query
187             * @throws SystemException if a system exception occurred
188             */
189            public long dynamicQueryCount(DynamicQuery dynamicQuery)
190                    throws SystemException {
191                    return socialEquityLogPersistence.countWithDynamicQuery(dynamicQuery);
192            }
193    
194            /**
195             * Gets the social equity log with the primary key.
196             *
197             * @param equityLogId the primary key of the social equity log to get
198             * @return the social equity log
199             * @throws PortalException if a social equity log with the primary key could not be found
200             * @throws SystemException if a system exception occurred
201             */
202            public SocialEquityLog getSocialEquityLog(long equityLogId)
203                    throws PortalException, SystemException {
204                    return socialEquityLogPersistence.findByPrimaryKey(equityLogId);
205            }
206    
207            /**
208             * Gets a range of all the social equity logs.
209             *
210             * <p>
211             * 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.
212             * </p>
213             *
214             * @param start the lower bound of the range of social equity logs to return
215             * @param end the upper bound of the range of social equity logs to return (not inclusive)
216             * @return the range of social equity logs
217             * @throws SystemException if a system exception occurred
218             */
219            public List<SocialEquityLog> getSocialEquityLogs(int start, int end)
220                    throws SystemException {
221                    return socialEquityLogPersistence.findAll(start, end);
222            }
223    
224            /**
225             * Gets the number of social equity logs.
226             *
227             * @return the number of social equity logs
228             * @throws SystemException if a system exception occurred
229             */
230            public int getSocialEquityLogsCount() throws SystemException {
231                    return socialEquityLogPersistence.countAll();
232            }
233    
234            /**
235             * Updates the social equity log in the database. Also notifies the appropriate model listeners.
236             *
237             * @param socialEquityLog the social equity log to update
238             * @return the social equity log that was updated
239             * @throws SystemException if a system exception occurred
240             */
241            public SocialEquityLog updateSocialEquityLog(
242                    SocialEquityLog socialEquityLog) throws SystemException {
243                    socialEquityLog.setNew(false);
244    
245                    return socialEquityLogPersistence.update(socialEquityLog, true);
246            }
247    
248            /**
249             * Updates the social equity log in the database. Also notifies the appropriate model listeners.
250             *
251             * @param socialEquityLog the social equity log to update
252             * @param merge whether to merge the social equity log 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.
253             * @return the social equity log that was updated
254             * @throws SystemException if a system exception occurred
255             */
256            public SocialEquityLog updateSocialEquityLog(
257                    SocialEquityLog socialEquityLog, boolean merge)
258                    throws SystemException {
259                    socialEquityLog.setNew(false);
260    
261                    return socialEquityLogPersistence.update(socialEquityLog, merge);
262            }
263    
264            /**
265             * Gets the social activity local service.
266             *
267             * @return the social activity local service
268             */
269            public SocialActivityLocalService getSocialActivityLocalService() {
270                    return socialActivityLocalService;
271            }
272    
273            /**
274             * Sets the social activity local service.
275             *
276             * @param socialActivityLocalService the social activity local service
277             */
278            public void setSocialActivityLocalService(
279                    SocialActivityLocalService socialActivityLocalService) {
280                    this.socialActivityLocalService = socialActivityLocalService;
281            }
282    
283            /**
284             * Gets the social activity persistence.
285             *
286             * @return the social activity persistence
287             */
288            public SocialActivityPersistence getSocialActivityPersistence() {
289                    return socialActivityPersistence;
290            }
291    
292            /**
293             * Sets the social activity persistence.
294             *
295             * @param socialActivityPersistence the social activity persistence
296             */
297            public void setSocialActivityPersistence(
298                    SocialActivityPersistence socialActivityPersistence) {
299                    this.socialActivityPersistence = socialActivityPersistence;
300            }
301    
302            /**
303             * Gets the social activity finder.
304             *
305             * @return the social activity finder
306             */
307            public SocialActivityFinder getSocialActivityFinder() {
308                    return socialActivityFinder;
309            }
310    
311            /**
312             * Sets the social activity finder.
313             *
314             * @param socialActivityFinder the social activity finder
315             */
316            public void setSocialActivityFinder(
317                    SocialActivityFinder socialActivityFinder) {
318                    this.socialActivityFinder = socialActivityFinder;
319            }
320    
321            /**
322             * Gets the social activity interpreter local service.
323             *
324             * @return the social activity interpreter local service
325             */
326            public SocialActivityInterpreterLocalService getSocialActivityInterpreterLocalService() {
327                    return socialActivityInterpreterLocalService;
328            }
329    
330            /**
331             * Sets the social activity interpreter local service.
332             *
333             * @param socialActivityInterpreterLocalService the social activity interpreter local service
334             */
335            public void setSocialActivityInterpreterLocalService(
336                    SocialActivityInterpreterLocalService socialActivityInterpreterLocalService) {
337                    this.socialActivityInterpreterLocalService = socialActivityInterpreterLocalService;
338            }
339    
340            /**
341             * Gets the social equity asset entry persistence.
342             *
343             * @return the social equity asset entry persistence
344             */
345            public SocialEquityAssetEntryPersistence getSocialEquityAssetEntryPersistence() {
346                    return socialEquityAssetEntryPersistence;
347            }
348    
349            /**
350             * Sets the social equity asset entry persistence.
351             *
352             * @param socialEquityAssetEntryPersistence the social equity asset entry persistence
353             */
354            public void setSocialEquityAssetEntryPersistence(
355                    SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence) {
356                    this.socialEquityAssetEntryPersistence = socialEquityAssetEntryPersistence;
357            }
358    
359            /**
360             * Gets the social equity history local service.
361             *
362             * @return the social equity history local service
363             */
364            public SocialEquityHistoryLocalService getSocialEquityHistoryLocalService() {
365                    return socialEquityHistoryLocalService;
366            }
367    
368            /**
369             * Sets the social equity history local service.
370             *
371             * @param socialEquityHistoryLocalService the social equity history local service
372             */
373            public void setSocialEquityHistoryLocalService(
374                    SocialEquityHistoryLocalService socialEquityHistoryLocalService) {
375                    this.socialEquityHistoryLocalService = socialEquityHistoryLocalService;
376            }
377    
378            /**
379             * Gets the social equity history persistence.
380             *
381             * @return the social equity history persistence
382             */
383            public SocialEquityHistoryPersistence getSocialEquityHistoryPersistence() {
384                    return socialEquityHistoryPersistence;
385            }
386    
387            /**
388             * Sets the social equity history persistence.
389             *
390             * @param socialEquityHistoryPersistence the social equity history persistence
391             */
392            public void setSocialEquityHistoryPersistence(
393                    SocialEquityHistoryPersistence socialEquityHistoryPersistence) {
394                    this.socialEquityHistoryPersistence = socialEquityHistoryPersistence;
395            }
396    
397            /**
398             * Gets the social equity log local service.
399             *
400             * @return the social equity log local service
401             */
402            public SocialEquityLogLocalService getSocialEquityLogLocalService() {
403                    return socialEquityLogLocalService;
404            }
405    
406            /**
407             * Sets the social equity log local service.
408             *
409             * @param socialEquityLogLocalService the social equity log local service
410             */
411            public void setSocialEquityLogLocalService(
412                    SocialEquityLogLocalService socialEquityLogLocalService) {
413                    this.socialEquityLogLocalService = socialEquityLogLocalService;
414            }
415    
416            /**
417             * Gets the social equity log persistence.
418             *
419             * @return the social equity log persistence
420             */
421            public SocialEquityLogPersistence getSocialEquityLogPersistence() {
422                    return socialEquityLogPersistence;
423            }
424    
425            /**
426             * Sets the social equity log persistence.
427             *
428             * @param socialEquityLogPersistence the social equity log persistence
429             */
430            public void setSocialEquityLogPersistence(
431                    SocialEquityLogPersistence socialEquityLogPersistence) {
432                    this.socialEquityLogPersistence = socialEquityLogPersistence;
433            }
434    
435            /**
436             * Gets the social equity setting local service.
437             *
438             * @return the social equity setting local service
439             */
440            public SocialEquitySettingLocalService getSocialEquitySettingLocalService() {
441                    return socialEquitySettingLocalService;
442            }
443    
444            /**
445             * Sets the social equity setting local service.
446             *
447             * @param socialEquitySettingLocalService the social equity setting local service
448             */
449            public void setSocialEquitySettingLocalService(
450                    SocialEquitySettingLocalService socialEquitySettingLocalService) {
451                    this.socialEquitySettingLocalService = socialEquitySettingLocalService;
452            }
453    
454            /**
455             * Gets the social equity setting persistence.
456             *
457             * @return the social equity setting persistence
458             */
459            public SocialEquitySettingPersistence getSocialEquitySettingPersistence() {
460                    return socialEquitySettingPersistence;
461            }
462    
463            /**
464             * Sets the social equity setting persistence.
465             *
466             * @param socialEquitySettingPersistence the social equity setting persistence
467             */
468            public void setSocialEquitySettingPersistence(
469                    SocialEquitySettingPersistence socialEquitySettingPersistence) {
470                    this.socialEquitySettingPersistence = socialEquitySettingPersistence;
471            }
472    
473            /**
474             * Gets the social equity user local service.
475             *
476             * @return the social equity user local service
477             */
478            public SocialEquityUserLocalService getSocialEquityUserLocalService() {
479                    return socialEquityUserLocalService;
480            }
481    
482            /**
483             * Sets the social equity user local service.
484             *
485             * @param socialEquityUserLocalService the social equity user local service
486             */
487            public void setSocialEquityUserLocalService(
488                    SocialEquityUserLocalService socialEquityUserLocalService) {
489                    this.socialEquityUserLocalService = socialEquityUserLocalService;
490            }
491    
492            /**
493             * Gets the social equity user persistence.
494             *
495             * @return the social equity user persistence
496             */
497            public SocialEquityUserPersistence getSocialEquityUserPersistence() {
498                    return socialEquityUserPersistence;
499            }
500    
501            /**
502             * Sets the social equity user persistence.
503             *
504             * @param socialEquityUserPersistence the social equity user persistence
505             */
506            public void setSocialEquityUserPersistence(
507                    SocialEquityUserPersistence socialEquityUserPersistence) {
508                    this.socialEquityUserPersistence = socialEquityUserPersistence;
509            }
510    
511            /**
512             * Gets the social relation local service.
513             *
514             * @return the social relation local service
515             */
516            public SocialRelationLocalService getSocialRelationLocalService() {
517                    return socialRelationLocalService;
518            }
519    
520            /**
521             * Sets the social relation local service.
522             *
523             * @param socialRelationLocalService the social relation local service
524             */
525            public void setSocialRelationLocalService(
526                    SocialRelationLocalService socialRelationLocalService) {
527                    this.socialRelationLocalService = socialRelationLocalService;
528            }
529    
530            /**
531             * Gets the social relation persistence.
532             *
533             * @return the social relation persistence
534             */
535            public SocialRelationPersistence getSocialRelationPersistence() {
536                    return socialRelationPersistence;
537            }
538    
539            /**
540             * Sets the social relation persistence.
541             *
542             * @param socialRelationPersistence the social relation persistence
543             */
544            public void setSocialRelationPersistence(
545                    SocialRelationPersistence socialRelationPersistence) {
546                    this.socialRelationPersistence = socialRelationPersistence;
547            }
548    
549            /**
550             * Gets the social request local service.
551             *
552             * @return the social request local service
553             */
554            public SocialRequestLocalService getSocialRequestLocalService() {
555                    return socialRequestLocalService;
556            }
557    
558            /**
559             * Sets the social request local service.
560             *
561             * @param socialRequestLocalService the social request local service
562             */
563            public void setSocialRequestLocalService(
564                    SocialRequestLocalService socialRequestLocalService) {
565                    this.socialRequestLocalService = socialRequestLocalService;
566            }
567    
568            /**
569             * Gets the social request persistence.
570             *
571             * @return the social request persistence
572             */
573            public SocialRequestPersistence getSocialRequestPersistence() {
574                    return socialRequestPersistence;
575            }
576    
577            /**
578             * Sets the social request persistence.
579             *
580             * @param socialRequestPersistence the social request persistence
581             */
582            public void setSocialRequestPersistence(
583                    SocialRequestPersistence socialRequestPersistence) {
584                    this.socialRequestPersistence = socialRequestPersistence;
585            }
586    
587            /**
588             * Gets the social request interpreter local service.
589             *
590             * @return the social request interpreter local service
591             */
592            public SocialRequestInterpreterLocalService getSocialRequestInterpreterLocalService() {
593                    return socialRequestInterpreterLocalService;
594            }
595    
596            /**
597             * Sets the social request interpreter local service.
598             *
599             * @param socialRequestInterpreterLocalService the social request interpreter local service
600             */
601            public void setSocialRequestInterpreterLocalService(
602                    SocialRequestInterpreterLocalService socialRequestInterpreterLocalService) {
603                    this.socialRequestInterpreterLocalService = socialRequestInterpreterLocalService;
604            }
605    
606            /**
607             * Gets the counter local service.
608             *
609             * @return the counter local service
610             */
611            public CounterLocalService getCounterLocalService() {
612                    return counterLocalService;
613            }
614    
615            /**
616             * Sets the counter local service.
617             *
618             * @param counterLocalService the counter local service
619             */
620            public void setCounterLocalService(CounterLocalService counterLocalService) {
621                    this.counterLocalService = counterLocalService;
622            }
623    
624            /**
625             * Gets the resource local service.
626             *
627             * @return the resource local service
628             */
629            public ResourceLocalService getResourceLocalService() {
630                    return resourceLocalService;
631            }
632    
633            /**
634             * Sets the resource local service.
635             *
636             * @param resourceLocalService the resource local service
637             */
638            public void setResourceLocalService(
639                    ResourceLocalService resourceLocalService) {
640                    this.resourceLocalService = resourceLocalService;
641            }
642    
643            /**
644             * Gets the resource remote service.
645             *
646             * @return the resource remote service
647             */
648            public ResourceService getResourceService() {
649                    return resourceService;
650            }
651    
652            /**
653             * Sets the resource remote service.
654             *
655             * @param resourceService the resource remote service
656             */
657            public void setResourceService(ResourceService resourceService) {
658                    this.resourceService = resourceService;
659            }
660    
661            /**
662             * Gets the resource persistence.
663             *
664             * @return the resource persistence
665             */
666            public ResourcePersistence getResourcePersistence() {
667                    return resourcePersistence;
668            }
669    
670            /**
671             * Sets the resource persistence.
672             *
673             * @param resourcePersistence the resource persistence
674             */
675            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
676                    this.resourcePersistence = resourcePersistence;
677            }
678    
679            /**
680             * Gets the resource finder.
681             *
682             * @return the resource finder
683             */
684            public ResourceFinder getResourceFinder() {
685                    return resourceFinder;
686            }
687    
688            /**
689             * Sets the resource finder.
690             *
691             * @param resourceFinder the resource finder
692             */
693            public void setResourceFinder(ResourceFinder resourceFinder) {
694                    this.resourceFinder = resourceFinder;
695            }
696    
697            /**
698             * Gets the user local service.
699             *
700             * @return the user local service
701             */
702            public UserLocalService getUserLocalService() {
703                    return userLocalService;
704            }
705    
706            /**
707             * Sets the user local service.
708             *
709             * @param userLocalService the user local service
710             */
711            public void setUserLocalService(UserLocalService userLocalService) {
712                    this.userLocalService = userLocalService;
713            }
714    
715            /**
716             * Gets the user remote service.
717             *
718             * @return the user remote service
719             */
720            public UserService getUserService() {
721                    return userService;
722            }
723    
724            /**
725             * Sets the user remote service.
726             *
727             * @param userService the user remote service
728             */
729            public void setUserService(UserService userService) {
730                    this.userService = userService;
731            }
732    
733            /**
734             * Gets the user persistence.
735             *
736             * @return the user persistence
737             */
738            public UserPersistence getUserPersistence() {
739                    return userPersistence;
740            }
741    
742            /**
743             * Sets the user persistence.
744             *
745             * @param userPersistence the user persistence
746             */
747            public void setUserPersistence(UserPersistence userPersistence) {
748                    this.userPersistence = userPersistence;
749            }
750    
751            /**
752             * Gets the user finder.
753             *
754             * @return the user finder
755             */
756            public UserFinder getUserFinder() {
757                    return userFinder;
758            }
759    
760            /**
761             * Sets the user finder.
762             *
763             * @param userFinder the user finder
764             */
765            public void setUserFinder(UserFinder userFinder) {
766                    this.userFinder = userFinder;
767            }
768    
769            /**
770             * Gets the asset entry local service.
771             *
772             * @return the asset entry local service
773             */
774            public AssetEntryLocalService getAssetEntryLocalService() {
775                    return assetEntryLocalService;
776            }
777    
778            /**
779             * Sets the asset entry local service.
780             *
781             * @param assetEntryLocalService the asset entry local service
782             */
783            public void setAssetEntryLocalService(
784                    AssetEntryLocalService assetEntryLocalService) {
785                    this.assetEntryLocalService = assetEntryLocalService;
786            }
787    
788            /**
789             * Gets the asset entry remote service.
790             *
791             * @return the asset entry remote service
792             */
793            public AssetEntryService getAssetEntryService() {
794                    return assetEntryService;
795            }
796    
797            /**
798             * Sets the asset entry remote service.
799             *
800             * @param assetEntryService the asset entry remote service
801             */
802            public void setAssetEntryService(AssetEntryService assetEntryService) {
803                    this.assetEntryService = assetEntryService;
804            }
805    
806            /**
807             * Gets the asset entry persistence.
808             *
809             * @return the asset entry persistence
810             */
811            public AssetEntryPersistence getAssetEntryPersistence() {
812                    return assetEntryPersistence;
813            }
814    
815            /**
816             * Sets the asset entry persistence.
817             *
818             * @param assetEntryPersistence the asset entry persistence
819             */
820            public void setAssetEntryPersistence(
821                    AssetEntryPersistence assetEntryPersistence) {
822                    this.assetEntryPersistence = assetEntryPersistence;
823            }
824    
825            /**
826             * Gets the asset entry finder.
827             *
828             * @return the asset entry finder
829             */
830            public AssetEntryFinder getAssetEntryFinder() {
831                    return assetEntryFinder;
832            }
833    
834            /**
835             * Sets the asset entry finder.
836             *
837             * @param assetEntryFinder the asset entry finder
838             */
839            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
840                    this.assetEntryFinder = assetEntryFinder;
841            }
842    
843            /**
844             * Performs an SQL query.
845             *
846             * @param sql the sql query to perform
847             */
848            protected void runSQL(String sql) throws SystemException {
849                    try {
850                            DataSource dataSource = socialEquityLogPersistence.getDataSource();
851    
852                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
853                                            sql, new int[0]);
854    
855                            sqlUpdate.update();
856                    }
857                    catch (Exception e) {
858                            throw new SystemException(e);
859                    }
860            }
861    
862            @BeanReference(type = SocialActivityLocalService.class)
863            protected SocialActivityLocalService socialActivityLocalService;
864            @BeanReference(type = SocialActivityPersistence.class)
865            protected SocialActivityPersistence socialActivityPersistence;
866            @BeanReference(type = SocialActivityFinder.class)
867            protected SocialActivityFinder socialActivityFinder;
868            @BeanReference(type = SocialActivityInterpreterLocalService.class)
869            protected SocialActivityInterpreterLocalService socialActivityInterpreterLocalService;
870            @BeanReference(type = SocialEquityAssetEntryPersistence.class)
871            protected SocialEquityAssetEntryPersistence socialEquityAssetEntryPersistence;
872            @BeanReference(type = SocialEquityHistoryLocalService.class)
873            protected SocialEquityHistoryLocalService socialEquityHistoryLocalService;
874            @BeanReference(type = SocialEquityHistoryPersistence.class)
875            protected SocialEquityHistoryPersistence socialEquityHistoryPersistence;
876            @BeanReference(type = SocialEquityLogLocalService.class)
877            protected SocialEquityLogLocalService socialEquityLogLocalService;
878            @BeanReference(type = SocialEquityLogPersistence.class)
879            protected SocialEquityLogPersistence socialEquityLogPersistence;
880            @BeanReference(type = SocialEquitySettingLocalService.class)
881            protected SocialEquitySettingLocalService socialEquitySettingLocalService;
882            @BeanReference(type = SocialEquitySettingPersistence.class)
883            protected SocialEquitySettingPersistence socialEquitySettingPersistence;
884            @BeanReference(type = SocialEquityUserLocalService.class)
885            protected SocialEquityUserLocalService socialEquityUserLocalService;
886            @BeanReference(type = SocialEquityUserPersistence.class)
887            protected SocialEquityUserPersistence socialEquityUserPersistence;
888            @BeanReference(type = SocialRelationLocalService.class)
889            protected SocialRelationLocalService socialRelationLocalService;
890            @BeanReference(type = SocialRelationPersistence.class)
891            protected SocialRelationPersistence socialRelationPersistence;
892            @BeanReference(type = SocialRequestLocalService.class)
893            protected SocialRequestLocalService socialRequestLocalService;
894            @BeanReference(type = SocialRequestPersistence.class)
895            protected SocialRequestPersistence socialRequestPersistence;
896            @BeanReference(type = SocialRequestInterpreterLocalService.class)
897            protected SocialRequestInterpreterLocalService socialRequestInterpreterLocalService;
898            @BeanReference(type = CounterLocalService.class)
899            protected CounterLocalService counterLocalService;
900            @BeanReference(type = ResourceLocalService.class)
901            protected ResourceLocalService resourceLocalService;
902            @BeanReference(type = ResourceService.class)
903            protected ResourceService resourceService;
904            @BeanReference(type = ResourcePersistence.class)
905            protected ResourcePersistence resourcePersistence;
906            @BeanReference(type = ResourceFinder.class)
907            protected ResourceFinder resourceFinder;
908            @BeanReference(type = UserLocalService.class)
909            protected UserLocalService userLocalService;
910            @BeanReference(type = UserService.class)
911            protected UserService userService;
912            @BeanReference(type = UserPersistence.class)
913            protected UserPersistence userPersistence;
914            @BeanReference(type = UserFinder.class)
915            protected UserFinder userFinder;
916            @BeanReference(type = AssetEntryLocalService.class)
917            protected AssetEntryLocalService assetEntryLocalService;
918            @BeanReference(type = AssetEntryService.class)
919            protected AssetEntryService assetEntryService;
920            @BeanReference(type = AssetEntryPersistence.class)
921            protected AssetEntryPersistence assetEntryPersistence;
922            @BeanReference(type = AssetEntryFinder.class)
923            protected AssetEntryFinder assetEntryFinder;
924    }