001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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#remove(com.liferay.portal.model.BaseModel)
099             */
100            public static MDRRuleGroupInstance remove(
101                    MDRRuleGroupInstance mdrRuleGroupInstance) throws SystemException {
102                    return getPersistence().remove(mdrRuleGroupInstance);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
107             */
108            public static MDRRuleGroupInstance update(
109                    MDRRuleGroupInstance mdrRuleGroupInstance, boolean merge)
110                    throws SystemException {
111                    return getPersistence().update(mdrRuleGroupInstance, merge);
112            }
113    
114            /**
115             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
116             */
117            public static MDRRuleGroupInstance update(
118                    MDRRuleGroupInstance mdrRuleGroupInstance, boolean merge,
119                    ServiceContext serviceContext) throws SystemException {
120                    return getPersistence()
121                                       .update(mdrRuleGroupInstance, merge, serviceContext);
122            }
123    
124            /**
125            * Caches the m d r rule group instance in the entity cache if it is enabled.
126            *
127            * @param mdrRuleGroupInstance the m d r rule group instance
128            */
129            public static void cacheResult(
130                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance) {
131                    getPersistence().cacheResult(mdrRuleGroupInstance);
132            }
133    
134            /**
135            * Caches the m d r rule group instances in the entity cache if it is enabled.
136            *
137            * @param mdrRuleGroupInstances the m d r rule group instances
138            */
139            public static void cacheResult(
140                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> mdrRuleGroupInstances) {
141                    getPersistence().cacheResult(mdrRuleGroupInstances);
142            }
143    
144            /**
145            * 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.
146            *
147            * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
148            * @return the new m d r rule group instance
149            */
150            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance create(
151                    long ruleGroupInstanceId) {
152                    return getPersistence().create(ruleGroupInstanceId);
153            }
154    
155            /**
156            * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
157            *
158            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
159            * @return the m d r rule group instance that was removed
160            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance remove(
164                    long ruleGroupInstanceId)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
167                    return getPersistence().remove(ruleGroupInstanceId);
168            }
169    
170            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateImpl(
171                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance,
172                    boolean merge)
173                    throws com.liferay.portal.kernel.exception.SystemException {
174                    return getPersistence().updateImpl(mdrRuleGroupInstance, merge);
175            }
176    
177            /**
178            * 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.
179            *
180            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
181            * @return the m d r rule group instance
182            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByPrimaryKey(
186                    long ruleGroupInstanceId)
187                    throws com.liferay.portal.kernel.exception.SystemException,
188                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
189                    return getPersistence().findByPrimaryKey(ruleGroupInstanceId);
190            }
191    
192            /**
193            * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found.
194            *
195            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
196            * @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
197            * @throws SystemException if a system exception occurred
198            */
199            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByPrimaryKey(
200                    long ruleGroupInstanceId)
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return getPersistence().fetchByPrimaryKey(ruleGroupInstanceId);
203            }
204    
205            /**
206            * Returns all the m d r rule group instances where uuid = &#63;.
207            *
208            * @param uuid the uuid
209            * @return the matching m d r rule group instances
210            * @throws SystemException if a system exception occurred
211            */
212            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
213                    java.lang.String uuid)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return getPersistence().findByUuid(uuid);
216            }
217    
218            /**
219            * Returns a range of all the m d r rule group instances where uuid = &#63;.
220            *
221            * <p>
222            * 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.
223            * </p>
224            *
225            * @param uuid the uuid
226            * @param start the lower bound of the range of m d r rule group instances
227            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
228            * @return the range of matching m d r rule group instances
229            * @throws SystemException if a system exception occurred
230            */
231            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
232                    java.lang.String uuid, int start, int end)
233                    throws com.liferay.portal.kernel.exception.SystemException {
234                    return getPersistence().findByUuid(uuid, start, end);
235            }
236    
237            /**
238            * Returns an ordered range of all the m d r rule group instances where uuid = &#63;.
239            *
240            * <p>
241            * 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.
242            * </p>
243            *
244            * @param uuid the uuid
245            * @param start the lower bound of the range of m d r rule group instances
246            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
247            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
248            * @return the ordered range of matching m d r rule group instances
249            * @throws SystemException if a system exception occurred
250            */
251            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
252                    java.lang.String uuid, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
256            }
257    
258            /**
259            * Returns the first m d r rule group instance in the ordered set where uuid = &#63;.
260            *
261            * <p>
262            * 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.
263            * </p>
264            *
265            * @param uuid the uuid
266            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
267            * @return the first matching m d r rule group instance
268            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_First(
272                    java.lang.String uuid,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException,
275                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
276                    return getPersistence().findByUuid_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            * <p>
283            * 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.
284            * </p>
285            *
286            * @param uuid the uuid
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
288            * @return the last matching m d r rule group instance
289            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_Last(
293                    java.lang.String uuid,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
297                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
298            }
299    
300            /**
301            * 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;.
302            *
303            * <p>
304            * 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.
305            * </p>
306            *
307            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
308            * @param uuid the uuid
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the previous, current, and next m d r rule group instance
311            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_PrevAndNext(
315                    long ruleGroupInstanceId, java.lang.String uuid,
316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
317                    throws com.liferay.portal.kernel.exception.SystemException,
318                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
319                    return getPersistence()
320                                       .findByUuid_PrevAndNext(ruleGroupInstanceId, uuid,
321                            orderByComparator);
322            }
323    
324            /**
325            * 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.
326            *
327            * @param uuid the uuid
328            * @param groupId the group ID
329            * @return the matching m d r rule group instance
330            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
331            * @throws SystemException if a system exception occurred
332            */
333            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUUID_G(
334                    java.lang.String uuid, long groupId)
335                    throws com.liferay.portal.kernel.exception.SystemException,
336                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
337                    return getPersistence().findByUUID_G(uuid, groupId);
338            }
339    
340            /**
341            * 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.
342            *
343            * @param uuid the uuid
344            * @param groupId the group ID
345            * @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
346            * @throws SystemException if a system exception occurred
347            */
348            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G(
349                    java.lang.String uuid, long groupId)
350                    throws com.liferay.portal.kernel.exception.SystemException {
351                    return getPersistence().fetchByUUID_G(uuid, groupId);
352            }
353    
354            /**
355            * 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.
356            *
357            * @param uuid the uuid
358            * @param groupId the group ID
359            * @param retrieveFromCache whether to use the finder cache
360            * @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
361            * @throws SystemException if a system exception occurred
362            */
363            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G(
364                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
365                    throws com.liferay.portal.kernel.exception.SystemException {
366                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
367            }
368    
369            /**
370            * Returns all the m d r rule group instances where ruleGroupId = &#63;.
371            *
372            * @param ruleGroupId the rule group ID
373            * @return the matching m d r rule group instances
374            * @throws SystemException if a system exception occurred
375            */
376            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
377                    long ruleGroupId)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence().findByRuleGroupId(ruleGroupId);
380            }
381    
382            /**
383            * Returns a range of all the m d r rule group instances where ruleGroupId = &#63;.
384            *
385            * <p>
386            * 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.
387            * </p>
388            *
389            * @param ruleGroupId the rule group ID
390            * @param start the lower bound of the range of m d r rule group instances
391            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
392            * @return the range of matching m d r rule group instances
393            * @throws SystemException if a system exception occurred
394            */
395            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
396                    long ruleGroupId, int start, int end)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence().findByRuleGroupId(ruleGroupId, start, end);
399            }
400    
401            /**
402            * Returns an ordered range of all the m d r rule group instances where ruleGroupId = &#63;.
403            *
404            * <p>
405            * 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.
406            * </p>
407            *
408            * @param ruleGroupId the rule group ID
409            * @param start the lower bound of the range of m d r rule group instances
410            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
411            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
412            * @return the ordered range of matching m d r rule group instances
413            * @throws SystemException if a system exception occurred
414            */
415            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
416                    long ruleGroupId, int start, int end,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return getPersistence()
420                                       .findByRuleGroupId(ruleGroupId, start, end, orderByComparator);
421            }
422    
423            /**
424            * Returns the first m d r rule group instance in the ordered set where ruleGroupId = &#63;.
425            *
426            * <p>
427            * 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.
428            * </p>
429            *
430            * @param ruleGroupId the rule group ID
431            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
432            * @return the first matching m d r rule group instance
433            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_First(
437                    long ruleGroupId,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.kernel.exception.SystemException,
440                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
441                    return getPersistence()
442                                       .findByRuleGroupId_First(ruleGroupId, orderByComparator);
443            }
444    
445            /**
446            * Returns the last m d r rule group instance in the ordered set where ruleGroupId = &#63;.
447            *
448            * <p>
449            * 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.
450            * </p>
451            *
452            * @param ruleGroupId the rule group ID
453            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
454            * @return the last matching m d r rule group instance
455            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_Last(
459                    long ruleGroupId,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException,
462                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
463                    return getPersistence()
464                                       .findByRuleGroupId_Last(ruleGroupId, orderByComparator);
465            }
466    
467            /**
468            * 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;.
469            *
470            * <p>
471            * 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.
472            * </p>
473            *
474            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
475            * @param ruleGroupId the rule group ID
476            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
477            * @return the previous, current, and next m d r rule group instance
478            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
479            * @throws SystemException if a system exception occurred
480            */
481            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext(
482                    long ruleGroupInstanceId, long ruleGroupId,
483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
484                    throws com.liferay.portal.kernel.exception.SystemException,
485                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
486                    return getPersistence()
487                                       .findByRuleGroupId_PrevAndNext(ruleGroupInstanceId,
488                            ruleGroupId, orderByComparator);
489            }
490    
491            /**
492            * Returns all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
493            *
494            * @param classNameId the class name ID
495            * @param classPK the class p k
496            * @return the matching m d r rule group instances
497            * @throws SystemException if a system exception occurred
498            */
499            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
500                    long classNameId, long classPK)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getPersistence().findByC_C(classNameId, classPK);
503            }
504    
505            /**
506            * Returns a range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param classNameId the class name ID
513            * @param classPK the class p k
514            * @param start the lower bound of the range of m d r rule group instances
515            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
516            * @return the range of matching m d r rule group instances
517            * @throws SystemException if a system exception occurred
518            */
519            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
520                    long classNameId, long classPK, int start, int end)
521                    throws com.liferay.portal.kernel.exception.SystemException {
522                    return getPersistence().findByC_C(classNameId, classPK, start, end);
523            }
524    
525            /**
526            * Returns an ordered range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
527            *
528            * <p>
529            * 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.
530            * </p>
531            *
532            * @param classNameId the class name ID
533            * @param classPK the class p k
534            * @param start the lower bound of the range of m d r rule group instances
535            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
536            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
537            * @return the ordered range of matching m d r rule group instances
538            * @throws SystemException if a system exception occurred
539            */
540            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
541                    long classNameId, long classPK, int start, int end,
542                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
543                    throws com.liferay.portal.kernel.exception.SystemException {
544                    return getPersistence()
545                                       .findByC_C(classNameId, classPK, start, end,
546                            orderByComparator);
547            }
548    
549            /**
550            * Returns the first m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
551            *
552            * <p>
553            * 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.
554            * </p>
555            *
556            * @param classNameId the class name ID
557            * @param classPK the class p k
558            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
559            * @return the first matching m d r rule group instance
560            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_First(
564                    long classNameId, long classPK,
565                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
566                    throws com.liferay.portal.kernel.exception.SystemException,
567                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
568                    return getPersistence()
569                                       .findByC_C_First(classNameId, classPK, orderByComparator);
570            }
571    
572            /**
573            * Returns the last m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
574            *
575            * <p>
576            * 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.
577            * </p>
578            *
579            * @param classNameId the class name ID
580            * @param classPK the class p k
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the last matching m d r rule group instance
583            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_Last(
587                    long classNameId, long classPK,
588                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
591                    return getPersistence()
592                                       .findByC_C_Last(classNameId, classPK, orderByComparator);
593            }
594    
595            /**
596            * 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;.
597            *
598            * <p>
599            * 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.
600            * </p>
601            *
602            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
603            * @param classNameId the class name ID
604            * @param classPK the class p k
605            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
606            * @return the previous, current, and next m d r rule group instance
607            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
608            * @throws SystemException if a system exception occurred
609            */
610            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByC_C_PrevAndNext(
611                    long ruleGroupInstanceId, long classNameId, long classPK,
612                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
613                    throws com.liferay.portal.kernel.exception.SystemException,
614                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
615                    return getPersistence()
616                                       .findByC_C_PrevAndNext(ruleGroupInstanceId, classNameId,
617                            classPK, orderByComparator);
618            }
619    
620            /**
621            * Returns all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
622            *
623            * @param groupId the group ID
624            * @param classNameId the class name ID
625            * @param classPK the class p k
626            * @return the matching m d r rule group instances
627            * @throws SystemException if a system exception occurred
628            */
629            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
630                    long groupId, long classNameId, long classPK)
631                    throws com.liferay.portal.kernel.exception.SystemException {
632                    return getPersistence().findByG_C_C(groupId, classNameId, classPK);
633            }
634    
635            /**
636            * Returns a range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
637            *
638            * <p>
639            * 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.
640            * </p>
641            *
642            * @param groupId the group ID
643            * @param classNameId the class name ID
644            * @param classPK the class p k
645            * @param start the lower bound of the range of m d r rule group instances
646            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
647            * @return the range of matching m d r rule group instances
648            * @throws SystemException if a system exception occurred
649            */
650            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
651                    long groupId, long classNameId, long classPK, int start, int end)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence()
654                                       .findByG_C_C(groupId, classNameId, classPK, start, end);
655            }
656    
657            /**
658            * Returns an ordered range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
659            *
660            * <p>
661            * 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.
662            * </p>
663            *
664            * @param groupId the group ID
665            * @param classNameId the class name ID
666            * @param classPK the class p k
667            * @param start the lower bound of the range of m d r rule group instances
668            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
669            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
670            * @return the ordered range of matching m d r rule group instances
671            * @throws SystemException if a system exception occurred
672            */
673            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
674                    long groupId, long classNameId, long classPK, int start, int end,
675                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
676                    throws com.liferay.portal.kernel.exception.SystemException {
677                    return getPersistence()
678                                       .findByG_C_C(groupId, classNameId, classPK, start, end,
679                            orderByComparator);
680            }
681    
682            /**
683            * Returns the first m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
684            *
685            * <p>
686            * 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.
687            * </p>
688            *
689            * @param groupId the group ID
690            * @param classNameId the class name ID
691            * @param classPK the class p k
692            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
693            * @return the first matching m d r rule group instance
694            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
695            * @throws SystemException if a system exception occurred
696            */
697            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_First(
698                    long groupId, long classNameId, long classPK,
699                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
700                    throws com.liferay.portal.kernel.exception.SystemException,
701                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
702                    return getPersistence()
703                                       .findByG_C_C_First(groupId, classNameId, classPK,
704                            orderByComparator);
705            }
706    
707            /**
708            * Returns the last m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
709            *
710            * <p>
711            * 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.
712            * </p>
713            *
714            * @param groupId the group ID
715            * @param classNameId the class name ID
716            * @param classPK the class p k
717            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
718            * @return the last matching m d r rule group instance
719            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
720            * @throws SystemException if a system exception occurred
721            */
722            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_Last(
723                    long groupId, long classNameId, long classPK,
724                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
725                    throws com.liferay.portal.kernel.exception.SystemException,
726                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
727                    return getPersistence()
728                                       .findByG_C_C_Last(groupId, classNameId, classPK,
729                            orderByComparator);
730            }
731    
732            /**
733            * 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;.
734            *
735            * <p>
736            * 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.
737            * </p>
738            *
739            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
740            * @param groupId the group ID
741            * @param classNameId the class name ID
742            * @param classPK the class p k
743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
744            * @return the previous, current, and next m d r rule group instance
745            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByG_C_C_PrevAndNext(
749                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
753                    return getPersistence()
754                                       .findByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId,
755                            classNameId, classPK, orderByComparator);
756            }
757    
758            /**
759            * 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;.
760            *
761            * @param groupId the group ID
762            * @param classNameId the class name ID
763            * @param classPK the class p k
764            * @return the matching m d r rule group instances that the user has permission to view
765            * @throws SystemException if a system exception occurred
766            */
767            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
768                    long groupId, long classNameId, long classPK)
769                    throws com.liferay.portal.kernel.exception.SystemException {
770                    return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK);
771            }
772    
773            /**
774            * 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;.
775            *
776            * <p>
777            * 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.
778            * </p>
779            *
780            * @param groupId the group ID
781            * @param classNameId the class name ID
782            * @param classPK the class p k
783            * @param start the lower bound of the range of m d r rule group instances
784            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
785            * @return the range of matching m d r rule group instances that the user has permission to view
786            * @throws SystemException if a system exception occurred
787            */
788            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
789                    long groupId, long classNameId, long classPK, int start, int end)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return getPersistence()
792                                       .filterFindByG_C_C(groupId, classNameId, classPK, start, end);
793            }
794    
795            /**
796            * 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;.
797            *
798            * <p>
799            * 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.
800            * </p>
801            *
802            * @param groupId the group ID
803            * @param classNameId the class name ID
804            * @param classPK the class p k
805            * @param start the lower bound of the range of m d r rule group instances
806            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
807            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
808            * @return the ordered range of matching m d r rule group instances that the user has permission to view
809            * @throws SystemException if a system exception occurred
810            */
811            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
812                    long groupId, long classNameId, long classPK, int start, int end,
813                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
814                    throws com.liferay.portal.kernel.exception.SystemException {
815                    return getPersistence()
816                                       .filterFindByG_C_C(groupId, classNameId, classPK, start,
817                            end, orderByComparator);
818            }
819    
820            /**
821            * 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;.
822            *
823            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
824            * @param groupId the group ID
825            * @param classNameId the class name ID
826            * @param classPK the class p k
827            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
828            * @return the previous, current, and next m d r rule group instance
829            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
830            * @throws SystemException if a system exception occurred
831            */
832            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext(
833                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
834                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
835                    throws com.liferay.portal.kernel.exception.SystemException,
836                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
837                    return getPersistence()
838                                       .filterFindByG_C_C_PrevAndNext(ruleGroupInstanceId, groupId,
839                            classNameId, classPK, orderByComparator);
840            }
841    
842            /**
843            * 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.
844            *
845            * @param classNameId the class name ID
846            * @param classPK the class p k
847            * @param ruleGroupId the rule group ID
848            * @return the matching m d r rule group instance
849            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException 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 findByC_C_R(
853                    long classNameId, long classPK, long ruleGroupId)
854                    throws com.liferay.portal.kernel.exception.SystemException,
855                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
856                    return getPersistence().findByC_C_R(classNameId, classPK, ruleGroupId);
857            }
858    
859            /**
860            * 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.
861            *
862            * @param classNameId the class name ID
863            * @param classPK the class p k
864            * @param ruleGroupId the rule group ID
865            * @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
866            * @throws SystemException if a system exception occurred
867            */
868            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R(
869                    long classNameId, long classPK, long ruleGroupId)
870                    throws com.liferay.portal.kernel.exception.SystemException {
871                    return getPersistence().fetchByC_C_R(classNameId, classPK, ruleGroupId);
872            }
873    
874            /**
875            * 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.
876            *
877            * @param classNameId the class name ID
878            * @param classPK the class p k
879            * @param ruleGroupId the rule group ID
880            * @param retrieveFromCache whether to use the finder cache
881            * @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
882            * @throws SystemException if a system exception occurred
883            */
884            public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R(
885                    long classNameId, long classPK, long ruleGroupId,
886                    boolean retrieveFromCache)
887                    throws com.liferay.portal.kernel.exception.SystemException {
888                    return getPersistence()
889                                       .fetchByC_C_R(classNameId, classPK, ruleGroupId,
890                            retrieveFromCache);
891            }
892    
893            /**
894            * Returns all the m d r rule group instances.
895            *
896            * @return the m d r rule group instances
897            * @throws SystemException if a system exception occurred
898            */
899            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll()
900                    throws com.liferay.portal.kernel.exception.SystemException {
901                    return getPersistence().findAll();
902            }
903    
904            /**
905            * Returns a range of all the m d r rule group instances.
906            *
907            * <p>
908            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
909            * </p>
910            *
911            * @param start the lower bound of the range of m d r rule group instances
912            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
913            * @return the range of m d r rule group instances
914            * @throws SystemException if a system exception occurred
915            */
916            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll(
917                    int start, int end)
918                    throws com.liferay.portal.kernel.exception.SystemException {
919                    return getPersistence().findAll(start, end);
920            }
921    
922            /**
923            * Returns an ordered range of all the m d r rule group instances.
924            *
925            * <p>
926            * 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.
927            * </p>
928            *
929            * @param start the lower bound of the range of m d r rule group instances
930            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
931            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
932            * @return the ordered range of m d r rule group instances
933            * @throws SystemException if a system exception occurred
934            */
935            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll(
936                    int start, int end,
937                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
938                    throws com.liferay.portal.kernel.exception.SystemException {
939                    return getPersistence().findAll(start, end, orderByComparator);
940            }
941    
942            /**
943            * Removes all the m d r rule group instances where uuid = &#63; from the database.
944            *
945            * @param uuid the uuid
946            * @throws SystemException if a system exception occurred
947            */
948            public static void removeByUuid(java.lang.String uuid)
949                    throws com.liferay.portal.kernel.exception.SystemException {
950                    getPersistence().removeByUuid(uuid);
951            }
952    
953            /**
954            * Removes the m d r rule group instance where uuid = &#63; and groupId = &#63; from the database.
955            *
956            * @param uuid the uuid
957            * @param groupId the group ID
958            * @throws SystemException if a system exception occurred
959            */
960            public static void removeByUUID_G(java.lang.String uuid, long groupId)
961                    throws com.liferay.portal.kernel.exception.SystemException,
962                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
963                    getPersistence().removeByUUID_G(uuid, groupId);
964            }
965    
966            /**
967            * Removes all the m d r rule group instances where ruleGroupId = &#63; from the database.
968            *
969            * @param ruleGroupId the rule group ID
970            * @throws SystemException if a system exception occurred
971            */
972            public static void removeByRuleGroupId(long ruleGroupId)
973                    throws com.liferay.portal.kernel.exception.SystemException {
974                    getPersistence().removeByRuleGroupId(ruleGroupId);
975            }
976    
977            /**
978            * Removes all the m d r rule group instances where classNameId = &#63; and classPK = &#63; from the database.
979            *
980            * @param classNameId the class name ID
981            * @param classPK the class p k
982            * @throws SystemException if a system exception occurred
983            */
984            public static void removeByC_C(long classNameId, long classPK)
985                    throws com.liferay.portal.kernel.exception.SystemException {
986                    getPersistence().removeByC_C(classNameId, classPK);
987            }
988    
989            /**
990            * Removes all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
991            *
992            * @param groupId the group ID
993            * @param classNameId the class name ID
994            * @param classPK the class p k
995            * @throws SystemException if a system exception occurred
996            */
997            public static void removeByG_C_C(long groupId, long classNameId,
998                    long classPK)
999                    throws com.liferay.portal.kernel.exception.SystemException {
1000                    getPersistence().removeByG_C_C(groupId, classNameId, classPK);
1001            }
1002    
1003            /**
1004            * Removes the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; from the database.
1005            *
1006            * @param classNameId the class name ID
1007            * @param classPK the class p k
1008            * @param ruleGroupId the rule group ID
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public static void removeByC_C_R(long classNameId, long classPK,
1012                    long ruleGroupId)
1013                    throws com.liferay.portal.kernel.exception.SystemException,
1014                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
1015                    getPersistence().removeByC_C_R(classNameId, classPK, ruleGroupId);
1016            }
1017    
1018            /**
1019            * Removes all the m d r rule group instances from the database.
1020            *
1021            * @throws SystemException if a system exception occurred
1022            */
1023            public static void removeAll()
1024                    throws com.liferay.portal.kernel.exception.SystemException {
1025                    getPersistence().removeAll();
1026            }
1027    
1028            /**
1029            * Returns the number of m d r rule group instances where uuid = &#63;.
1030            *
1031            * @param uuid the uuid
1032            * @return the number of matching m d r rule group instances
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public static int countByUuid(java.lang.String uuid)
1036                    throws com.liferay.portal.kernel.exception.SystemException {
1037                    return getPersistence().countByUuid(uuid);
1038            }
1039    
1040            /**
1041            * Returns the number of m d r rule group instances where uuid = &#63; and groupId = &#63;.
1042            *
1043            * @param uuid the uuid
1044            * @param groupId the group ID
1045            * @return the number of matching m d r rule group instances
1046            * @throws SystemException if a system exception occurred
1047            */
1048            public static int countByUUID_G(java.lang.String uuid, long groupId)
1049                    throws com.liferay.portal.kernel.exception.SystemException {
1050                    return getPersistence().countByUUID_G(uuid, groupId);
1051            }
1052    
1053            /**
1054            * Returns the number of m d r rule group instances where ruleGroupId = &#63;.
1055            *
1056            * @param ruleGroupId the rule group ID
1057            * @return the number of matching m d r rule group instances
1058            * @throws SystemException if a system exception occurred
1059            */
1060            public static int countByRuleGroupId(long ruleGroupId)
1061                    throws com.liferay.portal.kernel.exception.SystemException {
1062                    return getPersistence().countByRuleGroupId(ruleGroupId);
1063            }
1064    
1065            /**
1066            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63;.
1067            *
1068            * @param classNameId the class name ID
1069            * @param classPK the class p k
1070            * @return the number of matching m d r rule group instances
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public static int countByC_C(long classNameId, long classPK)
1074                    throws com.liferay.portal.kernel.exception.SystemException {
1075                    return getPersistence().countByC_C(classNameId, classPK);
1076            }
1077    
1078            /**
1079            * Returns the number of m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1080            *
1081            * @param groupId the group ID
1082            * @param classNameId the class name ID
1083            * @param classPK the class p k
1084            * @return the number of matching m d r rule group instances
1085            * @throws SystemException if a system exception occurred
1086            */
1087            public static int countByG_C_C(long groupId, long classNameId, long classPK)
1088                    throws com.liferay.portal.kernel.exception.SystemException {
1089                    return getPersistence().countByG_C_C(groupId, classNameId, classPK);
1090            }
1091    
1092            /**
1093            * 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;.
1094            *
1095            * @param groupId the group ID
1096            * @param classNameId the class name ID
1097            * @param classPK the class p k
1098            * @return the number of matching m d r rule group instances that the user has permission to view
1099            * @throws SystemException if a system exception occurred
1100            */
1101            public static int filterCountByG_C_C(long groupId, long classNameId,
1102                    long classPK)
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK);
1105            }
1106    
1107            /**
1108            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63;.
1109            *
1110            * @param classNameId the class name ID
1111            * @param classPK the class p k
1112            * @param ruleGroupId the rule group ID
1113            * @return the number of matching m d r rule group instances
1114            * @throws SystemException if a system exception occurred
1115            */
1116            public static int countByC_C_R(long classNameId, long classPK,
1117                    long ruleGroupId)
1118                    throws com.liferay.portal.kernel.exception.SystemException {
1119                    return getPersistence().countByC_C_R(classNameId, classPK, ruleGroupId);
1120            }
1121    
1122            /**
1123            * Returns the number of m d r rule group instances.
1124            *
1125            * @return the number of m d r rule group instances
1126            * @throws SystemException if a system exception occurred
1127            */
1128            public static int countAll()
1129                    throws com.liferay.portal.kernel.exception.SystemException {
1130                    return getPersistence().countAll();
1131            }
1132    
1133            public static MDRRuleGroupInstancePersistence getPersistence() {
1134                    if (_persistence == null) {
1135                            _persistence = (MDRRuleGroupInstancePersistence)PortalBeanLocatorUtil.locate(MDRRuleGroupInstancePersistence.class.getName());
1136    
1137                            ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class,
1138                                    "_persistence");
1139                    }
1140    
1141                    return _persistence;
1142            }
1143    
1144            public void setPersistence(MDRRuleGroupInstancePersistence persistence) {
1145                    _persistence = persistence;
1146    
1147                    ReferenceRegistry.registerReference(MDRRuleGroupInstanceUtil.class,
1148                            "_persistence");
1149            }
1150    
1151            private static MDRRuleGroupInstancePersistence _persistence;
1152    }