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.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.MDRAction;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the m d r action service. This utility wraps {@link MDRActionPersistenceImpl} 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 MDRActionPersistence
037     * @see MDRActionPersistenceImpl
038     * @generated
039     */
040    public class MDRActionUtil {
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(MDRAction mdrAction) {
058                    getPersistence().clearCache(mdrAction);
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<MDRAction> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) 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<MDRAction> 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<MDRAction> 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 MDRAction update(MDRAction mdrAction, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(mdrAction, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static MDRAction update(MDRAction mdrAction, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(mdrAction, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the m d r action in the entity cache if it is enabled.
115            *
116            * @param mdrAction the m d r action
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
120                    getPersistence().cacheResult(mdrAction);
121            }
122    
123            /**
124            * Caches the m d r actions in the entity cache if it is enabled.
125            *
126            * @param mdrActions the m d r actions
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions) {
130                    getPersistence().cacheResult(mdrActions);
131            }
132    
133            /**
134            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
135            *
136            * @param actionId the primary key for the new m d r action
137            * @return the new m d r action
138            */
139            public static com.liferay.portlet.mobiledevicerules.model.MDRAction create(
140                    long actionId) {
141                    return getPersistence().create(actionId);
142            }
143    
144            /**
145            * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param actionId the primary key of the m d r action
148            * @return the m d r action that was removed
149            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action 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.MDRAction remove(
153                    long actionId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
156                    return getPersistence().remove(actionId);
157            }
158    
159            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl(
160                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(mdrAction, merge);
164            }
165    
166            /**
167            * Returns the m d r action with the primary key or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found.
168            *
169            * @param actionId the primary key of the m d r action
170            * @return the m d r action
171            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action 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.MDRAction findByPrimaryKey(
175                    long actionId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
178                    return getPersistence().findByPrimaryKey(actionId);
179            }
180    
181            /**
182            * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param actionId the primary key of the m d r action
185            * @return the m d r action, or <code>null</code> if a m d r action 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.MDRAction fetchByPrimaryKey(
189                    long actionId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(actionId);
192            }
193    
194            /**
195            * Returns all the m d r actions where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching m d r actions
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the m d r actions where uuid = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of m d r actions
216            * @param end the upper bound of the range of m d r actions (not inclusive)
217            * @return the range of matching m d r actions
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the m d r actions where uuid = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of m d r actions
235            * @param end the upper bound of the range of m d r actions (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching m d r actions
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first m d r action in the ordered set where uuid = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching m d r action
257            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last m d r action in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching m d r action
278            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param actionId the primary key of the current m d r action
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next m d r action
300            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext(
304                    long actionId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(actionId, uuid, orderByComparator);
310            }
311    
312            /**
313            * Returns the m d r action where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.mobiledevicerules.NoSuchActionException} if it could not be found.
314            *
315            * @param uuid the uuid
316            * @param groupId the group ID
317            * @return the matching m d r action
318            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
325                    return getPersistence().findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329            * Returns the m d r action where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
330            *
331            * @param uuid the uuid
332            * @param groupId the group ID
333            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
337                    java.lang.String uuid, long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().fetchByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * Returns the m d r action where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Returns all the m d r actions where ruleGroupInstanceId = &#63;.
359            *
360            * @param ruleGroupInstanceId the rule group instance ID
361            * @return the matching m d r actions
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
365                    long ruleGroupInstanceId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByRuleGroupInstanceId(ruleGroupInstanceId);
368            }
369    
370            /**
371            * Returns a range of all the m d r actions where ruleGroupInstanceId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param ruleGroupInstanceId the rule group instance ID
378            * @param start the lower bound of the range of m d r actions
379            * @param end the upper bound of the range of m d r actions (not inclusive)
380            * @return the range of matching m d r actions
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
384                    long ruleGroupInstanceId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence()
387                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end);
388            }
389    
390            /**
391            * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = &#63;.
392            *
393            * <p>
394            * 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.
395            * </p>
396            *
397            * @param ruleGroupInstanceId the rule group instance ID
398            * @param start the lower bound of the range of m d r actions
399            * @param end the upper bound of the range of m d r actions (not inclusive)
400            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
401            * @return the ordered range of matching m d r actions
402            * @throws SystemException if a system exception occurred
403            */
404            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
405                    long ruleGroupInstanceId, int start, int end,
406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return getPersistence()
409                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end,
410                            orderByComparator);
411            }
412    
413            /**
414            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
415            *
416            * <p>
417            * 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.
418            * </p>
419            *
420            * @param ruleGroupInstanceId the rule group instance ID
421            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
422            * @return the first matching m d r action
423            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
424            * @throws SystemException if a system exception occurred
425            */
426            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First(
427                    long ruleGroupInstanceId,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException,
430                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
431                    return getPersistence()
432                                       .findByRuleGroupInstanceId_First(ruleGroupInstanceId,
433                            orderByComparator);
434            }
435    
436            /**
437            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
438            *
439            * <p>
440            * 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.
441            * </p>
442            *
443            * @param ruleGroupInstanceId the rule group instance ID
444            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
445            * @return the last matching m d r action
446            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last(
450                    long ruleGroupInstanceId,
451                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
452                    throws com.liferay.portal.kernel.exception.SystemException,
453                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
454                    return getPersistence()
455                                       .findByRuleGroupInstanceId_Last(ruleGroupInstanceId,
456                            orderByComparator);
457            }
458    
459            /**
460            * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = &#63;.
461            *
462            * <p>
463            * 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.
464            * </p>
465            *
466            * @param actionId the primary key of the current m d r action
467            * @param ruleGroupInstanceId the rule group instance ID
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the previous, current, and next m d r action
470            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
471            * @throws SystemException if a system exception occurred
472            */
473            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext(
474                    long actionId, long ruleGroupInstanceId,
475                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
476                    throws com.liferay.portal.kernel.exception.SystemException,
477                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
478                    return getPersistence()
479                                       .findByRuleGroupInstanceId_PrevAndNext(actionId,
480                            ruleGroupInstanceId, orderByComparator);
481            }
482    
483            /**
484            * Returns all the m d r actions.
485            *
486            * @return the m d r actions
487            * @throws SystemException if a system exception occurred
488            */
489            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll()
490                    throws com.liferay.portal.kernel.exception.SystemException {
491                    return getPersistence().findAll();
492            }
493    
494            /**
495            * Returns a range of all the m d r actions.
496            *
497            * <p>
498            * 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.
499            * </p>
500            *
501            * @param start the lower bound of the range of m d r actions
502            * @param end the upper bound of the range of m d r actions (not inclusive)
503            * @return the range of m d r actions
504            * @throws SystemException if a system exception occurred
505            */
506            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
507                    int start, int end)
508                    throws com.liferay.portal.kernel.exception.SystemException {
509                    return getPersistence().findAll(start, end);
510            }
511    
512            /**
513            * Returns an ordered range of all the m d r actions.
514            *
515            * <p>
516            * 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.
517            * </p>
518            *
519            * @param start the lower bound of the range of m d r actions
520            * @param end the upper bound of the range of m d r actions (not inclusive)
521            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
522            * @return the ordered range of m d r actions
523            * @throws SystemException if a system exception occurred
524            */
525            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
526                    int start, int end,
527                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
528                    throws com.liferay.portal.kernel.exception.SystemException {
529                    return getPersistence().findAll(start, end, orderByComparator);
530            }
531    
532            /**
533            * Removes all the m d r actions where uuid = &#63; from the database.
534            *
535            * @param uuid the uuid
536            * @throws SystemException if a system exception occurred
537            */
538            public static void removeByUuid(java.lang.String uuid)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    getPersistence().removeByUuid(uuid);
541            }
542    
543            /**
544            * Removes the m d r action where uuid = &#63; and groupId = &#63; from the database.
545            *
546            * @param uuid the uuid
547            * @param groupId the group ID
548            * @throws SystemException if a system exception occurred
549            */
550            public static void removeByUUID_G(java.lang.String uuid, long groupId)
551                    throws com.liferay.portal.kernel.exception.SystemException,
552                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
553                    getPersistence().removeByUUID_G(uuid, groupId);
554            }
555    
556            /**
557            * Removes all the m d r actions where ruleGroupInstanceId = &#63; from the database.
558            *
559            * @param ruleGroupInstanceId the rule group instance ID
560            * @throws SystemException if a system exception occurred
561            */
562            public static void removeByRuleGroupInstanceId(long ruleGroupInstanceId)
563                    throws com.liferay.portal.kernel.exception.SystemException {
564                    getPersistence().removeByRuleGroupInstanceId(ruleGroupInstanceId);
565            }
566    
567            /**
568            * Removes all the m d r actions from the database.
569            *
570            * @throws SystemException if a system exception occurred
571            */
572            public static void removeAll()
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    getPersistence().removeAll();
575            }
576    
577            /**
578            * Returns the number of m d r actions where uuid = &#63;.
579            *
580            * @param uuid the uuid
581            * @return the number of matching m d r actions
582            * @throws SystemException if a system exception occurred
583            */
584            public static int countByUuid(java.lang.String uuid)
585                    throws com.liferay.portal.kernel.exception.SystemException {
586                    return getPersistence().countByUuid(uuid);
587            }
588    
589            /**
590            * Returns the number of m d r actions where uuid = &#63; and groupId = &#63;.
591            *
592            * @param uuid the uuid
593            * @param groupId the group ID
594            * @return the number of matching m d r actions
595            * @throws SystemException if a system exception occurred
596            */
597            public static int countByUUID_G(java.lang.String uuid, long groupId)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return getPersistence().countByUUID_G(uuid, groupId);
600            }
601    
602            /**
603            * Returns the number of m d r actions where ruleGroupInstanceId = &#63;.
604            *
605            * @param ruleGroupInstanceId the rule group instance ID
606            * @return the number of matching m d r actions
607            * @throws SystemException if a system exception occurred
608            */
609            public static int countByRuleGroupInstanceId(long ruleGroupInstanceId)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    return getPersistence().countByRuleGroupInstanceId(ruleGroupInstanceId);
612            }
613    
614            /**
615            * Returns the number of m d r actions.
616            *
617            * @return the number of m d r actions
618            * @throws SystemException if a system exception occurred
619            */
620            public static int countAll()
621                    throws com.liferay.portal.kernel.exception.SystemException {
622                    return getPersistence().countAll();
623            }
624    
625            public static MDRActionPersistence getPersistence() {
626                    if (_persistence == null) {
627                            _persistence = (MDRActionPersistence)PortalBeanLocatorUtil.locate(MDRActionPersistence.class.getName());
628    
629                            ReferenceRegistry.registerReference(MDRActionUtil.class,
630                                    "_persistence");
631                    }
632    
633                    return _persistence;
634            }
635    
636            public void setPersistence(MDRActionPersistence persistence) {
637                    _persistence = persistence;
638    
639                    ReferenceRegistry.registerReference(MDRActionUtil.class, "_persistence");
640            }
641    
642            private static MDRActionPersistence _persistence;
643    }