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