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