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 RatingsEntryLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see RatingsEntryLocalService
026     * @generated
027     */
028    @ProviderType
029    public class RatingsEntryLocalServiceWrapper implements RatingsEntryLocalService,
030            ServiceWrapper<RatingsEntryLocalService> {
031            public RatingsEntryLocalServiceWrapper(
032                    RatingsEntryLocalService ratingsEntryLocalService) {
033                    _ratingsEntryLocalService = ratingsEntryLocalService;
034            }
035    
036            /**
037            * Adds the ratings entry to the database. Also notifies the appropriate model listeners.
038            *
039            * @param ratingsEntry the ratings entry
040            * @return the ratings entry that was added
041            */
042            @Override
043            public com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
044                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
045                    return _ratingsEntryLocalService.addRatingsEntry(ratingsEntry);
046            }
047    
048            /**
049            * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database.
050            *
051            * @param entryId the primary key for the new ratings entry
052            * @return the new ratings entry
053            */
054            @Override
055            public com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
056                    long entryId) {
057                    return _ratingsEntryLocalService.createRatingsEntry(entryId);
058            }
059    
060            @Override
061            public void deleteEntry(long userId, java.lang.String className,
062                    long classPK)
063                    throws com.liferay.portal.kernel.exception.PortalException {
064                    _ratingsEntryLocalService.deleteEntry(userId, className, classPK);
065            }
066    
067            /**
068            * @throws PortalException
069            */
070            @Override
071            public com.liferay.portal.model.PersistedModel deletePersistedModel(
072                    com.liferay.portal.model.PersistedModel persistedModel)
073                    throws com.liferay.portal.kernel.exception.PortalException {
074                    return _ratingsEntryLocalService.deletePersistedModel(persistedModel);
075            }
076    
077            /**
078            * Deletes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.
079            *
080            * @param entryId the primary key of the ratings entry
081            * @return the ratings entry that was removed
082            * @throws PortalException if a ratings entry with the primary key could not be found
083            */
084            @Override
085            public com.liferay.portlet.ratings.model.RatingsEntry deleteRatingsEntry(
086                    long entryId)
087                    throws com.liferay.portal.kernel.exception.PortalException {
088                    return _ratingsEntryLocalService.deleteRatingsEntry(entryId);
089            }
090    
091            /**
092            * Deletes the ratings entry from the database. Also notifies the appropriate model listeners.
093            *
094            * @param ratingsEntry the ratings entry
095            * @return the ratings entry that was removed
096            */
097            @Override
098            public com.liferay.portlet.ratings.model.RatingsEntry deleteRatingsEntry(
099                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
100                    return _ratingsEntryLocalService.deleteRatingsEntry(ratingsEntry);
101            }
102    
103            @Override
104            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
105                    return _ratingsEntryLocalService.dynamicQuery();
106            }
107    
108            /**
109            * Performs a dynamic query on the database and returns the matching rows.
110            *
111            * @param dynamicQuery the dynamic query
112            * @return the matching rows
113            */
114            @Override
115            public <T> java.util.List<T> dynamicQuery(
116                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
117                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns a range of the matching rows.
122            *
123            * <p>
124            * 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.RatingsEntryModelImpl}. 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @return the range of matching rows
131            */
132            @Override
133            public <T> java.util.List<T> dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end) {
136                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery, start, end);
137            }
138    
139            /**
140            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
141            *
142            * <p>
143            * 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.RatingsEntryModelImpl}. 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.
144            * </p>
145            *
146            * @param dynamicQuery the dynamic query
147            * @param start the lower bound of the range of model instances
148            * @param end the upper bound of the range of model instances (not inclusive)
149            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
150            * @return the ordered range of matching rows
151            */
152            @Override
153            public <T> java.util.List<T> dynamicQuery(
154                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
155                    int end,
156                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
157                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery, start, end,
158                            orderByComparator);
159            }
160    
161            /**
162            * Returns the number of rows matching the dynamic query.
163            *
164            * @param dynamicQuery the dynamic query
165            * @return the number of rows matching the dynamic query
166            */
167            @Override
168            public long dynamicQueryCount(
169                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
170                    return _ratingsEntryLocalService.dynamicQueryCount(dynamicQuery);
171            }
172    
173            /**
174            * Returns the number of rows matching the dynamic query.
175            *
176            * @param dynamicQuery the dynamic query
177            * @param projection the projection to apply to the query
178            * @return the number of rows matching the dynamic query
179            */
180            @Override
181            public long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection) {
184                    return _ratingsEntryLocalService.dynamicQueryCount(dynamicQuery,
185                            projection);
186            }
187    
188            @Override
189            public com.liferay.portlet.ratings.model.RatingsEntry fetchEntry(
190                    long userId, java.lang.String className, long classPK) {
191                    return _ratingsEntryLocalService.fetchEntry(userId, className, classPK);
192            }
193    
194            @Override
195            public com.liferay.portlet.ratings.model.RatingsEntry fetchRatingsEntry(
196                    long entryId) {
197                    return _ratingsEntryLocalService.fetchRatingsEntry(entryId);
198            }
199    
200            /**
201            * Returns the ratings entry with the matching UUID and company.
202            *
203            * @param uuid the ratings entry's UUID
204            * @param companyId the primary key of the company
205            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
206            */
207            @Override
208            public com.liferay.portlet.ratings.model.RatingsEntry fetchRatingsEntryByUuidAndCompanyId(
209                    java.lang.String uuid, long companyId) {
210                    return _ratingsEntryLocalService.fetchRatingsEntryByUuidAndCompanyId(uuid,
211                            companyId);
212            }
213    
214            @Override
215            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
216                    return _ratingsEntryLocalService.getActionableDynamicQuery();
217            }
218    
219            /**
220            * Returns the Spring bean ID for this bean.
221            *
222            * @return the Spring bean ID for this bean
223            */
224            @Override
225            public java.lang.String getBeanIdentifier() {
226                    return _ratingsEntryLocalService.getBeanIdentifier();
227            }
228    
229            @Override
230            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
231                    java.lang.String className, long classPK) {
232                    return _ratingsEntryLocalService.getEntries(className, classPK);
233            }
234    
235            @Override
236            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
237                    java.lang.String className, long classPK, double score) {
238                    return _ratingsEntryLocalService.getEntries(className, classPK, score);
239            }
240    
241            @Override
242            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
243                    long userId, java.lang.String className,
244                    java.util.List<java.lang.Long> classPKs) {
245                    return _ratingsEntryLocalService.getEntries(userId, className, classPKs);
246            }
247    
248            @Override
249            public int getEntriesCount(java.lang.String className, long classPK,
250                    double score) {
251                    return _ratingsEntryLocalService.getEntriesCount(className, classPK,
252                            score);
253            }
254    
255            @Override
256            public com.liferay.portlet.ratings.model.RatingsEntry getEntry(
257                    long userId, java.lang.String className, long classPK)
258                    throws com.liferay.portal.kernel.exception.PortalException {
259                    return _ratingsEntryLocalService.getEntry(userId, className, classPK);
260            }
261    
262            @Override
263            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
264                    com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
265                    return _ratingsEntryLocalService.getExportActionableDynamicQuery(portletDataContext);
266            }
267    
268            @Override
269            public com.liferay.portal.model.PersistedModel getPersistedModel(
270                    java.io.Serializable primaryKeyObj)
271                    throws com.liferay.portal.kernel.exception.PortalException {
272                    return _ratingsEntryLocalService.getPersistedModel(primaryKeyObj);
273            }
274    
275            /**
276            * Returns a range of all the ratings entries.
277            *
278            * <p>
279            * 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.RatingsEntryModelImpl}. 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.
280            * </p>
281            *
282            * @param start the lower bound of the range of ratings entries
283            * @param end the upper bound of the range of ratings entries (not inclusive)
284            * @return the range of ratings entries
285            */
286            @Override
287            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getRatingsEntries(
288                    int start, int end) {
289                    return _ratingsEntryLocalService.getRatingsEntries(start, end);
290            }
291    
292            /**
293            * Returns the number of ratings entries.
294            *
295            * @return the number of ratings entries
296            */
297            @Override
298            public int getRatingsEntriesCount() {
299                    return _ratingsEntryLocalService.getRatingsEntriesCount();
300            }
301    
302            /**
303            * Returns the ratings entry with the primary key.
304            *
305            * @param entryId the primary key of the ratings entry
306            * @return the ratings entry
307            * @throws PortalException if a ratings entry with the primary key could not be found
308            */
309            @Override
310            public com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntry(
311                    long entryId)
312                    throws com.liferay.portal.kernel.exception.PortalException {
313                    return _ratingsEntryLocalService.getRatingsEntry(entryId);
314            }
315    
316            /**
317            * Returns the ratings entry with the matching UUID and company.
318            *
319            * @param uuid the ratings entry's UUID
320            * @param companyId the primary key of the company
321            * @return the matching ratings entry
322            * @throws PortalException if a matching ratings entry could not be found
323            */
324            @Override
325            public com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntryByUuidAndCompanyId(
326                    java.lang.String uuid, long companyId)
327                    throws com.liferay.portal.kernel.exception.PortalException {
328                    return _ratingsEntryLocalService.getRatingsEntryByUuidAndCompanyId(uuid,
329                            companyId);
330            }
331    
332            /**
333            * Sets the Spring bean ID for this bean.
334            *
335            * @param beanIdentifier the Spring bean ID for this bean
336            */
337            @Override
338            public void setBeanIdentifier(java.lang.String beanIdentifier) {
339                    _ratingsEntryLocalService.setBeanIdentifier(beanIdentifier);
340            }
341    
342            @Override
343            public com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
344                    long userId, java.lang.String className, long classPK, double score,
345                    com.liferay.portal.service.ServiceContext serviceContext)
346                    throws com.liferay.portal.kernel.exception.PortalException {
347                    return _ratingsEntryLocalService.updateEntry(userId, className,
348                            classPK, score, serviceContext);
349            }
350    
351            /**
352            * Updates the ratings entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
353            *
354            * @param ratingsEntry the ratings entry
355            * @return the ratings entry that was updated
356            */
357            @Override
358            public com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
359                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
360                    return _ratingsEntryLocalService.updateRatingsEntry(ratingsEntry);
361            }
362    
363            /**
364             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
365             */
366            @Deprecated
367            public RatingsEntryLocalService getWrappedRatingsEntryLocalService() {
368                    return _ratingsEntryLocalService;
369            }
370    
371            /**
372             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
373             */
374            @Deprecated
375            public void setWrappedRatingsEntryLocalService(
376                    RatingsEntryLocalService ratingsEntryLocalService) {
377                    _ratingsEntryLocalService = ratingsEntryLocalService;
378            }
379    
380            @Override
381            public RatingsEntryLocalService getWrappedService() {
382                    return _ratingsEntryLocalService;
383            }
384    
385            @Override
386            public void setWrappedService(
387                    RatingsEntryLocalService ratingsEntryLocalService) {
388                    _ratingsEntryLocalService = ratingsEntryLocalService;
389            }
390    
391            private RatingsEntryLocalService _ratingsEntryLocalService;
392    }