001    /**
002     * Copyright (c) 2000-2012 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 com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link RatingsEntryLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       RatingsEntryLocalService
026     * @generated
027     */
028    public class RatingsEntryLocalServiceWrapper implements RatingsEntryLocalService,
029            ServiceWrapper<RatingsEntryLocalService> {
030            public RatingsEntryLocalServiceWrapper(
031                    RatingsEntryLocalService ratingsEntryLocalService) {
032                    _ratingsEntryLocalService = ratingsEntryLocalService;
033            }
034    
035            /**
036            * Adds the ratings entry to the database. Also notifies the appropriate model listeners.
037            *
038            * @param ratingsEntry the ratings entry
039            * @return the ratings entry that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.ratings.model.RatingsEntry addRatingsEntry(
043                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
044                    throws com.liferay.portal.kernel.exception.SystemException {
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            public com.liferay.portlet.ratings.model.RatingsEntry createRatingsEntry(
055                    long entryId) {
056                    return _ratingsEntryLocalService.createRatingsEntry(entryId);
057            }
058    
059            /**
060            * Deletes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param entryId the primary key of the ratings entry
063            * @return the ratings entry that was removed
064            * @throws PortalException if a ratings entry with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.ratings.model.RatingsEntry deleteRatingsEntry(
068                    long entryId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _ratingsEntryLocalService.deleteRatingsEntry(entryId);
072            }
073    
074            /**
075            * Deletes the ratings entry from the database. Also notifies the appropriate model listeners.
076            *
077            * @param ratingsEntry the ratings entry
078            * @return the ratings entry that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.ratings.model.RatingsEntry deleteRatingsEntry(
082                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _ratingsEntryLocalService.deleteRatingsEntry(ratingsEntry);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _ratingsEntryLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * 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.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * 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.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _ratingsEntryLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _ratingsEntryLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.ratings.model.RatingsEntry fetchRatingsEntry(
163                    long entryId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _ratingsEntryLocalService.fetchRatingsEntry(entryId);
166            }
167    
168            /**
169            * Returns the ratings entry with the primary key.
170            *
171            * @param entryId the primary key of the ratings entry
172            * @return the ratings entry
173            * @throws PortalException if a ratings entry with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.ratings.model.RatingsEntry getRatingsEntry(
177                    long entryId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _ratingsEntryLocalService.getRatingsEntry(entryId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _ratingsEntryLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the ratings entries.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param start the lower bound of the range of ratings entries
198            * @param end the upper bound of the range of ratings entries (not inclusive)
199            * @return the range of ratings entries
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getRatingsEntries(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _ratingsEntryLocalService.getRatingsEntries(start, end);
206            }
207    
208            /**
209            * Returns the number of ratings entries.
210            *
211            * @return the number of ratings entries
212            * @throws SystemException if a system exception occurred
213            */
214            public int getRatingsEntriesCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _ratingsEntryLocalService.getRatingsEntriesCount();
217            }
218    
219            /**
220            * Updates the ratings entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param ratingsEntry the ratings entry
223            * @return the ratings entry that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.ratings.model.RatingsEntry updateRatingsEntry(
227                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _ratingsEntryLocalService.updateRatingsEntry(ratingsEntry);
230            }
231    
232            /**
233            * Returns the Spring bean ID for this bean.
234            *
235            * @return the Spring bean ID for this bean
236            */
237            public java.lang.String getBeanIdentifier() {
238                    return _ratingsEntryLocalService.getBeanIdentifier();
239            }
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier) {
247                    _ratingsEntryLocalService.setBeanIdentifier(beanIdentifier);
248            }
249    
250            public void deleteEntry(long userId, java.lang.String className,
251                    long classPK)
252                    throws com.liferay.portal.kernel.exception.PortalException,
253                            com.liferay.portal.kernel.exception.SystemException {
254                    _ratingsEntryLocalService.deleteEntry(userId, className, classPK);
255            }
256    
257            public com.liferay.portlet.ratings.model.RatingsEntry fetchEntry(
258                    long userId, java.lang.String className, long classPK)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    return _ratingsEntryLocalService.fetchEntry(userId, className, classPK);
261            }
262    
263            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
264                    long userId, java.lang.String className,
265                    java.util.List<java.lang.Long> classPKs)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    return _ratingsEntryLocalService.getEntries(userId, className, classPKs);
268            }
269    
270            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
271                    java.lang.String className, long classPK)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return _ratingsEntryLocalService.getEntries(className, classPK);
274            }
275    
276            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> getEntries(
277                    java.lang.String className, long classPK, double score)
278                    throws com.liferay.portal.kernel.exception.SystemException {
279                    return _ratingsEntryLocalService.getEntries(className, classPK, score);
280            }
281    
282            public int getEntriesCount(java.lang.String className, long classPK,
283                    double score)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    return _ratingsEntryLocalService.getEntriesCount(className, classPK,
286                            score);
287            }
288    
289            public com.liferay.portlet.ratings.model.RatingsEntry getEntry(
290                    long userId, java.lang.String className, long classPK)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return _ratingsEntryLocalService.getEntry(userId, className, classPK);
294            }
295    
296            public com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
297                    long userId, java.lang.String className, long classPK, double score,
298                    com.liferay.portal.service.ServiceContext serviceContext)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return _ratingsEntryLocalService.updateEntry(userId, className,
302                            classPK, score, serviceContext);
303            }
304    
305            /**
306             * @deprecated Renamed to {@link #getWrappedService}
307             */
308            public RatingsEntryLocalService getWrappedRatingsEntryLocalService() {
309                    return _ratingsEntryLocalService;
310            }
311    
312            /**
313             * @deprecated Renamed to {@link #setWrappedService}
314             */
315            public void setWrappedRatingsEntryLocalService(
316                    RatingsEntryLocalService ratingsEntryLocalService) {
317                    _ratingsEntryLocalService = ratingsEntryLocalService;
318            }
319    
320            public RatingsEntryLocalService getWrappedService() {
321                    return _ratingsEntryLocalService;
322            }
323    
324            public void setWrappedService(
325                    RatingsEntryLocalService ratingsEntryLocalService) {
326                    _ratingsEntryLocalService = ratingsEntryLocalService;
327            }
328    
329            private RatingsEntryLocalService _ratingsEntryLocalService;
330    }