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