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            * Caches the m d r rule group instance in the entity cache if it is enabled.
042            *
043            * @param mdrRuleGroupInstance the m d r rule group instance
044            */
045            public void cacheResult(
046                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance);
047    
048            /**
049            * Caches the m d r rule group instances in the entity cache if it is enabled.
050            *
051            * @param mdrRuleGroupInstances the m d r rule group instances
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> mdrRuleGroupInstances);
055    
056            /**
057            * 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.
058            *
059            * @param ruleGroupInstanceId the primary key for the new m d r rule group instance
060            * @return the new m d r rule group instance
061            */
062            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance create(
063                    long ruleGroupInstanceId);
064    
065            /**
066            * Removes the m d r rule group instance with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
069            * @return the m d r rule group instance that was removed
070            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance remove(
074                    long ruleGroupInstanceId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
077    
078            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateImpl(
079                    com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * 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.
085            *
086            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
087            * @return the m d r rule group instance
088            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByPrimaryKey(
092                    long ruleGroupInstanceId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
095    
096            /**
097            * Returns the m d r rule group instance with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param ruleGroupInstanceId the primary key of the m d r rule group instance
100            * @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
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByPrimaryKey(
104                    long ruleGroupInstanceId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the m d r rule group instances where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching m d r rule group instances
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the m d r rule group instances where uuid = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param uuid the uuid
126            * @param start the lower bound of the range of m d r rule group instances
127            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
128            * @return the range of matching m d r rule group instances
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
132                    java.lang.String uuid, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the m d r rule group instances where uuid = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param uuid the uuid
143            * @param start the lower bound of the range of m d r rule group instances
144            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching m d r rule group instances
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByUuid(
150                    java.lang.String uuid, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first m d r rule group instance in the ordered set where uuid = &#63;.
156            *
157            * <p>
158            * 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.
159            * </p>
160            *
161            * @param uuid the uuid
162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
163            * @return the first matching m d r rule group instance
164            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
165            * @throws SystemException if a system exception occurred
166            */
167            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_First(
168                    java.lang.String uuid,
169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170                    throws com.liferay.portal.kernel.exception.SystemException,
171                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
172    
173            /**
174            * Returns the last m d r rule group instance in the ordered set where uuid = &#63;.
175            *
176            * <p>
177            * 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.
178            * </p>
179            *
180            * @param uuid the uuid
181            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
182            * @return the last matching m d r rule group instance
183            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
184            * @throws SystemException if a system exception occurred
185            */
186            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUuid_Last(
187                    java.lang.String uuid,
188                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
189                    throws com.liferay.portal.kernel.exception.SystemException,
190                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
191    
192            /**
193            * 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;.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the previous, current, and next m d r rule group instance
203            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByUuid_PrevAndNext(
207                    long ruleGroupInstanceId, java.lang.String uuid,
208                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
209                    throws com.liferay.portal.kernel.exception.SystemException,
210                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
211    
212            /**
213            * 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.
214            *
215            * @param uuid the uuid
216            * @param groupId the group ID
217            * @return the matching m d r rule group instance
218            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
219            * @throws SystemException if a system exception occurred
220            */
221            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByUUID_G(
222                    java.lang.String uuid, long groupId)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
225    
226            /**
227            * 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.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @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
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * 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.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
243            * @param retrieveFromCache whether to use the finder cache
244            * @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
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByUUID_G(
248                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns all the m d r rule group instances where ruleGroupId = &#63;.
253            *
254            * @param ruleGroupId the rule group ID
255            * @return the matching m d r rule group instances
256            * @throws SystemException if a system exception occurred
257            */
258            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
259                    long ruleGroupId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            /**
263            * Returns a range of all the m d r rule group instances where ruleGroupId = &#63;.
264            *
265            * <p>
266            * 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.
267            * </p>
268            *
269            * @param ruleGroupId the rule group ID
270            * @param start the lower bound of the range of m d r rule group instances
271            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
272            * @return the range of matching m d r rule group instances
273            * @throws SystemException if a system exception occurred
274            */
275            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
276                    long ruleGroupId, int start, int end)
277                    throws com.liferay.portal.kernel.exception.SystemException;
278    
279            /**
280            * Returns an ordered range of all the m d r rule group instances where ruleGroupId = &#63;.
281            *
282            * <p>
283            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
284            * </p>
285            *
286            * @param ruleGroupId the rule group ID
287            * @param start the lower bound of the range of m d r rule group instances
288            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
289            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
290            * @return the ordered range of matching m d r rule group instances
291            * @throws SystemException if a system exception occurred
292            */
293            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByRuleGroupId(
294                    long ruleGroupId, int start, int end,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the first m d r rule group instance in the ordered set where ruleGroupId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param ruleGroupId the rule group ID
306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
307            * @return the first matching m d r rule group instance
308            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_First(
312                    long ruleGroupId,
313                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
314                    throws com.liferay.portal.kernel.exception.SystemException,
315                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
316    
317            /**
318            * Returns the last m d r rule group instance in the ordered set where ruleGroupId = &#63;.
319            *
320            * <p>
321            * 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.
322            * </p>
323            *
324            * @param ruleGroupId the rule group ID
325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
326            * @return the last matching m d r rule group instance
327            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByRuleGroupId_Last(
331                    long ruleGroupId,
332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333                    throws com.liferay.portal.kernel.exception.SystemException,
334                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
335    
336            /**
337            * 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;.
338            *
339            * <p>
340            * 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.
341            * </p>
342            *
343            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
344            * @param ruleGroupId the rule group ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the previous, current, and next m d r rule group instance
347            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
348            * @throws SystemException if a system exception occurred
349            */
350            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByRuleGroupId_PrevAndNext(
351                    long ruleGroupInstanceId, long ruleGroupId,
352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
355    
356            /**
357            * Returns all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
358            *
359            * @param classNameId the class name ID
360            * @param classPK the class p k
361            * @return the matching m d r rule group instances
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
365                    long classNameId, long classPK)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns a range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param classNameId the class name ID
376            * @param classPK the class p k
377            * @param start the lower bound of the range of m d r rule group instances
378            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
379            * @return the range of matching m d r rule group instances
380            * @throws SystemException if a system exception occurred
381            */
382            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
383                    long classNameId, long classPK, int start, int end)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            /**
387            * Returns an ordered range of all the m d r rule group instances where classNameId = &#63; and classPK = &#63;.
388            *
389            * <p>
390            * 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.
391            * </p>
392            *
393            * @param classNameId the class name ID
394            * @param classPK the class p k
395            * @param start the lower bound of the range of m d r rule group instances
396            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
397            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
398            * @return the ordered range of matching m d r rule group instances
399            * @throws SystemException if a system exception occurred
400            */
401            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByC_C(
402                    long classNameId, long classPK, int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException;
405    
406            /**
407            * Returns the first m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
408            *
409            * <p>
410            * 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.
411            * </p>
412            *
413            * @param classNameId the class name ID
414            * @param classPK the class p k
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the first matching m d r rule group instance
417            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
418            * @throws SystemException if a system exception occurred
419            */
420            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_First(
421                    long classNameId, long classPK,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.kernel.exception.SystemException,
424                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
425    
426            /**
427            * Returns the last m d r rule group instance in the ordered set where classNameId = &#63; and classPK = &#63;.
428            *
429            * <p>
430            * 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.
431            * </p>
432            *
433            * @param classNameId the class name ID
434            * @param classPK the class p k
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the last matching m d r rule group instance
437            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_Last(
441                    long classNameId, long classPK,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException,
444                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
445    
446            /**
447            * 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;.
448            *
449            * <p>
450            * 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.
451            * </p>
452            *
453            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
454            * @param classNameId the class name ID
455            * @param classPK the class p k
456            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
457            * @return the previous, current, and next m d r rule group instance
458            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByC_C_PrevAndNext(
462                    long ruleGroupInstanceId, long classNameId, long classPK,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException,
465                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
466    
467            /**
468            * Returns all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
469            *
470            * @param groupId the group ID
471            * @param classNameId the class name ID
472            * @param classPK the class p k
473            * @return the matching m d r rule group instances
474            * @throws SystemException if a system exception occurred
475            */
476            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
477                    long groupId, long classNameId, long classPK)
478                    throws com.liferay.portal.kernel.exception.SystemException;
479    
480            /**
481            * Returns a range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
482            *
483            * <p>
484            * 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.
485            * </p>
486            *
487            * @param groupId the group ID
488            * @param classNameId the class name ID
489            * @param classPK the class p k
490            * @param start the lower bound of the range of m d r rule group instances
491            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
492            * @return the range of matching m d r rule group instances
493            * @throws SystemException if a system exception occurred
494            */
495            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
496                    long groupId, long classNameId, long classPK, int start, int end)
497                    throws com.liferay.portal.kernel.exception.SystemException;
498    
499            /**
500            * Returns an ordered range of all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
501            *
502            * <p>
503            * 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.
504            * </p>
505            *
506            * @param groupId the group ID
507            * @param classNameId the class name ID
508            * @param classPK the class p k
509            * @param start the lower bound of the range of m d r rule group instances
510            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
511            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
512            * @return the ordered range of matching m d r rule group instances
513            * @throws SystemException if a system exception occurred
514            */
515            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findByG_C_C(
516                    long groupId, long classNameId, long classPK, int start, int end,
517                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns the first m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
522            *
523            * <p>
524            * 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.
525            * </p>
526            *
527            * @param groupId the group ID
528            * @param classNameId the class name ID
529            * @param classPK the class p k
530            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
531            * @return the first matching m d r rule group instance
532            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
533            * @throws SystemException if a system exception occurred
534            */
535            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_First(
536                    long groupId, long classNameId, long classPK,
537                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
538                    throws com.liferay.portal.kernel.exception.SystemException,
539                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
540    
541            /**
542            * Returns the last m d r rule group instance in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
543            *
544            * <p>
545            * 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.
546            * </p>
547            *
548            * @param groupId the group ID
549            * @param classNameId the class name ID
550            * @param classPK the class p k
551            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
552            * @return the last matching m d r rule group instance
553            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
554            * @throws SystemException if a system exception occurred
555            */
556            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByG_C_C_Last(
557                    long groupId, long classNameId, long classPK,
558                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
559                    throws com.liferay.portal.kernel.exception.SystemException,
560                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
561    
562            /**
563            * 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;.
564            *
565            * <p>
566            * 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.
567            * </p>
568            *
569            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
570            * @param groupId the group ID
571            * @param classNameId the class name ID
572            * @param classPK the class p k
573            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
574            * @return the previous, current, and next m d r rule group instance
575            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
576            * @throws SystemException if a system exception occurred
577            */
578            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] findByG_C_C_PrevAndNext(
579                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
580                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
581                    throws com.liferay.portal.kernel.exception.SystemException,
582                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
583    
584            /**
585            * 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;.
586            *
587            * @param groupId the group ID
588            * @param classNameId the class name ID
589            * @param classPK the class p k
590            * @return the matching m d r rule group instances that the user has permission to view
591            * @throws SystemException if a system exception occurred
592            */
593            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
594                    long groupId, long classNameId, long classPK)
595                    throws com.liferay.portal.kernel.exception.SystemException;
596    
597            /**
598            * 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;.
599            *
600            * <p>
601            * 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.
602            * </p>
603            *
604            * @param groupId the group ID
605            * @param classNameId the class name ID
606            * @param classPK the class p k
607            * @param start the lower bound of the range of m d r rule group instances
608            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
609            * @return the range of matching m d r rule group instances that the user has permission to view
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
613                    long groupId, long classNameId, long classPK, int start, int end)
614                    throws com.liferay.portal.kernel.exception.SystemException;
615    
616            /**
617            * 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;.
618            *
619            * <p>
620            * 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.
621            * </p>
622            *
623            * @param groupId the group ID
624            * @param classNameId the class name ID
625            * @param classPK the class p k
626            * @param start the lower bound of the range of m d r rule group instances
627            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
628            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
629            * @return the ordered range of matching m d r rule group instances that the user has permission to view
630            * @throws SystemException if a system exception occurred
631            */
632            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> filterFindByG_C_C(
633                    long groupId, long classNameId, long classPK, int start, int end,
634                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
635                    throws com.liferay.portal.kernel.exception.SystemException;
636    
637            /**
638            * 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;.
639            *
640            * @param ruleGroupInstanceId the primary key of the current m d r rule group instance
641            * @param groupId the group ID
642            * @param classNameId the class name ID
643            * @param classPK the class p k
644            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
645            * @return the previous, current, and next m d r rule group instance
646            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a m d r rule group instance with the primary key could not be found
647            * @throws SystemException if a system exception occurred
648            */
649            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance[] filterFindByG_C_C_PrevAndNext(
650                    long ruleGroupInstanceId, long groupId, long classNameId, long classPK,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.kernel.exception.SystemException,
653                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
654    
655            /**
656            * 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.
657            *
658            * @param classNameId the class name ID
659            * @param classPK the class p k
660            * @param ruleGroupId the rule group ID
661            * @return the matching m d r rule group instance
662            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException if a matching m d r rule group instance could not be found
663            * @throws SystemException if a system exception occurred
664            */
665            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance findByC_C_R(
666                    long classNameId, long classPK, long ruleGroupId)
667                    throws com.liferay.portal.kernel.exception.SystemException,
668                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
669    
670            /**
671            * 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.
672            *
673            * @param classNameId the class name ID
674            * @param classPK the class p k
675            * @param ruleGroupId the rule group ID
676            * @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
677            * @throws SystemException if a system exception occurred
678            */
679            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R(
680                    long classNameId, long classPK, long ruleGroupId)
681                    throws com.liferay.portal.kernel.exception.SystemException;
682    
683            /**
684            * 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.
685            *
686            * @param classNameId the class name ID
687            * @param classPK the class p k
688            * @param ruleGroupId the rule group ID
689            * @param retrieveFromCache whether to use the finder cache
690            * @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
691            * @throws SystemException if a system exception occurred
692            */
693            public com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchByC_C_R(
694                    long classNameId, long classPK, long ruleGroupId,
695                    boolean retrieveFromCache)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Returns all the m d r rule group instances.
700            *
701            * @return the m d r rule group instances
702            * @throws SystemException if a system exception occurred
703            */
704            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll()
705                    throws com.liferay.portal.kernel.exception.SystemException;
706    
707            /**
708            * Returns a range of all the m d r rule group instances.
709            *
710            * <p>
711            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
712            * </p>
713            *
714            * @param start the lower bound of the range of m d r rule group instances
715            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
716            * @return the range of m d r rule group instances
717            * @throws SystemException if a system exception occurred
718            */
719            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll(
720                    int start, int end)
721                    throws com.liferay.portal.kernel.exception.SystemException;
722    
723            /**
724            * Returns an ordered range of all the m d r rule group instances.
725            *
726            * <p>
727            * 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.
728            * </p>
729            *
730            * @param start the lower bound of the range of m d r rule group instances
731            * @param end the upper bound of the range of m d r rule group instances (not inclusive)
732            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
733            * @return the ordered range of m d r rule group instances
734            * @throws SystemException if a system exception occurred
735            */
736            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> findAll(
737                    int start, int end,
738                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Removes all the m d r rule group instances where uuid = &#63; from the database.
743            *
744            * @param uuid the uuid
745            * @throws SystemException if a system exception occurred
746            */
747            public void removeByUuid(java.lang.String uuid)
748                    throws com.liferay.portal.kernel.exception.SystemException;
749    
750            /**
751            * Removes the m d r rule group instance where uuid = &#63; and groupId = &#63; from the database.
752            *
753            * @param uuid the uuid
754            * @param groupId the group ID
755            * @throws SystemException if a system exception occurred
756            */
757            public void removeByUUID_G(java.lang.String uuid, long groupId)
758                    throws com.liferay.portal.kernel.exception.SystemException,
759                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
760    
761            /**
762            * Removes all the m d r rule group instances where ruleGroupId = &#63; from the database.
763            *
764            * @param ruleGroupId the rule group ID
765            * @throws SystemException if a system exception occurred
766            */
767            public void removeByRuleGroupId(long ruleGroupId)
768                    throws com.liferay.portal.kernel.exception.SystemException;
769    
770            /**
771            * Removes all the m d r rule group instances where classNameId = &#63; and classPK = &#63; from the database.
772            *
773            * @param classNameId the class name ID
774            * @param classPK the class p k
775            * @throws SystemException if a system exception occurred
776            */
777            public void removeByC_C(long classNameId, long classPK)
778                    throws com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Removes all the m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
782            *
783            * @param groupId the group ID
784            * @param classNameId the class name ID
785            * @param classPK the class p k
786            * @throws SystemException if a system exception occurred
787            */
788            public void removeByG_C_C(long groupId, long classNameId, long classPK)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Removes the m d r rule group instance where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63; from the database.
793            *
794            * @param classNameId the class name ID
795            * @param classPK the class p k
796            * @param ruleGroupId the rule group ID
797            * @throws SystemException if a system exception occurred
798            */
799            public void removeByC_C_R(long classNameId, long classPK, long ruleGroupId)
800                    throws com.liferay.portal.kernel.exception.SystemException,
801                            com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException;
802    
803            /**
804            * Removes all the m d r rule group instances from the database.
805            *
806            * @throws SystemException if a system exception occurred
807            */
808            public void removeAll()
809                    throws com.liferay.portal.kernel.exception.SystemException;
810    
811            /**
812            * Returns the number of m d r rule group instances where uuid = &#63;.
813            *
814            * @param uuid the uuid
815            * @return the number of matching m d r rule group instances
816            * @throws SystemException if a system exception occurred
817            */
818            public int countByUuid(java.lang.String uuid)
819                    throws com.liferay.portal.kernel.exception.SystemException;
820    
821            /**
822            * Returns the number of m d r rule group instances where uuid = &#63; and groupId = &#63;.
823            *
824            * @param uuid the uuid
825            * @param groupId the group ID
826            * @return the number of matching m d r rule group instances
827            * @throws SystemException if a system exception occurred
828            */
829            public int countByUUID_G(java.lang.String uuid, long groupId)
830                    throws com.liferay.portal.kernel.exception.SystemException;
831    
832            /**
833            * Returns the number of m d r rule group instances where ruleGroupId = &#63;.
834            *
835            * @param ruleGroupId the rule group ID
836            * @return the number of matching m d r rule group instances
837            * @throws SystemException if a system exception occurred
838            */
839            public int countByRuleGroupId(long ruleGroupId)
840                    throws com.liferay.portal.kernel.exception.SystemException;
841    
842            /**
843            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63;.
844            *
845            * @param classNameId the class name ID
846            * @param classPK the class p k
847            * @return the number of matching m d r rule group instances
848            * @throws SystemException if a system exception occurred
849            */
850            public int countByC_C(long classNameId, long classPK)
851                    throws com.liferay.portal.kernel.exception.SystemException;
852    
853            /**
854            * Returns the number of m d r rule group instances where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
855            *
856            * @param groupId the group ID
857            * @param classNameId the class name ID
858            * @param classPK the class p k
859            * @return the number of matching m d r rule group instances
860            * @throws SystemException if a system exception occurred
861            */
862            public int countByG_C_C(long groupId, long classNameId, long classPK)
863                    throws com.liferay.portal.kernel.exception.SystemException;
864    
865            /**
866            * 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;.
867            *
868            * @param groupId the group ID
869            * @param classNameId the class name ID
870            * @param classPK the class p k
871            * @return the number of matching m d r rule group instances that the user has permission to view
872            * @throws SystemException if a system exception occurred
873            */
874            public int filterCountByG_C_C(long groupId, long classNameId, long classPK)
875                    throws com.liferay.portal.kernel.exception.SystemException;
876    
877            /**
878            * Returns the number of m d r rule group instances where classNameId = &#63; and classPK = &#63; and ruleGroupId = &#63;.
879            *
880            * @param classNameId the class name ID
881            * @param classPK the class p k
882            * @param ruleGroupId the rule group ID
883            * @return the number of matching m d r rule group instances
884            * @throws SystemException if a system exception occurred
885            */
886            public int countByC_C_R(long classNameId, long classPK, long ruleGroupId)
887                    throws com.liferay.portal.kernel.exception.SystemException;
888    
889            /**
890            * Returns the number of m d r rule group instances.
891            *
892            * @return the number of m d r rule group instances
893            * @throws SystemException if a system exception occurred
894            */
895            public int countAll()
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    }