001    /**
002     * Copyright (c) 2000-present 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.ratings.service.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.dao.db.DB;
021    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
024    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
025    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
028    import com.liferay.portal.kernel.dao.orm.Projection;
029    import com.liferay.portal.kernel.exception.PortalException;
030    import com.liferay.portal.kernel.exception.SystemException;
031    import com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService;
032    import com.liferay.portal.kernel.search.Indexable;
033    import com.liferay.portal.kernel.search.IndexableType;
034    import com.liferay.portal.kernel.util.OrderByComparator;
035    import com.liferay.portal.model.PersistedModel;
036    import com.liferay.portal.service.BaseLocalServiceImpl;
037    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
038    import com.liferay.portal.service.persistence.ClassNamePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    import com.liferay.portal.util.PortalUtil;
042    
043    import com.liferay.portlet.ratings.model.RatingsStats;
044    import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
045    import com.liferay.portlet.ratings.service.persistence.RatingsEntryFinder;
046    import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
047    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
048    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
049    
050    import java.io.Serializable;
051    
052    import java.util.List;
053    
054    import javax.sql.DataSource;
055    
056    /**
057     * Provides the base implementation for the ratings stats local service.
058     *
059     * <p>
060     * 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.ratings.service.impl.RatingsStatsLocalServiceImpl}.
061     * </p>
062     *
063     * @author Brian Wing Shun Chan
064     * @see com.liferay.portlet.ratings.service.impl.RatingsStatsLocalServiceImpl
065     * @see com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil
066     * @generated
067     */
068    @ProviderType
069    public abstract class RatingsStatsLocalServiceBaseImpl
070            extends BaseLocalServiceImpl implements RatingsStatsLocalService,
071                    IdentifiableOSGiService {
072            /*
073             * NOTE FOR DEVELOPERS:
074             *
075             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil} to access the ratings stats local service.
076             */
077    
078            /**
079             * Adds the ratings stats to the database. Also notifies the appropriate model listeners.
080             *
081             * @param ratingsStats the ratings stats
082             * @return the ratings stats that was added
083             */
084            @Indexable(type = IndexableType.REINDEX)
085            @Override
086            public RatingsStats addRatingsStats(RatingsStats ratingsStats) {
087                    ratingsStats.setNew(true);
088    
089                    return ratingsStatsPersistence.update(ratingsStats);
090            }
091    
092            /**
093             * Creates a new ratings stats with the primary key. Does not add the ratings stats to the database.
094             *
095             * @param statsId the primary key for the new ratings stats
096             * @return the new ratings stats
097             */
098            @Override
099            public RatingsStats createRatingsStats(long statsId) {
100                    return ratingsStatsPersistence.create(statsId);
101            }
102    
103            /**
104             * Deletes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners.
105             *
106             * @param statsId the primary key of the ratings stats
107             * @return the ratings stats that was removed
108             * @throws PortalException if a ratings stats with the primary key could not be found
109             */
110            @Indexable(type = IndexableType.DELETE)
111            @Override
112            public RatingsStats deleteRatingsStats(long statsId)
113                    throws PortalException {
114                    return ratingsStatsPersistence.remove(statsId);
115            }
116    
117            /**
118             * Deletes the ratings stats from the database. Also notifies the appropriate model listeners.
119             *
120             * @param ratingsStats the ratings stats
121             * @return the ratings stats that was removed
122             */
123            @Indexable(type = IndexableType.DELETE)
124            @Override
125            public RatingsStats deleteRatingsStats(RatingsStats ratingsStats) {
126                    return ratingsStatsPersistence.remove(ratingsStats);
127            }
128    
129            @Override
130            public DynamicQuery dynamicQuery() {
131                    Class<?> clazz = getClass();
132    
133                    return DynamicQueryFactoryUtil.forClass(RatingsStats.class,
134                            clazz.getClassLoader());
135            }
136    
137            /**
138             * Performs a dynamic query on the database and returns the matching rows.
139             *
140             * @param dynamicQuery the dynamic query
141             * @return the matching rows
142             */
143            @Override
144            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
145                    return ratingsStatsPersistence.findWithDynamicQuery(dynamicQuery);
146            }
147    
148            /**
149             * Performs a dynamic query on the database and returns a range of the matching rows.
150             *
151             * <p>
152             * 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.ratings.model.impl.RatingsStatsModelImpl}. 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.
153             * </p>
154             *
155             * @param dynamicQuery the dynamic query
156             * @param start the lower bound of the range of model instances
157             * @param end the upper bound of the range of model instances (not inclusive)
158             * @return the range of matching rows
159             */
160            @Override
161            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
162                    int end) {
163                    return ratingsStatsPersistence.findWithDynamicQuery(dynamicQuery,
164                            start, 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.ratings.model.impl.RatingsStatsModelImpl}. 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             */
180            @Override
181            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
182                    int end, OrderByComparator<T> orderByComparator) {
183                    return ratingsStatsPersistence.findWithDynamicQuery(dynamicQuery,
184                            start, end, orderByComparator);
185            }
186    
187            /**
188             * Returns the number of rows matching the dynamic query.
189             *
190             * @param dynamicQuery the dynamic query
191             * @return the number of rows matching the dynamic query
192             */
193            @Override
194            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
195                    return ratingsStatsPersistence.countWithDynamicQuery(dynamicQuery);
196            }
197    
198            /**
199             * Returns the number of rows matching the dynamic query.
200             *
201             * @param dynamicQuery the dynamic query
202             * @param projection the projection to apply to the query
203             * @return the number of rows matching the dynamic query
204             */
205            @Override
206            public long dynamicQueryCount(DynamicQuery dynamicQuery,
207                    Projection projection) {
208                    return ratingsStatsPersistence.countWithDynamicQuery(dynamicQuery,
209                            projection);
210            }
211    
212            @Override
213            public RatingsStats fetchRatingsStats(long statsId) {
214                    return ratingsStatsPersistence.fetchByPrimaryKey(statsId);
215            }
216    
217            /**
218             * Returns the ratings stats with the primary key.
219             *
220             * @param statsId the primary key of the ratings stats
221             * @return the ratings stats
222             * @throws PortalException if a ratings stats with the primary key could not be found
223             */
224            @Override
225            public RatingsStats getRatingsStats(long statsId) throws PortalException {
226                    return ratingsStatsPersistence.findByPrimaryKey(statsId);
227            }
228    
229            @Override
230            public ActionableDynamicQuery getActionableDynamicQuery() {
231                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
232    
233                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil.getService());
234                    actionableDynamicQuery.setClass(RatingsStats.class);
235                    actionableDynamicQuery.setClassLoader(getClassLoader());
236    
237                    actionableDynamicQuery.setPrimaryKeyPropertyName("statsId");
238    
239                    return actionableDynamicQuery;
240            }
241    
242            protected void initActionableDynamicQuery(
243                    ActionableDynamicQuery actionableDynamicQuery) {
244                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil.getService());
245                    actionableDynamicQuery.setClass(RatingsStats.class);
246                    actionableDynamicQuery.setClassLoader(getClassLoader());
247    
248                    actionableDynamicQuery.setPrimaryKeyPropertyName("statsId");
249            }
250    
251            /**
252             * @throws PortalException
253             */
254            @Override
255            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
256                    throws PortalException {
257                    return ratingsStatsLocalService.deleteRatingsStats((RatingsStats)persistedModel);
258            }
259    
260            @Override
261            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
262                    throws PortalException {
263                    return ratingsStatsPersistence.findByPrimaryKey(primaryKeyObj);
264            }
265    
266            /**
267             * Returns a range of all the ratings statses.
268             *
269             * <p>
270             * 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.ratings.model.impl.RatingsStatsModelImpl}. 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.
271             * </p>
272             *
273             * @param start the lower bound of the range of ratings statses
274             * @param end the upper bound of the range of ratings statses (not inclusive)
275             * @return the range of ratings statses
276             */
277            @Override
278            public List<RatingsStats> getRatingsStatses(int start, int end) {
279                    return ratingsStatsPersistence.findAll(start, end);
280            }
281    
282            /**
283             * Returns the number of ratings statses.
284             *
285             * @return the number of ratings statses
286             */
287            @Override
288            public int getRatingsStatsesCount() {
289                    return ratingsStatsPersistence.countAll();
290            }
291    
292            /**
293             * Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
294             *
295             * @param ratingsStats the ratings stats
296             * @return the ratings stats that was updated
297             */
298            @Indexable(type = IndexableType.REINDEX)
299            @Override
300            public RatingsStats updateRatingsStats(RatingsStats ratingsStats) {
301                    return ratingsStatsPersistence.update(ratingsStats);
302            }
303    
304            /**
305             * Returns the ratings entry local service.
306             *
307             * @return the ratings entry local service
308             */
309            public com.liferay.portlet.ratings.service.RatingsEntryLocalService getRatingsEntryLocalService() {
310                    return ratingsEntryLocalService;
311            }
312    
313            /**
314             * Sets the ratings entry local service.
315             *
316             * @param ratingsEntryLocalService the ratings entry local service
317             */
318            public void setRatingsEntryLocalService(
319                    com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService) {
320                    this.ratingsEntryLocalService = ratingsEntryLocalService;
321            }
322    
323            /**
324             * Returns the ratings entry remote service.
325             *
326             * @return the ratings entry remote service
327             */
328            public com.liferay.portlet.ratings.service.RatingsEntryService getRatingsEntryService() {
329                    return ratingsEntryService;
330            }
331    
332            /**
333             * Sets the ratings entry remote service.
334             *
335             * @param ratingsEntryService the ratings entry remote service
336             */
337            public void setRatingsEntryService(
338                    com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService) {
339                    this.ratingsEntryService = ratingsEntryService;
340            }
341    
342            /**
343             * Returns the ratings entry persistence.
344             *
345             * @return the ratings entry persistence
346             */
347            public RatingsEntryPersistence getRatingsEntryPersistence() {
348                    return ratingsEntryPersistence;
349            }
350    
351            /**
352             * Sets the ratings entry persistence.
353             *
354             * @param ratingsEntryPersistence the ratings entry persistence
355             */
356            public void setRatingsEntryPersistence(
357                    RatingsEntryPersistence ratingsEntryPersistence) {
358                    this.ratingsEntryPersistence = ratingsEntryPersistence;
359            }
360    
361            /**
362             * Returns the ratings entry finder.
363             *
364             * @return the ratings entry finder
365             */
366            public RatingsEntryFinder getRatingsEntryFinder() {
367                    return ratingsEntryFinder;
368            }
369    
370            /**
371             * Sets the ratings entry finder.
372             *
373             * @param ratingsEntryFinder the ratings entry finder
374             */
375            public void setRatingsEntryFinder(RatingsEntryFinder ratingsEntryFinder) {
376                    this.ratingsEntryFinder = ratingsEntryFinder;
377            }
378    
379            /**
380             * Returns the ratings stats local service.
381             *
382             * @return the ratings stats local service
383             */
384            public RatingsStatsLocalService getRatingsStatsLocalService() {
385                    return ratingsStatsLocalService;
386            }
387    
388            /**
389             * Sets the ratings stats local service.
390             *
391             * @param ratingsStatsLocalService the ratings stats local service
392             */
393            public void setRatingsStatsLocalService(
394                    RatingsStatsLocalService ratingsStatsLocalService) {
395                    this.ratingsStatsLocalService = ratingsStatsLocalService;
396            }
397    
398            /**
399             * Returns the ratings stats persistence.
400             *
401             * @return the ratings stats persistence
402             */
403            public RatingsStatsPersistence getRatingsStatsPersistence() {
404                    return ratingsStatsPersistence;
405            }
406    
407            /**
408             * Sets the ratings stats persistence.
409             *
410             * @param ratingsStatsPersistence the ratings stats persistence
411             */
412            public void setRatingsStatsPersistence(
413                    RatingsStatsPersistence ratingsStatsPersistence) {
414                    this.ratingsStatsPersistence = ratingsStatsPersistence;
415            }
416    
417            /**
418             * Returns the ratings stats finder.
419             *
420             * @return the ratings stats finder
421             */
422            public RatingsStatsFinder getRatingsStatsFinder() {
423                    return ratingsStatsFinder;
424            }
425    
426            /**
427             * Sets the ratings stats finder.
428             *
429             * @param ratingsStatsFinder the ratings stats finder
430             */
431            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
432                    this.ratingsStatsFinder = ratingsStatsFinder;
433            }
434    
435            /**
436             * Returns the counter local service.
437             *
438             * @return the counter local service
439             */
440            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
441                    return counterLocalService;
442            }
443    
444            /**
445             * Sets the counter local service.
446             *
447             * @param counterLocalService the counter local service
448             */
449            public void setCounterLocalService(
450                    com.liferay.counter.service.CounterLocalService counterLocalService) {
451                    this.counterLocalService = counterLocalService;
452            }
453    
454            /**
455             * Returns the class name local service.
456             *
457             * @return the class name local service
458             */
459            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
460                    return classNameLocalService;
461            }
462    
463            /**
464             * Sets the class name local service.
465             *
466             * @param classNameLocalService the class name local service
467             */
468            public void setClassNameLocalService(
469                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
470                    this.classNameLocalService = classNameLocalService;
471            }
472    
473            /**
474             * Returns the class name remote service.
475             *
476             * @return the class name remote service
477             */
478            public com.liferay.portal.service.ClassNameService getClassNameService() {
479                    return classNameService;
480            }
481    
482            /**
483             * Sets the class name remote service.
484             *
485             * @param classNameService the class name remote service
486             */
487            public void setClassNameService(
488                    com.liferay.portal.service.ClassNameService classNameService) {
489                    this.classNameService = classNameService;
490            }
491    
492            /**
493             * Returns the class name persistence.
494             *
495             * @return the class name persistence
496             */
497            public ClassNamePersistence getClassNamePersistence() {
498                    return classNamePersistence;
499            }
500    
501            /**
502             * Sets the class name persistence.
503             *
504             * @param classNamePersistence the class name persistence
505             */
506            public void setClassNamePersistence(
507                    ClassNamePersistence classNamePersistence) {
508                    this.classNamePersistence = classNamePersistence;
509            }
510    
511            /**
512             * Returns the resource local service.
513             *
514             * @return the resource local service
515             */
516            public com.liferay.portal.service.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                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
527                    this.resourceLocalService = resourceLocalService;
528            }
529    
530            /**
531             * Returns the user local service.
532             *
533             * @return the user local service
534             */
535            public com.liferay.portal.service.UserLocalService getUserLocalService() {
536                    return userLocalService;
537            }
538    
539            /**
540             * Sets the user local service.
541             *
542             * @param userLocalService the user local service
543             */
544            public void setUserLocalService(
545                    com.liferay.portal.service.UserLocalService userLocalService) {
546                    this.userLocalService = userLocalService;
547            }
548    
549            /**
550             * Returns the user remote service.
551             *
552             * @return the user remote service
553             */
554            public com.liferay.portal.service.UserService getUserService() {
555                    return userService;
556            }
557    
558            /**
559             * Sets the user remote service.
560             *
561             * @param userService the user remote service
562             */
563            public void setUserService(
564                    com.liferay.portal.service.UserService userService) {
565                    this.userService = userService;
566            }
567    
568            /**
569             * Returns the user persistence.
570             *
571             * @return the user persistence
572             */
573            public UserPersistence getUserPersistence() {
574                    return userPersistence;
575            }
576    
577            /**
578             * Sets the user persistence.
579             *
580             * @param userPersistence the user persistence
581             */
582            public void setUserPersistence(UserPersistence userPersistence) {
583                    this.userPersistence = userPersistence;
584            }
585    
586            /**
587             * Returns the user finder.
588             *
589             * @return the user finder
590             */
591            public UserFinder getUserFinder() {
592                    return userFinder;
593            }
594    
595            /**
596             * Sets the user finder.
597             *
598             * @param userFinder the user finder
599             */
600            public void setUserFinder(UserFinder userFinder) {
601                    this.userFinder = userFinder;
602            }
603    
604            public void afterPropertiesSet() {
605                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.ratings.model.RatingsStats",
606                            ratingsStatsLocalService);
607            }
608    
609            public void destroy() {
610                    persistedModelLocalServiceRegistry.unregister(
611                            "com.liferay.portlet.ratings.model.RatingsStats");
612            }
613    
614            /**
615             * Returns the OSGi service identifier.
616             *
617             * @return the OSGi service identifier
618             */
619            @Override
620            public String getOSGiServiceIdentifier() {
621                    return RatingsStatsLocalService.class.getName();
622            }
623    
624            protected Class<?> getModelClass() {
625                    return RatingsStats.class;
626            }
627    
628            protected String getModelClassName() {
629                    return RatingsStats.class.getName();
630            }
631    
632            /**
633             * Performs a SQL query.
634             *
635             * @param sql the sql query
636             */
637            protected void runSQL(String sql) {
638                    try {
639                            DataSource dataSource = ratingsStatsPersistence.getDataSource();
640    
641                            DB db = DBFactoryUtil.getDB();
642    
643                            sql = db.buildSQL(sql);
644                            sql = PortalUtil.transformSQL(sql);
645    
646                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
647                                            sql, new int[0]);
648    
649                            sqlUpdate.update();
650                    }
651                    catch (Exception e) {
652                            throw new SystemException(e);
653                    }
654            }
655    
656            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryLocalService.class)
657            protected com.liferay.portlet.ratings.service.RatingsEntryLocalService ratingsEntryLocalService;
658            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsEntryService.class)
659            protected com.liferay.portlet.ratings.service.RatingsEntryService ratingsEntryService;
660            @BeanReference(type = RatingsEntryPersistence.class)
661            protected RatingsEntryPersistence ratingsEntryPersistence;
662            @BeanReference(type = RatingsEntryFinder.class)
663            protected RatingsEntryFinder ratingsEntryFinder;
664            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
665            protected RatingsStatsLocalService ratingsStatsLocalService;
666            @BeanReference(type = RatingsStatsPersistence.class)
667            protected RatingsStatsPersistence ratingsStatsPersistence;
668            @BeanReference(type = RatingsStatsFinder.class)
669            protected RatingsStatsFinder ratingsStatsFinder;
670            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
671            protected com.liferay.counter.service.CounterLocalService counterLocalService;
672            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
673            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
674            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
675            protected com.liferay.portal.service.ClassNameService classNameService;
676            @BeanReference(type = ClassNamePersistence.class)
677            protected ClassNamePersistence classNamePersistence;
678            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
679            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
680            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
681            protected com.liferay.portal.service.UserLocalService userLocalService;
682            @BeanReference(type = com.liferay.portal.service.UserService.class)
683            protected com.liferay.portal.service.UserService userService;
684            @BeanReference(type = UserPersistence.class)
685            protected UserPersistence userPersistence;
686            @BeanReference(type = UserFinder.class)
687            protected UserFinder userFinder;
688            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
689            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
690    }