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.mobiledevicerules.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.mobiledevicerules.model.MDRRuleGroupInstance;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the m d r rule group instance service. This utility wraps {@link com.liferay.portlet.mobiledevicerules.service.persistence.impl.MDRRuleGroupInstancePersistenceImpl} 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 Edward C. Han
037     * @see MDRRuleGroupInstancePersistence
038     * @see com.liferay.portlet.mobiledevicerules.service.persistence.impl.MDRRuleGroupInstancePersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class MDRRuleGroupInstanceUtil {
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(MDRRuleGroupInstance mdrRuleGroupInstance) {
060                    getPersistence().clearCache(mdrRuleGroupInstance);
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<MDRRuleGroupInstance> 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<MDRRuleGroupInstance> 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<MDRRuleGroupInstance> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<MDRRuleGroupInstance> 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 MDRRuleGroupInstance update(
101                    MDRRuleGroupInstance mdrRuleGroupInstance) {
102                    return getPersistence().update(mdrRuleGroupInstance);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static MDRRuleGroupInstance update(
109                    MDRRuleGroupInstance mdrRuleGroupInstance, ServiceContext serviceContext) {
110                    return getPersistence().update(mdrRuleGroupInstance, serviceContext);
111            }
112    
113            /**
114            * Returns all the m d r rule group instances where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @return the matching m d r rule group instances
118            */
119            public static List<MDRRuleGroupInstance> findByUuid(java.lang.String uuid) {
120                    return getPersistence().findByUuid(uuid);
121            }
122    
123            /**
124            * Returns a range of all the m d r rule group instances 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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 m d r rule group instances
132            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
133            * @return the range of matching m d r rule group instances
134            */
135            public static List<MDRRuleGroupInstance> findByUuid(java.lang.String uuid,
136                    int start, int end) {
137                    return getPersistence().findByUuid(uuid, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the m d r rule group instances 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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 m d r rule group instances
149            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching m d r rule group instances
152            */
153            public static List<MDRRuleGroupInstance> findByUuid(java.lang.String uuid,
154                    int start, int end,
155                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
156                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
157            }
158    
159            /**
160            * Returns the first m d r rule group instance 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 m d r rule group instance
165            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
166            */
167            public static MDRRuleGroupInstance findByUuid_First(java.lang.String uuid,
168                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
169                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
170                    return getPersistence().findByUuid_First(uuid, orderByComparator);
171            }
172    
173            /**
174            * Returns the first m d r rule group instance in the ordered set where uuid = &#63;.
175            *
176            * @param uuid the uuid
177            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
178            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
179            */
180            public static MDRRuleGroupInstance fetchByUuid_First(
181                    java.lang.String uuid,
182                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
183                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
184            }
185    
186            /**
187            * Returns the last m d r rule group instance in the ordered set where uuid = &#63;.
188            *
189            * @param uuid the uuid
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the last matching m d r rule group instance
192            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
193            */
194            public static MDRRuleGroupInstance findByUuid_Last(java.lang.String uuid,
195                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
196                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
197                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
198            }
199    
200            /**
201            * Returns the last m d r rule group instance in the ordered set where uuid = &#63;.
202            *
203            * @param uuid the uuid
204            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
205            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
206            */
207            public static MDRRuleGroupInstance fetchByUuid_Last(java.lang.String uuid,
208                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
209                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
210            }
211    
212            /**
213            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where uuid = &#63;.
214            *
215            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
216            * @param uuid the uuid
217            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
218            * @return the previous, current, and next m d r rule group instance
219            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
220            */
221            public static MDRRuleGroupInstance[] findByUuid_PrevAndNext(
222                    long ruleGroupInstanceId, java.lang.String uuid,
223                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
224                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
225                    return getPersistence()
226                                       .findByUuid_PrevAndNext(ruleGroupInstanceId, uuid,
227                            orderByComparator);
228            }
229    
230            /**
231            * Removes all the m d r rule group instances where uuid = &#63; from the database.
232            *
233            * @param uuid the uuid
234            */
235            public static void removeByUuid(java.lang.String uuid) {
236                    getPersistence().removeByUuid(uuid);
237            }
238    
239            /**
240            * Returns the number of m d r rule group instances where uuid = &#63;.
241            *
242            * @param uuid the uuid
243            * @return the number of matching m d r rule group instances
244            */
245            public static int countByUuid(java.lang.String uuid) {
246                    return getPersistence().countByUuid(uuid);
247            }
248    
249            /**
250            * Returns the m d r rule group instance where uuid = &#63; and groupId = &#63; or throws a {@link NoSuchRuleGroupInstanceException} if it could not be found.
251            *
252            * @param uuid the uuid
253            * @param groupId the group ID
254            * @return the matching m d r rule group instance
255            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
256            */
257            public static MDRRuleGroupInstance findByUUID_G(java.lang.String uuid,
258                    long groupId)
259                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
260                    return getPersistence().findByUUID_G(uuid, groupId);
261            }
262    
263            /**
264            * Returns the m d r rule group instance where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
265            *
266            * @param uuid the uuid
267            * @param groupId the group ID
268            * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
269            */
270            public static MDRRuleGroupInstance fetchByUUID_G(java.lang.String uuid,
271                    long groupId) {
272                    return getPersistence().fetchByUUID_G(uuid, groupId);
273            }
274    
275            /**
276            * Returns the m d r rule group instance where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
277            *
278            * @param uuid the uuid
279            * @param groupId the group ID
280            * @param retrieveFromCache whether to use the finder cache
281            * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
282            */
283            public static MDRRuleGroupInstance fetchByUUID_G(java.lang.String uuid,
284                    long groupId, boolean retrieveFromCache) {
285                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
286            }
287    
288            /**
289            * Removes the m d r rule group instance where uuid = &#63; and groupId = &#63; from the database.
290            *
291            * @param uuid the uuid
292            * @param groupId the group ID
293            * @return the m d r rule group instance that was removed
294            */
295            public static MDRRuleGroupInstance removeByUUID_G(java.lang.String uuid,
296                    long groupId)
297                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
298                    return getPersistence().removeByUUID_G(uuid, groupId);
299            }
300    
301            /**
302            * Returns the number of m d r rule group instances where uuid = &#63; and groupId = &#63;.
303            *
304            * @param uuid the uuid
305            * @param groupId the group ID
306            * @return the number of matching m d r rule group instances
307            */
308            public static int countByUUID_G(java.lang.String uuid, long groupId) {
309                    return getPersistence().countByUUID_G(uuid, groupId);
310            }
311    
312            /**
313            * Returns all the m d r rule group instances where uuid = &#63; and companyId = &#63;.
314            *
315            * @param uuid the uuid
316            * @param companyId the company ID
317            * @return the matching m d r rule group instances
318            */
319            public static List<MDRRuleGroupInstance> findByUuid_C(
320                    java.lang.String uuid, long companyId) {
321                    return getPersistence().findByUuid_C(uuid, companyId);
322            }
323    
324            /**
325            * Returns a range of all the m d r rule group instances where uuid = &#63; and companyId = &#63;.
326            *
327            * <p>
328            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
329            * </p>
330            *
331            * @param uuid the uuid
332            * @param companyId the company ID
333            * @param start the lower bound of the range of m d r rule group instances
334            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
335            * @return the range of matching m d r rule group instances
336            */
337            public static List<MDRRuleGroupInstance> findByUuid_C(
338                    java.lang.String uuid, long companyId, int start, int end) {
339                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
340            }
341    
342            /**
343            * Returns an ordered range of all the m d r rule group instances where uuid = &#63; and companyId = &#63;.
344            *
345            * <p>
346            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
347            * </p>
348            *
349            * @param uuid the uuid
350            * @param companyId the company ID
351            * @param start the lower bound of the range of m d r rule group instances
352            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
353            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
354            * @return the ordered range of matching m d r rule group instances
355            */
356            public static List<MDRRuleGroupInstance> findByUuid_C(
357                    java.lang.String uuid, long companyId, int start, int end,
358                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
359                    return getPersistence()
360                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
361            }
362    
363            /**
364            * Returns the first m d r rule group instance in the ordered set where uuid = &#63; and companyId = &#63;.
365            *
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the first matching m d r rule group instance
370            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
371            */
372            public static MDRRuleGroupInstance findByUuid_C_First(
373                    java.lang.String uuid, long companyId,
374                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
375                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
376                    return getPersistence()
377                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
378            }
379    
380            /**
381            * Returns the first m d r rule group instance in the ordered set where uuid = &#63; and companyId = &#63;.
382            *
383            * @param uuid the uuid
384            * @param companyId the company ID
385            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
386            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
387            */
388            public static MDRRuleGroupInstance fetchByUuid_C_First(
389                    java.lang.String uuid, long companyId,
390                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
391                    return getPersistence()
392                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
393            }
394    
395            /**
396            * Returns the last m d r rule group instance in the ordered set where uuid = &#63; and companyId = &#63;.
397            *
398            * @param uuid the uuid
399            * @param companyId the company ID
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the last matching m d r rule group instance
402            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
403            */
404            public static MDRRuleGroupInstance findByUuid_C_Last(
405                    java.lang.String uuid, long companyId,
406                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
407                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
408                    return getPersistence()
409                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
410            }
411    
412            /**
413            * Returns the last m d r rule group instance in the ordered set where uuid = &#63; and companyId = &#63;.
414            *
415            * @param uuid the uuid
416            * @param companyId the company ID
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
419            */
420            public static MDRRuleGroupInstance fetchByUuid_C_Last(
421                    java.lang.String uuid, long companyId,
422                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
423                    return getPersistence()
424                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
425            }
426    
427            /**
428            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where uuid = &#63; and companyId = &#63;.
429            *
430            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
431            * @param uuid the uuid
432            * @param companyId the company ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the previous, current, and next m d r rule group instance
435            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
436            */
437            public static MDRRuleGroupInstance[] findByUuid_C_PrevAndNext(
438                    long ruleGroupInstanceId, java.lang.String uuid, long companyId,
439                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
440                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
441                    return getPersistence()
442                                       .findByUuid_C_PrevAndNext(ruleGroupInstanceId, uuid,
443                            companyId, orderByComparator);
444            }
445    
446            /**
447            * Removes all the m d r rule group instances where uuid = &#63; and companyId = &#63; from the database.
448            *
449            * @param uuid the uuid
450            * @param companyId the company ID
451            */
452            public static void removeByUuid_C(java.lang.String uuid, long companyId) {
453                    getPersistence().removeByUuid_C(uuid, companyId);
454            }
455    
456            /**
457            * Returns the number of m d r rule group instances where uuid = &#63; and companyId = &#63;.
458            *
459            * @param uuid the uuid
460            * @param companyId the company ID
461            * @return the number of matching m d r rule group instances
462            */
463            public static int countByUuid_C(java.lang.String uuid, long companyId) {
464                    return getPersistence().countByUuid_C(uuid, companyId);
465            }
466    
467            /**
468            * Returns all the m d r rule group instances where groupId = &#63;.
469            *
470            * @param groupId the group ID
471            * @return the matching m d r rule group instances
472            */
473            public static List<MDRRuleGroupInstance> findByGroupId(long groupId) {
474                    return getPersistence().findByGroupId(groupId);
475            }
476    
477            /**
478            * Returns a range of all the m d r rule group instances where groupId = &#63;.
479            *
480            * <p>
481            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
482            * </p>
483            *
484            * @param groupId the group ID
485            * @param start the lower bound of the range of m d r rule group instances
486            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
487            * @return the range of matching m d r rule group instances
488            */
489            public static List<MDRRuleGroupInstance> findByGroupId(long groupId,
490                    int start, int end) {
491                    return getPersistence().findByGroupId(groupId, start, end);
492            }
493    
494            /**
495            * Returns an ordered range of all the m d r rule group instances where groupId = &#63;.
496            *
497            * <p>
498            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
499            * </p>
500            *
501            * @param groupId the group ID
502            * @param start the lower bound of the range of m d r rule group instances
503            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
504            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
505            * @return the ordered range of matching m d r rule group instances
506            */
507            public static List<MDRRuleGroupInstance> findByGroupId(long groupId,
508                    int start, int end,
509                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
510                    return getPersistence()
511                                       .findByGroupId(groupId, start, end, orderByComparator);
512            }
513    
514            /**
515            * Returns the first m d r rule group instance in the ordered set where groupId = &#63;.
516            *
517            * @param groupId the group ID
518            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
519            * @return the first matching m d r rule group instance
520            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
521            */
522            public static MDRRuleGroupInstance findByGroupId_First(long groupId,
523                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
524                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
525                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
526            }
527    
528            /**
529            * Returns the first m d r rule group instance in the ordered set where groupId = &#63;.
530            *
531            * @param groupId the group ID
532            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
533            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
534            */
535            public static MDRRuleGroupInstance fetchByGroupId_First(long groupId,
536                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
537                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
538            }
539    
540            /**
541            * Returns the last m d r rule group instance in the ordered set where groupId = &#63;.
542            *
543            * @param groupId the group ID
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the last matching m d r rule group instance
546            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
547            */
548            public static MDRRuleGroupInstance findByGroupId_Last(long groupId,
549                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
550                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
551                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
552            }
553    
554            /**
555            * Returns the last m d r rule group instance in the ordered set where groupId = &#63;.
556            *
557            * @param groupId the group ID
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
560            */
561            public static MDRRuleGroupInstance fetchByGroupId_Last(long groupId,
562                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
563                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
564            }
565    
566            /**
567            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = &#63;.
568            *
569            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
570            * @param groupId the group ID
571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
572            * @return the previous, current, and next m d r rule group instance
573            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
574            */
575            public static MDRRuleGroupInstance[] findByGroupId_PrevAndNext(
576                    long ruleGroupInstanceId, long groupId,
577                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
578                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
579                    return getPersistence()
580                                       .findByGroupId_PrevAndNext(ruleGroupInstanceId, groupId,
581                            orderByComparator);
582            }
583    
584            /**
585            * Returns all the m d r rule group instances that the user has permission to view where groupId = &#63;.
586            *
587            * @param groupId the group ID
588            * @return the matching m d r rule group instances that the user has permission to view
589            */
590            public static List<MDRRuleGroupInstance> filterFindByGroupId(long groupId) {
591                    return getPersistence().filterFindByGroupId(groupId);
592            }
593    
594            /**
595            * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = &#63;.
596            *
597            * <p>
598            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
599            * </p>
600            *
601            * @param groupId the group ID
602            * @param start the lower bound of the range of m d r rule group instances
603            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
604            * @return the range of matching m d r rule group instances that the user has permission to view
605            */
606            public static List<MDRRuleGroupInstance> filterFindByGroupId(long groupId,
607                    int start, int end) {
608                    return getPersistence().filterFindByGroupId(groupId, start, end);
609            }
610    
611            /**
612            * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = &#63;.
613            *
614            * <p>
615            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
616            * </p>
617            *
618            * @param groupId the group ID
619            * @param start the lower bound of the range of m d r rule group instances
620            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
621            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
622            * @return the ordered range of matching m d r rule group instances that the user has permission to view
623            */
624            public static List<MDRRuleGroupInstance> filterFindByGroupId(long groupId,
625                    int start, int end,
626                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
627                    return getPersistence()
628                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
629            }
630    
631            /**
632            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = &#63;.
633            *
634            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
635            * @param groupId the group ID
636            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
637            * @return the previous, current, and next m d r rule group instance
638            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
639            */
640            public static MDRRuleGroupInstance[] filterFindByGroupId_PrevAndNext(
641                    long ruleGroupInstanceId, long groupId,
642                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
643                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
644                    return getPersistence()
645                                       .filterFindByGroupId_PrevAndNext(ruleGroupInstanceId,
646                            groupId, orderByComparator);
647            }
648    
649            /**
650            * Removes all the m d r rule group instances where groupId = &#63; from the database.
651            *
652            * @param groupId the group ID
653            */
654            public static void removeByGroupId(long groupId) {
655                    getPersistence().removeByGroupId(groupId);
656            }
657    
658            /**
659            * Returns the number of m d r rule group instances where groupId = &#63;.
660            *
661            * @param groupId the group ID
662            * @return the number of matching m d r rule group instances
663            */
664            public static int countByGroupId(long groupId) {
665                    return getPersistence().countByGroupId(groupId);
666            }
667    
668            /**
669            * Returns the number of m d r rule group instances that the user has permission to view where groupId = &#63;.
670            *
671            * @param groupId the group ID
672            * @return the number of matching m d r rule group instances that the user has permission to view
673            */
674            public static int filterCountByGroupId(long groupId) {
675                    return getPersistence().filterCountByGroupId(groupId);
676            }
677    
678            /**
679            * Returns all the m d r rule group instances where ruleGroupId = &#63;.
680            *
681            * @param ruleGroupId the rule group ID
682            * @return the matching m d r rule group instances
683            */
684            public static List<MDRRuleGroupInstance> findByRuleGroupId(long ruleGroupId) {
685                    return getPersistence().findByRuleGroupId(ruleGroupId);
686            }
687    
688            /**
689            * Returns a range of all the m d r rule group instances where ruleGroupId = &#63;.
690            *
691            * <p>
692            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
693            * </p>
694            *
695            * @param ruleGroupId the rule group ID
696            * @param start the lower bound of the range of m d r rule group instances
697            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
698            * @return the range of matching m d r rule group instances
699            */
700            public static List<MDRRuleGroupInstance> findByRuleGroupId(
701                    long ruleGroupId, int start, int end) {
702                    return getPersistence().findByRuleGroupId(ruleGroupId, start, end);
703            }
704    
705            /**
706            * Returns an ordered range of all the m d r rule group instances where ruleGroupId = &#63;.
707            *
708            * <p>
709            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
710            * </p>
711            *
712            * @param ruleGroupId the rule group ID
713            * @param start the lower bound of the range of m d r rule group instances
714            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
715            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
716            * @return the ordered range of matching m d r rule group instances
717            */
718            public static List<MDRRuleGroupInstance> findByRuleGroupId(
719                    long ruleGroupId, int start, int end,
720                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
721                    return getPersistence()
722                                       .findByRuleGroupId(ruleGroupId, start, end, orderByComparator);
723            }
724    
725            /**
726            * Returns the first m d r rule group instance in the ordered set where ruleGroupId = &#63;.
727            *
728            * @param ruleGroupId the rule group ID
729            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
730            * @return the first matching m d r rule group instance
731            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
732            */
733            public static MDRRuleGroupInstance findByRuleGroupId_First(
734                    long ruleGroupId,
735                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
736                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
737                    return getPersistence()
738                                       .findByRuleGroupId_First(ruleGroupId, orderByComparator);
739            }
740    
741            /**
742            * Returns the first m d r rule group instance in the ordered set where ruleGroupId = &#63;.
743            *
744            * @param ruleGroupId the rule group ID
745            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
746            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
747            */
748            public static MDRRuleGroupInstance fetchByRuleGroupId_First(
749                    long ruleGroupId,
750                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
751                    return getPersistence()
752                                       .fetchByRuleGroupId_First(ruleGroupId, orderByComparator);
753            }
754    
755            /**
756            * Returns the last m d r rule group instance in the ordered set where ruleGroupId = &#63;.
757            *
758            * @param ruleGroupId the rule group ID
759            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
760            * @return the last matching m d r rule group instance
761            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
762            */
763            public static MDRRuleGroupInstance findByRuleGroupId_Last(
764                    long ruleGroupId,
765                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
766                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
767                    return getPersistence()
768                                       .findByRuleGroupId_Last(ruleGroupId, orderByComparator);
769            }
770    
771            /**
772            * Returns the last m d r rule group instance in the ordered set where ruleGroupId = &#63;.
773            *
774            * @param ruleGroupId the rule group ID
775            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
776            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
777            */
778            public static MDRRuleGroupInstance fetchByRuleGroupId_Last(
779                    long ruleGroupId,
780                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
781                    return getPersistence()
782                                       .fetchByRuleGroupId_Last(ruleGroupId, orderByComparator);
783            }
784    
785            /**
786            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where ruleGroupId = &#63;.
787            *
788            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
789            * @param ruleGroupId the rule group ID
790            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
791            * @return the previous, current, and next m d r rule group instance
792            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
793            */
794            public static MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext(
795                    long ruleGroupInstanceId, long ruleGroupId,
796                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
797                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
798                    return getPersistence()
799                                       .findByRuleGroupId_PrevAndNext(ruleGroupInstanceId,
800                            ruleGroupId, orderByComparator);
801            }
802    
803            /**
804            * Removes all the m d r rule group instances where ruleGroupId = &#63; from the database.
805            *
806            * @param ruleGroupId the rule group ID
807            */
808            public static void removeByRuleGroupId(long ruleGroupId) {
809                    getPersistence().removeByRuleGroupId(ruleGroupId);
810            }
811    
812            /**
813            * Returns the number of m d r rule group instances where ruleGroupId = &#63;.
814            *
815            * @param ruleGroupId the rule group ID
816            * @return the number of matching m d r rule group instances
817            */
818            public static int countByRuleGroupId(long ruleGroupId) {
819                    return getPersistence().countByRuleGroupId(ruleGroupId);
820            }
821    
822            /**
823            * Returns all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
824            *
825            * @param classNameId the class name ID
826            * @param classPK the class p k
827            * @return the matching m d r rule group instances
828            */
829            public static List<MDRRuleGroupInstance> findByC_C(long classNameId,
830                    long classPK) {
831                    return getPersistence().findByC_C(classNameId, classPK);
832            }
833    
834            /**
835            * Returns a range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
836            *
837            * <p>
838            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
839            * </p>
840            *
841            * @param classNameId the class name ID
842            * @param classPK the class p k
843            * @param start the lower bound of the range of m d r rule group instances
844            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
845            * @return the range of matching m d r rule group instances
846            */
847            public static List<MDRRuleGroupInstance> findByC_C(long classNameId,
848                    long classPK, int start, int end) {
849                    return getPersistence().findByC_C(classNameId, classPK, start, end);
850            }
851    
852            /**
853            * Returns an ordered range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
854            *
855            * <p>
856            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
857            * </p>
858            *
859            * @param classNameId the class name ID
860            * @param classPK the class p k
861            * @param start the lower bound of the range of m d r rule group instances
862            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
863            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
864            * @return the ordered range of matching m d r rule group instances
865            */
866            public static List<MDRRuleGroupInstance> findByC_C(long classNameId,
867                    long classPK, int start, int end,
868                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
869                    return getPersistence()
870                                       .findByC_C(classNameId, classPK, start, end,
871                            orderByComparator);
872            }
873    
874            /**
875            * Returns the first m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
876            *
877            * @param classNameId the class name ID
878            * @param classPK the class p k
879            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
880            * @return the first matching m d r rule group instance
881            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
882            */
883            public static MDRRuleGroupInstance findByC_C_First(long classNameId,
884                    long classPK, OrderByComparator<MDRRuleGroupInstance> orderByComparator)
885                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
886                    return getPersistence()
887                                       .findByC_C_First(classNameId, classPK, orderByComparator);
888            }
889    
890            /**
891            * Returns the first m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
892            *
893            * @param classNameId the class name ID
894            * @param classPK the class p k
895            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
896            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
897            */
898            public static MDRRuleGroupInstance fetchByC_C_First(long classNameId,
899                    long classPK, OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
900                    return getPersistence()
901                                       .fetchByC_C_First(classNameId, classPK, orderByComparator);
902            }
903    
904            /**
905            * Returns the last m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
906            *
907            * @param classNameId the class name ID
908            * @param classPK the class p k
909            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
910            * @return the last matching m d r rule group instance
911            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
912            */
913            public static MDRRuleGroupInstance findByC_C_Last(long classNameId,
914                    long classPK, OrderByComparator<MDRRuleGroupInstance> orderByComparator)
915                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
916                    return getPersistence()
917                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
918            }
919    
920            /**
921            * Returns the last m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
922            *
923            * @param classNameId the class name ID
924            * @param classPK the class p k
925            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
926            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
927            */
928            public static MDRRuleGroupInstance fetchByC_C_Last(long classNameId,
929                    long classPK, OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
930                    return getPersistence()
931                                       .fetchByC_C_Last(classNameId, classPK, orderByComparator);
932            }
933    
934            /**
935            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
936            *
937            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
938            * @param classNameId the class name ID
939            * @param classPK the class p k
940            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
941            * @return the previous, current, and next m d r rule group instance
942            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
943            */
944            public static MDRRuleGroupInstance[] findByC_C_PrevAndNext(
945                    long ruleGroupInstanceId, long classNameId, long classPK,
946                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
947                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
948                    return getPersistence()
949                                       .findByC_C_PrevAndNext(ruleGroupInstanceId, classNameId,
950                            classPK, orderByComparator);
951            }
952    
953            /**
954            * Removes all the m d r rule group instances where classNameId = &#63; and classPK = &#63; from the database.
955            *
956            * @param classNameId the class name ID
957            * @param classPK the class p k
958            */
959            public static void removeByC_C(long classNameId, long classPK) {
960                    getPersistence().removeByC_C(classNameId, classPK);
961            }
962    
963            /**
964            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63;.
965            *
966            * @param classNameId the class name ID
967            * @param classPK the class p k
968            * @return the number of matching m d r rule group instances
969            */
970            public static int countByC_C(long classNameId, long classPK) {
971                    return getPersistence().countByC_C(classNameId, classPK);
972            }
973    
974            /**
975            * Returns all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
976            *
977            * @param groupId the group ID
978            * @param classNameId the class name ID
979            * @param classPK the class p k
980            * @return the matching m d r rule group instances
981            */
982            public static List<MDRRuleGroupInstance> findByG_C_C(long groupId,
983                    long classNameId, long classPK) {
984                    return getPersistence().findByG_C_C(groupId, classNameId, classPK);
985            }
986    
987            /**
988            * Returns a range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
989            *
990            * <p>
991            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
992            * </p>
993            *
994            * @param groupId the group ID
995            * @param classNameId the class name ID
996            * @param classPK the class p k
997            * @param start the lower bound of the range of m d r rule group instances
998            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
999            * @return the range of matching m d r rule group instances
1000            */
1001            public static List<MDRRuleGroupInstance> findByG_C_C(long groupId,
1002                    long classNameId, long classPK, int start, int end) {
1003                    return getPersistence()
1004                                       .findByG_C_C(groupId, classNameId, classPK, start, end);
1005            }
1006    
1007            /**
1008            * Returns an ordered range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1009            *
1010            * <p>
1011            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
1012            * </p>
1013            *
1014            * @param groupId the group ID
1015            * @param classNameId the class name ID
1016            * @param classPK the class p k
1017            * @param start the lower bound of the range of m d r rule group instances
1018            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
1019            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1020            * @return the ordered range of matching m d r rule group instances
1021            */
1022            public static List<MDRRuleGroupInstance> findByG_C_C(long groupId,
1023                    long classNameId, long classPK, int start, int end,
1024                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
1025                    return getPersistence()
1026                                       .findByG_C_C(groupId, classNameId, classPK, start, end,
1027                            orderByComparator);
1028            }
1029    
1030            /**
1031            * Returns the first m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1032            *
1033            * @param groupId the group ID
1034            * @param classNameId the class name ID
1035            * @param classPK the class p k
1036            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1037            * @return the first matching m d r rule group instance
1038            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
1039            */
1040            public static MDRRuleGroupInstance findByG_C_C_First(long groupId,
1041                    long classNameId, long classPK,
1042                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
1043                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1044                    return getPersistence()
1045                                       .findByG_C_C_First(groupId, classNameId, classPK,
1046                            orderByComparator);
1047            }
1048    
1049            /**
1050            * Returns the first m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1051            *
1052            * @param groupId the group ID
1053            * @param classNameId the class name ID
1054            * @param classPK the class p k
1055            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1056            * @return the first matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
1057            */
1058            public static MDRRuleGroupInstance fetchByG_C_C_First(long groupId,
1059                    long classNameId, long classPK,
1060                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
1061                    return getPersistence()
1062                                       .fetchByG_C_C_First(groupId, classNameId, classPK,
1063                            orderByComparator);
1064            }
1065    
1066            /**
1067            * Returns the last m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1068            *
1069            * @param groupId the group ID
1070            * @param classNameId the class name ID
1071            * @param classPK the class p k
1072            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1073            * @return the last matching m d r rule group instance
1074            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
1075            */
1076            public static MDRRuleGroupInstance findByG_C_C_Last(long groupId,
1077                    long classNameId, long classPK,
1078                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
1079                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1080                    return getPersistence()
1081                                       .findByG_C_C_Last(groupId, classNameId, classPK,
1082                            orderByComparator);
1083            }
1084    
1085            /**
1086            * Returns the last m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1087            *
1088            * @param groupId the group ID
1089            * @param classNameId the class name ID
1090            * @param classPK the class p k
1091            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1092            * @return the last matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
1093            */
1094            public static MDRRuleGroupInstance fetchByG_C_C_Last(long groupId,
1095                    long classNameId, long classPK,
1096                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
1097                    return getPersistence()
1098                                       .fetchByG_C_C_Last(groupId, classNameId, classPK,
1099                            orderByComparator);
1100            }
1101    
1102            /**
1103            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1104            *
1105            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
1106            * @param groupId the group ID
1107            * @param classNameId the class name ID
1108            * @param classPK the class p k
1109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1110            * @return the previous, current, and next m d r rule group instance
1111            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
1112            */
1113            public static MDRRuleGroupInstance[] findByG_C_C_PrevAndNext(
1114                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
1115                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
1116                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1117                    return getPersistence()
1118                                       .findByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId,
1119                            classNameId, classPK, orderByComparator);
1120            }
1121    
1122            /**
1123            * Returns all the m d r rule group instances that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1124            *
1125            * @param groupId the group ID
1126            * @param classNameId the class name ID
1127            * @param classPK the class p k
1128            * @return the matching m d r rule group instances that the user has permission to view
1129            */
1130            public static List<MDRRuleGroupInstance> filterFindByG_C_C(long groupId,
1131                    long classNameId, long classPK) {
1132                    return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK);
1133            }
1134    
1135            /**
1136            * Returns a range of all the m d r rule group instances that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1137            *
1138            * <p>
1139            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
1140            * </p>
1141            *
1142            * @param groupId the group ID
1143            * @param classNameId the class name ID
1144            * @param classPK the class p k
1145            * @param start the lower bound of the range of m d r rule group instances
1146            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
1147            * @return the range of matching m d r rule group instances that the user has permission to view
1148            */
1149            public static List<MDRRuleGroupInstance> filterFindByG_C_C(long groupId,
1150                    long classNameId, long classPK, int start, int end) {
1151                    return getPersistence()
1152                                       .filterFindByG_C_C(groupId, classNameId, classPK, start, end);
1153            }
1154    
1155            /**
1156            * Returns an ordered range of all the m d r rule group instances that the user has permissions to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1157            *
1158            * <p>
1159            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
1160            * </p>
1161            *
1162            * @param groupId the group ID
1163            * @param classNameId the class name ID
1164            * @param classPK the class p k
1165            * @param start the lower bound of the range of m d r rule group instances
1166            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
1167            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1168            * @return the ordered range of matching m d r rule group instances that the user has permission to view
1169            */
1170            public static List<MDRRuleGroupInstance> filterFindByG_C_C(long groupId,
1171                    long classNameId, long classPK, int start, int end,
1172                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
1173                    return getPersistence()
1174                                       .filterFindByG_C_C(groupId, classNameId, classPK, start,
1175                            end, orderByComparator);
1176            }
1177    
1178            /**
1179            * Returns the m d r rule group instances before and after the current m d r rule group instance in the ordered set of m d r rule group instances that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1180            *
1181            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
1182            * @param groupId the group ID
1183            * @param classNameId the class name ID
1184            * @param classPK the class p k
1185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1186            * @return the previous, current, and next m d r rule group instance
1187            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
1188            */
1189            public static MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext(
1190                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
1191                    OrderByComparator<MDRRuleGroupInstance> orderByComparator)
1192                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1193                    return getPersistence()
1194                                       .filterFindByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId,
1195                            classNameId, classPK, orderByComparator);
1196            }
1197    
1198            /**
1199            * Removes all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1200            *
1201            * @param groupId the group ID
1202            * @param classNameId the class name ID
1203            * @param classPK the class p k
1204            */
1205            public static void removeByG_C_C(long groupId, long classNameId,
1206                    long classPK) {
1207                    getPersistence().removeByG_C_C(groupId, classNameId, classPK);
1208            }
1209    
1210            /**
1211            * Returns the number of m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1212            *
1213            * @param groupId the group ID
1214            * @param classNameId the class name ID
1215            * @param classPK the class p k
1216            * @return the number of matching m d r rule group instances
1217            */
1218            public static int countByG_C_C(long groupId, long classNameId, long classPK) {
1219                    return getPersistence().countByG_C_C(groupId, classNameId, classPK);
1220            }
1221    
1222            /**
1223            * Returns the number of m d r rule group instances that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1224            *
1225            * @param groupId the group ID
1226            * @param classNameId the class name ID
1227            * @param classPK the class p k
1228            * @return the number of matching m d r rule group instances that the user has permission to view
1229            */
1230            public static int filterCountByG_C_C(long groupId, long classNameId,
1231                    long classPK) {
1232                    return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK);
1233            }
1234    
1235            /**
1236            * Returns the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; or throws a {@link NoSuchRuleGroupInstanceException} if it could not be found.
1237            *
1238            * @param classNameId the class name ID
1239            * @param classPK the class p k
1240            * @param ruleGroupId the rule group ID
1241            * @return the matching m d r rule group instance
1242            * @throws NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
1243            */
1244            public static MDRRuleGroupInstance findByC_C_R(long classNameId,
1245                    long classPK, long ruleGroupId)
1246                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1247                    return getPersistence().findByC_C_R(classNameId, classPK, ruleGroupId);
1248            }
1249    
1250            /**
1251            * Returns the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1252            *
1253            * @param classNameId the class name ID
1254            * @param classPK the class p k
1255            * @param ruleGroupId the rule group ID
1256            * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
1257            */
1258            public static MDRRuleGroupInstance fetchByC_C_R(long classNameId,
1259                    long classPK, long ruleGroupId) {
1260                    return getPersistence().fetchByC_C_R(classNameId, classPK, ruleGroupId);
1261            }
1262    
1263            /**
1264            * Returns the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1265            *
1266            * @param classNameId the class name ID
1267            * @param classPK the class p k
1268            * @param ruleGroupId the rule group ID
1269            * @param retrieveFromCache whether to use the finder cache
1270            * @return the matching m d r rule group instance, or <code>null</code> if a matching m d r rule group instance could not be found
1271            */
1272            public static MDRRuleGroupInstance fetchByC_C_R(long classNameId,
1273                    long classPK, long ruleGroupId, boolean retrieveFromCache) {
1274                    return getPersistence()
1275                                       .fetchByC_C_R(classNameId, classPK, ruleGroupId,
1276                            retrieveFromCache);
1277            }
1278    
1279            /**
1280            * Removes the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; from the database.
1281            *
1282            * @param classNameId the class name ID
1283            * @param classPK the class p k
1284            * @param ruleGroupId the rule group ID
1285            * @return the m d r rule group instance that was removed
1286            */
1287            public static MDRRuleGroupInstance removeByC_C_R(long classNameId,
1288                    long classPK, long ruleGroupId)
1289                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1290                    return getPersistence().removeByC_C_R(classNameId, classPK, ruleGroupId);
1291            }
1292    
1293            /**
1294            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63;.
1295            *
1296            * @param classNameId the class name ID
1297            * @param classPK the class p k
1298            * @param ruleGroupId the rule group ID
1299            * @return the number of matching m d r rule group instances
1300            */
1301            public static int countByC_C_R(long classNameId, long classPK,
1302                    long ruleGroupId) {
1303                    return getPersistence().countByC_C_R(classNameId, classPK, ruleGroupId);
1304            }
1305    
1306            /**
1307            * Caches the m d r rule group instance in the entity cache if it is enabled.
1308            *
1309            * @param mdrRuleGroupInstance the m d r rule group instance
1310            */
1311            public static void cacheResult(MDRRuleGroupInstance mdrRuleGroupInstance) {
1312                    getPersistence().cacheResult(mdrRuleGroupInstance);
1313            }
1314    
1315            /**
1316            * Caches the m d r rule group instances in the entity cache if it is enabled.
1317            *
1318            * @param mdrRuleGroupInstances the m d r rule group instances
1319            */
1320            public static void cacheResult(
1321                    List<MDRRuleGroupInstance> mdrRuleGroupInstances) {
1322                    getPersistence().cacheResult(mdrRuleGroupInstances);
1323            }
1324    
1325            /**
1326            * Creates a new m d r rule group instance with the primary key. Does not add the m d r rule group instance to the database.
1327            *
1328            * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
1329            * @return the new m d r rule group instance
1330            */
1331            public static MDRRuleGroupInstance create(long ruleGroupInstanceId) {
1332                    return getPersistence().create(ruleGroupInstanceId);
1333            }
1334    
1335            /**
1336            * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
1337            *
1338            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
1339            * @return the m d r rule group instance that was removed
1340            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
1341            */
1342            public static MDRRuleGroupInstance remove(long ruleGroupInstanceId)
1343                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1344                    return getPersistence().remove(ruleGroupInstanceId);
1345            }
1346    
1347            public static MDRRuleGroupInstance updateImpl(
1348                    MDRRuleGroupInstance mdrRuleGroupInstance) {
1349                    return getPersistence().updateImpl(mdrRuleGroupInstance);
1350            }
1351    
1352            /**
1353            * Returns the m d r rule group instance with the primary key or throws a {@link NoSuchRuleGroupInstanceException} if it could not be found.
1354            *
1355            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
1356            * @return the m d r rule group instance
1357            * @throws NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
1358            */
1359            public static MDRRuleGroupInstance findByPrimaryKey(
1360                    long ruleGroupInstanceId)
1361                    throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1362                    return getPersistence().findByPrimaryKey(ruleGroupInstanceId);
1363            }
1364    
1365            /**
1366            * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found.
1367            *
1368            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
1369            * @return the m d r rule group instance, or <code>null</code> if a m d r rule group instance with the primary key could not be found
1370            */
1371            public static MDRRuleGroupInstance fetchByPrimaryKey(
1372                    long ruleGroupInstanceId) {
1373                    return getPersistence().fetchByPrimaryKey(ruleGroupInstanceId);
1374            }
1375    
1376            public static java.util.Map<java.io.Serializable, MDRRuleGroupInstance> fetchByPrimaryKeys(
1377                    java.util.Set<java.io.Serializable> primaryKeys) {
1378                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
1379            }
1380    
1381            /**
1382            * Returns all the m d r rule group instances.
1383            *
1384            * @return the m d r rule group instances
1385            */
1386            public static List<MDRRuleGroupInstance> findAll() {
1387                    return getPersistence().findAll();
1388            }
1389    
1390            /**
1391            * Returns a range of all the m d r rule group instances.
1392            *
1393            * <p>
1394            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
1395            * </p>
1396            *
1397            * @param start the lower bound of the range of m d r rule group instances
1398            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
1399            * @return the range of m d r rule group instances
1400            */
1401            public static List<MDRRuleGroupInstance> findAll(int start, int end) {
1402                    return getPersistence().findAll(start, end);
1403            }
1404    
1405            /**
1406            * Returns an ordered range of all the m d r rule group instances.
1407            *
1408            * <p>
1409            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link MDRRuleGroupInstanceModelImpl}. 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.
1410            * </p>
1411            *
1412            * @param start the lower bound of the range of m d r rule group instances
1413            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
1414            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1415            * @return the ordered range of m d r rule group instances
1416            */
1417            public static List<MDRRuleGroupInstance> findAll(int start, int end,
1418                    OrderByComparator<MDRRuleGroupInstance> orderByComparator) {
1419                    return getPersistence().findAll(start, end, orderByComparator);
1420            }
1421    
1422            /**
1423            * Removes all the m d r rule group instances from the database.
1424            */
1425            public static void removeAll() {
1426                    getPersistence().removeAll();
1427            }
1428    
1429            /**
1430            * Returns the number of m d r rule group instances.
1431            *
1432            * @return the number of m d r rule group instances
1433            */
1434            public static int countAll() {
1435                    return getPersistence().countAll();
1436            }
1437    
1438            public static MDRRuleGroupInstancePersistence getPersistence() {
1439                    if (_persistence == null) {
1440                            _persistence = (MDRRuleGroupInstancePersistence)PortalBeanLocatorUtil.locate(MDRRuleGroupInstancePersistence.class.getName());
1441    
1442                            ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class,
1443                                    "_persistence");
1444                    }
1445    
1446                    return _persistence;
1447            }
1448    
1449            /**
1450             * @deprecated As of 6.2.0
1451             */
1452            @Deprecated
1453            public void setPersistence(MDRRuleGroupInstancePersistence persistence) {
1454            }
1455    
1456            private static MDRRuleGroupInstancePersistence _persistence;
1457    }