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