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