001    /**
002     * Copyright (c) 2000-2013 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.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.ratings.model.RatingsEntry;
022    
023    /**
024     * The persistence interface for the ratings entry service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see RatingsEntryPersistenceImpl
032     * @see RatingsEntryUtil
033     * @generated
034     */
035    @ProviderType
036    public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link RatingsEntryUtil} to access the ratings entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63;.
045            *
046            * @param classNameId the class name ID
047            * @param classPK the class p k
048            * @return the matching ratings entries
049            * @throws SystemException if a system exception occurred
050            */
051            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
052                    long classNameId, long classPK)
053                    throws com.liferay.portal.kernel.exception.SystemException;
054    
055            /**
056            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
057            *
058            * <p>
059            * 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.
060            * </p>
061            *
062            * @param classNameId the class name ID
063            * @param classPK the class p k
064            * @param start the lower bound of the range of ratings entries
065            * @param end the upper bound of the range of ratings entries (not inclusive)
066            * @return the range of matching ratings entries
067            * @throws SystemException if a system exception occurred
068            */
069            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
070                    long classNameId, long classPK, int start, int end)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
075            *
076            * <p>
077            * 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.
078            * </p>
079            *
080            * @param classNameId the class name ID
081            * @param classPK the class p k
082            * @param start the lower bound of the range of ratings entries
083            * @param end the upper bound of the range of ratings entries (not inclusive)
084            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
085            * @return the ordered range of matching ratings entries
086            * @throws SystemException if a system exception occurred
087            */
088            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
089                    long classNameId, long classPK, int start, int end,
090                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            /**
094            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
095            *
096            * @param classNameId the class name ID
097            * @param classPK the class p k
098            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
099            * @return the first matching ratings entry
100            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
104                    long classNameId, long classPK,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.kernel.exception.SystemException,
107                            com.liferay.portlet.ratings.NoSuchEntryException;
108    
109            /**
110            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
111            *
112            * @param classNameId the class name ID
113            * @param classPK the class p k
114            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
115            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
116            * @throws SystemException if a system exception occurred
117            */
118            public com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_First(
119                    long classNameId, long classPK,
120                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
121                    throws com.liferay.portal.kernel.exception.SystemException;
122    
123            /**
124            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
125            *
126            * @param classNameId the class name ID
127            * @param classPK the class p k
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching ratings entry
130            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
131            * @throws SystemException if a system exception occurred
132            */
133            public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
134                    long classNameId, long classPK,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException,
137                            com.liferay.portlet.ratings.NoSuchEntryException;
138    
139            /**
140            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
141            *
142            * @param classNameId the class name ID
143            * @param classPK the class p k
144            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
145            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
146            * @throws SystemException if a system exception occurred
147            */
148            public com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_Last(
149                    long classNameId, long classPK,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
155            *
156            * @param entryId the primary key of the current ratings entry
157            * @param classNameId the class name ID
158            * @param classPK the class p k
159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
160            * @return the previous, current, and next ratings entry
161            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
162            * @throws SystemException if a system exception occurred
163            */
164            public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
165                    long entryId, long classNameId, long classPK,
166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167                    throws com.liferay.portal.kernel.exception.SystemException,
168                            com.liferay.portlet.ratings.NoSuchEntryException;
169    
170            /**
171            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; from the database.
172            *
173            * @param classNameId the class name ID
174            * @param classPK the class p k
175            * @throws SystemException if a system exception occurred
176            */
177            public void removeByC_C(long classNameId, long classPK)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63;.
182            *
183            * @param classNameId the class name ID
184            * @param classPK the class p k
185            * @return the number of matching ratings entries
186            * @throws SystemException if a system exception occurred
187            */
188            public int countByC_C(long classNameId, long classPK)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; or throws a {@link com.liferay.portlet.ratings.NoSuchEntryException} if it could not be found.
193            *
194            * @param userId the user ID
195            * @param classNameId the class name ID
196            * @param classPK the class p k
197            * @return the matching ratings entry
198            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
202                    long userId, long classNameId, long classPK)
203                    throws com.liferay.portal.kernel.exception.SystemException,
204                            com.liferay.portlet.ratings.NoSuchEntryException;
205    
206            /**
207            * Returns the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
208            *
209            * @param userId the user ID
210            * @param classNameId the class name ID
211            * @param classPK the class p k
212            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
213            * @throws SystemException if a system exception occurred
214            */
215            public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
216                    long userId, long classNameId, long classPK)
217                    throws com.liferay.portal.kernel.exception.SystemException;
218    
219            /**
220            * Returns the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
221            *
222            * @param userId the user ID
223            * @param classNameId the class name ID
224            * @param classPK the class p k
225            * @param retrieveFromCache whether to use the finder cache
226            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
227            * @throws SystemException if a system exception occurred
228            */
229            public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
230                    long userId, long classNameId, long classPK, boolean retrieveFromCache)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            /**
234            * Removes the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
235            *
236            * @param userId the user ID
237            * @param classNameId the class name ID
238            * @param classPK the class p k
239            * @return the ratings entry that was removed
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portlet.ratings.model.RatingsEntry removeByU_C_C(
243                    long userId, long classNameId, long classPK)
244                    throws com.liferay.portal.kernel.exception.SystemException,
245                            com.liferay.portlet.ratings.NoSuchEntryException;
246    
247            /**
248            * Returns the number of ratings entries where userId = &#63; and classNameId = &#63; and classPK = &#63;.
249            *
250            * @param userId the user ID
251            * @param classNameId the class name ID
252            * @param classPK the class p k
253            * @return the number of matching ratings entries
254            * @throws SystemException if a system exception occurred
255            */
256            public int countByU_C_C(long userId, long classNameId, long classPK)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
261            *
262            * @param classNameId the class name ID
263            * @param classPK the class p k
264            * @param score the score
265            * @return the matching ratings entries
266            * @throws SystemException if a system exception occurred
267            */
268            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
269                    long classNameId, long classPK, double score)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param classNameId the class name ID
280            * @param classPK the class p k
281            * @param score the score
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 matching ratings entries
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
288                    long classNameId, long classPK, double score, int start, int end)
289                    throws com.liferay.portal.kernel.exception.SystemException;
290    
291            /**
292            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
293            *
294            * <p>
295            * 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.
296            * </p>
297            *
298            * @param classNameId the class name ID
299            * @param classPK the class p k
300            * @param score the score
301            * @param start the lower bound of the range of ratings entries
302            * @param end the upper bound of the range of ratings entries (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching ratings entries
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
308                    long classNameId, long classPK, double score, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
314            *
315            * @param classNameId the class name ID
316            * @param classPK the class p k
317            * @param score the score
318            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
319            * @return the first matching ratings entry
320            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_S_First(
324                    long classNameId, long classPK, double score,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.ratings.NoSuchEntryException;
328    
329            /**
330            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
331            *
332            * @param classNameId the class name ID
333            * @param classPK the class p k
334            * @param score the score
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_S_First(
340                    long classNameId, long classPK, double score,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
346            *
347            * @param classNameId the class name ID
348            * @param classPK the class p k
349            * @param score the score
350            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
351            * @return the last matching ratings entry
352            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
353            * @throws SystemException if a system exception occurred
354            */
355            public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_S_Last(
356                    long classNameId, long classPK, double score,
357                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
358                    throws com.liferay.portal.kernel.exception.SystemException,
359                            com.liferay.portlet.ratings.NoSuchEntryException;
360    
361            /**
362            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
363            *
364            * @param classNameId the class name ID
365            * @param classPK the class p k
366            * @param score the score
367            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
368            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
369            * @throws SystemException if a system exception occurred
370            */
371            public com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_S_Last(
372                    long classNameId, long classPK, double score,
373                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
374                    throws com.liferay.portal.kernel.exception.SystemException;
375    
376            /**
377            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
378            *
379            * @param entryId the primary key of the current ratings entry
380            * @param classNameId the class name ID
381            * @param classPK the class p k
382            * @param score the score
383            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
384            * @return the previous, current, and next ratings entry
385            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
386            * @throws SystemException if a system exception occurred
387            */
388            public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_S_PrevAndNext(
389                    long entryId, long classNameId, long classPK, double score,
390                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
391                    throws com.liferay.portal.kernel.exception.SystemException,
392                            com.liferay.portlet.ratings.NoSuchEntryException;
393    
394            /**
395            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63; from the database.
396            *
397            * @param classNameId the class name ID
398            * @param classPK the class p k
399            * @param score the score
400            * @throws SystemException if a system exception occurred
401            */
402            public void removeByC_C_S(long classNameId, long classPK, double score)
403                    throws com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
407            *
408            * @param classNameId the class name ID
409            * @param classPK the class p k
410            * @param score the score
411            * @return the number of matching ratings entries
412            * @throws SystemException if a system exception occurred
413            */
414            public int countByC_C_S(long classNameId, long classPK, double score)
415                    throws com.liferay.portal.kernel.exception.SystemException;
416    
417            /**
418            * Caches the ratings entry in the entity cache if it is enabled.
419            *
420            * @param ratingsEntry the ratings entry
421            */
422            public void cacheResult(
423                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry);
424    
425            /**
426            * Caches the ratings entries in the entity cache if it is enabled.
427            *
428            * @param ratingsEntries the ratings entries
429            */
430            public void cacheResult(
431                    java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries);
432    
433            /**
434            * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database.
435            *
436            * @param entryId the primary key for the new ratings entry
437            * @return the new ratings entry
438            */
439            public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
440    
441            /**
442            * Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.
443            *
444            * @param entryId the primary key of the ratings entry
445            * @return the ratings entry that was removed
446            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.ratings.NoSuchEntryException;
452    
453            public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
454                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
455                    throws com.liferay.portal.kernel.exception.SystemException;
456    
457            /**
458            * Returns the ratings entry with the primary key or throws a {@link com.liferay.portlet.ratings.NoSuchEntryException} if it could not be found.
459            *
460            * @param entryId the primary key of the ratings entry
461            * @return the ratings entry
462            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
463            * @throws SystemException if a system exception occurred
464            */
465            public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
466                    long entryId)
467                    throws com.liferay.portal.kernel.exception.SystemException,
468                            com.liferay.portlet.ratings.NoSuchEntryException;
469    
470            /**
471            * Returns the ratings entry with the primary key or returns <code>null</code> if it could not be found.
472            *
473            * @param entryId the primary key of the ratings entry
474            * @return the ratings entry, or <code>null</code> if a ratings entry with the primary key could not be found
475            * @throws SystemException if a system exception occurred
476            */
477            public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
478                    long entryId)
479                    throws com.liferay.portal.kernel.exception.SystemException;
480    
481            /**
482            * Returns all the ratings entries.
483            *
484            * @return the ratings entries
485            * @throws SystemException if a system exception occurred
486            */
487            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
488                    throws com.liferay.portal.kernel.exception.SystemException;
489    
490            /**
491            * Returns a range of all the ratings entries.
492            *
493            * <p>
494            * 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.
495            * </p>
496            *
497            * @param start the lower bound of the range of ratings entries
498            * @param end the upper bound of the range of ratings entries (not inclusive)
499            * @return the range of ratings entries
500            * @throws SystemException if a system exception occurred
501            */
502            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
503                    int start, int end)
504                    throws com.liferay.portal.kernel.exception.SystemException;
505    
506            /**
507            * Returns an ordered range of all the ratings entries.
508            *
509            * <p>
510            * 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.
511            * </p>
512            *
513            * @param start the lower bound of the range of ratings entries
514            * @param end the upper bound of the range of ratings entries (not inclusive)
515            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
516            * @return the ordered range of ratings entries
517            * @throws SystemException if a system exception occurred
518            */
519            public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
520                    int start, int end,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Removes all the ratings entries from the database.
526            *
527            * @throws SystemException if a system exception occurred
528            */
529            public void removeAll()
530                    throws com.liferay.portal.kernel.exception.SystemException;
531    
532            /**
533            * Returns the number of ratings entries.
534            *
535            * @return the number of ratings entries
536            * @throws SystemException if a system exception occurred
537            */
538            public int countAll()
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    }