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