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