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