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