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            @Override
210            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
211                    return _ratingsStatsLocalService.getIndexableActionableDynamicQuery();
212            }
213    
214            /**
215            * Returns the OSGi service identifier.
216            *
217            * @return the OSGi service identifier
218            */
219            @Override
220            public java.lang.String getOSGiServiceIdentifier() {
221                    return _ratingsStatsLocalService.getOSGiServiceIdentifier();
222            }
223    
224            @Override
225            public com.liferay.portal.model.PersistedModel getPersistedModel(
226                    java.io.Serializable primaryKeyObj)
227                    throws com.liferay.portal.kernel.exception.PortalException {
228                    return _ratingsStatsLocalService.getPersistedModel(primaryKeyObj);
229            }
230    
231            /**
232            * Returns the ratings stats with the primary key.
233            *
234            * @param statsId the primary key of the ratings stats
235            * @return the ratings stats
236            * @throws PortalException if a ratings stats with the primary key could not be found
237            */
238            @Override
239            public com.liferay.portlet.ratings.model.RatingsStats getRatingsStats(
240                    long statsId)
241                    throws com.liferay.portal.kernel.exception.PortalException {
242                    return _ratingsStatsLocalService.getRatingsStats(statsId);
243            }
244    
245            /**
246            * Returns a range of all the ratings statses.
247            *
248            * <p>
249            * 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.
250            * </p>
251            *
252            * @param start the lower bound of the range of ratings statses
253            * @param end the upper bound of the range of ratings statses (not inclusive)
254            * @return the range of ratings statses
255            */
256            @Override
257            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getRatingsStatses(
258                    int start, int end) {
259                    return _ratingsStatsLocalService.getRatingsStatses(start, end);
260            }
261    
262            /**
263            * Returns the number of ratings statses.
264            *
265            * @return the number of ratings statses
266            */
267            @Override
268            public int getRatingsStatsesCount() {
269                    return _ratingsStatsLocalService.getRatingsStatsesCount();
270            }
271    
272            @Override
273            public com.liferay.portlet.ratings.model.RatingsStats getStats(
274                    java.lang.String className, long classPK) {
275                    return _ratingsStatsLocalService.getStats(className, classPK);
276            }
277    
278            @Override
279            public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> getStats(
280                    java.lang.String className, java.util.List<java.lang.Long> classPKs) {
281                    return _ratingsStatsLocalService.getStats(className, classPKs);
282            }
283    
284            @Override
285            public com.liferay.portlet.ratings.model.RatingsStats getStats(long statsId)
286                    throws com.liferay.portal.kernel.exception.PortalException {
287                    return _ratingsStatsLocalService.getStats(statsId);
288            }
289    
290            /**
291            * Updates the ratings stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
292            *
293            * @param ratingsStats the ratings stats
294            * @return the ratings stats that was updated
295            */
296            @Override
297            public com.liferay.portlet.ratings.model.RatingsStats updateRatingsStats(
298                    com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
299                    return _ratingsStatsLocalService.updateRatingsStats(ratingsStats);
300            }
301    
302            @Override
303            public RatingsStatsLocalService getWrappedService() {
304                    return _ratingsStatsLocalService;
305            }
306    
307            @Override
308            public void setWrappedService(
309                    RatingsStatsLocalService ratingsStatsLocalService) {
310                    _ratingsStatsLocalService = ratingsStatsLocalService;
311            }
312    
313            private RatingsStatsLocalService _ratingsStatsLocalService;
314    }