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.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
200                    return _ratingsStatsLocalService.getActionableDynamicQuery();
201            }
202    
203            /**
204            * Returns the Spring bean ID for this bean.
205            *
206            * @return the Spring bean ID for this bean
207            */
208            @Override
209            public java.lang.String getBeanIdentifier() {
210                    return _ratingsStatsLocalService.getBeanIdentifier();
211            }
212    
213            @Override
214            public com.liferay.portal.model.PersistedModel getPersistedModel(
215                    java.io.Serializable primaryKeyObj)
216                    throws com.liferay.portal.kernel.exception.PortalException {
217                    return _ratingsStatsLocalService.getPersistedModel(primaryKeyObj);
218            }
219    
220            /**
221            * Returns the ratings stats with the primary key.
222            *
223            * @param statsId the primary key of the ratings stats
224            * @return the ratings stats
225            * @throws PortalException if a ratings stats with the primary key could not be found
226            */
227            @Override
228            public com.liferay.portlet.ratings.model.RatingsStats getRatingsStats(
229                    long statsId)
230                    throws com.liferay.portal.kernel.exception.PortalException {
231                    return _ratingsStatsLocalService.getRatingsStats(statsId);
232            }
233    
234            /**
235            * Returns a range of all the ratings statses.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param start the lower bound of the range of ratings statses
242            * @param end the upper bound of the range of ratings statses (not inclusive)
243            * @return the range of ratings statses
244            */
245            @Override
246            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getRatingsStatses(
247                    int start, int end) {
248                    return _ratingsStatsLocalService.getRatingsStatses(start, end);
249            }
250    
251            /**
252            * Returns the number of ratings statses.
253            *
254            * @return the number of ratings statses
255            */
256            @Override
257            public int getRatingsStatsesCount() {
258                    return _ratingsStatsLocalService.getRatingsStatsesCount();
259            }
260    
261            @Override
262            public com.liferay.portlet.ratings.model.RatingsStats getStats(
263                    java.lang.String className, long classPK) {
264                    return _ratingsStatsLocalService.getStats(className, classPK);
265            }
266    
267            @Override
268            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getStats(
269                    java.lang.String className, java.util.List<java.lang.Long> classPKs) {
270                    return _ratingsStatsLocalService.getStats(className, classPKs);
271            }
272    
273            @Override
274            public com.liferay.portlet.ratings.model.RatingsStats getStats(long statsId)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    return _ratingsStatsLocalService.getStats(statsId);
277            }
278    
279            /**
280            * Sets the Spring bean ID for this bean.
281            *
282            * @param beanIdentifier the Spring bean ID for this bean
283            */
284            @Override
285            public void setBeanIdentifier(java.lang.String beanIdentifier) {
286                    _ratingsStatsLocalService.setBeanIdentifier(beanIdentifier);
287            }
288    
289            /**
290            * Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
291            *
292            * @param ratingsStats the ratings stats
293            * @return the ratings stats that was updated
294            */
295            @Override
296            public com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
297                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
298                    return _ratingsStatsLocalService.updateRatingsStats(ratingsStats);
299            }
300    
301            /**
302             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
303             */
304            @Deprecated
305            public RatingsStatsLocalService getWrappedRatingsStatsLocalService() {
306                    return _ratingsStatsLocalService;
307            }
308    
309            /**
310             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
311             */
312            @Deprecated
313            public void setWrappedRatingsStatsLocalService(
314                    RatingsStatsLocalService ratingsStatsLocalService) {
315                    _ratingsStatsLocalService = ratingsStatsLocalService;
316            }
317    
318            @Override
319            public RatingsStatsLocalService getWrappedService() {
320                    return _ratingsStatsLocalService;
321            }
322    
323            @Override
324            public void setWrappedService(
325                    RatingsStatsLocalService ratingsStatsLocalService) {
326                    _ratingsStatsLocalService = ratingsStatsLocalService;
327            }
328    
329            private RatingsStatsLocalService _ratingsStatsLocalService;
330    }