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.MDRRule;
020    
021    /**
022     * The persistence interface for the m d r rule 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 MDRRulePersistenceImpl
030     * @see MDRRuleUtil
031     * @generated
032     */
033    public interface MDRRulePersistence extends BasePersistence<MDRRule> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link MDRRuleUtil} to access the m d r rule persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the m d r rule in the entity cache if it is enabled.
042            *
043            * @param mdrRule the m d r rule
044            */
045            public void cacheResult(
046                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule);
047    
048            /**
049            * Caches the m d r rules in the entity cache if it is enabled.
050            *
051            * @param mdrRules the m d r rules
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> mdrRules);
055    
056            /**
057            * Creates a new m d r rule with the primary key. Does not add the m d r rule to the database.
058            *
059            * @param ruleId the primary key for the new m d r rule
060            * @return the new m d r rule
061            */
062            public com.liferay.portlet.mobiledevicerules.model.MDRRule create(
063                    long ruleId);
064    
065            /**
066            * Removes the m d r rule with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param ruleId the primary key of the m d r rule
069            * @return the m d r rule that was removed
070            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a m d r rule with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.mobiledevicerules.model.MDRRule remove(
074                    long ruleId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
077    
078            public com.liferay.portlet.mobiledevicerules.model.MDRRule updateImpl(
079                    com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the m d r rule with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleException} if it could not be found.
084            *
085            * @param ruleId the primary key of the m d r rule
086            * @return the m d r rule
087            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a m d r rule with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByPrimaryKey(
091                    long ruleId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
094    
095            /**
096            * Returns the m d r rule with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param ruleId the primary key of the m d r rule
099            * @return the m d r rule, or <code>null</code> if a m d r rule with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByPrimaryKey(
103                    long ruleId) throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the m d r rules where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @return the matching m d r rules
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns a range of all the m d r rules where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid
124            * @param start the lower bound of the range of m d r rules
125            * @param end the upper bound of the range of m d r rules (not inclusive)
126            * @return the range of matching m d r rules
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Returns an ordered range of all the m d r rules where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid
141            * @param start the lower bound of the range of m d r rules
142            * @param end the upper bound of the range of m d r rules (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching m d r rules
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Returns the first m d r rule in the ordered set where uuid = &#63;.
154            *
155            * @param uuid the uuid
156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
157            * @return the first matching m d r rule
158            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByUuid_First(
162                    java.lang.String uuid,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.kernel.exception.SystemException,
165                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
166    
167            /**
168            * Returns the first m d r rule in the ordered set where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUuid_First(
176                    java.lang.String uuid,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the last m d r rule in the ordered set where uuid = &#63;.
182            *
183            * @param uuid the uuid
184            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
185            * @return the last matching m d r rule
186            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByUuid_Last(
190                    java.lang.String uuid,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
194    
195            /**
196            * Returns the last m d r rule in the ordered set where uuid = &#63;.
197            *
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the last matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUuid_Last(
204                    java.lang.String uuid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = &#63;.
210            *
211            * @param ruleId the primary key of the current m d r rule
212            * @param uuid the uuid
213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
214            * @return the previous, current, and next m d r rule
215            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a m d r rule with the primary key could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portlet.mobiledevicerules.model.MDRRule[] findByUuid_PrevAndNext(
219                    long ruleId, java.lang.String uuid,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.kernel.exception.SystemException,
222                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
223    
224            /**
225            * Returns the m d r rule where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchRuleException} if it could not be found.
226            *
227            * @param uuid the uuid
228            * @param groupId the group ID
229            * @return the matching m d r rule
230            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByUUID_G(
234                    java.lang.String uuid, long groupId)
235                    throws com.liferay.portal.kernel.exception.SystemException,
236                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
237    
238            /**
239            * Returns the m d r rule where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
240            *
241            * @param uuid the uuid
242            * @param groupId the group ID
243            * @return the matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
244            * @throws SystemException if a system exception occurred
245            */
246            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUUID_G(
247                    java.lang.String uuid, long groupId)
248                    throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns the m d r rule where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
252            *
253            * @param uuid the uuid
254            * @param groupId the group ID
255            * @param retrieveFromCache whether to use the finder cache
256            * @return the matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUUID_G(
260                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns all the m d r rules where uuid = &#63; and companyId = &#63;.
265            *
266            * @param uuid the uuid
267            * @param companyId the company ID
268            * @return the matching m d r rules
269            * @throws SystemException if a system exception occurred
270            */
271            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid_C(
272                    java.lang.String uuid, long companyId)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns a range of all the m d r rules where uuid = &#63; and companyId = &#63;.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param uuid the uuid
283            * @param companyId the company ID
284            * @param start the lower bound of the range of m d r rules
285            * @param end the upper bound of the range of m d r rules (not inclusive)
286            * @return the range of matching m d r rules
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns an ordered range of all the m d r rules where uuid = &#63; and companyId = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param uuid the uuid
301            * @param companyId the company ID
302            * @param start the lower bound of the range of m d r rules
303            * @param end the upper bound of the range of m d r rules (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the ordered range of matching m d r rules
306            * @throws SystemException if a system exception occurred
307            */
308            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByUuid_C(
309                    java.lang.String uuid, long companyId, int start, int end,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the first m d r rule in the ordered set where uuid = &#63; and companyId = &#63;.
315            *
316            * @param uuid the uuid
317            * @param companyId the company ID
318            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
319            * @return the first matching m d r rule
320            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
321            * @throws SystemException if a system exception occurred
322            */
323            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByUuid_C_First(
324                    java.lang.String uuid, long companyId,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException,
327                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
328    
329            /**
330            * Returns the first m d r rule in the ordered set where uuid = &#63; and companyId = &#63;.
331            *
332            * @param uuid the uuid
333            * @param companyId the company ID
334            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
335            * @return the first matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUuid_C_First(
339                    java.lang.String uuid, long companyId,
340                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            /**
344            * Returns the last m d r rule in the ordered set where uuid = &#63; and companyId = &#63;.
345            *
346            * @param uuid the uuid
347            * @param companyId the company ID
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the last matching m d r rule
350            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByUuid_C_Last(
354                    java.lang.String uuid, long companyId,
355                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356                    throws com.liferay.portal.kernel.exception.SystemException,
357                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
358    
359            /**
360            * Returns the last m d r rule in the ordered set where uuid = &#63; and companyId = &#63;.
361            *
362            * @param uuid the uuid
363            * @param companyId the company ID
364            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
365            * @return the last matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
366            * @throws SystemException if a system exception occurred
367            */
368            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByUuid_C_Last(
369                    java.lang.String uuid, long companyId,
370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Returns the m d r rules before and after the current m d r rule in the ordered set where uuid = &#63; and companyId = &#63;.
375            *
376            * @param ruleId the primary key of the current m d r rule
377            * @param uuid the uuid
378            * @param companyId the company ID
379            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
380            * @return the previous, current, and next m d r rule
381            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a m d r rule with the primary key could not be found
382            * @throws SystemException if a system exception occurred
383            */
384            public com.liferay.portlet.mobiledevicerules.model.MDRRule[] findByUuid_C_PrevAndNext(
385                    long ruleId, java.lang.String uuid, long companyId,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException,
388                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
389    
390            /**
391            * Returns all the m d r rules where ruleGroupId = &#63;.
392            *
393            * @param ruleGroupId the rule group ID
394            * @return the matching m d r rules
395            * @throws SystemException if a system exception occurred
396            */
397            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByRuleGroupId(
398                    long ruleGroupId)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Returns a range of all the m d r rules where ruleGroupId = &#63;.
403            *
404            * <p>
405            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
406            * </p>
407            *
408            * @param ruleGroupId the rule group ID
409            * @param start the lower bound of the range of m d r rules
410            * @param end the upper bound of the range of m d r rules (not inclusive)
411            * @return the range of matching m d r rules
412            * @throws SystemException if a system exception occurred
413            */
414            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByRuleGroupId(
415                    long ruleGroupId, int start, int end)
416                    throws com.liferay.portal.kernel.exception.SystemException;
417    
418            /**
419            * Returns an ordered range of all the m d r rules where ruleGroupId = &#63;.
420            *
421            * <p>
422            * 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.
423            * </p>
424            *
425            * @param ruleGroupId the rule group ID
426            * @param start the lower bound of the range of m d r rules
427            * @param end the upper bound of the range of m d r rules (not inclusive)
428            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
429            * @return the ordered range of matching m d r rules
430            * @throws SystemException if a system exception occurred
431            */
432            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findByRuleGroupId(
433                    long ruleGroupId, int start, int end,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.kernel.exception.SystemException;
436    
437            /**
438            * Returns the first m d r rule in the ordered set where ruleGroupId = &#63;.
439            *
440            * @param ruleGroupId the rule group ID
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the first matching m d r rule
443            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByRuleGroupId_First(
447                    long ruleGroupId,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException,
450                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
451    
452            /**
453            * Returns the first m d r rule in the ordered set where ruleGroupId = &#63;.
454            *
455            * @param ruleGroupId the rule group ID
456            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
457            * @return the first matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
458            * @throws SystemException if a system exception occurred
459            */
460            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByRuleGroupId_First(
461                    long ruleGroupId,
462                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Returns the last m d r rule in the ordered set where ruleGroupId = &#63;.
467            *
468            * @param ruleGroupId the rule group ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching m d r rule
471            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a matching m d r rule could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portlet.mobiledevicerules.model.MDRRule findByRuleGroupId_Last(
475                    long ruleGroupId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
479    
480            /**
481            * Returns the last m d r rule in the ordered set where ruleGroupId = &#63;.
482            *
483            * @param ruleGroupId the rule group ID
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the last matching m d r rule, or <code>null</code> if a matching m d r rule could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public com.liferay.portlet.mobiledevicerules.model.MDRRule fetchByRuleGroupId_Last(
489                    long ruleGroupId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            /**
494            * Returns the m d r rules before and after the current m d r rule in the ordered set where ruleGroupId = &#63;.
495            *
496            * @param ruleId the primary key of the current m d r rule
497            * @param ruleGroupId the rule group ID
498            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
499            * @return the previous, current, and next m d r rule
500            * @throws com.liferay.portlet.mobiledevicerules.NoSuchRuleException if a m d r rule with the primary key could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public com.liferay.portlet.mobiledevicerules.model.MDRRule[] findByRuleGroupId_PrevAndNext(
504                    long ruleId, long ruleGroupId,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
508    
509            /**
510            * Returns all the m d r rules.
511            *
512            * @return the m d r rules
513            * @throws SystemException if a system exception occurred
514            */
515            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findAll()
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    
518            /**
519            * Returns a range of all the m d r rules.
520            *
521            * <p>
522            * 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.
523            * </p>
524            *
525            * @param start the lower bound of the range of m d r rules
526            * @param end the upper bound of the range of m d r rules (not inclusive)
527            * @return the range of m d r rules
528            * @throws SystemException if a system exception occurred
529            */
530            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findAll(
531                    int start, int end)
532                    throws com.liferay.portal.kernel.exception.SystemException;
533    
534            /**
535            * Returns an ordered range of all the m d r rules.
536            *
537            * <p>
538            * 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.
539            * </p>
540            *
541            * @param start the lower bound of the range of m d r rules
542            * @param end the upper bound of the range of m d r rules (not inclusive)
543            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
544            * @return the ordered range of m d r rules
545            * @throws SystemException if a system exception occurred
546            */
547            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> findAll(
548                    int start, int end,
549                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
550                    throws com.liferay.portal.kernel.exception.SystemException;
551    
552            /**
553            * Removes all the m d r rules where uuid = &#63; from the database.
554            *
555            * @param uuid the uuid
556            * @throws SystemException if a system exception occurred
557            */
558            public void removeByUuid(java.lang.String uuid)
559                    throws com.liferay.portal.kernel.exception.SystemException;
560    
561            /**
562            * Removes the m d r rule where uuid = &#63; and groupId = &#63; from the database.
563            *
564            * @param uuid the uuid
565            * @param groupId the group ID
566            * @return the m d r rule that was removed
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portlet.mobiledevicerules.model.MDRRule removeByUUID_G(
570                    java.lang.String uuid, long groupId)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.mobiledevicerules.NoSuchRuleException;
573    
574            /**
575            * Removes all the m d r rules where uuid = &#63; and companyId = &#63; from the database.
576            *
577            * @param uuid the uuid
578            * @param companyId the company ID
579            * @throws SystemException if a system exception occurred
580            */
581            public void removeByUuid_C(java.lang.String uuid, long companyId)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * Removes all the m d r rules where ruleGroupId = &#63; from the database.
586            *
587            * @param ruleGroupId the rule group ID
588            * @throws SystemException if a system exception occurred
589            */
590            public void removeByRuleGroupId(long ruleGroupId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Removes all the m d r rules from the database.
595            *
596            * @throws SystemException if a system exception occurred
597            */
598            public void removeAll()
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns the number of m d r rules where uuid = &#63;.
603            *
604            * @param uuid the uuid
605            * @return the number of matching m d r rules
606            * @throws SystemException if a system exception occurred
607            */
608            public int countByUuid(java.lang.String uuid)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns the number of m d r rules where uuid = &#63; and groupId = &#63;.
613            *
614            * @param uuid the uuid
615            * @param groupId the group ID
616            * @return the number of matching m d r rules
617            * @throws SystemException if a system exception occurred
618            */
619            public int countByUUID_G(java.lang.String uuid, long groupId)
620                    throws com.liferay.portal.kernel.exception.SystemException;
621    
622            /**
623            * Returns the number of m d r rules where uuid = &#63; and companyId = &#63;.
624            *
625            * @param uuid the uuid
626            * @param companyId the company ID
627            * @return the number of matching m d r rules
628            * @throws SystemException if a system exception occurred
629            */
630            public int countByUuid_C(java.lang.String uuid, long companyId)
631                    throws com.liferay.portal.kernel.exception.SystemException;
632    
633            /**
634            * Returns the number of m d r rules where ruleGroupId = &#63;.
635            *
636            * @param ruleGroupId the rule group ID
637            * @return the number of matching m d r rules
638            * @throws SystemException if a system exception occurred
639            */
640            public int countByRuleGroupId(long ruleGroupId)
641                    throws com.liferay.portal.kernel.exception.SystemException;
642    
643            /**
644            * Returns the number of m d r rules.
645            *
646            * @return the number of m d r rules
647            * @throws SystemException if a system exception occurred
648            */
649            public int countAll()
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    }