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