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