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