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.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.model.UserNotificationEvent;
020    
021    /**
022     * The persistence interface for the user notification event service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see UserNotificationEventPersistenceImpl
030     * @see UserNotificationEventUtil
031     * @generated
032     */
033    @ProviderType
034    public interface UserNotificationEventPersistence extends BasePersistence<UserNotificationEvent> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link UserNotificationEventUtil} to access the user notification event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Returns all the user notification events where uuid = &#63;.
043            *
044            * @param uuid the uuid
045            * @return the matching user notification events
046            */
047            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
048                    java.lang.String uuid);
049    
050            /**
051            * Returns a range of all the user notification events where uuid = &#63;.
052            *
053            * <p>
054            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
055            * </p>
056            *
057            * @param uuid the uuid
058            * @param start the lower bound of the range of user notification events
059            * @param end the upper bound of the range of user notification events (not inclusive)
060            * @return the range of matching user notification events
061            */
062            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
063                    java.lang.String uuid, int start, int end);
064    
065            /**
066            * Returns an ordered range of all the user notification events where uuid = &#63;.
067            *
068            * <p>
069            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
070            * </p>
071            *
072            * @param uuid the uuid
073            * @param start the lower bound of the range of user notification events
074            * @param end the upper bound of the range of user notification events (not inclusive)
075            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
076            * @return the ordered range of matching user notification events
077            */
078            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
079                    java.lang.String uuid, int start, int end,
080                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
081    
082            /**
083            * Returns the first user notification event in the ordered set where uuid = &#63;.
084            *
085            * @param uuid the uuid
086            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
087            * @return the first matching user notification event
088            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
089            */
090            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
091                    java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
093                    throws com.liferay.portal.NoSuchUserNotificationEventException;
094    
095            /**
096            * Returns the first user notification event in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
101            */
102            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_First(
103                    java.lang.String uuid,
104                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
105    
106            /**
107            * Returns the last user notification event in the ordered set where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
111            * @return the last matching user notification event
112            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
113            */
114            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
115                    java.lang.String uuid,
116                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
117                    throws com.liferay.portal.NoSuchUserNotificationEventException;
118    
119            /**
120            * Returns the last user notification event in the ordered set where uuid = &#63;.
121            *
122            * @param uuid the uuid
123            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
124            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
125            */
126            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last(
127                    java.lang.String uuid,
128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
129    
130            /**
131            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
132            *
133            * @param userNotificationEventId the primary key of the current user notification event
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the previous, current, and next user notification event
137            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
138            */
139            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
140                    long userNotificationEventId, java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
142                    throws com.liferay.portal.NoSuchUserNotificationEventException;
143    
144            /**
145            * Removes all the user notification events where uuid = &#63; from the database.
146            *
147            * @param uuid the uuid
148            */
149            public void removeByUuid(java.lang.String uuid);
150    
151            /**
152            * Returns the number of user notification events where uuid = &#63;.
153            *
154            * @param uuid the uuid
155            * @return the number of matching user notification events
156            */
157            public int countByUuid(java.lang.String uuid);
158    
159            /**
160            * Returns all the user notification events where uuid = &#63; and companyId = &#63;.
161            *
162            * @param uuid the uuid
163            * @param companyId the company ID
164            * @return the matching user notification events
165            */
166            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
167                    java.lang.String uuid, long companyId);
168    
169            /**
170            * Returns a range of all the user notification events where uuid = &#63; and companyId = &#63;.
171            *
172            * <p>
173            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
174            * </p>
175            *
176            * @param uuid the uuid
177            * @param companyId the company ID
178            * @param start the lower bound of the range of user notification events
179            * @param end the upper bound of the range of user notification events (not inclusive)
180            * @return the range of matching user notification events
181            */
182            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
183                    java.lang.String uuid, long companyId, int start, int end);
184    
185            /**
186            * Returns an ordered range of all the user notification events where uuid = &#63; and companyId = &#63;.
187            *
188            * <p>
189            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
190            * </p>
191            *
192            * @param uuid the uuid
193            * @param companyId the company ID
194            * @param start the lower bound of the range of user notification events
195            * @param end the upper bound of the range of user notification events (not inclusive)
196            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
197            * @return the ordered range of matching user notification events
198            */
199            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
200                    java.lang.String uuid, long companyId, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
202    
203            /**
204            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
205            *
206            * @param uuid the uuid
207            * @param companyId the company ID
208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
209            * @return the first matching user notification event
210            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
211            */
212            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_First(
213                    java.lang.String uuid, long companyId,
214                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
215                    throws com.liferay.portal.NoSuchUserNotificationEventException;
216    
217            /**
218            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
219            *
220            * @param uuid the uuid
221            * @param companyId the company ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
224            */
225            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First(
226                    java.lang.String uuid, long companyId,
227                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
228    
229            /**
230            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
231            *
232            * @param uuid the uuid
233            * @param companyId the company ID
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the last matching user notification event
236            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
237            */
238            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last(
239                    java.lang.String uuid, long companyId,
240                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
241                    throws com.liferay.portal.NoSuchUserNotificationEventException;
242    
243            /**
244            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
245            *
246            * @param uuid the uuid
247            * @param companyId the company ID
248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
249            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
250            */
251            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last(
252                    java.lang.String uuid, long companyId,
253                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
254    
255            /**
256            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
257            *
258            * @param userNotificationEventId the primary key of the current user notification event
259            * @param uuid the uuid
260            * @param companyId the company ID
261            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
262            * @return the previous, current, and next user notification event
263            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
264            */
265            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext(
266                    long userNotificationEventId, java.lang.String uuid, long companyId,
267                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
268                    throws com.liferay.portal.NoSuchUserNotificationEventException;
269    
270            /**
271            * Removes all the user notification events where uuid = &#63; and companyId = &#63; from the database.
272            *
273            * @param uuid the uuid
274            * @param companyId the company ID
275            */
276            public void removeByUuid_C(java.lang.String uuid, long companyId);
277    
278            /**
279            * Returns the number of user notification events where uuid = &#63; and companyId = &#63;.
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @return the number of matching user notification events
284            */
285            public int countByUuid_C(java.lang.String uuid, long companyId);
286    
287            /**
288            * Returns all the user notification events where userId = &#63;.
289            *
290            * @param userId the user ID
291            * @return the matching user notification events
292            */
293            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
294                    long userId);
295    
296            /**
297            * Returns a range of all the user notification events where userId = &#63;.
298            *
299            * <p>
300            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
301            * </p>
302            *
303            * @param userId the user ID
304            * @param start the lower bound of the range of user notification events
305            * @param end the upper bound of the range of user notification events (not inclusive)
306            * @return the range of matching user notification events
307            */
308            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
309                    long userId, int start, int end);
310    
311            /**
312            * Returns an ordered range of all the user notification events where userId = &#63;.
313            *
314            * <p>
315            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
316            * </p>
317            *
318            * @param userId the user ID
319            * @param start the lower bound of the range of user notification events
320            * @param end the upper bound of the range of user notification events (not inclusive)
321            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
322            * @return the ordered range of matching user notification events
323            */
324            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
325                    long userId, int start, int end,
326                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
327    
328            /**
329            * Returns the first user notification event in the ordered set where userId = &#63;.
330            *
331            * @param userId the user ID
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching user notification event
334            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
335            */
336            public com.liferay.portal.model.UserNotificationEvent findByUserId_First(
337                    long userId,
338                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
339                    throws com.liferay.portal.NoSuchUserNotificationEventException;
340    
341            /**
342            * Returns the first user notification event in the ordered set where userId = &#63;.
343            *
344            * @param userId the user ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
347            */
348            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_First(
349                    long userId,
350                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
351    
352            /**
353            * Returns the last user notification event in the ordered set where userId = &#63;.
354            *
355            * @param userId the user ID
356            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
357            * @return the last matching user notification event
358            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
359            */
360            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
361                    long userId,
362                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
363                    throws com.liferay.portal.NoSuchUserNotificationEventException;
364    
365            /**
366            * Returns the last user notification event in the ordered set where userId = &#63;.
367            *
368            * @param userId the user ID
369            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
370            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
371            */
372            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last(
373                    long userId,
374                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
375    
376            /**
377            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
378            *
379            * @param userNotificationEventId the primary key of the current user notification event
380            * @param userId the user ID
381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
382            * @return the previous, current, and next user notification event
383            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
384            */
385            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
386                    long userNotificationEventId, long userId,
387                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
388                    throws com.liferay.portal.NoSuchUserNotificationEventException;
389    
390            /**
391            * Removes all the user notification events where userId = &#63; from the database.
392            *
393            * @param userId the user ID
394            */
395            public void removeByUserId(long userId);
396    
397            /**
398            * Returns the number of user notification events where userId = &#63;.
399            *
400            * @param userId the user ID
401            * @return the number of matching user notification events
402            */
403            public int countByUserId(long userId);
404    
405            /**
406            * Returns all the user notification events where userId = &#63; and deliveryType = &#63;.
407            *
408            * @param userId the user ID
409            * @param deliveryType the delivery type
410            * @return the matching user notification events
411            */
412            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
413                    long userId, int deliveryType);
414    
415            /**
416            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63;.
417            *
418            * <p>
419            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
420            * </p>
421            *
422            * @param userId the user ID
423            * @param deliveryType the delivery type
424            * @param start the lower bound of the range of user notification events
425            * @param end the upper bound of the range of user notification events (not inclusive)
426            * @return the range of matching user notification events
427            */
428            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
429                    long userId, int deliveryType, int start, int end);
430    
431            /**
432            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63;.
433            *
434            * <p>
435            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
436            * </p>
437            *
438            * @param userId the user ID
439            * @param deliveryType the delivery type
440            * @param start the lower bound of the range of user notification events
441            * @param end the upper bound of the range of user notification events (not inclusive)
442            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
443            * @return the ordered range of matching user notification events
444            */
445            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
446                    long userId, int deliveryType, int start, int end,
447                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
448    
449            /**
450            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
451            *
452            * @param userId the user ID
453            * @param deliveryType the delivery type
454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
455            * @return the first matching user notification event
456            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
457            */
458            public com.liferay.portal.model.UserNotificationEvent findByU_DT_First(
459                    long userId, int deliveryType,
460                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
461                    throws com.liferay.portal.NoSuchUserNotificationEventException;
462    
463            /**
464            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
465            *
466            * @param userId the user ID
467            * @param deliveryType the delivery type
468            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
469            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
470            */
471            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_First(
472                    long userId, int deliveryType,
473                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
474    
475            /**
476            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
477            *
478            * @param userId the user ID
479            * @param deliveryType the delivery type
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the last matching user notification event
482            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
483            */
484            public com.liferay.portal.model.UserNotificationEvent findByU_DT_Last(
485                    long userId, int deliveryType,
486                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
487                    throws com.liferay.portal.NoSuchUserNotificationEventException;
488    
489            /**
490            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
491            *
492            * @param userId the user ID
493            * @param deliveryType the delivery type
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
496            */
497            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_Last(
498                    long userId, int deliveryType,
499                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
500    
501            /**
502            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
503            *
504            * @param userNotificationEventId the primary key of the current user notification event
505            * @param userId the user ID
506            * @param deliveryType the delivery type
507            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
508            * @return the previous, current, and next user notification event
509            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
510            */
511            public com.liferay.portal.model.UserNotificationEvent[] findByU_DT_PrevAndNext(
512                    long userNotificationEventId, long userId, int deliveryType,
513                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
514                    throws com.liferay.portal.NoSuchUserNotificationEventException;
515    
516            /**
517            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; from the database.
518            *
519            * @param userId the user ID
520            * @param deliveryType the delivery type
521            */
522            public void removeByU_DT(long userId, int deliveryType);
523    
524            /**
525            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63;.
526            *
527            * @param userId the user ID
528            * @param deliveryType the delivery type
529            * @return the number of matching user notification events
530            */
531            public int countByU_DT(long userId, int deliveryType);
532    
533            /**
534            * Returns all the user notification events where userId = &#63; and delivered = &#63;.
535            *
536            * @param userId the user ID
537            * @param delivered the delivered
538            * @return the matching user notification events
539            */
540            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
541                    long userId, boolean delivered);
542    
543            /**
544            * Returns a range of all the user notification events where userId = &#63; and delivered = &#63;.
545            *
546            * <p>
547            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
548            * </p>
549            *
550            * @param userId the user ID
551            * @param delivered the delivered
552            * @param start the lower bound of the range of user notification events
553            * @param end the upper bound of the range of user notification events (not inclusive)
554            * @return the range of matching user notification events
555            */
556            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
557                    long userId, boolean delivered, int start, int end);
558    
559            /**
560            * Returns an ordered range of all the user notification events where userId = &#63; and delivered = &#63;.
561            *
562            * <p>
563            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
564            * </p>
565            *
566            * @param userId the user ID
567            * @param delivered the delivered
568            * @param start the lower bound of the range of user notification events
569            * @param end the upper bound of the range of user notification events (not inclusive)
570            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
571            * @return the ordered range of matching user notification events
572            */
573            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
574                    long userId, boolean delivered, int start, int end,
575                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
576    
577            /**
578            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
579            *
580            * @param userId the user ID
581            * @param delivered the delivered
582            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
583            * @return the first matching user notification event
584            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
585            */
586            public com.liferay.portal.model.UserNotificationEvent findByU_D_First(
587                    long userId, boolean delivered,
588                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
589                    throws com.liferay.portal.NoSuchUserNotificationEventException;
590    
591            /**
592            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
593            *
594            * @param userId the user ID
595            * @param delivered the delivered
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
598            */
599            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_First(
600                    long userId, boolean delivered,
601                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
602    
603            /**
604            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
605            *
606            * @param userId the user ID
607            * @param delivered the delivered
608            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
609            * @return the last matching user notification event
610            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
611            */
612            public com.liferay.portal.model.UserNotificationEvent findByU_D_Last(
613                    long userId, boolean delivered,
614                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
615                    throws com.liferay.portal.NoSuchUserNotificationEventException;
616    
617            /**
618            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
619            *
620            * @param userId the user ID
621            * @param delivered the delivered
622            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
623            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
624            */
625            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_Last(
626                    long userId, boolean delivered,
627                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
628    
629            /**
630            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and delivered = &#63;.
631            *
632            * @param userNotificationEventId the primary key of the current user notification event
633            * @param userId the user ID
634            * @param delivered the delivered
635            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
636            * @return the previous, current, and next user notification event
637            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
638            */
639            public com.liferay.portal.model.UserNotificationEvent[] findByU_D_PrevAndNext(
640                    long userNotificationEventId, long userId, boolean delivered,
641                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
642                    throws com.liferay.portal.NoSuchUserNotificationEventException;
643    
644            /**
645            * Removes all the user notification events where userId = &#63; and delivered = &#63; from the database.
646            *
647            * @param userId the user ID
648            * @param delivered the delivered
649            */
650            public void removeByU_D(long userId, boolean delivered);
651    
652            /**
653            * Returns the number of user notification events where userId = &#63; and delivered = &#63;.
654            *
655            * @param userId the user ID
656            * @param delivered the delivered
657            * @return the number of matching user notification events
658            */
659            public int countByU_D(long userId, boolean delivered);
660    
661            /**
662            * Returns all the user notification events where userId = &#63; and archived = &#63;.
663            *
664            * @param userId the user ID
665            * @param archived the archived
666            * @return the matching user notification events
667            */
668            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
669                    long userId, boolean archived);
670    
671            /**
672            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
673            *
674            * <p>
675            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
676            * </p>
677            *
678            * @param userId the user ID
679            * @param archived the archived
680            * @param start the lower bound of the range of user notification events
681            * @param end the upper bound of the range of user notification events (not inclusive)
682            * @return the range of matching user notification events
683            */
684            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
685                    long userId, boolean archived, int start, int end);
686    
687            /**
688            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
689            *
690            * <p>
691            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
692            * </p>
693            *
694            * @param userId the user ID
695            * @param archived the archived
696            * @param start the lower bound of the range of user notification events
697            * @param end the upper bound of the range of user notification events (not inclusive)
698            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
699            * @return the ordered range of matching user notification events
700            */
701            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
702                    long userId, boolean archived, int start, int end,
703                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
704    
705            /**
706            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
707            *
708            * @param userId the user ID
709            * @param archived the archived
710            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
711            * @return the first matching user notification event
712            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
713            */
714            public com.liferay.portal.model.UserNotificationEvent findByU_A_First(
715                    long userId, boolean archived,
716                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
717                    throws com.liferay.portal.NoSuchUserNotificationEventException;
718    
719            /**
720            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
721            *
722            * @param userId the user ID
723            * @param archived the archived
724            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
725            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
726            */
727            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_First(
728                    long userId, boolean archived,
729                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
730    
731            /**
732            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
733            *
734            * @param userId the user ID
735            * @param archived the archived
736            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
737            * @return the last matching user notification event
738            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
739            */
740            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
741                    long userId, boolean archived,
742                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
743                    throws com.liferay.portal.NoSuchUserNotificationEventException;
744    
745            /**
746            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
747            *
748            * @param userId the user ID
749            * @param archived the archived
750            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
751            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
752            */
753            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last(
754                    long userId, boolean archived,
755                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
756    
757            /**
758            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
759            *
760            * @param userNotificationEventId the primary key of the current user notification event
761            * @param userId the user ID
762            * @param archived the archived
763            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
764            * @return the previous, current, and next user notification event
765            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
766            */
767            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
768                    long userNotificationEventId, long userId, boolean archived,
769                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
770                    throws com.liferay.portal.NoSuchUserNotificationEventException;
771    
772            /**
773            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
774            *
775            * @param userId the user ID
776            * @param archived the archived
777            */
778            public void removeByU_A(long userId, boolean archived);
779    
780            /**
781            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
782            *
783            * @param userId the user ID
784            * @param archived the archived
785            * @return the number of matching user notification events
786            */
787            public int countByU_A(long userId, boolean archived);
788    
789            /**
790            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
791            *
792            * @param userId the user ID
793            * @param deliveryType the delivery type
794            * @param delivered the delivered
795            * @return the matching user notification events
796            */
797            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
798                    long userId, int deliveryType, boolean delivered);
799    
800            /**
801            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
802            *
803            * <p>
804            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
805            * </p>
806            *
807            * @param userId the user ID
808            * @param deliveryType the delivery type
809            * @param delivered the delivered
810            * @param start the lower bound of the range of user notification events
811            * @param end the upper bound of the range of user notification events (not inclusive)
812            * @return the range of matching user notification events
813            */
814            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
815                    long userId, int deliveryType, boolean delivered, int start, int end);
816    
817            /**
818            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
819            *
820            * <p>
821            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
822            * </p>
823            *
824            * @param userId the user ID
825            * @param deliveryType the delivery type
826            * @param delivered the delivered
827            * @param start the lower bound of the range of user notification events
828            * @param end the upper bound of the range of user notification events (not inclusive)
829            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
830            * @return the ordered range of matching user notification events
831            */
832            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
833                    long userId, int deliveryType, boolean delivered, int start, int end,
834                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
835    
836            /**
837            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
838            *
839            * @param userId the user ID
840            * @param deliveryType the delivery type
841            * @param delivered the delivered
842            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
843            * @return the first matching user notification event
844            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
845            */
846            public com.liferay.portal.model.UserNotificationEvent findByU_DT_D_First(
847                    long userId, int deliveryType, boolean delivered,
848                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
849                    throws com.liferay.portal.NoSuchUserNotificationEventException;
850    
851            /**
852            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
853            *
854            * @param userId the user ID
855            * @param deliveryType the delivery type
856            * @param delivered the delivered
857            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
858            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
859            */
860            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_First(
861                    long userId, int deliveryType, boolean delivered,
862                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
863    
864            /**
865            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
866            *
867            * @param userId the user ID
868            * @param deliveryType the delivery type
869            * @param delivered the delivered
870            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
871            * @return the last matching user notification event
872            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
873            */
874            public com.liferay.portal.model.UserNotificationEvent findByU_DT_D_Last(
875                    long userId, int deliveryType, boolean delivered,
876                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
877                    throws com.liferay.portal.NoSuchUserNotificationEventException;
878    
879            /**
880            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
881            *
882            * @param userId the user ID
883            * @param deliveryType the delivery type
884            * @param delivered the delivered
885            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
886            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
887            */
888            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_Last(
889                    long userId, int deliveryType, boolean delivered,
890                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
891    
892            /**
893            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
894            *
895            * @param userNotificationEventId the primary key of the current user notification event
896            * @param userId the user ID
897            * @param deliveryType the delivery type
898            * @param delivered the delivered
899            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
900            * @return the previous, current, and next user notification event
901            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
902            */
903            public com.liferay.portal.model.UserNotificationEvent[] findByU_DT_D_PrevAndNext(
904                    long userNotificationEventId, long userId, int deliveryType,
905                    boolean delivered,
906                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
907                    throws com.liferay.portal.NoSuchUserNotificationEventException;
908    
909            /**
910            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; from the database.
911            *
912            * @param userId the user ID
913            * @param deliveryType the delivery type
914            * @param delivered the delivered
915            */
916            public void removeByU_DT_D(long userId, int deliveryType, boolean delivered);
917    
918            /**
919            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
920            *
921            * @param userId the user ID
922            * @param deliveryType the delivery type
923            * @param delivered the delivered
924            * @return the number of matching user notification events
925            */
926            public int countByU_DT_D(long userId, int deliveryType, boolean delivered);
927    
928            /**
929            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
930            *
931            * @param userId the user ID
932            * @param deliveryType the delivery type
933            * @param archived the archived
934            * @return the matching user notification events
935            */
936            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
937                    long userId, int deliveryType, boolean archived);
938    
939            /**
940            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
941            *
942            * <p>
943            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
944            * </p>
945            *
946            * @param userId the user ID
947            * @param deliveryType the delivery type
948            * @param archived the archived
949            * @param start the lower bound of the range of user notification events
950            * @param end the upper bound of the range of user notification events (not inclusive)
951            * @return the range of matching user notification events
952            */
953            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
954                    long userId, int deliveryType, boolean archived, int start, int end);
955    
956            /**
957            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
958            *
959            * <p>
960            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
961            * </p>
962            *
963            * @param userId the user ID
964            * @param deliveryType the delivery type
965            * @param archived the archived
966            * @param start the lower bound of the range of user notification events
967            * @param end the upper bound of the range of user notification events (not inclusive)
968            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
969            * @return the ordered range of matching user notification events
970            */
971            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
972                    long userId, int deliveryType, boolean archived, int start, int end,
973                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
974    
975            /**
976            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
977            *
978            * @param userId the user ID
979            * @param deliveryType the delivery type
980            * @param archived the archived
981            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
982            * @return the first matching user notification event
983            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
984            */
985            public com.liferay.portal.model.UserNotificationEvent findByU_DT_A_First(
986                    long userId, int deliveryType, boolean archived,
987                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
988                    throws com.liferay.portal.NoSuchUserNotificationEventException;
989    
990            /**
991            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
992            *
993            * @param userId the user ID
994            * @param deliveryType the delivery type
995            * @param archived the archived
996            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
997            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
998            */
999            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_First(
1000                    long userId, int deliveryType, boolean archived,
1001                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1002    
1003            /**
1004            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1005            *
1006            * @param userId the user ID
1007            * @param deliveryType the delivery type
1008            * @param archived the archived
1009            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1010            * @return the last matching user notification event
1011            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1012            */
1013            public com.liferay.portal.model.UserNotificationEvent findByU_DT_A_Last(
1014                    long userId, int deliveryType, boolean archived,
1015                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1016                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1017    
1018            /**
1019            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1020            *
1021            * @param userId the user ID
1022            * @param deliveryType the delivery type
1023            * @param archived the archived
1024            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1025            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1026            */
1027            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_Last(
1028                    long userId, int deliveryType, boolean archived,
1029                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1030    
1031            /**
1032            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1033            *
1034            * @param userNotificationEventId the primary key of the current user notification event
1035            * @param userId the user ID
1036            * @param deliveryType the delivery type
1037            * @param archived the archived
1038            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1039            * @return the previous, current, and next user notification event
1040            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1041            */
1042            public com.liferay.portal.model.UserNotificationEvent[] findByU_DT_A_PrevAndNext(
1043                    long userNotificationEventId, long userId, int deliveryType,
1044                    boolean archived,
1045                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1046                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1047    
1048            /**
1049            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63; from the database.
1050            *
1051            * @param userId the user ID
1052            * @param deliveryType the delivery type
1053            * @param archived the archived
1054            */
1055            public void removeByU_DT_A(long userId, int deliveryType, boolean archived);
1056    
1057            /**
1058            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1059            *
1060            * @param userId the user ID
1061            * @param deliveryType the delivery type
1062            * @param archived the archived
1063            * @return the number of matching user notification events
1064            */
1065            public int countByU_DT_A(long userId, int deliveryType, boolean archived);
1066    
1067            /**
1068            * Returns all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1069            *
1070            * @param userId the user ID
1071            * @param delivered the delivered
1072            * @param actionRequired the action required
1073            * @return the matching user notification events
1074            */
1075            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1076                    long userId, boolean delivered, boolean actionRequired);
1077    
1078            /**
1079            * Returns a range of all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1080            *
1081            * <p>
1082            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1083            * </p>
1084            *
1085            * @param userId the user ID
1086            * @param delivered the delivered
1087            * @param actionRequired the action required
1088            * @param start the lower bound of the range of user notification events
1089            * @param end the upper bound of the range of user notification events (not inclusive)
1090            * @return the range of matching user notification events
1091            */
1092            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1093                    long userId, boolean delivered, boolean actionRequired, int start,
1094                    int end);
1095    
1096            /**
1097            * Returns an ordered range of all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1098            *
1099            * <p>
1100            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1101            * </p>
1102            *
1103            * @param userId the user ID
1104            * @param delivered the delivered
1105            * @param actionRequired the action required
1106            * @param start the lower bound of the range of user notification events
1107            * @param end the upper bound of the range of user notification events (not inclusive)
1108            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1109            * @return the ordered range of matching user notification events
1110            */
1111            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1112                    long userId, boolean delivered, boolean actionRequired, int start,
1113                    int end,
1114                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1115    
1116            /**
1117            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1118            *
1119            * @param userId the user ID
1120            * @param delivered the delivered
1121            * @param actionRequired the action required
1122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1123            * @return the first matching user notification event
1124            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1125            */
1126            public com.liferay.portal.model.UserNotificationEvent findByU_D_A_First(
1127                    long userId, boolean delivered, boolean actionRequired,
1128                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1129                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1130    
1131            /**
1132            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1133            *
1134            * @param userId the user ID
1135            * @param delivered the delivered
1136            * @param actionRequired the action required
1137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1138            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1139            */
1140            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_A_First(
1141                    long userId, boolean delivered, boolean actionRequired,
1142                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1143    
1144            /**
1145            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1146            *
1147            * @param userId the user ID
1148            * @param delivered the delivered
1149            * @param actionRequired the action required
1150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1151            * @return the last matching user notification event
1152            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1153            */
1154            public com.liferay.portal.model.UserNotificationEvent findByU_D_A_Last(
1155                    long userId, boolean delivered, boolean actionRequired,
1156                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1157                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1158    
1159            /**
1160            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1161            *
1162            * @param userId the user ID
1163            * @param delivered the delivered
1164            * @param actionRequired the action required
1165            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1166            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1167            */
1168            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_A_Last(
1169                    long userId, boolean delivered, boolean actionRequired,
1170                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1171    
1172            /**
1173            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1174            *
1175            * @param userNotificationEventId the primary key of the current user notification event
1176            * @param userId the user ID
1177            * @param delivered the delivered
1178            * @param actionRequired the action required
1179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1180            * @return the previous, current, and next user notification event
1181            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1182            */
1183            public com.liferay.portal.model.UserNotificationEvent[] findByU_D_A_PrevAndNext(
1184                    long userNotificationEventId, long userId, boolean delivered,
1185                    boolean actionRequired,
1186                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1187                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1188    
1189            /**
1190            * Removes all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63; from the database.
1191            *
1192            * @param userId the user ID
1193            * @param delivered the delivered
1194            * @param actionRequired the action required
1195            */
1196            public void removeByU_D_A(long userId, boolean delivered,
1197                    boolean actionRequired);
1198    
1199            /**
1200            * Returns the number of user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1201            *
1202            * @param userId the user ID
1203            * @param delivered the delivered
1204            * @param actionRequired the action required
1205            * @return the number of matching user notification events
1206            */
1207            public int countByU_D_A(long userId, boolean delivered,
1208                    boolean actionRequired);
1209    
1210            /**
1211            * Returns all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1212            *
1213            * @param userId the user ID
1214            * @param actionRequired the action required
1215            * @param archived the archived
1216            * @return the matching user notification events
1217            */
1218            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1219                    long userId, boolean actionRequired, boolean archived);
1220    
1221            /**
1222            * Returns a range of all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1223            *
1224            * <p>
1225            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1226            * </p>
1227            *
1228            * @param userId the user ID
1229            * @param actionRequired the action required
1230            * @param archived the archived
1231            * @param start the lower bound of the range of user notification events
1232            * @param end the upper bound of the range of user notification events (not inclusive)
1233            * @return the range of matching user notification events
1234            */
1235            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1236                    long userId, boolean actionRequired, boolean archived, int start,
1237                    int end);
1238    
1239            /**
1240            * Returns an ordered range of all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1241            *
1242            * <p>
1243            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1244            * </p>
1245            *
1246            * @param userId the user ID
1247            * @param actionRequired the action required
1248            * @param archived the archived
1249            * @param start the lower bound of the range of user notification events
1250            * @param end the upper bound of the range of user notification events (not inclusive)
1251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1252            * @return the ordered range of matching user notification events
1253            */
1254            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1255                    long userId, boolean actionRequired, boolean archived, int start,
1256                    int end,
1257                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1258    
1259            /**
1260            * Returns the first user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1261            *
1262            * @param userId the user ID
1263            * @param actionRequired the action required
1264            * @param archived the archived
1265            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1266            * @return the first matching user notification event
1267            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1268            */
1269            public com.liferay.portal.model.UserNotificationEvent findByU_A_A_First(
1270                    long userId, boolean actionRequired, boolean archived,
1271                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1272                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1273    
1274            /**
1275            * Returns the first user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1276            *
1277            * @param userId the user ID
1278            * @param actionRequired the action required
1279            * @param archived the archived
1280            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1281            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1282            */
1283            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_A_First(
1284                    long userId, boolean actionRequired, boolean archived,
1285                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1286    
1287            /**
1288            * Returns the last user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1289            *
1290            * @param userId the user ID
1291            * @param actionRequired the action required
1292            * @param archived the archived
1293            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1294            * @return the last matching user notification event
1295            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1296            */
1297            public com.liferay.portal.model.UserNotificationEvent findByU_A_A_Last(
1298                    long userId, boolean actionRequired, boolean archived,
1299                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1300                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1301    
1302            /**
1303            * Returns the last user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1304            *
1305            * @param userId the user ID
1306            * @param actionRequired the action required
1307            * @param archived the archived
1308            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1309            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1310            */
1311            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_A_Last(
1312                    long userId, boolean actionRequired, boolean archived,
1313                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1314    
1315            /**
1316            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1317            *
1318            * @param userNotificationEventId the primary key of the current user notification event
1319            * @param userId the user ID
1320            * @param actionRequired the action required
1321            * @param archived the archived
1322            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1323            * @return the previous, current, and next user notification event
1324            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1325            */
1326            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_A_PrevAndNext(
1327                    long userNotificationEventId, long userId, boolean actionRequired,
1328                    boolean archived,
1329                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1330                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1331    
1332            /**
1333            * Removes all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63; from the database.
1334            *
1335            * @param userId the user ID
1336            * @param actionRequired the action required
1337            * @param archived the archived
1338            */
1339            public void removeByU_A_A(long userId, boolean actionRequired,
1340                    boolean archived);
1341    
1342            /**
1343            * Returns the number of user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1344            *
1345            * @param userId the user ID
1346            * @param actionRequired the action required
1347            * @param archived the archived
1348            * @return the number of matching user notification events
1349            */
1350            public int countByU_A_A(long userId, boolean actionRequired,
1351                    boolean archived);
1352    
1353            /**
1354            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1355            *
1356            * @param userId the user ID
1357            * @param deliveryType the delivery type
1358            * @param delivered the delivered
1359            * @param actionRequired the action required
1360            * @return the matching user notification events
1361            */
1362            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1363                    long userId, int deliveryType, boolean delivered, boolean actionRequired);
1364    
1365            /**
1366            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1367            *
1368            * <p>
1369            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1370            * </p>
1371            *
1372            * @param userId the user ID
1373            * @param deliveryType the delivery type
1374            * @param delivered the delivered
1375            * @param actionRequired the action required
1376            * @param start the lower bound of the range of user notification events
1377            * @param end the upper bound of the range of user notification events (not inclusive)
1378            * @return the range of matching user notification events
1379            */
1380            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1381                    long userId, int deliveryType, boolean delivered,
1382                    boolean actionRequired, int start, int end);
1383    
1384            /**
1385            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1386            *
1387            * <p>
1388            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1389            * </p>
1390            *
1391            * @param userId the user ID
1392            * @param deliveryType the delivery type
1393            * @param delivered the delivered
1394            * @param actionRequired the action required
1395            * @param start the lower bound of the range of user notification events
1396            * @param end the upper bound of the range of user notification events (not inclusive)
1397            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1398            * @return the ordered range of matching user notification events
1399            */
1400            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1401                    long userId, int deliveryType, boolean delivered,
1402                    boolean actionRequired, int start, int end,
1403                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1404    
1405            /**
1406            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1407            *
1408            * @param userId the user ID
1409            * @param deliveryType the delivery type
1410            * @param delivered the delivered
1411            * @param actionRequired the action required
1412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1413            * @return the first matching user notification event
1414            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1415            */
1416            public com.liferay.portal.model.UserNotificationEvent findByU_DT_D_A_First(
1417                    long userId, int deliveryType, boolean delivered,
1418                    boolean actionRequired,
1419                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1420                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1421    
1422            /**
1423            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1424            *
1425            * @param userId the user ID
1426            * @param deliveryType the delivery type
1427            * @param delivered the delivered
1428            * @param actionRequired the action required
1429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1430            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1431            */
1432            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_A_First(
1433                    long userId, int deliveryType, boolean delivered,
1434                    boolean actionRequired,
1435                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1436    
1437            /**
1438            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1439            *
1440            * @param userId the user ID
1441            * @param deliveryType the delivery type
1442            * @param delivered the delivered
1443            * @param actionRequired the action required
1444            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1445            * @return the last matching user notification event
1446            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1447            */
1448            public com.liferay.portal.model.UserNotificationEvent findByU_DT_D_A_Last(
1449                    long userId, int deliveryType, boolean delivered,
1450                    boolean actionRequired,
1451                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1452                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1453    
1454            /**
1455            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1456            *
1457            * @param userId the user ID
1458            * @param deliveryType the delivery type
1459            * @param delivered the delivered
1460            * @param actionRequired the action required
1461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1462            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1463            */
1464            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_A_Last(
1465                    long userId, int deliveryType, boolean delivered,
1466                    boolean actionRequired,
1467                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1468    
1469            /**
1470            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1471            *
1472            * @param userNotificationEventId the primary key of the current user notification event
1473            * @param userId the user ID
1474            * @param deliveryType the delivery type
1475            * @param delivered the delivered
1476            * @param actionRequired the action required
1477            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1478            * @return the previous, current, and next user notification event
1479            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1480            */
1481            public com.liferay.portal.model.UserNotificationEvent[] findByU_DT_D_A_PrevAndNext(
1482                    long userNotificationEventId, long userId, int deliveryType,
1483                    boolean delivered, boolean actionRequired,
1484                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1485                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1486    
1487            /**
1488            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63; from the database.
1489            *
1490            * @param userId the user ID
1491            * @param deliveryType the delivery type
1492            * @param delivered the delivered
1493            * @param actionRequired the action required
1494            */
1495            public void removeByU_DT_D_A(long userId, int deliveryType,
1496                    boolean delivered, boolean actionRequired);
1497    
1498            /**
1499            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1500            *
1501            * @param userId the user ID
1502            * @param deliveryType the delivery type
1503            * @param delivered the delivered
1504            * @param actionRequired the action required
1505            * @return the number of matching user notification events
1506            */
1507            public int countByU_DT_D_A(long userId, int deliveryType,
1508                    boolean delivered, boolean actionRequired);
1509    
1510            /**
1511            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1512            *
1513            * @param userId the user ID
1514            * @param deliveryType the delivery type
1515            * @param actionRequired the action required
1516            * @param archived the archived
1517            * @return the matching user notification events
1518            */
1519            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1520                    long userId, int deliveryType, boolean actionRequired, boolean archived);
1521    
1522            /**
1523            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1524            *
1525            * <p>
1526            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1527            * </p>
1528            *
1529            * @param userId the user ID
1530            * @param deliveryType the delivery type
1531            * @param actionRequired the action required
1532            * @param archived the archived
1533            * @param start the lower bound of the range of user notification events
1534            * @param end the upper bound of the range of user notification events (not inclusive)
1535            * @return the range of matching user notification events
1536            */
1537            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1538                    long userId, int deliveryType, boolean actionRequired,
1539                    boolean archived, int start, int end);
1540    
1541            /**
1542            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1543            *
1544            * <p>
1545            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1546            * </p>
1547            *
1548            * @param userId the user ID
1549            * @param deliveryType the delivery type
1550            * @param actionRequired the action required
1551            * @param archived the archived
1552            * @param start the lower bound of the range of user notification events
1553            * @param end the upper bound of the range of user notification events (not inclusive)
1554            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1555            * @return the ordered range of matching user notification events
1556            */
1557            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1558                    long userId, int deliveryType, boolean actionRequired,
1559                    boolean archived, int start, int end,
1560                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1561    
1562            /**
1563            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1564            *
1565            * @param userId the user ID
1566            * @param deliveryType the delivery type
1567            * @param actionRequired the action required
1568            * @param archived the archived
1569            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1570            * @return the first matching user notification event
1571            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1572            */
1573            public com.liferay.portal.model.UserNotificationEvent findByU_DT_A_A_First(
1574                    long userId, int deliveryType, boolean actionRequired,
1575                    boolean archived,
1576                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1577                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1578    
1579            /**
1580            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1581            *
1582            * @param userId the user ID
1583            * @param deliveryType the delivery type
1584            * @param actionRequired the action required
1585            * @param archived the archived
1586            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1587            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1588            */
1589            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_A_First(
1590                    long userId, int deliveryType, boolean actionRequired,
1591                    boolean archived,
1592                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1593    
1594            /**
1595            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1596            *
1597            * @param userId the user ID
1598            * @param deliveryType the delivery type
1599            * @param actionRequired the action required
1600            * @param archived the archived
1601            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1602            * @return the last matching user notification event
1603            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1604            */
1605            public com.liferay.portal.model.UserNotificationEvent findByU_DT_A_A_Last(
1606                    long userId, int deliveryType, boolean actionRequired,
1607                    boolean archived,
1608                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1609                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1610    
1611            /**
1612            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1613            *
1614            * @param userId the user ID
1615            * @param deliveryType the delivery type
1616            * @param actionRequired the action required
1617            * @param archived the archived
1618            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1619            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1620            */
1621            public com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_A_Last(
1622                    long userId, int deliveryType, boolean actionRequired,
1623                    boolean archived,
1624                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1625    
1626            /**
1627            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1628            *
1629            * @param userNotificationEventId the primary key of the current user notification event
1630            * @param userId the user ID
1631            * @param deliveryType the delivery type
1632            * @param actionRequired the action required
1633            * @param archived the archived
1634            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1635            * @return the previous, current, and next user notification event
1636            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1637            */
1638            public com.liferay.portal.model.UserNotificationEvent[] findByU_DT_A_A_PrevAndNext(
1639                    long userNotificationEventId, long userId, int deliveryType,
1640                    boolean actionRequired, boolean archived,
1641                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1642                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1643    
1644            /**
1645            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63; from the database.
1646            *
1647            * @param userId the user ID
1648            * @param deliveryType the delivery type
1649            * @param actionRequired the action required
1650            * @param archived the archived
1651            */
1652            public void removeByU_DT_A_A(long userId, int deliveryType,
1653                    boolean actionRequired, boolean archived);
1654    
1655            /**
1656            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1657            *
1658            * @param userId the user ID
1659            * @param deliveryType the delivery type
1660            * @param actionRequired the action required
1661            * @param archived the archived
1662            * @return the number of matching user notification events
1663            */
1664            public int countByU_DT_A_A(long userId, int deliveryType,
1665                    boolean actionRequired, boolean archived);
1666    
1667            /**
1668            * Caches the user notification event in the entity cache if it is enabled.
1669            *
1670            * @param userNotificationEvent the user notification event
1671            */
1672            public void cacheResult(
1673                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
1674    
1675            /**
1676            * Caches the user notification events in the entity cache if it is enabled.
1677            *
1678            * @param userNotificationEvents the user notification events
1679            */
1680            public void cacheResult(
1681                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents);
1682    
1683            /**
1684            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
1685            *
1686            * @param userNotificationEventId the primary key for the new user notification event
1687            * @return the new user notification event
1688            */
1689            public com.liferay.portal.model.UserNotificationEvent create(
1690                    long userNotificationEventId);
1691    
1692            /**
1693            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
1694            *
1695            * @param userNotificationEventId the primary key of the user notification event
1696            * @return the user notification event that was removed
1697            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1698            */
1699            public com.liferay.portal.model.UserNotificationEvent remove(
1700                    long userNotificationEventId)
1701                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1702    
1703            public com.liferay.portal.model.UserNotificationEvent updateImpl(
1704                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
1705    
1706            /**
1707            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
1708            *
1709            * @param userNotificationEventId the primary key of the user notification event
1710            * @return the user notification event
1711            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1712            */
1713            public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
1714                    long userNotificationEventId)
1715                    throws com.liferay.portal.NoSuchUserNotificationEventException;
1716    
1717            /**
1718            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
1719            *
1720            * @param userNotificationEventId the primary key of the user notification event
1721            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
1722            */
1723            public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
1724                    long userNotificationEventId);
1725    
1726            @Override
1727            public java.util.Map<java.io.Serializable, com.liferay.portal.model.UserNotificationEvent> fetchByPrimaryKeys(
1728                    java.util.Set<java.io.Serializable> primaryKeys);
1729    
1730            /**
1731            * Returns all the user notification events.
1732            *
1733            * @return the user notification events
1734            */
1735            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll();
1736    
1737            /**
1738            * Returns a range of all the user notification events.
1739            *
1740            * <p>
1741            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1742            * </p>
1743            *
1744            * @param start the lower bound of the range of user notification events
1745            * @param end the upper bound of the range of user notification events (not inclusive)
1746            * @return the range of user notification events
1747            */
1748            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
1749                    int start, int end);
1750    
1751            /**
1752            * Returns an ordered range of all the user notification events.
1753            *
1754            * <p>
1755            * 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.portal.model.impl.UserNotificationEventModelImpl}. 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.
1756            * </p>
1757            *
1758            * @param start the lower bound of the range of user notification events
1759            * @param end the upper bound of the range of user notification events (not inclusive)
1760            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1761            * @return the ordered range of user notification events
1762            */
1763            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
1764                    int start, int end,
1765                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator);
1766    
1767            /**
1768            * Removes all the user notification events from the database.
1769            */
1770            public void removeAll();
1771    
1772            /**
1773            * Returns the number of user notification events.
1774            *
1775            * @return the number of user notification events
1776            */
1777            public int countAll();
1778    }