001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.ratings.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.ratings.model.RatingsEntry;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the ratings entry service. This utility wraps {@link RatingsEntryPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see RatingsEntryPersistence
038     * @see RatingsEntryPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class RatingsEntryUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(RatingsEntry ratingsEntry) {
060                    getPersistence().clearCache(ratingsEntry);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<RatingsEntry> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<RatingsEntry> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<RatingsEntry> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<RatingsEntry> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static RatingsEntry update(RatingsEntry ratingsEntry) {
101                    return getPersistence().update(ratingsEntry);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static RatingsEntry update(RatingsEntry ratingsEntry,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(ratingsEntry, serviceContext);
110            }
111    
112            /**
113            * Returns all the ratings entries where uuid = &#63;.
114            *
115            * @param uuid the uuid
116            * @return the matching ratings entries
117            */
118            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid(
119                    java.lang.String uuid) {
120                    return getPersistence().findByUuid(uuid);
121            }
122    
123            /**
124            * Returns a range of all the ratings entries where uuid = &#63;.
125            *
126            * <p>
127            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
128            * </p>
129            *
130            * @param uuid the uuid
131            * @param start the lower bound of the range of ratings entries
132            * @param end the upper bound of the range of ratings entries (not inclusive)
133            * @return the range of matching ratings entries
134            */
135            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid(
136                    java.lang.String uuid, int start, int end) {
137                    return getPersistence().findByUuid(uuid, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the ratings entries where uuid = &#63;.
142            *
143            * <p>
144            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
145            * </p>
146            *
147            * @param uuid the uuid
148            * @param start the lower bound of the range of ratings entries
149            * @param end the upper bound of the range of ratings entries (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching ratings entries
152            */
153            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid(
154                    java.lang.String uuid, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
156                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
157            }
158    
159            /**
160            * Returns the first ratings entry in the ordered set where uuid = &#63;.
161            *
162            * @param uuid the uuid
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching ratings entry
165            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
166            */
167            public static com.liferay.portlet.ratings.model.RatingsEntry findByUuid_First(
168                    java.lang.String uuid,
169                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
170                    throws com.liferay.portlet.ratings.NoSuchEntryException {
171                    return getPersistence().findByUuid_First(uuid, orderByComparator);
172            }
173    
174            /**
175            * Returns the first ratings entry in the ordered set where uuid = &#63;.
176            *
177            * @param uuid the uuid
178            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
179            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
180            */
181            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByUuid_First(
182                    java.lang.String uuid,
183                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
184                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
185            }
186    
187            /**
188            * Returns the last ratings entry in the ordered set where uuid = &#63;.
189            *
190            * @param uuid the uuid
191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
192            * @return the last matching ratings entry
193            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
194            */
195            public static com.liferay.portlet.ratings.model.RatingsEntry findByUuid_Last(
196                    java.lang.String uuid,
197                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
198                    throws com.liferay.portlet.ratings.NoSuchEntryException {
199                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
200            }
201    
202            /**
203            * Returns the last ratings entry in the ordered set where uuid = &#63;.
204            *
205            * @param uuid the uuid
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            */
209            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByUuid_Last(
210                    java.lang.String uuid,
211                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
212                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
213            }
214    
215            /**
216            * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = &#63;.
217            *
218            * @param entryId the primary key of the current ratings entry
219            * @param uuid the uuid
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            */
224            public static com.liferay.portlet.ratings.model.RatingsEntry[] findByUuid_PrevAndNext(
225                    long entryId, java.lang.String uuid,
226                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
227                    throws com.liferay.portlet.ratings.NoSuchEntryException {
228                    return getPersistence()
229                                       .findByUuid_PrevAndNext(entryId, uuid, orderByComparator);
230            }
231    
232            /**
233            * Removes all the ratings entries where uuid = &#63; from the database.
234            *
235            * @param uuid the uuid
236            */
237            public static void removeByUuid(java.lang.String uuid) {
238                    getPersistence().removeByUuid(uuid);
239            }
240    
241            /**
242            * Returns the number of ratings entries where uuid = &#63;.
243            *
244            * @param uuid the uuid
245            * @return the number of matching ratings entries
246            */
247            public static int countByUuid(java.lang.String uuid) {
248                    return getPersistence().countByUuid(uuid);
249            }
250    
251            /**
252            * Returns all the ratings entries where uuid = &#63; and companyId = &#63;.
253            *
254            * @param uuid the uuid
255            * @param companyId the company ID
256            * @return the matching ratings entries
257            */
258            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid_C(
259                    java.lang.String uuid, long companyId) {
260                    return getPersistence().findByUuid_C(uuid, companyId);
261            }
262    
263            /**
264            * Returns a range of all the ratings entries where uuid = &#63; and companyId = &#63;.
265            *
266            * <p>
267            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
268            * </p>
269            *
270            * @param uuid the uuid
271            * @param companyId the company ID
272            * @param start the lower bound of the range of ratings entries
273            * @param end the upper bound of the range of ratings entries (not inclusive)
274            * @return the range of matching ratings entries
275            */
276            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid_C(
277                    java.lang.String uuid, long companyId, int start, int end) {
278                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
279            }
280    
281            /**
282            * Returns an ordered range of all the ratings entries where uuid = &#63; and companyId = &#63;.
283            *
284            * <p>
285            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
286            * </p>
287            *
288            * @param uuid the uuid
289            * @param companyId the company ID
290            * @param start the lower bound of the range of ratings entries
291            * @param end the upper bound of the range of ratings entries (not inclusive)
292            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
293            * @return the ordered range of matching ratings entries
294            */
295            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByUuid_C(
296                    java.lang.String uuid, long companyId, int start, int end,
297                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
298                    return getPersistence()
299                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
300            }
301    
302            /**
303            * Returns the first ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
304            *
305            * @param uuid the uuid
306            * @param companyId the company ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the first matching ratings entry
309            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
310            */
311            public static com.liferay.portlet.ratings.model.RatingsEntry findByUuid_C_First(
312                    java.lang.String uuid, long companyId,
313                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
314                    throws com.liferay.portlet.ratings.NoSuchEntryException {
315                    return getPersistence()
316                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
317            }
318    
319            /**
320            * Returns the first ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
321            *
322            * @param uuid the uuid
323            * @param companyId the company ID
324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
325            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
326            */
327            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByUuid_C_First(
328                    java.lang.String uuid, long companyId,
329                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
330                    return getPersistence()
331                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
332            }
333    
334            /**
335            * Returns the last ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
336            *
337            * @param uuid the uuid
338            * @param companyId the company ID
339            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
340            * @return the last matching ratings entry
341            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
342            */
343            public static com.liferay.portlet.ratings.model.RatingsEntry findByUuid_C_Last(
344                    java.lang.String uuid, long companyId,
345                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
346                    throws com.liferay.portlet.ratings.NoSuchEntryException {
347                    return getPersistence()
348                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
349            }
350    
351            /**
352            * Returns the last ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
353            *
354            * @param uuid the uuid
355            * @param companyId the company ID
356            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
357            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
358            */
359            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByUuid_C_Last(
360                    java.lang.String uuid, long companyId,
361                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
362                    return getPersistence()
363                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
364            }
365    
366            /**
367            * Returns the ratings entries before and after the current ratings entry in the ordered set where uuid = &#63; and companyId = &#63;.
368            *
369            * @param entryId the primary key of the current ratings entry
370            * @param uuid the uuid
371            * @param companyId the company ID
372            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
373            * @return the previous, current, and next ratings entry
374            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
375            */
376            public static com.liferay.portlet.ratings.model.RatingsEntry[] findByUuid_C_PrevAndNext(
377                    long entryId, java.lang.String uuid, long companyId,
378                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
379                    throws com.liferay.portlet.ratings.NoSuchEntryException {
380                    return getPersistence()
381                                       .findByUuid_C_PrevAndNext(entryId, uuid, companyId,
382                            orderByComparator);
383            }
384    
385            /**
386            * Removes all the ratings entries where uuid = &#63; and companyId = &#63; from the database.
387            *
388            * @param uuid the uuid
389            * @param companyId the company ID
390            */
391            public static void removeByUuid_C(java.lang.String uuid, long companyId) {
392                    getPersistence().removeByUuid_C(uuid, companyId);
393            }
394    
395            /**
396            * Returns the number of ratings entries where uuid = &#63; and companyId = &#63;.
397            *
398            * @param uuid the uuid
399            * @param companyId the company ID
400            * @return the number of matching ratings entries
401            */
402            public static int countByUuid_C(java.lang.String uuid, long companyId) {
403                    return getPersistence().countByUuid_C(uuid, companyId);
404            }
405    
406            /**
407            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63;.
408            *
409            * @param classNameId the class name ID
410            * @param classPK the class p k
411            * @return the matching ratings entries
412            */
413            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
414                    long classNameId, long classPK) {
415                    return getPersistence().findByC_C(classNameId, classPK);
416            }
417    
418            /**
419            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
423            * </p>
424            *
425            * @param classNameId the class name ID
426            * @param classPK the class p k
427            * @param start the lower bound of the range of ratings entries
428            * @param end the upper bound of the range of ratings entries (not inclusive)
429            * @return the range of matching ratings entries
430            */
431            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
432                    long classNameId, long classPK, int start, int end) {
433                    return getPersistence().findByC_C(classNameId, classPK, start, end);
434            }
435    
436            /**
437            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63;.
438            *
439            * <p>
440            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
441            * </p>
442            *
443            * @param classNameId the class name ID
444            * @param classPK the class p k
445            * @param start the lower bound of the range of ratings entries
446            * @param end the upper bound of the range of ratings entries (not inclusive)
447            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
448            * @return the ordered range of matching ratings entries
449            */
450            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
451                    long classNameId, long classPK, int start, int end,
452                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
453                    return getPersistence()
454                                       .findByC_C(classNameId, classPK, start, end,
455                            orderByComparator);
456            }
457    
458            /**
459            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
460            *
461            * @param classNameId the class name ID
462            * @param classPK the class p k
463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
464            * @return the first matching ratings entry
465            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
466            */
467            public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
468                    long classNameId, long classPK,
469                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
470                    throws com.liferay.portlet.ratings.NoSuchEntryException {
471                    return getPersistence()
472                                       .findByC_C_First(classNameId, classPK, orderByComparator);
473            }
474    
475            /**
476            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
477            *
478            * @param classNameId the class name ID
479            * @param classPK the class p k
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
482            */
483            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_First(
484                    long classNameId, long classPK,
485                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
486                    return getPersistence()
487                                       .fetchByC_C_First(classNameId, classPK, orderByComparator);
488            }
489    
490            /**
491            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
492            *
493            * @param classNameId the class name ID
494            * @param classPK the class p k
495            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
496            * @return the last matching ratings entry
497            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
498            */
499            public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
500                    long classNameId, long classPK,
501                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
502                    throws com.liferay.portlet.ratings.NoSuchEntryException {
503                    return getPersistence()
504                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
505            }
506    
507            /**
508            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
509            *
510            * @param classNameId the class name ID
511            * @param classPK the class p k
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
514            */
515            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_Last(
516                    long classNameId, long classPK,
517                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
518                    return getPersistence()
519                                       .fetchByC_C_Last(classNameId, classPK, orderByComparator);
520            }
521    
522            /**
523            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63;.
524            *
525            * @param entryId the primary key of the current ratings entry
526            * @param classNameId the class name ID
527            * @param classPK the class p k
528            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
529            * @return the previous, current, and next ratings entry
530            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
531            */
532            public static com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
533                    long entryId, long classNameId, long classPK,
534                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
535                    throws com.liferay.portlet.ratings.NoSuchEntryException {
536                    return getPersistence()
537                                       .findByC_C_PrevAndNext(entryId, classNameId, classPK,
538                            orderByComparator);
539            }
540    
541            /**
542            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; from the database.
543            *
544            * @param classNameId the class name ID
545            * @param classPK the class p k
546            */
547            public static void removeByC_C(long classNameId, long classPK) {
548                    getPersistence().removeByC_C(classNameId, classPK);
549            }
550    
551            /**
552            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63;.
553            *
554            * @param classNameId the class name ID
555            * @param classPK the class p k
556            * @return the number of matching ratings entries
557            */
558            public static int countByC_C(long classNameId, long classPK) {
559                    return getPersistence().countByC_C(classNameId, classPK);
560            }
561    
562            /**
563            * 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.
564            *
565            * @param userId the user ID
566            * @param classNameId the class name ID
567            * @param classPK the class p k
568            * @return the matching ratings entry
569            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
570            */
571            public static com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
572                    long userId, long classNameId, long classPK)
573                    throws com.liferay.portlet.ratings.NoSuchEntryException {
574                    return getPersistence().findByU_C_C(userId, classNameId, classPK);
575            }
576    
577            /**
578            * 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.
579            *
580            * @param userId the user ID
581            * @param classNameId the class name ID
582            * @param classPK the class p k
583            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
584            */
585            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
586                    long userId, long classNameId, long classPK) {
587                    return getPersistence().fetchByU_C_C(userId, classNameId, classPK);
588            }
589    
590            /**
591            * 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.
592            *
593            * @param userId the user ID
594            * @param classNameId the class name ID
595            * @param classPK the class p k
596            * @param retrieveFromCache whether to use the finder cache
597            * @return the matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
598            */
599            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
600                    long userId, long classNameId, long classPK, boolean retrieveFromCache) {
601                    return getPersistence()
602                                       .fetchByU_C_C(userId, classNameId, classPK, retrieveFromCache);
603            }
604    
605            /**
606            * Removes the ratings entry where userId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
607            *
608            * @param userId the user ID
609            * @param classNameId the class name ID
610            * @param classPK the class p k
611            * @return the ratings entry that was removed
612            */
613            public static com.liferay.portlet.ratings.model.RatingsEntry removeByU_C_C(
614                    long userId, long classNameId, long classPK)
615                    throws com.liferay.portlet.ratings.NoSuchEntryException {
616                    return getPersistence().removeByU_C_C(userId, classNameId, classPK);
617            }
618    
619            /**
620            * Returns the number of ratings entries where userId = &#63; and classNameId = &#63; and classPK = &#63;.
621            *
622            * @param userId the user ID
623            * @param classNameId the class name ID
624            * @param classPK the class p k
625            * @return the number of matching ratings entries
626            */
627            public static int countByU_C_C(long userId, long classNameId, long classPK) {
628                    return getPersistence().countByU_C_C(userId, classNameId, classPK);
629            }
630    
631            /**
632            * Returns all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
633            *
634            * @param classNameId the class name ID
635            * @param classPK the class p k
636            * @param score the score
637            * @return the matching ratings entries
638            */
639            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
640                    long classNameId, long classPK, double score) {
641                    return getPersistence().findByC_C_S(classNameId, classPK, score);
642            }
643    
644            /**
645            * Returns a range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
646            *
647            * <p>
648            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
649            * </p>
650            *
651            * @param classNameId the class name ID
652            * @param classPK the class p k
653            * @param score the score
654            * @param start the lower bound of the range of ratings entries
655            * @param end the upper bound of the range of ratings entries (not inclusive)
656            * @return the range of matching ratings entries
657            */
658            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
659                    long classNameId, long classPK, double score, int start, int end) {
660                    return getPersistence()
661                                       .findByC_C_S(classNameId, classPK, score, start, end);
662            }
663    
664            /**
665            * Returns an ordered range of all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
666            *
667            * <p>
668            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
669            * </p>
670            *
671            * @param classNameId the class name ID
672            * @param classPK the class p k
673            * @param score the score
674            * @param start the lower bound of the range of ratings entries
675            * @param end the upper bound of the range of ratings entries (not inclusive)
676            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
677            * @return the ordered range of matching ratings entries
678            */
679            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C_S(
680                    long classNameId, long classPK, double score, int start, int end,
681                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
682                    return getPersistence()
683                                       .findByC_C_S(classNameId, classPK, score, start, end,
684                            orderByComparator);
685            }
686    
687            /**
688            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
689            *
690            * @param classNameId the class name ID
691            * @param classPK the class p k
692            * @param score the score
693            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
694            * @return the first matching ratings entry
695            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
696            */
697            public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_S_First(
698                    long classNameId, long classPK, double score,
699                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
700                    throws com.liferay.portlet.ratings.NoSuchEntryException {
701                    return getPersistence()
702                                       .findByC_C_S_First(classNameId, classPK, score,
703                            orderByComparator);
704            }
705    
706            /**
707            * Returns the first ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
708            *
709            * @param classNameId the class name ID
710            * @param classPK the class p k
711            * @param score the score
712            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
713            * @return the first matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
714            */
715            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_S_First(
716                    long classNameId, long classPK, double score,
717                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
718                    return getPersistence()
719                                       .fetchByC_C_S_First(classNameId, classPK, score,
720                            orderByComparator);
721            }
722    
723            /**
724            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
725            *
726            * @param classNameId the class name ID
727            * @param classPK the class p k
728            * @param score the score
729            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
730            * @return the last matching ratings entry
731            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a matching ratings entry could not be found
732            */
733            public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_S_Last(
734                    long classNameId, long classPK, double score,
735                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
736                    throws com.liferay.portlet.ratings.NoSuchEntryException {
737                    return getPersistence()
738                                       .findByC_C_S_Last(classNameId, classPK, score,
739                            orderByComparator);
740            }
741    
742            /**
743            * Returns the last ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
744            *
745            * @param classNameId the class name ID
746            * @param classPK the class p k
747            * @param score the score
748            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
749            * @return the last matching ratings entry, or <code>null</code> if a matching ratings entry could not be found
750            */
751            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByC_C_S_Last(
752                    long classNameId, long classPK, double score,
753                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
754                    return getPersistence()
755                                       .fetchByC_C_S_Last(classNameId, classPK, score,
756                            orderByComparator);
757            }
758    
759            /**
760            * Returns the ratings entries before and after the current ratings entry in the ordered set where classNameId = &#63; and classPK = &#63; and score = &#63;.
761            *
762            * @param entryId the primary key of the current ratings entry
763            * @param classNameId the class name ID
764            * @param classPK the class p k
765            * @param score the score
766            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
767            * @return the previous, current, and next ratings entry
768            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
769            */
770            public static com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_S_PrevAndNext(
771                    long entryId, long classNameId, long classPK, double score,
772                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator)
773                    throws com.liferay.portlet.ratings.NoSuchEntryException {
774                    return getPersistence()
775                                       .findByC_C_S_PrevAndNext(entryId, classNameId, classPK,
776                            score, orderByComparator);
777            }
778    
779            /**
780            * Removes all the ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63; from the database.
781            *
782            * @param classNameId the class name ID
783            * @param classPK the class p k
784            * @param score the score
785            */
786            public static void removeByC_C_S(long classNameId, long classPK,
787                    double score) {
788                    getPersistence().removeByC_C_S(classNameId, classPK, score);
789            }
790    
791            /**
792            * Returns the number of ratings entries where classNameId = &#63; and classPK = &#63; and score = &#63;.
793            *
794            * @param classNameId the class name ID
795            * @param classPK the class p k
796            * @param score the score
797            * @return the number of matching ratings entries
798            */
799            public static int countByC_C_S(long classNameId, long classPK, double score) {
800                    return getPersistence().countByC_C_S(classNameId, classPK, score);
801            }
802    
803            /**
804            * Caches the ratings entry in the entity cache if it is enabled.
805            *
806            * @param ratingsEntry the ratings entry
807            */
808            public static void cacheResult(
809                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
810                    getPersistence().cacheResult(ratingsEntry);
811            }
812    
813            /**
814            * Caches the ratings entries in the entity cache if it is enabled.
815            *
816            * @param ratingsEntries the ratings entries
817            */
818            public static void cacheResult(
819                    java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries) {
820                    getPersistence().cacheResult(ratingsEntries);
821            }
822    
823            /**
824            * Creates a new ratings entry with the primary key. Does not add the ratings entry to the database.
825            *
826            * @param entryId the primary key for the new ratings entry
827            * @return the new ratings entry
828            */
829            public static com.liferay.portlet.ratings.model.RatingsEntry create(
830                    long entryId) {
831                    return getPersistence().create(entryId);
832            }
833    
834            /**
835            * Removes the ratings entry with the primary key from the database. Also notifies the appropriate model listeners.
836            *
837            * @param entryId the primary key of the ratings entry
838            * @return the ratings entry that was removed
839            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
840            */
841            public static com.liferay.portlet.ratings.model.RatingsEntry remove(
842                    long entryId) throws com.liferay.portlet.ratings.NoSuchEntryException {
843                    return getPersistence().remove(entryId);
844            }
845    
846            public static com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
847                    com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry) {
848                    return getPersistence().updateImpl(ratingsEntry);
849            }
850    
851            /**
852            * Returns the ratings entry with the primary key or throws a {@link com.liferay.portlet.ratings.NoSuchEntryException} if it could not be found.
853            *
854            * @param entryId the primary key of the ratings entry
855            * @return the ratings entry
856            * @throws com.liferay.portlet.ratings.NoSuchEntryException if a ratings entry with the primary key could not be found
857            */
858            public static com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
859                    long entryId) throws com.liferay.portlet.ratings.NoSuchEntryException {
860                    return getPersistence().findByPrimaryKey(entryId);
861            }
862    
863            /**
864            * Returns the ratings entry with the primary key or returns <code>null</code> if it could not be found.
865            *
866            * @param entryId the primary key of the ratings entry
867            * @return the ratings entry, or <code>null</code> if a ratings entry with the primary key could not be found
868            */
869            public static com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
870                    long entryId) {
871                    return getPersistence().fetchByPrimaryKey(entryId);
872            }
873    
874            public static java.util.Map<java.io.Serializable, com.liferay.portlet.ratings.model.RatingsEntry> fetchByPrimaryKeys(
875                    java.util.Set<java.io.Serializable> primaryKeys) {
876                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
877            }
878    
879            /**
880            * Returns all the ratings entries.
881            *
882            * @return the ratings entries
883            */
884            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll() {
885                    return getPersistence().findAll();
886            }
887    
888            /**
889            * Returns a range of all the ratings entries.
890            *
891            * <p>
892            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
893            * </p>
894            *
895            * @param start the lower bound of the range of ratings entries
896            * @param end the upper bound of the range of ratings entries (not inclusive)
897            * @return the range of ratings entries
898            */
899            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
900                    int start, int end) {
901                    return getPersistence().findAll(start, end);
902            }
903    
904            /**
905            * Returns an ordered range of all the ratings entries.
906            *
907            * <p>
908            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.ratings.model.impl.RatingsEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
909            * </p>
910            *
911            * @param start the lower bound of the range of ratings entries
912            * @param end the upper bound of the range of ratings entries (not inclusive)
913            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
914            * @return the ordered range of ratings entries
915            */
916            public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
917                    int start, int end,
918                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.ratings.model.RatingsEntry> orderByComparator) {
919                    return getPersistence().findAll(start, end, orderByComparator);
920            }
921    
922            /**
923            * Removes all the ratings entries from the database.
924            */
925            public static void removeAll() {
926                    getPersistence().removeAll();
927            }
928    
929            /**
930            * Returns the number of ratings entries.
931            *
932            * @return the number of ratings entries
933            */
934            public static int countAll() {
935                    return getPersistence().countAll();
936            }
937    
938            public static RatingsEntryPersistence getPersistence() {
939                    if (_persistence == null) {
940                            _persistence = (RatingsEntryPersistence)PortalBeanLocatorUtil.locate(RatingsEntryPersistence.class.getName());
941    
942                            ReferenceRegistry.registerReference(RatingsEntryUtil.class,
943                                    "_persistence");
944                    }
945    
946                    return _persistence;
947            }
948    
949            /**
950             * @deprecated As of 6.2.0
951             */
952            @Deprecated
953            public void setPersistence(RatingsEntryPersistence persistence) {
954            }
955    
956            private static RatingsEntryPersistence _persistence;
957    }