001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.polls.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.log.Log;
027    import com.liferay.portal.kernel.log.LogFactoryUtil;
028    import com.liferay.portal.kernel.search.Indexer;
029    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030    import com.liferay.portal.kernel.search.SearchException;
031    import com.liferay.portal.kernel.util.OrderByComparator;
032    import com.liferay.portal.model.PersistedModel;
033    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.ResourceService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.ResourceFinder;
039    import com.liferay.portal.service.persistence.ResourcePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.polls.model.PollsChoice;
044    import com.liferay.portlet.polls.service.PollsChoiceLocalService;
045    import com.liferay.portlet.polls.service.PollsQuestionLocalService;
046    import com.liferay.portlet.polls.service.PollsQuestionService;
047    import com.liferay.portlet.polls.service.PollsVoteLocalService;
048    import com.liferay.portlet.polls.service.PollsVoteService;
049    import com.liferay.portlet.polls.service.persistence.PollsChoiceFinder;
050    import com.liferay.portlet.polls.service.persistence.PollsChoicePersistence;
051    import com.liferay.portlet.polls.service.persistence.PollsQuestionPersistence;
052    import com.liferay.portlet.polls.service.persistence.PollsVotePersistence;
053    
054    import java.io.Serializable;
055    
056    import java.util.List;
057    
058    import javax.sql.DataSource;
059    
060    /**
061     * The base implementation of the polls choice local service.
062     *
063     * <p>
064     * 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.polls.service.impl.PollsChoiceLocalServiceImpl}.
065     * </p>
066     *
067     * @author Brian Wing Shun Chan
068     * @see com.liferay.portlet.polls.service.impl.PollsChoiceLocalServiceImpl
069     * @see com.liferay.portlet.polls.service.PollsChoiceLocalServiceUtil
070     * @generated
071     */
072    public abstract class PollsChoiceLocalServiceBaseImpl
073            implements PollsChoiceLocalService, IdentifiableBean {
074            /*
075             * NOTE FOR DEVELOPERS:
076             *
077             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.polls.service.PollsChoiceLocalServiceUtil} to access the polls choice local service.
078             */
079    
080            /**
081             * Adds the polls choice to the database. Also notifies the appropriate model listeners.
082             *
083             * @param pollsChoice the polls choice
084             * @return the polls choice that was added
085             * @throws SystemException if a system exception occurred
086             */
087            public PollsChoice addPollsChoice(PollsChoice pollsChoice)
088                    throws SystemException {
089                    pollsChoice.setNew(true);
090    
091                    pollsChoice = pollsChoicePersistence.update(pollsChoice, false);
092    
093                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
094    
095                    if (indexer != null) {
096                            try {
097                                    indexer.reindex(pollsChoice);
098                            }
099                            catch (SearchException se) {
100                                    if (_log.isWarnEnabled()) {
101                                            _log.warn(se, se);
102                                    }
103                            }
104                    }
105    
106                    return pollsChoice;
107            }
108    
109            /**
110             * Creates a new polls choice with the primary key. Does not add the polls choice to the database.
111             *
112             * @param choiceId the primary key for the new polls choice
113             * @return the new polls choice
114             */
115            public PollsChoice createPollsChoice(long choiceId) {
116                    return pollsChoicePersistence.create(choiceId);
117            }
118    
119            /**
120             * Deletes the polls choice with the primary key from the database. Also notifies the appropriate model listeners.
121             *
122             * @param choiceId the primary key of the polls choice
123             * @throws PortalException if a polls choice with the primary key could not be found
124             * @throws SystemException if a system exception occurred
125             */
126            public void deletePollsChoice(long choiceId)
127                    throws PortalException, SystemException {
128                    PollsChoice pollsChoice = pollsChoicePersistence.remove(choiceId);
129    
130                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
131    
132                    if (indexer != null) {
133                            try {
134                                    indexer.delete(pollsChoice);
135                            }
136                            catch (SearchException se) {
137                                    if (_log.isWarnEnabled()) {
138                                            _log.warn(se, se);
139                                    }
140                            }
141                    }
142            }
143    
144            /**
145             * Deletes the polls choice from the database. Also notifies the appropriate model listeners.
146             *
147             * @param pollsChoice the polls choice
148             * @throws SystemException if a system exception occurred
149             */
150            public void deletePollsChoice(PollsChoice pollsChoice)
151                    throws SystemException {
152                    pollsChoicePersistence.remove(pollsChoice);
153    
154                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
155    
156                    if (indexer != null) {
157                            try {
158                                    indexer.delete(pollsChoice);
159                            }
160                            catch (SearchException se) {
161                                    if (_log.isWarnEnabled()) {
162                                            _log.warn(se, se);
163                                    }
164                            }
165                    }
166            }
167    
168            /**
169             * Performs a dynamic query on the database and returns the matching rows.
170             *
171             * @param dynamicQuery the dynamic query
172             * @return the matching rows
173             * @throws SystemException if a system exception occurred
174             */
175            @SuppressWarnings("rawtypes")
176            public List dynamicQuery(DynamicQuery dynamicQuery)
177                    throws SystemException {
178                    return pollsChoicePersistence.findWithDynamicQuery(dynamicQuery);
179            }
180    
181            /**
182             * Performs a dynamic query on the database and returns a range of the matching rows.
183             *
184             * <p>
185             * 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.
186             * </p>
187             *
188             * @param dynamicQuery the dynamic query
189             * @param start the lower bound of the range of model instances
190             * @param end the upper bound of the range of model instances (not inclusive)
191             * @return the range of matching rows
192             * @throws SystemException if a system exception occurred
193             */
194            @SuppressWarnings("rawtypes")
195            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
196                    throws SystemException {
197                    return pollsChoicePersistence.findWithDynamicQuery(dynamicQuery, start,
198                            end);
199            }
200    
201            /**
202             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
203             *
204             * <p>
205             * 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.
206             * </p>
207             *
208             * @param dynamicQuery the dynamic query
209             * @param start the lower bound of the range of model instances
210             * @param end the upper bound of the range of model instances (not inclusive)
211             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
212             * @return the ordered range of matching rows
213             * @throws SystemException if a system exception occurred
214             */
215            @SuppressWarnings("rawtypes")
216            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
217                    OrderByComparator orderByComparator) throws SystemException {
218                    return pollsChoicePersistence.findWithDynamicQuery(dynamicQuery, start,
219                            end, orderByComparator);
220            }
221    
222            /**
223             * Returns the number of rows that match the dynamic query.
224             *
225             * @param dynamicQuery the dynamic query
226             * @return the number of rows that match the dynamic query
227             * @throws SystemException if a system exception occurred
228             */
229            public long dynamicQueryCount(DynamicQuery dynamicQuery)
230                    throws SystemException {
231                    return pollsChoicePersistence.countWithDynamicQuery(dynamicQuery);
232            }
233    
234            public PollsChoice fetchPollsChoice(long choiceId)
235                    throws SystemException {
236                    return pollsChoicePersistence.fetchByPrimaryKey(choiceId);
237            }
238    
239            /**
240             * Returns the polls choice with the primary key.
241             *
242             * @param choiceId the primary key of the polls choice
243             * @return the polls choice
244             * @throws PortalException if a polls choice with the primary key could not be found
245             * @throws SystemException if a system exception occurred
246             */
247            public PollsChoice getPollsChoice(long choiceId)
248                    throws PortalException, SystemException {
249                    return pollsChoicePersistence.findByPrimaryKey(choiceId);
250            }
251    
252            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
253                    throws PortalException, SystemException {
254                    return pollsChoicePersistence.findByPrimaryKey(primaryKeyObj);
255            }
256    
257            /**
258             * Returns a range of all the polls choices.
259             *
260             * <p>
261             * 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.
262             * </p>
263             *
264             * @param start the lower bound of the range of polls choices
265             * @param end the upper bound of the range of polls choices (not inclusive)
266             * @return the range of polls choices
267             * @throws SystemException if a system exception occurred
268             */
269            public List<PollsChoice> getPollsChoices(int start, int end)
270                    throws SystemException {
271                    return pollsChoicePersistence.findAll(start, end);
272            }
273    
274            /**
275             * Returns the number of polls choices.
276             *
277             * @return the number of polls choices
278             * @throws SystemException if a system exception occurred
279             */
280            public int getPollsChoicesCount() throws SystemException {
281                    return pollsChoicePersistence.countAll();
282            }
283    
284            /**
285             * Updates the polls choice in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
286             *
287             * @param pollsChoice the polls choice
288             * @return the polls choice that was updated
289             * @throws SystemException if a system exception occurred
290             */
291            public PollsChoice updatePollsChoice(PollsChoice pollsChoice)
292                    throws SystemException {
293                    return updatePollsChoice(pollsChoice, true);
294            }
295    
296            /**
297             * Updates the polls choice in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
298             *
299             * @param pollsChoice the polls choice
300             * @param merge whether to merge the polls choice 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.
301             * @return the polls choice that was updated
302             * @throws SystemException if a system exception occurred
303             */
304            public PollsChoice updatePollsChoice(PollsChoice pollsChoice, boolean merge)
305                    throws SystemException {
306                    pollsChoice.setNew(false);
307    
308                    pollsChoice = pollsChoicePersistence.update(pollsChoice, merge);
309    
310                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
311    
312                    if (indexer != null) {
313                            try {
314                                    indexer.reindex(pollsChoice);
315                            }
316                            catch (SearchException se) {
317                                    if (_log.isWarnEnabled()) {
318                                            _log.warn(se, se);
319                                    }
320                            }
321                    }
322    
323                    return pollsChoice;
324            }
325    
326            /**
327             * Returns the polls choice local service.
328             *
329             * @return the polls choice local service
330             */
331            public PollsChoiceLocalService getPollsChoiceLocalService() {
332                    return pollsChoiceLocalService;
333            }
334    
335            /**
336             * Sets the polls choice local service.
337             *
338             * @param pollsChoiceLocalService the polls choice local service
339             */
340            public void setPollsChoiceLocalService(
341                    PollsChoiceLocalService pollsChoiceLocalService) {
342                    this.pollsChoiceLocalService = pollsChoiceLocalService;
343            }
344    
345            /**
346             * Returns the polls choice persistence.
347             *
348             * @return the polls choice persistence
349             */
350            public PollsChoicePersistence getPollsChoicePersistence() {
351                    return pollsChoicePersistence;
352            }
353    
354            /**
355             * Sets the polls choice persistence.
356             *
357             * @param pollsChoicePersistence the polls choice persistence
358             */
359            public void setPollsChoicePersistence(
360                    PollsChoicePersistence pollsChoicePersistence) {
361                    this.pollsChoicePersistence = pollsChoicePersistence;
362            }
363    
364            /**
365             * Returns the polls choice finder.
366             *
367             * @return the polls choice finder
368             */
369            public PollsChoiceFinder getPollsChoiceFinder() {
370                    return pollsChoiceFinder;
371            }
372    
373            /**
374             * Sets the polls choice finder.
375             *
376             * @param pollsChoiceFinder the polls choice finder
377             */
378            public void setPollsChoiceFinder(PollsChoiceFinder pollsChoiceFinder) {
379                    this.pollsChoiceFinder = pollsChoiceFinder;
380            }
381    
382            /**
383             * Returns the polls question local service.
384             *
385             * @return the polls question local service
386             */
387            public PollsQuestionLocalService getPollsQuestionLocalService() {
388                    return pollsQuestionLocalService;
389            }
390    
391            /**
392             * Sets the polls question local service.
393             *
394             * @param pollsQuestionLocalService the polls question local service
395             */
396            public void setPollsQuestionLocalService(
397                    PollsQuestionLocalService pollsQuestionLocalService) {
398                    this.pollsQuestionLocalService = pollsQuestionLocalService;
399            }
400    
401            /**
402             * Returns the polls question remote service.
403             *
404             * @return the polls question remote service
405             */
406            public PollsQuestionService getPollsQuestionService() {
407                    return pollsQuestionService;
408            }
409    
410            /**
411             * Sets the polls question remote service.
412             *
413             * @param pollsQuestionService the polls question remote service
414             */
415            public void setPollsQuestionService(
416                    PollsQuestionService pollsQuestionService) {
417                    this.pollsQuestionService = pollsQuestionService;
418            }
419    
420            /**
421             * Returns the polls question persistence.
422             *
423             * @return the polls question persistence
424             */
425            public PollsQuestionPersistence getPollsQuestionPersistence() {
426                    return pollsQuestionPersistence;
427            }
428    
429            /**
430             * Sets the polls question persistence.
431             *
432             * @param pollsQuestionPersistence the polls question persistence
433             */
434            public void setPollsQuestionPersistence(
435                    PollsQuestionPersistence pollsQuestionPersistence) {
436                    this.pollsQuestionPersistence = pollsQuestionPersistence;
437            }
438    
439            /**
440             * Returns the polls vote local service.
441             *
442             * @return the polls vote local service
443             */
444            public PollsVoteLocalService getPollsVoteLocalService() {
445                    return pollsVoteLocalService;
446            }
447    
448            /**
449             * Sets the polls vote local service.
450             *
451             * @param pollsVoteLocalService the polls vote local service
452             */
453            public void setPollsVoteLocalService(
454                    PollsVoteLocalService pollsVoteLocalService) {
455                    this.pollsVoteLocalService = pollsVoteLocalService;
456            }
457    
458            /**
459             * Returns the polls vote remote service.
460             *
461             * @return the polls vote remote service
462             */
463            public PollsVoteService getPollsVoteService() {
464                    return pollsVoteService;
465            }
466    
467            /**
468             * Sets the polls vote remote service.
469             *
470             * @param pollsVoteService the polls vote remote service
471             */
472            public void setPollsVoteService(PollsVoteService pollsVoteService) {
473                    this.pollsVoteService = pollsVoteService;
474            }
475    
476            /**
477             * Returns the polls vote persistence.
478             *
479             * @return the polls vote persistence
480             */
481            public PollsVotePersistence getPollsVotePersistence() {
482                    return pollsVotePersistence;
483            }
484    
485            /**
486             * Sets the polls vote persistence.
487             *
488             * @param pollsVotePersistence the polls vote persistence
489             */
490            public void setPollsVotePersistence(
491                    PollsVotePersistence pollsVotePersistence) {
492                    this.pollsVotePersistence = pollsVotePersistence;
493            }
494    
495            /**
496             * Returns the counter local service.
497             *
498             * @return the counter local service
499             */
500            public CounterLocalService getCounterLocalService() {
501                    return counterLocalService;
502            }
503    
504            /**
505             * Sets the counter local service.
506             *
507             * @param counterLocalService the counter local service
508             */
509            public void setCounterLocalService(CounterLocalService counterLocalService) {
510                    this.counterLocalService = counterLocalService;
511            }
512    
513            /**
514             * Returns the resource local service.
515             *
516             * @return the resource local service
517             */
518            public ResourceLocalService getResourceLocalService() {
519                    return resourceLocalService;
520            }
521    
522            /**
523             * Sets the resource local service.
524             *
525             * @param resourceLocalService the resource local service
526             */
527            public void setResourceLocalService(
528                    ResourceLocalService resourceLocalService) {
529                    this.resourceLocalService = resourceLocalService;
530            }
531    
532            /**
533             * Returns the resource remote service.
534             *
535             * @return the resource remote service
536             */
537            public ResourceService getResourceService() {
538                    return resourceService;
539            }
540    
541            /**
542             * Sets the resource remote service.
543             *
544             * @param resourceService the resource remote service
545             */
546            public void setResourceService(ResourceService resourceService) {
547                    this.resourceService = resourceService;
548            }
549    
550            /**
551             * Returns the resource persistence.
552             *
553             * @return the resource persistence
554             */
555            public ResourcePersistence getResourcePersistence() {
556                    return resourcePersistence;
557            }
558    
559            /**
560             * Sets the resource persistence.
561             *
562             * @param resourcePersistence the resource persistence
563             */
564            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
565                    this.resourcePersistence = resourcePersistence;
566            }
567    
568            /**
569             * Returns the resource finder.
570             *
571             * @return the resource finder
572             */
573            public ResourceFinder getResourceFinder() {
574                    return resourceFinder;
575            }
576    
577            /**
578             * Sets the resource finder.
579             *
580             * @param resourceFinder the resource finder
581             */
582            public void setResourceFinder(ResourceFinder resourceFinder) {
583                    this.resourceFinder = resourceFinder;
584            }
585    
586            /**
587             * Returns the user local service.
588             *
589             * @return the user local service
590             */
591            public UserLocalService getUserLocalService() {
592                    return userLocalService;
593            }
594    
595            /**
596             * Sets the user local service.
597             *
598             * @param userLocalService the user local service
599             */
600            public void setUserLocalService(UserLocalService userLocalService) {
601                    this.userLocalService = userLocalService;
602            }
603    
604            /**
605             * Returns the user remote service.
606             *
607             * @return the user remote service
608             */
609            public UserService getUserService() {
610                    return userService;
611            }
612    
613            /**
614             * Sets the user remote service.
615             *
616             * @param userService the user remote service
617             */
618            public void setUserService(UserService userService) {
619                    this.userService = userService;
620            }
621    
622            /**
623             * Returns the user persistence.
624             *
625             * @return the user persistence
626             */
627            public UserPersistence getUserPersistence() {
628                    return userPersistence;
629            }
630    
631            /**
632             * Sets the user persistence.
633             *
634             * @param userPersistence the user persistence
635             */
636            public void setUserPersistence(UserPersistence userPersistence) {
637                    this.userPersistence = userPersistence;
638            }
639    
640            /**
641             * Returns the user finder.
642             *
643             * @return the user finder
644             */
645            public UserFinder getUserFinder() {
646                    return userFinder;
647            }
648    
649            /**
650             * Sets the user finder.
651             *
652             * @param userFinder the user finder
653             */
654            public void setUserFinder(UserFinder userFinder) {
655                    this.userFinder = userFinder;
656            }
657    
658            public void afterPropertiesSet() {
659                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.polls.model.PollsChoice",
660                            pollsChoiceLocalService);
661            }
662    
663            public void destroy() {
664                    persistedModelLocalServiceRegistry.unregister(
665                            "com.liferay.portlet.polls.model.PollsChoice");
666            }
667    
668            /**
669             * Returns the Spring bean ID for this bean.
670             *
671             * @return the Spring bean ID for this bean
672             */
673            public String getBeanIdentifier() {
674                    return _beanIdentifier;
675            }
676    
677            /**
678             * Sets the Spring bean ID for this bean.
679             *
680             * @param beanIdentifier the Spring bean ID for this bean
681             */
682            public void setBeanIdentifier(String beanIdentifier) {
683                    _beanIdentifier = beanIdentifier;
684            }
685    
686            protected Class<?> getModelClass() {
687                    return PollsChoice.class;
688            }
689    
690            protected String getModelClassName() {
691                    return PollsChoice.class.getName();
692            }
693    
694            /**
695             * Performs an SQL query.
696             *
697             * @param sql the sql query
698             */
699            protected void runSQL(String sql) throws SystemException {
700                    try {
701                            DataSource dataSource = pollsChoicePersistence.getDataSource();
702    
703                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
704                                            sql, new int[0]);
705    
706                            sqlUpdate.update();
707                    }
708                    catch (Exception e) {
709                            throw new SystemException(e);
710                    }
711            }
712    
713            @BeanReference(type = PollsChoiceLocalService.class)
714            protected PollsChoiceLocalService pollsChoiceLocalService;
715            @BeanReference(type = PollsChoicePersistence.class)
716            protected PollsChoicePersistence pollsChoicePersistence;
717            @BeanReference(type = PollsChoiceFinder.class)
718            protected PollsChoiceFinder pollsChoiceFinder;
719            @BeanReference(type = PollsQuestionLocalService.class)
720            protected PollsQuestionLocalService pollsQuestionLocalService;
721            @BeanReference(type = PollsQuestionService.class)
722            protected PollsQuestionService pollsQuestionService;
723            @BeanReference(type = PollsQuestionPersistence.class)
724            protected PollsQuestionPersistence pollsQuestionPersistence;
725            @BeanReference(type = PollsVoteLocalService.class)
726            protected PollsVoteLocalService pollsVoteLocalService;
727            @BeanReference(type = PollsVoteService.class)
728            protected PollsVoteService pollsVoteService;
729            @BeanReference(type = PollsVotePersistence.class)
730            protected PollsVotePersistence pollsVotePersistence;
731            @BeanReference(type = CounterLocalService.class)
732            protected CounterLocalService counterLocalService;
733            @BeanReference(type = ResourceLocalService.class)
734            protected ResourceLocalService resourceLocalService;
735            @BeanReference(type = ResourceService.class)
736            protected ResourceService resourceService;
737            @BeanReference(type = ResourcePersistence.class)
738            protected ResourcePersistence resourcePersistence;
739            @BeanReference(type = ResourceFinder.class)
740            protected ResourceFinder resourceFinder;
741            @BeanReference(type = UserLocalService.class)
742            protected UserLocalService userLocalService;
743            @BeanReference(type = UserService.class)
744            protected UserService userService;
745            @BeanReference(type = UserPersistence.class)
746            protected UserPersistence userPersistence;
747            @BeanReference(type = UserFinder.class)
748            protected UserFinder userFinder;
749            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
750            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
751            private static Log _log = LogFactoryUtil.getLog(PollsChoiceLocalServiceBaseImpl.class);
752            private String _beanIdentifier;
753    }