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