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