001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.ratings.service.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 com.liferay.portlet.ratings.service.persistence.impl.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 uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching ratings entries
048            */
049            public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid);
050    
051            /**
052            * Returns a range of all the ratings entries where uuid = &#63;.
053            *
054            * <p>
055            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
056            * </p>
057            *
058            * @param uuid the uuid
059            * @param start the lower bound of the range of ratings entries
060            * @param end the upper bound of the range of ratings entries (not inclusive)
061            * @return the range of matching ratings entries
062            */
063            public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid,
064                    int start, int end);
065    
066            /**
067            * Returns an ordered range of all the ratings entries where uuid = &#63;.
068            *
069            * <p>
070            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of ratings entries
075            * @param end the upper bound of the range of ratings entries (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching ratings entries
078            */
079            public java.util.List<RatingsEntry> findByUuid(java.lang.String uuid,
080                    int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
082    
083            /**
084            * Returns the first ratings entry in the ordered set where uuid = &#63;.
085            *
086            * @param uuid the uuid
087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
088            * @return the first matching ratings entry
089            * @throws NoSuchEntryException if a matching ratings entry could not be found
090            */
091            public RatingsEntry findByUuid_First(java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
093                    throws com.liferay.portlet.ratings.NoSuchEntryException;
094    
095            /**
096            * Returns the first ratings entry in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
101            */
102            public RatingsEntry fetchByUuid_First(java.lang.String uuid,
103                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
104    
105            /**
106            * Returns the last ratings entry in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the last matching ratings entry
111            * @throws NoSuchEntryException if a matching ratings entry could not be found
112            */
113            public RatingsEntry findByUuid_Last(java.lang.String uuid,
114                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
115                    throws com.liferay.portlet.ratings.NoSuchEntryException;
116    
117            /**
118            * Returns the last ratings entry in the ordered set where uuid = &#63;.
119            *
120            * @param uuid the uuid
121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
122            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
123            */
124            public RatingsEntry fetchByUuid_Last(java.lang.String uuid,
125                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
126    
127            /**
128            * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = &#63;.
129            *
130            * @param entryId the primary key of the current ratings entry
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the previous, current, and next ratings entry
134            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
135            */
136            public RatingsEntry[] findByUuid_PrevAndNext(long entryId,
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
139                    throws com.liferay.portlet.ratings.NoSuchEntryException;
140    
141            /**
142            * Removes all the ratings entries where uuid = &#63; from the database.
143            *
144            * @param uuid the uuid
145            */
146            public void removeByUuid(java.lang.String uuid);
147    
148            /**
149            * Returns the number of ratings entries where uuid = &#63;.
150            *
151            * @param uuid the uuid
152            * @return the number of matching ratings entries
153            */
154            public int countByUuid(java.lang.String uuid);
155    
156            /**
157            * Returns all the ratings entries where uuid = &#63; and companyId = &#63;.
158            *
159            * @param uuid the uuid
160            * @param companyId the company ID
161            * @return the matching ratings entries
162            */
163            public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid,
164                    long companyId);
165    
166            /**
167            * Returns a range of all the ratings entries where uuid = &#63; and companyId = &#63;.
168            *
169            * <p>
170            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
171            * </p>
172            *
173            * @param uuid the uuid
174            * @param companyId the company ID
175            * @param start the lower bound of the range of ratings entries
176            * @param end the upper bound of the range of ratings entries (not inclusive)
177            * @return the range of matching ratings entries
178            */
179            public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid,
180                    long companyId, int start, int end);
181    
182            /**
183            * Returns an ordered range of all the ratings entries where uuid = &#63; and companyId = &#63;.
184            *
185            * <p>
186            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
187            * </p>
188            *
189            * @param uuid the uuid
190            * @param companyId the company ID
191            * @param start the lower bound of the range of ratings entries
192            * @param end the upper bound of the range of ratings entries (not inclusive)
193            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
194            * @return the ordered range of matching ratings entries
195            */
196            public java.util.List<RatingsEntry> findByUuid_C(java.lang.String uuid,
197                    long companyId, int start, int end,
198                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
199    
200            /**
201            * Returns the first ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
202            *
203            * @param uuid the uuid
204            * @param companyId the company ID
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the first matching ratings entry
207            * @throws NoSuchEntryException if a matching ratings entry could not be found
208            */
209            public RatingsEntry findByUuid_C_First(java.lang.String uuid,
210                    long companyId,
211                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
212                    throws com.liferay.portlet.ratings.NoSuchEntryException;
213    
214            /**
215            * Returns the first ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
216            *
217            * @param uuid the uuid
218            * @param companyId the company ID
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
221            */
222            public RatingsEntry fetchByUuid_C_First(java.lang.String uuid,
223                    long companyId,
224                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
225    
226            /**
227            * Returns the last ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
228            *
229            * @param uuid the uuid
230            * @param companyId the company ID
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the last matching ratings entry
233            * @throws NoSuchEntryException if a matching ratings entry could not be found
234            */
235            public RatingsEntry findByUuid_C_Last(java.lang.String uuid,
236                    long companyId,
237                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
238                    throws com.liferay.portlet.ratings.NoSuchEntryException;
239    
240            /**
241            * Returns the last ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
242            *
243            * @param uuid the uuid
244            * @param companyId the company ID
245            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
246            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
247            */
248            public RatingsEntry fetchByUuid_C_Last(java.lang.String uuid,
249                    long companyId,
250                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
251    
252            /**
253            * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
254            *
255            * @param entryId the primary key of the current ratings entry
256            * @param uuid the uuid
257            * @param companyId the company ID
258            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
259            * @return the previous, current, and next ratings entry
260            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
261            */
262            public RatingsEntry[] findByUuid_C_PrevAndNext(long entryId,
263                    java.lang.String uuid, long companyId,
264                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
265                    throws com.liferay.portlet.ratings.NoSuchEntryException;
266    
267            /**
268            * Removes all the ratings entries where uuid = &#63; and companyId = &#63; from the database.
269            *
270            * @param uuid the uuid
271            * @param companyId the company ID
272            */
273            public void removeByUuid_C(java.lang.String uuid, long companyId);
274    
275            /**
276            * Returns the number of ratings entries where uuid = &#63; and companyId = &#63;.
277            *
278            * @param uuid the uuid
279            * @param companyId the company ID
280            * @return the number of matching ratings entries
281            */
282            public int countByUuid_C(java.lang.String uuid, long companyId);
283    
284            /**
285            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63;.
286            *
287            * @param classNameId the class name ID
288            * @param classPK the class p k
289            * @return the matching ratings entries
290            */
291            public java.util.List<RatingsEntry> findByC_C(long classNameId, long classPK);
292    
293            /**
294            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
295            *
296            * <p>
297            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
298            * </p>
299            *
300            * @param classNameId the class name ID
301            * @param classPK the class p k
302            * @param start the lower bound of the range of ratings entries
303            * @param end the upper bound of the range of ratings entries (not inclusive)
304            * @return the range of matching ratings entries
305            */
306            public java.util.List<RatingsEntry> findByC_C(long classNameId,
307                    long classPK, int start, int end);
308    
309            /**
310            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
311            *
312            * <p>
313            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
314            * </p>
315            *
316            * @param classNameId the class name ID
317            * @param classPK the class p k
318            * @param start the lower bound of the range of ratings entries
319            * @param end the upper bound of the range of ratings entries (not inclusive)
320            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
321            * @return the ordered range of matching ratings entries
322            */
323            public java.util.List<RatingsEntry> findByC_C(long classNameId,
324                    long classPK, int start, int end,
325                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
326    
327            /**
328            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
329            *
330            * @param classNameId the class name ID
331            * @param classPK the class p k
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching ratings entry
334            * @throws NoSuchEntryException if a matching ratings entry could not be found
335            */
336            public RatingsEntry findByC_C_First(long classNameId, long classPK,
337                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
338                    throws com.liferay.portlet.ratings.NoSuchEntryException;
339    
340            /**
341            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
342            *
343            * @param classNameId the class name ID
344            * @param classPK the class p k
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
347            */
348            public RatingsEntry fetchByC_C_First(long classNameId, long classPK,
349                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
350    
351            /**
352            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
353            *
354            * @param classNameId the class name ID
355            * @param classPK the class p k
356            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
357            * @return the last matching ratings entry
358            * @throws NoSuchEntryException if a matching ratings entry could not be found
359            */
360            public RatingsEntry findByC_C_Last(long classNameId, long classPK,
361                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
362                    throws com.liferay.portlet.ratings.NoSuchEntryException;
363    
364            /**
365            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
366            *
367            * @param classNameId the class name ID
368            * @param classPK the class p k
369            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
370            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
371            */
372            public RatingsEntry fetchByC_C_Last(long classNameId, long classPK,
373                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
374    
375            /**
376            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
377            *
378            * @param entryId the primary key of the current ratings entry
379            * @param classNameId the class name ID
380            * @param classPK the class p k
381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
382            * @return the previous, current, and next ratings entry
383            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
384            */
385            public RatingsEntry[] findByC_C_PrevAndNext(long entryId, long classNameId,
386                    long classPK,
387                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
388                    throws com.liferay.portlet.ratings.NoSuchEntryException;
389    
390            /**
391            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; from the database.
392            *
393            * @param classNameId the class name ID
394            * @param classPK the class p k
395            */
396            public void removeByC_C(long classNameId, long classPK);
397    
398            /**
399            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63;.
400            *
401            * @param classNameId the class name ID
402            * @param classPK the class p k
403            * @return the number of matching ratings entries
404            */
405            public int countByC_C(long classNameId, long classPK);
406    
407            /**
408            * Returns the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; or throws a {@link NoSuchEntryException} if it could not be found.
409            *
410            * @param userId the user ID
411            * @param classNameId the class name ID
412            * @param classPK the class p k
413            * @return the matching ratings entry
414            * @throws NoSuchEntryException if a matching ratings entry could not be found
415            */
416            public RatingsEntry findByU_C_C(long userId, long classNameId, long classPK)
417                    throws com.liferay.portlet.ratings.NoSuchEntryException;
418    
419            /**
420            * 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.
421            *
422            * @param userId the user ID
423            * @param classNameId the class name ID
424            * @param classPK the class p k
425            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
426            */
427            public RatingsEntry fetchByU_C_C(long userId, long classNameId, long classPK);
428    
429            /**
430            * 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.
431            *
432            * @param userId the user ID
433            * @param classNameId the class name ID
434            * @param classPK the class p k
435            * @param retrieveFromCache whether to use the finder cache
436            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
437            */
438            public RatingsEntry fetchByU_C_C(long userId, long classNameId,
439                    long classPK, boolean retrieveFromCache);
440    
441            /**
442            * Removes the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
443            *
444            * @param userId the user ID
445            * @param classNameId the class name ID
446            * @param classPK the class p k
447            * @return the ratings entry that was removed
448            */
449            public RatingsEntry removeByU_C_C(long userId, long classNameId,
450                    long classPK) throws com.liferay.portlet.ratings.NoSuchEntryException;
451    
452            /**
453            * Returns the number of ratings entries where userId = &#63; and classNameId = &#63; and classPK = &#63;.
454            *
455            * @param userId the user ID
456            * @param classNameId the class name ID
457            * @param classPK the class p k
458            * @return the number of matching ratings entries
459            */
460            public int countByU_C_C(long userId, long classNameId, long classPK);
461    
462            /**
463            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
464            *
465            * @param classNameId the class name ID
466            * @param classPK the class p k
467            * @param score the score
468            * @return the matching ratings entries
469            */
470            public java.util.List<RatingsEntry> findByC_C_S(long classNameId,
471                    long classPK, double score);
472    
473            /**
474            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
475            *
476            * <p>
477            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
478            * </p>
479            *
480            * @param classNameId the class name ID
481            * @param classPK the class p k
482            * @param score the score
483            * @param start the lower bound of the range of ratings entries
484            * @param end the upper bound of the range of ratings entries (not inclusive)
485            * @return the range of matching ratings entries
486            */
487            public java.util.List<RatingsEntry> findByC_C_S(long classNameId,
488                    long classPK, double score, int start, int end);
489    
490            /**
491            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 classNameId the class name ID
498            * @param classPK the class p k
499            * @param score the score
500            * @param start the lower bound of the range of ratings entries
501            * @param end the upper bound of the range of ratings entries (not inclusive)
502            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
503            * @return the ordered range of matching ratings entries
504            */
505            public java.util.List<RatingsEntry> findByC_C_S(long classNameId,
506                    long classPK, double score, int start, int end,
507                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
508    
509            /**
510            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
511            *
512            * @param classNameId the class name ID
513            * @param classPK the class p k
514            * @param score the score
515            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
516            * @return the first matching ratings entry
517            * @throws NoSuchEntryException if a matching ratings entry could not be found
518            */
519            public RatingsEntry findByC_C_S_First(long classNameId, long classPK,
520                    double score,
521                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
522                    throws com.liferay.portlet.ratings.NoSuchEntryException;
523    
524            /**
525            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
526            *
527            * @param classNameId the class name ID
528            * @param classPK the class p k
529            * @param score the score
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
532            */
533            public RatingsEntry fetchByC_C_S_First(long classNameId, long classPK,
534                    double score,
535                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
536    
537            /**
538            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
539            *
540            * @param classNameId the class name ID
541            * @param classPK the class p k
542            * @param score the score
543            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
544            * @return the last matching ratings entry
545            * @throws NoSuchEntryException if a matching ratings entry could not be found
546            */
547            public RatingsEntry findByC_C_S_Last(long classNameId, long classPK,
548                    double score,
549                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
550                    throws com.liferay.portlet.ratings.NoSuchEntryException;
551    
552            /**
553            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
554            *
555            * @param classNameId the class name ID
556            * @param classPK the class p k
557            * @param score the score
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
560            */
561            public RatingsEntry fetchByC_C_S_Last(long classNameId, long classPK,
562                    double score,
563                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
564    
565            /**
566            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
567            *
568            * @param entryId the primary key of the current ratings entry
569            * @param classNameId the class name ID
570            * @param classPK the class p k
571            * @param score the score
572            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
573            * @return the previous, current, and next ratings entry
574            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
575            */
576            public RatingsEntry[] findByC_C_S_PrevAndNext(long entryId,
577                    long classNameId, long classPK, double score,
578                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator)
579                    throws com.liferay.portlet.ratings.NoSuchEntryException;
580    
581            /**
582            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63; from the database.
583            *
584            * @param classNameId the class name ID
585            * @param classPK the class p k
586            * @param score the score
587            */
588            public void removeByC_C_S(long classNameId, long classPK, double score);
589    
590            /**
591            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
592            *
593            * @param classNameId the class name ID
594            * @param classPK the class p k
595            * @param score the score
596            * @return the number of matching ratings entries
597            */
598            public int countByC_C_S(long classNameId, long classPK, double score);
599    
600            /**
601            * Caches the ratings entry in the entity cache if it is enabled.
602            *
603            * @param ratingsEntry the ratings entry
604            */
605            public void cacheResult(RatingsEntry ratingsEntry);
606    
607            /**
608            * Caches the ratings entries in the entity cache if it is enabled.
609            *
610            * @param ratingsEntries the ratings entries
611            */
612            public void cacheResult(java.util.List<RatingsEntry> ratingsEntries);
613    
614            /**
615            * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database.
616            *
617            * @param entryId the primary key for the new ratings entry
618            * @return the new ratings entry
619            */
620            public RatingsEntry create(long entryId);
621    
622            /**
623            * Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.
624            *
625            * @param entryId the primary key of the ratings entry
626            * @return the ratings entry that was removed
627            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
628            */
629            public RatingsEntry remove(long entryId)
630                    throws com.liferay.portlet.ratings.NoSuchEntryException;
631    
632            public RatingsEntry updateImpl(RatingsEntry ratingsEntry);
633    
634            /**
635            * Returns the ratings entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found.
636            *
637            * @param entryId the primary key of the ratings entry
638            * @return the ratings entry
639            * @throws NoSuchEntryException if a ratings entry with the primary key could not be found
640            */
641            public RatingsEntry findByPrimaryKey(long entryId)
642                    throws com.liferay.portlet.ratings.NoSuchEntryException;
643    
644            /**
645            * Returns the ratings entry with the primary key or returns <code>null</code> if it could not be found.
646            *
647            * @param entryId the primary key of the ratings entry
648            * @return the ratings entry, or <code>null</code> if a ratings entry with the primary key could not be found
649            */
650            public RatingsEntry fetchByPrimaryKey(long entryId);
651    
652            @Override
653            public java.util.Map<java.io.Serializable, RatingsEntry> fetchByPrimaryKeys(
654                    java.util.Set<java.io.Serializable> primaryKeys);
655    
656            /**
657            * Returns all the ratings entries.
658            *
659            * @return the ratings entries
660            */
661            public java.util.List<RatingsEntry> findAll();
662    
663            /**
664            * Returns a range of all the ratings entries.
665            *
666            * <p>
667            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
668            * </p>
669            *
670            * @param start the lower bound of the range of ratings entries
671            * @param end the upper bound of the range of ratings entries (not inclusive)
672            * @return the range of ratings entries
673            */
674            public java.util.List<RatingsEntry> findAll(int start, int end);
675    
676            /**
677            * Returns an ordered range of all the ratings entries.
678            *
679            * <p>
680            * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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.
681            * </p>
682            *
683            * @param start the lower bound of the range of ratings entries
684            * @param end the upper bound of the range of ratings entries (not inclusive)
685            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
686            * @return the ordered range of ratings entries
687            */
688            public java.util.List<RatingsEntry> findAll(int start, int end,
689                    com.liferay.portal.kernel.util.OrderByComparator<RatingsEntry> orderByComparator);
690    
691            /**
692            * Removes all the ratings entries from the database.
693            */
694            public void removeAll();
695    
696            /**
697            * Returns the number of ratings entries.
698            *
699            * @return the number of ratings entries
700            */
701            public int countAll();
702    }