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