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