001    /**
002     * Copyright (c) 2000-present 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.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.mobiledevicerules.model.MDRAction;
022    
023    /**
024     * The persistence interface for the m d r action service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Edward C. Han
031     * @see MDRActionPersistenceImpl
032     * @see MDRActionUtil
033     * @generated
034     */
035    @ProviderType
036    public interface MDRActionPersistence extends BasePersistence<MDRAction> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link MDRActionUtil} to access the m d r action persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the m d r actions where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching m d r actions
048            */
049            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
050                    java.lang.String uuid);
051    
052            /**
053            * Returns a range of all the m d r actions where uuid = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of m d r actions
061            * @param end the upper bound of the range of m d r actions (not inclusive)
062            * @return the range of matching m d r actions
063            */
064            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
065                    java.lang.String uuid, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the m d r actions where uuid = &#63;.
069            *
070            * <p>
071            * 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.
072            * </p>
073            *
074            * @param uuid the uuid
075            * @param start the lower bound of the range of m d r actions
076            * @param end the upper bound of the range of m d r actions (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching m d r actions
079            */
080            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
083    
084            /**
085            * Returns the first m d r action in the ordered set where uuid = &#63;.
086            *
087            * @param uuid the uuid
088            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
089            * @return the first matching m d r action
090            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
091            */
092            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_First(
093                    java.lang.String uuid,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
095                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
096    
097            /**
098            * Returns the first m d r action in the ordered set where uuid = &#63;.
099            *
100            * @param uuid the uuid
101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
102            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
103            */
104            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_First(
105                    java.lang.String uuid,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
107    
108            /**
109            * Returns the last m d r action in the ordered set where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
113            * @return the last matching m d r action
114            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
115            */
116            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_Last(
117                    java.lang.String uuid,
118                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
119                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
120    
121            /**
122            * Returns the last m d r action in the ordered set where uuid = &#63;.
123            *
124            * @param uuid the uuid
125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
126            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
127            */
128            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_Last(
129                    java.lang.String uuid,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
131    
132            /**
133            * Returns the m d r actions before and after the current m d r action in the ordered set where uuid = &#63;.
134            *
135            * @param actionId the primary key of the current m d r action
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the previous, current, and next m d r action
139            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
140            */
141            public com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_PrevAndNext(
142                    long actionId, java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
144                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
145    
146            /**
147            * Removes all the m d r actions where uuid = &#63; from the database.
148            *
149            * @param uuid the uuid
150            */
151            public void removeByUuid(java.lang.String uuid);
152    
153            /**
154            * Returns the number of m d r actions where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @return the number of matching m d r actions
158            */
159            public int countByUuid(java.lang.String uuid);
160    
161            /**
162            * 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.
163            *
164            * @param uuid the uuid
165            * @param groupId the group ID
166            * @return the matching m d r action
167            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
168            */
169            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUUID_G(
170                    java.lang.String uuid, long groupId)
171                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
172    
173            /**
174            * 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.
175            *
176            * @param uuid the uuid
177            * @param groupId the group ID
178            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
179            */
180            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
181                    java.lang.String uuid, long groupId);
182    
183            /**
184            * 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.
185            *
186            * @param uuid the uuid
187            * @param groupId the group ID
188            * @param retrieveFromCache whether to use the finder cache
189            * @return the matching m d r action, or <code>null</code> if a matching m d r action could not be found
190            */
191            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUUID_G(
192                    java.lang.String uuid, long groupId, boolean retrieveFromCache);
193    
194            /**
195            * Removes the m d r action where uuid = &#63; and groupId = &#63; from the database.
196            *
197            * @param uuid the uuid
198            * @param groupId the group ID
199            * @return the m d r action that was removed
200            */
201            public com.liferay.portlet.mobiledevicerules.model.MDRAction removeByUUID_G(
202                    java.lang.String uuid, long groupId)
203                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
204    
205            /**
206            * Returns the number of m d r actions where uuid = &#63; and groupId = &#63;.
207            *
208            * @param uuid the uuid
209            * @param groupId the group ID
210            * @return the number of matching m d r actions
211            */
212            public int countByUUID_G(java.lang.String uuid, long groupId);
213    
214            /**
215            * Returns all the m d r actions where uuid = &#63; and companyId = &#63;.
216            *
217            * @param uuid the uuid
218            * @param companyId the company ID
219            * @return the matching m d r actions
220            */
221            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
222                    java.lang.String uuid, long companyId);
223    
224            /**
225            * Returns a range of all the m d r actions where uuid = &#63; and companyId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param uuid the uuid
232            * @param companyId the company ID
233            * @param start the lower bound of the range of m d r actions
234            * @param end the upper bound of the range of m d r actions (not inclusive)
235            * @return the range of matching m d r actions
236            */
237            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
238                    java.lang.String uuid, long companyId, int start, int end);
239    
240            /**
241            * Returns an ordered range of all the m d r actions where uuid = &#63; and companyId = &#63;.
242            *
243            * <p>
244            * 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.
245            * </p>
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @param start the lower bound of the range of m d r actions
250            * @param end the upper bound of the range of m d r actions (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
252            * @return the ordered range of matching m d r actions
253            */
254            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByUuid_C(
255                    java.lang.String uuid, long companyId, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
257    
258            /**
259            * Returns the first m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
260            *
261            * @param uuid the uuid
262            * @param companyId the company ID
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            */
267            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_First(
268                    java.lang.String uuid, long companyId,
269                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
270                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
271    
272            /**
273            * Returns the first m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
274            *
275            * @param uuid the uuid
276            * @param companyId the company ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
279            */
280            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_First(
281                    java.lang.String uuid, long companyId,
282                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
283    
284            /**
285            * Returns the last m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
286            *
287            * @param uuid the uuid
288            * @param companyId the company ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the last matching m d r action
291            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
292            */
293            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByUuid_C_Last(
294                    java.lang.String uuid, long companyId,
295                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
296                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
297    
298            /**
299            * Returns the last m d r action in the ordered set where uuid = &#63; and companyId = &#63;.
300            *
301            * @param uuid the uuid
302            * @param companyId the company ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
305            */
306            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByUuid_C_Last(
307                    java.lang.String uuid, long companyId,
308                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
309    
310            /**
311            * 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;.
312            *
313            * @param actionId the primary key of the current m d r action
314            * @param uuid the uuid
315            * @param companyId the company ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next m d r action
318            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
319            */
320            public com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByUuid_C_PrevAndNext(
321                    long actionId, java.lang.String uuid, long companyId,
322                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
323                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
324    
325            /**
326            * Removes all the m d r actions where uuid = &#63; and companyId = &#63; from the database.
327            *
328            * @param uuid the uuid
329            * @param companyId the company ID
330            */
331            public void removeByUuid_C(java.lang.String uuid, long companyId);
332    
333            /**
334            * Returns the number of m d r actions where uuid = &#63; and companyId = &#63;.
335            *
336            * @param uuid the uuid
337            * @param companyId the company ID
338            * @return the number of matching m d r actions
339            */
340            public int countByUuid_C(java.lang.String uuid, long companyId);
341    
342            /**
343            * Returns all the m d r actions where ruleGroupInstanceId = &#63;.
344            *
345            * @param ruleGroupInstanceId the rule group instance ID
346            * @return the matching m d r actions
347            */
348            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
349                    long ruleGroupInstanceId);
350    
351            /**
352            * Returns a range of all the m d r actions where ruleGroupInstanceId = &#63;.
353            *
354            * <p>
355            * 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.
356            * </p>
357            *
358            * @param ruleGroupInstanceId the rule group instance ID
359            * @param start the lower bound of the range of m d r actions
360            * @param end the upper bound of the range of m d r actions (not inclusive)
361            * @return the range of matching m d r actions
362            */
363            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
364                    long ruleGroupInstanceId, int start, int end);
365    
366            /**
367            * Returns an ordered range of all the m d r actions where ruleGroupInstanceId = &#63;.
368            *
369            * <p>
370            * 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.
371            * </p>
372            *
373            * @param ruleGroupInstanceId the rule group instance ID
374            * @param start the lower bound of the range of m d r actions
375            * @param end the upper bound of the range of m d r actions (not inclusive)
376            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
377            * @return the ordered range of matching m d r actions
378            */
379            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findByRuleGroupInstanceId(
380                    long ruleGroupInstanceId, int start, int end,
381                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
382    
383            /**
384            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
385            *
386            * @param ruleGroupInstanceId the rule group instance ID
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the first matching m d r action
389            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
390            */
391            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_First(
392                    long ruleGroupInstanceId,
393                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
394                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
395    
396            /**
397            * Returns the first m d r action in the ordered set where ruleGroupInstanceId = &#63;.
398            *
399            * @param ruleGroupInstanceId the rule group instance ID
400            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
401            * @return the first matching m d r action, or <code>null</code> if a matching m d r action could not be found
402            */
403            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_First(
404                    long ruleGroupInstanceId,
405                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
406    
407            /**
408            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
409            *
410            * @param ruleGroupInstanceId the rule group instance ID
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the last matching m d r action
413            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a matching m d r action could not be found
414            */
415            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByRuleGroupInstanceId_Last(
416                    long ruleGroupInstanceId,
417                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
418                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
419    
420            /**
421            * Returns the last m d r action in the ordered set where ruleGroupInstanceId = &#63;.
422            *
423            * @param ruleGroupInstanceId the rule group instance ID
424            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
425            * @return the last matching m d r action, or <code>null</code> if a matching m d r action could not be found
426            */
427            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByRuleGroupInstanceId_Last(
428                    long ruleGroupInstanceId,
429                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
430    
431            /**
432            * Returns the m d r actions before and after the current m d r action in the ordered set where ruleGroupInstanceId = &#63;.
433            *
434            * @param actionId the primary key of the current m d r action
435            * @param ruleGroupInstanceId the rule group instance ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the previous, current, and next m d r action
438            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
439            */
440            public com.liferay.portlet.mobiledevicerules.model.MDRAction[] findByRuleGroupInstanceId_PrevAndNext(
441                    long actionId, long ruleGroupInstanceId,
442                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator)
443                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
444    
445            /**
446            * Removes all the m d r actions where ruleGroupInstanceId = &#63; from the database.
447            *
448            * @param ruleGroupInstanceId the rule group instance ID
449            */
450            public void removeByRuleGroupInstanceId(long ruleGroupInstanceId);
451    
452            /**
453            * Returns the number of m d r actions where ruleGroupInstanceId = &#63;.
454            *
455            * @param ruleGroupInstanceId the rule group instance ID
456            * @return the number of matching m d r actions
457            */
458            public int countByRuleGroupInstanceId(long ruleGroupInstanceId);
459    
460            /**
461            * Caches the m d r action in the entity cache if it is enabled.
462            *
463            * @param mdrAction the m d r action
464            */
465            public void cacheResult(
466                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction);
467    
468            /**
469            * Caches the m d r actions in the entity cache if it is enabled.
470            *
471            * @param mdrActions the m d r actions
472            */
473            public void cacheResult(
474                    java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> mdrActions);
475    
476            /**
477            * Creates a new m d r action with the primary key. Does not add the m d r action to the database.
478            *
479            * @param actionId the primary key for the new m d r action
480            * @return the new m d r action
481            */
482            public com.liferay.portlet.mobiledevicerules.model.MDRAction create(
483                    long actionId);
484    
485            /**
486            * Removes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.
487            *
488            * @param actionId the primary key of the m d r action
489            * @return the m d r action that was removed
490            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
491            */
492            public com.liferay.portlet.mobiledevicerules.model.MDRAction remove(
493                    long actionId)
494                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
495    
496            public com.liferay.portlet.mobiledevicerules.model.MDRAction updateImpl(
497                    com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction);
498    
499            /**
500            * 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.
501            *
502            * @param actionId the primary key of the m d r action
503            * @return the m d r action
504            * @throws com.liferay.portlet.mobiledevicerules.NoSuchActionException if a m d r action with the primary key could not be found
505            */
506            public com.liferay.portlet.mobiledevicerules.model.MDRAction findByPrimaryKey(
507                    long actionId)
508                    throws com.liferay.portlet.mobiledevicerules.NoSuchActionException;
509    
510            /**
511            * Returns the m d r action with the primary key or returns <code>null</code> if it could not be found.
512            *
513            * @param actionId the primary key of the m d r action
514            * @return the m d r action, or <code>null</code> if a m d r action with the primary key could not be found
515            */
516            public com.liferay.portlet.mobiledevicerules.model.MDRAction fetchByPrimaryKey(
517                    long actionId);
518    
519            @Override
520            public java.util.Map<java.io.Serializable, com.liferay.portlet.mobiledevicerules.model.MDRAction> fetchByPrimaryKeys(
521                    java.util.Set<java.io.Serializable> primaryKeys);
522    
523            /**
524            * Returns all the m d r actions.
525            *
526            * @return the m d r actions
527            */
528            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll();
529    
530            /**
531            * Returns a range of all the m d r actions.
532            *
533            * <p>
534            * 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.
535            * </p>
536            *
537            * @param start the lower bound of the range of m d r actions
538            * @param end the upper bound of the range of m d r actions (not inclusive)
539            * @return the range of m d r actions
540            */
541            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
542                    int start, int end);
543    
544            /**
545            * Returns an ordered range of all the m d r actions.
546            *
547            * <p>
548            * 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.
549            * </p>
550            *
551            * @param start the lower bound of the range of m d r actions
552            * @param end the upper bound of the range of m d r actions (not inclusive)
553            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
554            * @return the ordered range of m d r actions
555            */
556            public java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRAction> findAll(
557                    int start, int end,
558                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRAction> orderByComparator);
559    
560            /**
561            * Removes all the m d r actions from the database.
562            */
563            public void removeAll();
564    
565            /**
566            * Returns the number of m d r actions.
567            *
568            * @return the number of m d r actions
569            */
570            public int countAll();
571    }