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