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