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