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