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