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;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link RatingsStatsLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see RatingsStatsLocalService
026     * @generated
027     */
028    @ProviderType
029    public class RatingsStatsLocalServiceWrapper implements RatingsStatsLocalService,
030            ServiceWrapper<RatingsStatsLocalService> {
031            public RatingsStatsLocalServiceWrapper(
032                    RatingsStatsLocalService ratingsStatsLocalService) {
033                    _ratingsStatsLocalService = ratingsStatsLocalService;
034            }
035    
036            /**
037            * Adds the ratings stats to the database. Also notifies the appropriate model listeners.
038            *
039            * @param ratingsStats the ratings stats
040            * @return the ratings stats that was added
041            */
042            @Override
043            public com.liferay.portlet.ratings.model.RatingsStats addRatingsStats(
044                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
045                    return _ratingsStatsLocalService.addRatingsStats(ratingsStats);
046            }
047    
048            @Override
049            public com.liferay.portlet.ratings.model.RatingsStats addStats(
050                    long classNameId, long classPK) {
051                    return _ratingsStatsLocalService.addStats(classNameId, classPK);
052            }
053    
054            /**
055            * Creates a new ratings stats with the primary key. Does not add the ratings stats to the database.
056            *
057            * @param statsId the primary key for the new ratings stats
058            * @return the new ratings stats
059            */
060            @Override
061            public com.liferay.portlet.ratings.model.RatingsStats createRatingsStats(
062                    long statsId) {
063                    return _ratingsStatsLocalService.createRatingsStats(statsId);
064            }
065    
066            /**
067            * @throws PortalException
068            */
069            @Override
070            public com.liferay.portal.model.PersistedModel deletePersistedModel(
071                    com.liferay.portal.model.PersistedModel persistedModel)
072                    throws com.liferay.portal.kernel.exception.PortalException {
073                    return _ratingsStatsLocalService.deletePersistedModel(persistedModel);
074            }
075    
076            /**
077            * Deletes the ratings stats from the database. Also notifies the appropriate model listeners.
078            *
079            * @param ratingsStats the ratings stats
080            * @return the ratings stats that was removed
081            */
082            @Override
083            public com.liferay.portlet.ratings.model.RatingsStats deleteRatingsStats(
084                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
085                    return _ratingsStatsLocalService.deleteRatingsStats(ratingsStats);
086            }
087    
088            /**
089            * Deletes the ratings stats with the primary key from the database. Also notifies the appropriate model listeners.
090            *
091            * @param statsId the primary key of the ratings stats
092            * @return the ratings stats that was removed
093            * @throws PortalException if a ratings stats with the primary key could not be found
094            */
095            @Override
096            public com.liferay.portlet.ratings.model.RatingsStats deleteRatingsStats(
097                    long statsId)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _ratingsStatsLocalService.deleteRatingsStats(statsId);
100            }
101    
102            @Override
103            public void deleteStats(java.lang.String className, long classPK) {
104                    _ratingsStatsLocalService.deleteStats(className, classPK);
105            }
106    
107            @Override
108            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
109                    return _ratingsStatsLocalService.dynamicQuery();
110            }
111    
112            /**
113            * Performs a dynamic query on the database and returns the matching rows.
114            *
115            * @param dynamicQuery the dynamic query
116            * @return the matching rows
117            */
118            @Override
119            public <T> java.util.List<T> dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
121                    return _ratingsStatsLocalService.dynamicQuery(dynamicQuery);
122            }
123    
124            /**
125            * Performs a dynamic query on the database and returns a range of the matching rows.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param dynamicQuery the dynamic query
132            * @param start the lower bound of the range of model instances
133            * @param end the upper bound of the range of model instances (not inclusive)
134            * @return the range of matching rows
135            */
136            @Override
137            public <T> java.util.List<T> dynamicQuery(
138                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139                    int end) {
140                    return _ratingsStatsLocalService.dynamicQuery(dynamicQuery, start, end);
141            }
142    
143            /**
144            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
145            *
146            * <p>
147            * 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.
148            * </p>
149            *
150            * @param dynamicQuery the dynamic query
151            * @param start the lower bound of the range of model instances
152            * @param end the upper bound of the range of model instances (not inclusive)
153            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
154            * @return the ordered range of matching rows
155            */
156            @Override
157            public <T> java.util.List<T> dynamicQuery(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
159                    int end,
160                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
161                    return _ratingsStatsLocalService.dynamicQuery(dynamicQuery, start, end,
162                            orderByComparator);
163            }
164    
165            /**
166            * Returns the number of rows matching the dynamic query.
167            *
168            * @param dynamicQuery the dynamic query
169            * @return the number of rows matching the dynamic query
170            */
171            @Override
172            public long dynamicQueryCount(
173                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
174                    return _ratingsStatsLocalService.dynamicQueryCount(dynamicQuery);
175            }
176    
177            /**
178            * Returns the number of rows matching the dynamic query.
179            *
180            * @param dynamicQuery the dynamic query
181            * @param projection the projection to apply to the query
182            * @return the number of rows matching the dynamic query
183            */
184            @Override
185            public long dynamicQueryCount(
186                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
187                    com.liferay.portal.kernel.dao.orm.Projection projection) {
188                    return _ratingsStatsLocalService.dynamicQueryCount(dynamicQuery,
189                            projection);
190            }
191    
192            @Override
193            public com.liferay.portlet.ratings.model.RatingsStats fetchRatingsStats(
194                    long statsId) {
195                    return _ratingsStatsLocalService.fetchRatingsStats(statsId);
196            }
197    
198            @Override
199            public com.liferay.portlet.ratings.model.RatingsStats fetchStats(
200                    java.lang.String className, long classPK) {
201                    return _ratingsStatsLocalService.fetchStats(className, classPK);
202            }
203    
204            @Override
205            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
206                    return _ratingsStatsLocalService.getActionableDynamicQuery();
207            }
208    
209            /**
210            * Returns the Spring bean ID for this bean.
211            *
212            * @return the Spring bean ID for this bean
213            */
214            @Override
215            public java.lang.String getBeanIdentifier() {
216                    return _ratingsStatsLocalService.getBeanIdentifier();
217            }
218    
219            @Override
220            public com.liferay.portal.model.PersistedModel getPersistedModel(
221                    java.io.Serializable primaryKeyObj)
222                    throws com.liferay.portal.kernel.exception.PortalException {
223                    return _ratingsStatsLocalService.getPersistedModel(primaryKeyObj);
224            }
225    
226            /**
227            * Returns the ratings stats with the primary key.
228            *
229            * @param statsId the primary key of the ratings stats
230            * @return the ratings stats
231            * @throws PortalException if a ratings stats with the primary key could not be found
232            */
233            @Override
234            public com.liferay.portlet.ratings.model.RatingsStats getRatingsStats(
235                    long statsId)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _ratingsStatsLocalService.getRatingsStats(statsId);
238            }
239    
240            /**
241            * Returns a range of all the ratings statses.
242            *
243            * <p>
244            * 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.
245            * </p>
246            *
247            * @param start the lower bound of the range of ratings statses
248            * @param end the upper bound of the range of ratings statses (not inclusive)
249            * @return the range of ratings statses
250            */
251            @Override
252            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getRatingsStatses(
253                    int start, int end) {
254                    return _ratingsStatsLocalService.getRatingsStatses(start, end);
255            }
256    
257            /**
258            * Returns the number of ratings statses.
259            *
260            * @return the number of ratings statses
261            */
262            @Override
263            public int getRatingsStatsesCount() {
264                    return _ratingsStatsLocalService.getRatingsStatsesCount();
265            }
266    
267            @Override
268            public com.liferay.portlet.ratings.model.RatingsStats getStats(
269                    java.lang.String className, long classPK) {
270                    return _ratingsStatsLocalService.getStats(className, classPK);
271            }
272    
273            @Override
274            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getStats(
275                    java.lang.String className, java.util.List<java.lang.Long> classPKs) {
276                    return _ratingsStatsLocalService.getStats(className, classPKs);
277            }
278    
279            @Override
280            public com.liferay.portlet.ratings.model.RatingsStats getStats(long statsId)
281                    throws com.liferay.portal.kernel.exception.PortalException {
282                    return _ratingsStatsLocalService.getStats(statsId);
283            }
284    
285            /**
286            * Sets the Spring bean ID for this bean.
287            *
288            * @param beanIdentifier the Spring bean ID for this bean
289            */
290            @Override
291            public void setBeanIdentifier(java.lang.String beanIdentifier) {
292                    _ratingsStatsLocalService.setBeanIdentifier(beanIdentifier);
293            }
294    
295            /**
296            * Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
297            *
298            * @param ratingsStats the ratings stats
299            * @return the ratings stats that was updated
300            */
301            @Override
302            public com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
303                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
304                    return _ratingsStatsLocalService.updateRatingsStats(ratingsStats);
305            }
306    
307            /**
308             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
309             */
310            @Deprecated
311            public RatingsStatsLocalService getWrappedRatingsStatsLocalService() {
312                    return _ratingsStatsLocalService;
313            }
314    
315            /**
316             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
317             */
318            @Deprecated
319            public void setWrappedRatingsStatsLocalService(
320                    RatingsStatsLocalService ratingsStatsLocalService) {
321                    _ratingsStatsLocalService = ratingsStatsLocalService;
322            }
323    
324            @Override
325            public RatingsStatsLocalService getWrappedService() {
326                    return _ratingsStatsLocalService;
327            }
328    
329            @Override
330            public void setWrappedService(
331                    RatingsStatsLocalService ratingsStatsLocalService) {
332                    _ratingsStatsLocalService = ratingsStatsLocalService;
333            }
334    
335            private RatingsStatsLocalService _ratingsStatsLocalService;
336    }