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