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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.mobiledevicerules.model.MDRAction;
027    
028    import java.util.List;
029    
030    /**
031     * 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Edward C. Han
038     * @see MDRActionPersistence
039     * @see MDRActionPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class MDRActionUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(MDRAction mdrAction) {
061                    getPersistence().clearCache(mdrAction);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<MDRAction> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<MDRAction> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<MDRAction> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static MDRAction update(MDRAction mdrAction)
104                    throws SystemException {
105                    return getPersistence().update(mdrAction);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static MDRAction update(MDRAction mdrAction,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(mdrAction, serviceContext);
114            }
115    
116            /**
117            * Returns all the m d r actions where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @return the matching m d r actions
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
124                    java.lang.String uuid)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().findByUuid(uuid);
127            }
128    
129            /**
130            * Returns a range of all the m d r actions where uuid = &#63;.
131            *
132            * <p>
133            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param uuid the uuid
137            * @param start the lower bound of the range of m d r actions
138            * @param end the upper bound of the range of m d r actions (not inclusive)
139            * @return the range of matching m d r actions
140            * @throws SystemException if a system exception occurred
141            */
142            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
143                    java.lang.String uuid, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().findByUuid(uuid, start, end);
146            }
147    
148            /**
149            * Returns an ordered range of all the m d r actions where uuid = &#63;.
150            *
151            * <p>
152            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
153            * </p>
154            *
155            * @param uuid the uuid
156            * @param start the lower bound of the range of m d r actions
157            * @param end the upper bound of the range of m d r actions (not inclusive)
158            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
159            * @return the ordered range of matching m d r actions
160            * @throws SystemException if a system exception occurred
161            */
162            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
163                    java.lang.String uuid, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167            }
168    
169            /**
170            * Returns the first m d r action in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching m d r action
175            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First(
179                    java.lang.String uuid,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
183                    return getPersistence().findByUuid_First(uuid, orderByComparator);
184            }
185    
186            /**
187            * Returns the first m d r action in the ordered set where uuid = &#63;.
188            *
189            * @param uuid the uuid
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First(
195                    java.lang.String uuid,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
199            }
200    
201            /**
202            * Returns the last m d r action in the ordered set where uuid = &#63;.
203            *
204            * @param uuid the uuid
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the last matching m d r action
207            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last(
211                    java.lang.String uuid,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
215                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
216            }
217    
218            /**
219            * Returns the last m d r action in the ordered set where uuid = &#63;.
220            *
221            * @param uuid the uuid
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last(
227                    java.lang.String uuid,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
231            }
232    
233            /**
234            * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = &#63;.
235            *
236            * @param actionId the primary key of the current m d r action
237            * @param uuid the uuid
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the previous, current, and next m d r action
240            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext(
244                    long actionId, java.lang.String uuid,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException,
247                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
248                    return getPersistence()
249                                       .findByUuid_PrevAndNext(actionId, uuid, orderByComparator);
250            }
251    
252            /**
253            * Removes all the m d r actions where uuid = &#63; from the database.
254            *
255            * @param uuid the uuid
256            * @throws SystemException if a system exception occurred
257            */
258            public static void removeByUuid(java.lang.String uuid)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    getPersistence().removeByUuid(uuid);
261            }
262    
263            /**
264            * Returns the number of m d r actions where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @return the number of matching m d r actions
268            * @throws SystemException if a system exception occurred
269            */
270            public static int countByUuid(java.lang.String uuid)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().countByUuid(uuid);
273            }
274    
275            /**
276            * 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.
277            *
278            * @param uuid the uuid
279            * @param groupId the group ID
280            * @return the matching m d r action
281            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G(
285                    java.lang.String uuid, long groupId)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
288                    return getPersistence().findByUUID_G(uuid, groupId);
289            }
290    
291            /**
292            * 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.
293            *
294            * @param uuid the uuid
295            * @param groupId the group ID
296            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
297            * @throws SystemException if a system exception occurred
298            */
299            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
300                    java.lang.String uuid, long groupId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return getPersistence().fetchByUUID_G(uuid, groupId);
303            }
304    
305            /**
306            * 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.
307            *
308            * @param uuid the uuid
309            * @param groupId the group ID
310            * @param retrieveFromCache whether to use the finder cache
311            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
315                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
318            }
319    
320            /**
321            * Removes the m d r action where uuid = &#63; and groupId = &#63; from the database.
322            *
323            * @param uuid the uuid
324            * @param groupId the group ID
325            * @return the m d r action that was removed
326            * @throws SystemException if a system exception occurred
327            */
328            public static com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G(
329                    java.lang.String uuid, long groupId)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
332                    return getPersistence().removeByUUID_G(uuid, groupId);
333            }
334    
335            /**
336            * Returns the number of m d r actions where uuid = &#63; and groupId = &#63;.
337            *
338            * @param uuid the uuid
339            * @param groupId the group ID
340            * @return the number of matching m d r actions
341            * @throws SystemException if a system exception occurred
342            */
343            public static int countByUUID_G(java.lang.String uuid, long groupId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().countByUUID_G(uuid, groupId);
346            }
347    
348            /**
349            * Returns all the m d r actions where uuid = &#63; and companyId = &#63;.
350            *
351            * @param uuid the uuid
352            * @param companyId the company ID
353            * @return the matching m d r actions
354            * @throws SystemException if a system exception occurred
355            */
356            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
357                    java.lang.String uuid, long companyId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().findByUuid_C(uuid, companyId);
360            }
361    
362            /**
363            * Returns a range of all the m d r actions where uuid = &#63; and companyId = &#63;.
364            *
365            * <p>
366            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
367            * </p>
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @param start the lower bound of the range of m d r actions
372            * @param end the upper bound of the range of m d r actions (not inclusive)
373            * @return the range of matching m d r actions
374            * @throws SystemException if a system exception occurred
375            */
376            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
377                    java.lang.String uuid, long companyId, int start, int end)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
380            }
381    
382            /**
383            * Returns an ordered range of all the m d r actions where uuid = &#63; and companyId = &#63;.
384            *
385            * <p>
386            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
387            * </p>
388            *
389            * @param uuid the uuid
390            * @param companyId the company ID
391            * @param start the lower bound of the range of m d r actions
392            * @param end the upper bound of the range of m d r actions (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching m d r actions
395            * @throws SystemException if a system exception occurred
396            */
397            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
398                    java.lang.String uuid, long companyId, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getPersistence()
402                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
403            }
404    
405            /**
406            * Returns the first m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
407            *
408            * @param uuid the uuid
409            * @param companyId the company ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the first matching m d r action
412            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_First(
416                    java.lang.String uuid, long companyId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
420                    return getPersistence()
421                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
422            }
423    
424            /**
425            * Returns the first m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
426            *
427            * @param uuid the uuid
428            * @param companyId the company ID
429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
430            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_First(
434                    java.lang.String uuid, long companyId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence()
438                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
439            }
440    
441            /**
442            * Returns the last m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
443            *
444            * @param uuid the uuid
445            * @param companyId the company ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching m d r action
448            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_Last(
452                    java.lang.String uuid, long companyId,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
456                    return getPersistence()
457                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
458            }
459    
460            /**
461            * Returns the last m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
462            *
463            * @param uuid the uuid
464            * @param companyId the company ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_Last(
470                    java.lang.String uuid, long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence()
474                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
475            }
476    
477            /**
478            * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
479            *
480            * @param actionId the primary key of the current m d r action
481            * @param uuid the uuid
482            * @param companyId the company ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the previous, current, and next m d r action
485            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_C_PrevAndNext(
489                    long actionId, java.lang.String uuid, long companyId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException,
492                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
493                    return getPersistence()
494                                       .findByUuid_C_PrevAndNext(actionId, uuid, companyId,
495                            orderByComparator);
496            }
497    
498            /**
499            * Removes all the m d r actions where uuid = &#63; and companyId = &#63; from the database.
500            *
501            * @param uuid the uuid
502            * @param companyId the company ID
503            * @throws SystemException if a system exception occurred
504            */
505            public static void removeByUuid_C(java.lang.String uuid, long companyId)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    getPersistence().removeByUuid_C(uuid, companyId);
508            }
509    
510            /**
511            * Returns the number of m d r actions where uuid = &#63; and companyId = &#63;.
512            *
513            * @param uuid the uuid
514            * @param companyId the company ID
515            * @return the number of matching m d r actions
516            * @throws SystemException if a system exception occurred
517            */
518            public static int countByUuid_C(java.lang.String uuid, long companyId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence().countByUuid_C(uuid, companyId);
521            }
522    
523            /**
524            * Returns all the m d r actions where ruleGroupInstanceId = &#63;.
525            *
526            * @param ruleGroupInstanceId the rule group instance ID
527            * @return the matching m d r actions
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
531                    long ruleGroupInstanceId)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence().findByRuleGroupInstanceId(ruleGroupInstanceId);
534            }
535    
536            /**
537            * Returns a range of all the m d r actions where ruleGroupInstanceId = &#63;.
538            *
539            * <p>
540            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
541            * </p>
542            *
543            * @param ruleGroupInstanceId the rule group instance ID
544            * @param start the lower bound of the range of m d r actions
545            * @param end the upper bound of the range of m d r actions (not inclusive)
546            * @return the range of matching m d r actions
547            * @throws SystemException if a system exception occurred
548            */
549            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
550                    long ruleGroupInstanceId, int start, int end)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getPersistence()
553                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end);
554            }
555    
556            /**
557            * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = &#63;.
558            *
559            * <p>
560            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
561            * </p>
562            *
563            * @param ruleGroupInstanceId the rule group instance ID
564            * @param start the lower bound of the range of m d r actions
565            * @param end the upper bound of the range of m d r actions (not inclusive)
566            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
567            * @return the ordered range of matching m d r actions
568            * @throws SystemException if a system exception occurred
569            */
570            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
571                    long ruleGroupInstanceId, int start, int end,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getPersistence()
575                                       .findByRuleGroupInstanceId(ruleGroupInstanceId, start, end,
576                            orderByComparator);
577            }
578    
579            /**
580            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
581            *
582            * @param ruleGroupInstanceId the rule group instance ID
583            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
584            * @return the first matching m d r action
585            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
586            * @throws SystemException if a system exception occurred
587            */
588            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First(
589                    long ruleGroupInstanceId,
590                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
591                    throws com.liferay.portal.kernel.exception.SystemException,
592                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
593                    return getPersistence()
594                                       .findByRuleGroupInstanceId_First(ruleGroupInstanceId,
595                            orderByComparator);
596            }
597    
598            /**
599            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
600            *
601            * @param ruleGroupInstanceId the rule group instance ID
602            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
603            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
604            * @throws SystemException if a system exception occurred
605            */
606            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First(
607                    long ruleGroupInstanceId,
608                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
609                    throws com.liferay.portal.kernel.exception.SystemException {
610                    return getPersistence()
611                                       .fetchByRuleGroupInstanceId_First(ruleGroupInstanceId,
612                            orderByComparator);
613            }
614    
615            /**
616            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
617            *
618            * @param ruleGroupInstanceId the rule group instance ID
619            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
620            * @return the last matching m d r action
621            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last(
625                    long ruleGroupInstanceId,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.kernel.exception.SystemException,
628                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
629                    return getPersistence()
630                                       .findByRuleGroupInstanceId_Last(ruleGroupInstanceId,
631                            orderByComparator);
632            }
633    
634            /**
635            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
636            *
637            * @param ruleGroupInstanceId the rule group instance ID
638            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
639            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last(
643                    long ruleGroupInstanceId,
644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    return getPersistence()
647                                       .fetchByRuleGroupInstanceId_Last(ruleGroupInstanceId,
648                            orderByComparator);
649            }
650    
651            /**
652            * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = &#63;.
653            *
654            * @param actionId the primary key of the current m d r action
655            * @param ruleGroupInstanceId the rule group instance ID
656            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
657            * @return the previous, current, and next m d r action
658            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
659            * @throws SystemException if a system exception occurred
660            */
661            public static com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext(
662                    long actionId, long ruleGroupInstanceId,
663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
664                    throws com.liferay.portal.kernel.exception.SystemException,
665                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
666                    return getPersistence()
667                                       .findByRuleGroupInstanceId_PrevAndNext(actionId,
668                            ruleGroupInstanceId, orderByComparator);
669            }
670    
671            /**
672            * Removes all the m d r actions where ruleGroupInstanceId = &#63; from the database.
673            *
674            * @param ruleGroupInstanceId the rule group instance ID
675            * @throws SystemException if a system exception occurred
676            */
677            public static void removeByRuleGroupInstanceId(long ruleGroupInstanceId)
678                    throws com.liferay.portal.kernel.exception.SystemException {
679                    getPersistence().removeByRuleGroupInstanceId(ruleGroupInstanceId);
680            }
681    
682            /**
683            * Returns the number of m d r actions where ruleGroupInstanceId = &#63;.
684            *
685            * @param ruleGroupInstanceId the rule group instance ID
686            * @return the number of matching m d r actions
687            * @throws SystemException if a system exception occurred
688            */
689            public static int countByRuleGroupInstanceId(long ruleGroupInstanceId)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().countByRuleGroupInstanceId(ruleGroupInstanceId);
692            }
693    
694            /**
695            * Caches the m d r action in the entity cache if it is enabled.
696            *
697            * @param mdrAction the m d r action
698            */
699            public static void cacheResult(
700                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
701                    getPersistence().cacheResult(mdrAction);
702            }
703    
704            /**
705            * Caches the m d r actions in the entity cache if it is enabled.
706            *
707            * @param mdrActions the m d r actions
708            */
709            public static void cacheResult(
710                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions) {
711                    getPersistence().cacheResult(mdrActions);
712            }
713    
714            /**
715            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
716            *
717            * @param actionId the primary key for the new m d r action
718            * @return the new m d r action
719            */
720            public static com.liferay.portlet.mobiledevicerules.model.MDRAction create(
721                    long actionId) {
722                    return getPersistence().create(actionId);
723            }
724    
725            /**
726            * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
727            *
728            * @param actionId the primary key of the m d r action
729            * @return the m d r action that was removed
730            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
731            * @throws SystemException if a system exception occurred
732            */
733            public static com.liferay.portlet.mobiledevicerules.model.MDRAction remove(
734                    long actionId)
735                    throws com.liferay.portal.kernel.exception.SystemException,
736                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
737                    return getPersistence().remove(actionId);
738            }
739    
740            public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl(
741                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction)
742                    throws com.liferay.portal.kernel.exception.SystemException {
743                    return getPersistence().updateImpl(mdrAction);
744            }
745    
746            /**
747            * 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.
748            *
749            * @param actionId the primary key of the m d r action
750            * @return the m d r action
751            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
752            * @throws SystemException if a system exception occurred
753            */
754            public static com.liferay.portlet.mobiledevicerules.model.MDRAction findByPrimaryKey(
755                    long actionId)
756                    throws com.liferay.portal.kernel.exception.SystemException,
757                            com.liferay.portlet.mobiledevicerules.NoSuchActionException {
758                    return getPersistence().findByPrimaryKey(actionId);
759            }
760    
761            /**
762            * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found.
763            *
764            * @param actionId the primary key of the m d r action
765            * @return the m d r action, or <code>null</code> if a m d r action with the primary key could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByPrimaryKey(
769                    long actionId)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence().fetchByPrimaryKey(actionId);
772            }
773    
774            /**
775            * Returns all the m d r actions.
776            *
777            * @return the m d r actions
778            * @throws SystemException if a system exception occurred
779            */
780            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll()
781                    throws com.liferay.portal.kernel.exception.SystemException {
782                    return getPersistence().findAll();
783            }
784    
785            /**
786            * Returns a range of all the m d r actions.
787            *
788            * <p>
789            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
790            * </p>
791            *
792            * @param start the lower bound of the range of m d r actions
793            * @param end the upper bound of the range of m d r actions (not inclusive)
794            * @return the range of m d r actions
795            * @throws SystemException if a system exception occurred
796            */
797            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
798                    int start, int end)
799                    throws com.liferay.portal.kernel.exception.SystemException {
800                    return getPersistence().findAll(start, end);
801            }
802    
803            /**
804            * Returns an ordered range of all the m d r actions.
805            *
806            * <p>
807            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRActionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
808            * </p>
809            *
810            * @param start the lower bound of the range of m d r actions
811            * @param end the upper bound of the range of m d r actions (not inclusive)
812            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
813            * @return the ordered range of m d r actions
814            * @throws SystemException if a system exception occurred
815            */
816            public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
817                    int start, int end,
818                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return getPersistence().findAll(start, end, orderByComparator);
821            }
822    
823            /**
824            * Removes all the m d r actions from the database.
825            *
826            * @throws SystemException if a system exception occurred
827            */
828            public static void removeAll()
829                    throws com.liferay.portal.kernel.exception.SystemException {
830                    getPersistence().removeAll();
831            }
832    
833            /**
834            * Returns the number of m d r actions.
835            *
836            * @return the number of m d r actions
837            * @throws SystemException if a system exception occurred
838            */
839            public static int countAll()
840                    throws com.liferay.portal.kernel.exception.SystemException {
841                    return getPersistence().countAll();
842            }
843    
844            public static MDRActionPersistence getPersistence() {
845                    if (_persistence == null) {
846                            _persistence = (MDRActionPersistence)PortalBeanLocatorUtil.locate(MDRActionPersistence.class.getName());
847    
848                            ReferenceRegistry.registerReference(MDRActionUtil.class,
849                                    "_persistence");
850                    }
851    
852                    return _persistence;
853            }
854    
855            /**
856             * @deprecated As of 6.2.0
857             */
858            public void setPersistence(MDRActionPersistence persistence) {
859            }
860    
861            private static MDRActionPersistence _persistence;
862    }