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