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