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.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            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching m d r action
253            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first m d r action in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last m d r action in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching m d r action
285            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last m d r action in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = &#63;.
313            *
314            * @param actionId the primary key of the current m d r action
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next m d r action
318            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext(
322                    long actionId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(actionId, uuid, orderByComparator);
328            }
329    
330            /**
331            * 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.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching m d r action
336            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
343                    return getPersistence().findByUUID_G(uuid, groupId);
344            }
345    
346            /**
347            * 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.
348            *
349            * @param uuid the uuid
350            * @param groupId the group ID
351            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
355                    java.lang.String uuid, long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId);
358            }
359    
360            /**
361            * 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.
362            *
363            * @param uuid the uuid
364            * @param groupId the group ID
365            * @param retrieveFromCache whether to use the finder cache
366            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
370                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
373            }
374    
375            /**
376            * Returns all the m d r actions where ruleGroupInstanceId = &#63;.
377            *
378            * @param ruleGroupInstanceId the rule group instance ID
379            * @return the matching m d r actions
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
383                    long ruleGroupInstanceId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByRuleGroupInstanceId(ruleGroupInstanceId);
386            }
387    
388            /**
389            * Returns a range of all the m d r actions where ruleGroupInstanceId = &#63;.
390            *
391            * <p>
392            * 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.
393            * </p>
394            *
395            * @param ruleGroupInstanceId the rule group instance ID
396            * @param start the lower bound of the range of m d r actions
397            * @param end the upper bound of the range of m d r actions (not inclusive)
398            * @return the range of matching m d r actions
399            * @throws SystemException if a system exception occurred
400            */
401            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
402                    long ruleGroupInstanceId, int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence()
405                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end);
406            }
407    
408            /**
409            * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param ruleGroupInstanceId the rule group instance ID
416            * @param start the lower bound of the range of m d r actions
417            * @param end the upper bound of the range of m d r actions (not inclusive)
418            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
419            * @return the ordered range of matching m d r actions
420            * @throws SystemException if a system exception occurred
421            */
422            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
423                    long ruleGroupInstanceId, int start, int end,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getPersistence()
427                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end,
428                            orderByComparator);
429            }
430    
431            /**
432            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
433            *
434            * @param ruleGroupInstanceId the rule group instance ID
435            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
436            * @return the first matching m d r action
437            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
438            * @throws SystemException if a system exception occurred
439            */
440            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First(
441                    long ruleGroupInstanceId,
442                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
443                    throws com.liferay.portal.kernel.exception.SystemException,
444                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
445                    return getPersistence()
446                                       .findByRuleGroupInstanceId_First(ruleGroupInstanceId,
447                            orderByComparator);
448            }
449    
450            /**
451            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
452            *
453            * @param ruleGroupInstanceId the rule group instance ID
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First(
459                    long ruleGroupInstanceId,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return getPersistence()
463                                       .fetchByRuleGroupInstanceId_First(ruleGroupInstanceId,
464                            orderByComparator);
465            }
466    
467            /**
468            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
469            *
470            * @param ruleGroupInstanceId the rule group instance ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching m d r action
473            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last(
477                    long ruleGroupInstanceId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
481                    return getPersistence()
482                                       .findByRuleGroupInstanceId_Last(ruleGroupInstanceId,
483                            orderByComparator);
484            }
485    
486            /**
487            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
488            *
489            * @param ruleGroupInstanceId the rule group instance ID
490            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
491            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
492            * @throws SystemException if a system exception occurred
493            */
494            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last(
495                    long ruleGroupInstanceId,
496                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497                    throws com.liferay.portal.kernel.exception.SystemException {
498                    return getPersistence()
499                                       .fetchByRuleGroupInstanceId_Last(ruleGroupInstanceId,
500                            orderByComparator);
501            }
502    
503            /**
504            * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = &#63;.
505            *
506            * @param actionId the primary key of the current m d r action
507            * @param ruleGroupInstanceId the rule group instance ID
508            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
509            * @return the previous, current, and next m d r action
510            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
511            * @throws SystemException if a system exception occurred
512            */
513            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext(
514                    long actionId, long ruleGroupInstanceId,
515                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
516                    throws com.liferay.portal.kernel.exception.SystemException,
517                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
518                    return getPersistence()
519                                       .findByRuleGroupInstanceId_PrevAndNext(actionId,
520                            ruleGroupInstanceId, orderByComparator);
521            }
522    
523            /**
524            * Returns all the m d r actions.
525            *
526            * @return the m d r actions
527            * @throws SystemException if a system exception occurred
528            */
529            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll()
530                    throws com.liferay.portal.kernel.exception.SystemException {
531                    return getPersistence().findAll();
532            }
533    
534            /**
535            * Returns a range of all the m d r actions.
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 actions
542            * @param end the upper bound of the range of m d r actions (not inclusive)
543            * @return the range of m d r actions
544            * @throws SystemException if a system exception occurred
545            */
546            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
547                    int start, int end)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().findAll(start, end);
550            }
551    
552            /**
553            * Returns an ordered range of all the m d r actions.
554            *
555            * <p>
556            * 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.
557            * </p>
558            *
559            * @param start the lower bound of the range of m d r actions
560            * @param end the upper bound of the range of m d r actions (not inclusive)
561            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
562            * @return the ordered range of m d r actions
563            * @throws SystemException if a system exception occurred
564            */
565            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
566                    int start, int end,
567                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
568                    throws com.liferay.portal.kernel.exception.SystemException {
569                    return getPersistence().findAll(start, end, orderByComparator);
570            }
571    
572            /**
573            * Removes all the m d r actions where uuid = &#63; from the database.
574            *
575            * @param uuid the uuid
576            * @throws SystemException if a system exception occurred
577            */
578            public static void removeByUuid(java.lang.String uuid)
579                    throws com.liferay.portal.kernel.exception.SystemException {
580                    getPersistence().removeByUuid(uuid);
581            }
582    
583            /**
584            * Removes the m d r action where uuid = &#63; and groupId = &#63; from the database.
585            *
586            * @param uuid the uuid
587            * @param groupId the group ID
588            * @return the m d r action that was removed
589            * @throws SystemException if a system exception occurred
590            */
591            public static com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G(
592                    java.lang.String uuid, long groupId)
593                    throws com.liferay.portal.kernel.exception.SystemException,
594                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
595                    return getPersistence().removeByUUID_G(uuid, groupId);
596            }
597    
598            /**
599            * Removes all the m d r actions where ruleGroupInstanceId = &#63; from the database.
600            *
601            * @param ruleGroupInstanceId the rule group instance ID
602            * @throws SystemException if a system exception occurred
603            */
604            public static void removeByRuleGroupInstanceId(long ruleGroupInstanceId)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    getPersistence().removeByRuleGroupInstanceId(ruleGroupInstanceId);
607            }
608    
609            /**
610            * Removes all the m d r actions from the database.
611            *
612            * @throws SystemException if a system exception occurred
613            */
614            public static void removeAll()
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    getPersistence().removeAll();
617            }
618    
619            /**
620            * Returns the number of m d r actions where uuid = &#63;.
621            *
622            * @param uuid the uuid
623            * @return the number of matching m d r actions
624            * @throws SystemException if a system exception occurred
625            */
626            public static int countByUuid(java.lang.String uuid)
627                    throws com.liferay.portal.kernel.exception.SystemException {
628                    return getPersistence().countByUuid(uuid);
629            }
630    
631            /**
632            * Returns the number of m d r actions where uuid = &#63; and groupId = &#63;.
633            *
634            * @param uuid the uuid
635            * @param groupId the group ID
636            * @return the number of matching m d r actions
637            * @throws SystemException if a system exception occurred
638            */
639            public static int countByUUID_G(java.lang.String uuid, long groupId)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getPersistence().countByUUID_G(uuid, groupId);
642            }
643    
644            /**
645            * Returns the number of m d r actions where ruleGroupInstanceId = &#63;.
646            *
647            * @param ruleGroupInstanceId the rule group instance ID
648            * @return the number of matching m d r actions
649            * @throws SystemException if a system exception occurred
650            */
651            public static int countByRuleGroupInstanceId(long ruleGroupInstanceId)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence().countByRuleGroupInstanceId(ruleGroupInstanceId);
654            }
655    
656            /**
657            * Returns the number of m d r actions.
658            *
659            * @return the number of m d r actions
660            * @throws SystemException if a system exception occurred
661            */
662            public static int countAll()
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    return getPersistence().countAll();
665            }
666    
667            public static MDRActionPersistence getPersistence() {
668                    if (_persistence == null) {
669                            _persistence = (MDRActionPersistence)PortalBeanLocatorUtil.locate(MDRActionPersistence.class.getName());
670    
671                            ReferenceRegistry.registerReference(MDRActionUtil.class,
672                                    "_persistence");
673                    }
674    
675                    return _persistence;
676            }
677    
678            /**
679             * @deprecated
680             */
681            public void setPersistence(MDRActionPersistence persistence) {
682            }
683    
684            private static MDRActionPersistence _persistence;
685    }