001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.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            * @throws SystemException if a system exception occurred
047            */
048            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
049                    java.lang.String uuid)
050                    throws com.liferay.portal.kernel.exception.SystemException;
051    
052            /**
053            * Returns a range of all the user notification events where uuid = &#63;.
054            *
055            * <p>
056            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.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.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of user notification events
061            * @param end the upper bound of the range of user notification events (not inclusive)
062            * @return the range of matching user notification events
063            * @throws SystemException if a system exception occurred
064            */
065            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
066                    java.lang.String uuid, int start, int end)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            /**
070            * Returns an ordered range of all the user notification events where uuid = &#63;.
071            *
072            * <p>
073            * 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.
074            * </p>
075            *
076            * @param uuid the uuid
077            * @param start the lower bound of the range of user notification events
078            * @param end the upper bound of the range of user notification events (not inclusive)
079            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
080            * @return the ordered range of matching user notification events
081            * @throws SystemException if a system exception occurred
082            */
083            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
084                    java.lang.String uuid, int start, int end,
085                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            /**
089            * Returns the first user notification event in the ordered set where uuid = &#63;.
090            *
091            * @param uuid the uuid
092            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
093            * @return the first matching user notification event
094            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
095            * @throws SystemException if a system exception occurred
096            */
097            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
098                    java.lang.String uuid,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.NoSuchUserNotificationEventException,
101                            com.liferay.portal.kernel.exception.SystemException;
102    
103            /**
104            * Returns the first user notification event in the ordered set where uuid = &#63;.
105            *
106            * @param uuid the uuid
107            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
108            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
109            * @throws SystemException if a system exception occurred
110            */
111            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_First(
112                    java.lang.String uuid,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns the last user notification event in the ordered set where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
121            * @return the last matching user notification event
122            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
123            * @throws SystemException if a system exception occurred
124            */
125            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
126                    java.lang.String uuid,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.NoSuchUserNotificationEventException,
129                            com.liferay.portal.kernel.exception.SystemException;
130    
131            /**
132            * Returns the last user notification event in the ordered set where uuid = &#63;.
133            *
134            * @param uuid the uuid
135            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
136            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
137            * @throws SystemException if a system exception occurred
138            */
139            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last(
140                    java.lang.String uuid,
141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
146            *
147            * @param userNotificationEventId the primary key of the current user notification event
148            * @param uuid the uuid
149            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
150            * @return the previous, current, and next user notification event
151            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
152            * @throws SystemException if a system exception occurred
153            */
154            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
155                    long userNotificationEventId, java.lang.String uuid,
156                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157                    throws com.liferay.portal.NoSuchUserNotificationEventException,
158                            com.liferay.portal.kernel.exception.SystemException;
159    
160            /**
161            * Removes all the user notification events where uuid = &#63; from the database.
162            *
163            * @param uuid the uuid
164            * @throws SystemException if a system exception occurred
165            */
166            public void removeByUuid(java.lang.String uuid)
167                    throws com.liferay.portal.kernel.exception.SystemException;
168    
169            /**
170            * Returns the number of user notification events where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @return the number of matching user notification events
174            * @throws SystemException if a system exception occurred
175            */
176            public int countByUuid(java.lang.String uuid)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            /**
180            * Returns all the user notification events where uuid = &#63; and companyId = &#63;.
181            *
182            * @param uuid the uuid
183            * @param companyId the company ID
184            * @return the matching user notification events
185            * @throws SystemException if a system exception occurred
186            */
187            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
188                    java.lang.String uuid, long companyId)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns a range of all the user notification events where uuid = &#63; and companyId = &#63;.
193            *
194            * <p>
195            * 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.
196            * </p>
197            *
198            * @param uuid the uuid
199            * @param companyId the company ID
200            * @param start the lower bound of the range of user notification events
201            * @param end the upper bound of the range of user notification events (not inclusive)
202            * @return the range of matching user notification events
203            * @throws SystemException if a system exception occurred
204            */
205            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
206                    java.lang.String uuid, long companyId, int start, int end)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns an ordered range of all the user notification events where uuid = &#63; and companyId = &#63;.
211            *
212            * <p>
213            * 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.
214            * </p>
215            *
216            * @param uuid the uuid
217            * @param companyId the company ID
218            * @param start the lower bound of the range of user notification events
219            * @param end the upper bound of the range of user notification events (not inclusive)
220            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
221            * @return the ordered range of matching user notification events
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
225                    java.lang.String uuid, long companyId, int start, int end,
226                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            /**
230            * Returns the first 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 first matching user notification event
236            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
237            * @throws SystemException if a system exception occurred
238            */
239            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_First(
240                    java.lang.String uuid, long companyId,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.NoSuchUserNotificationEventException,
243                            com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
247            *
248            * @param uuid the uuid
249            * @param companyId the company ID
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
252            * @throws SystemException if a system exception occurred
253            */
254            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First(
255                    java.lang.String uuid, long companyId,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            /**
260            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
261            *
262            * @param uuid the uuid
263            * @param companyId the company ID
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the last matching user notification event
266            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
267            * @throws SystemException if a system exception occurred
268            */
269            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last(
270                    java.lang.String uuid, long companyId,
271                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272                    throws com.liferay.portal.NoSuchUserNotificationEventException,
273                            com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
277            *
278            * @param uuid the uuid
279            * @param companyId the company ID
280            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
281            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last(
285                    java.lang.String uuid, long companyId,
286                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
287                    throws com.liferay.portal.kernel.exception.SystemException;
288    
289            /**
290            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
291            *
292            * @param userNotificationEventId the primary key of the current user notification event
293            * @param uuid the uuid
294            * @param companyId the company ID
295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
296            * @return the previous, current, and next user notification event
297            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext(
301                    long userNotificationEventId, java.lang.String uuid, long companyId,
302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
303                    throws com.liferay.portal.NoSuchUserNotificationEventException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            /**
307            * Removes all the user notification events where uuid = &#63; and companyId = &#63; from the database.
308            *
309            * @param uuid the uuid
310            * @param companyId the company ID
311            * @throws SystemException if a system exception occurred
312            */
313            public void removeByUuid_C(java.lang.String uuid, long companyId)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            /**
317            * Returns the number of user notification events where uuid = &#63; and companyId = &#63;.
318            *
319            * @param uuid the uuid
320            * @param companyId the company ID
321            * @return the number of matching user notification events
322            * @throws SystemException if a system exception occurred
323            */
324            public int countByUuid_C(java.lang.String uuid, long companyId)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns all the user notification events where userId = &#63;.
329            *
330            * @param userId the user ID
331            * @return the matching user notification events
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
335                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
336    
337            /**
338            * Returns a range of all the user notification events where userId = &#63;.
339            *
340            * <p>
341            * 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.
342            * </p>
343            *
344            * @param userId the user ID
345            * @param start the lower bound of the range of user notification events
346            * @param end the upper bound of the range of user notification events (not inclusive)
347            * @return the range of matching user notification events
348            * @throws SystemException if a system exception occurred
349            */
350            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
351                    long userId, int start, int end)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns an ordered range of all the user notification events where userId = &#63;.
356            *
357            * <p>
358            * 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.
359            * </p>
360            *
361            * @param userId the user ID
362            * @param start the lower bound of the range of user notification events
363            * @param end the upper bound of the range of user notification events (not inclusive)
364            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
365            * @return the ordered range of matching user notification events
366            * @throws SystemException if a system exception occurred
367            */
368            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
369                    long userId, int start, int end,
370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
371                    throws com.liferay.portal.kernel.exception.SystemException;
372    
373            /**
374            * Returns the first user notification event in the ordered set where userId = &#63;.
375            *
376            * @param userId the user ID
377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
378            * @return the first matching user notification event
379            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
380            * @throws SystemException if a system exception occurred
381            */
382            public com.liferay.portal.model.UserNotificationEvent findByUserId_First(
383                    long userId,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.NoSuchUserNotificationEventException,
386                            com.liferay.portal.kernel.exception.SystemException;
387    
388            /**
389            * Returns the first user notification event in the ordered set where userId = &#63;.
390            *
391            * @param userId the user ID
392            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
393            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_First(
397                    long userId,
398                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
399                    throws com.liferay.portal.kernel.exception.SystemException;
400    
401            /**
402            * Returns the last user notification event in the ordered set where userId = &#63;.
403            *
404            * @param userId the user ID
405            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
406            * @return the last matching user notification event
407            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
408            * @throws SystemException if a system exception occurred
409            */
410            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
411                    long userId,
412                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
413                    throws com.liferay.portal.NoSuchUserNotificationEventException,
414                            com.liferay.portal.kernel.exception.SystemException;
415    
416            /**
417            * Returns the last user notification event in the ordered set where userId = &#63;.
418            *
419            * @param userId the user ID
420            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
421            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last(
425                    long userId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException;
428    
429            /**
430            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
431            *
432            * @param userNotificationEventId the primary key of the current user notification event
433            * @param userId the user ID
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the previous, current, and next user notification event
436            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
440                    long userNotificationEventId, long userId,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.NoSuchUserNotificationEventException,
443                            com.liferay.portal.kernel.exception.SystemException;
444    
445            /**
446            * Removes all the user notification events where userId = &#63; from the database.
447            *
448            * @param userId the user ID
449            * @throws SystemException if a system exception occurred
450            */
451            public void removeByUserId(long userId)
452                    throws com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns the number of user notification events where userId = &#63;.
456            *
457            * @param userId the user ID
458            * @return the number of matching user notification events
459            * @throws SystemException if a system exception occurred
460            */
461            public int countByUserId(long userId)
462                    throws com.liferay.portal.kernel.exception.SystemException;
463    
464            /**
465            * Returns all the user notification events where userId = &#63; and delivered = &#63;.
466            *
467            * @param userId the user ID
468            * @param delivered the delivered
469            * @return the matching user notification events
470            * @throws SystemException if a system exception occurred
471            */
472            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
473                    long userId, boolean delivered)
474                    throws com.liferay.portal.kernel.exception.SystemException;
475    
476            /**
477            * Returns a range of all the user notification events where userId = &#63; and delivered = &#63;.
478            *
479            * <p>
480            * 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.
481            * </p>
482            *
483            * @param userId the user ID
484            * @param delivered the delivered
485            * @param start the lower bound of the range of user notification events
486            * @param end the upper bound of the range of user notification events (not inclusive)
487            * @return the range of matching user notification events
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
491                    long userId, boolean delivered, int start, int end)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns an ordered range of all the user notification events where userId = &#63; and delivered = &#63;.
496            *
497            * <p>
498            * 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.
499            * </p>
500            *
501            * @param userId the user ID
502            * @param delivered the delivered
503            * @param start the lower bound of the range of user notification events
504            * @param end the upper bound of the range of user notification events (not inclusive)
505            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
506            * @return the ordered range of matching user notification events
507            * @throws SystemException if a system exception occurred
508            */
509            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
510                    long userId, boolean delivered, int start, int end,
511                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
516            *
517            * @param userId the user ID
518            * @param delivered the delivered
519            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
520            * @return the first matching user notification event
521            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
522            * @throws SystemException if a system exception occurred
523            */
524            public com.liferay.portal.model.UserNotificationEvent findByU_D_First(
525                    long userId, boolean delivered,
526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
527                    throws com.liferay.portal.NoSuchUserNotificationEventException,
528                            com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
532            *
533            * @param userId the user ID
534            * @param delivered the delivered
535            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
536            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
537            * @throws SystemException if a system exception occurred
538            */
539            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_First(
540                    long userId, boolean delivered,
541                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
546            *
547            * @param userId the user ID
548            * @param delivered the delivered
549            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
550            * @return the last matching user notification event
551            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
552            * @throws SystemException if a system exception occurred
553            */
554            public com.liferay.portal.model.UserNotificationEvent findByU_D_Last(
555                    long userId, boolean delivered,
556                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
557                    throws com.liferay.portal.NoSuchUserNotificationEventException,
558                            com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
562            *
563            * @param userId the user ID
564            * @param delivered the delivered
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public com.liferay.portal.model.UserNotificationEvent fetchByU_D_Last(
570                    long userId, boolean delivered,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException;
573    
574            /**
575            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and delivered = &#63;.
576            *
577            * @param userNotificationEventId the primary key of the current user notification event
578            * @param userId the user ID
579            * @param delivered the delivered
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the previous, current, and next user notification event
582            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portal.model.UserNotificationEvent[] findByU_D_PrevAndNext(
586                    long userNotificationEventId, long userId, boolean delivered,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.NoSuchUserNotificationEventException,
589                            com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Removes all the user notification events where userId = &#63; and delivered = &#63; from the database.
593            *
594            * @param userId the user ID
595            * @param delivered the delivered
596            * @throws SystemException if a system exception occurred
597            */
598            public void removeByU_D(long userId, boolean delivered)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns the number of user notification events where userId = &#63; and delivered = &#63;.
603            *
604            * @param userId the user ID
605            * @param delivered the delivered
606            * @return the number of matching user notification events
607            * @throws SystemException if a system exception occurred
608            */
609            public int countByU_D(long userId, boolean delivered)
610                    throws com.liferay.portal.kernel.exception.SystemException;
611    
612            /**
613            * Returns all the user notification events where userId = &#63; and archived = &#63;.
614            *
615            * @param userId the user ID
616            * @param archived the archived
617            * @return the matching user notification events
618            * @throws SystemException if a system exception occurred
619            */
620            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
621                    long userId, boolean archived)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            /**
625            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
626            *
627            * <p>
628            * 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.
629            * </p>
630            *
631            * @param userId the user ID
632            * @param archived the archived
633            * @param start the lower bound of the range of user notification events
634            * @param end the upper bound of the range of user notification events (not inclusive)
635            * @return the range of matching user notification events
636            * @throws SystemException if a system exception occurred
637            */
638            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
639                    long userId, boolean archived, int start, int end)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
644            *
645            * <p>
646            * 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.
647            * </p>
648            *
649            * @param userId the user ID
650            * @param archived the archived
651            * @param start the lower bound of the range of user notification events
652            * @param end the upper bound of the range of user notification events (not inclusive)
653            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
654            * @return the ordered range of matching user notification events
655            * @throws SystemException if a system exception occurred
656            */
657            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
658                    long userId, boolean archived, int start, int end,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException;
661    
662            /**
663            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
664            *
665            * @param userId the user ID
666            * @param archived the archived
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the first matching user notification event
669            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
670            * @throws SystemException if a system exception occurred
671            */
672            public com.liferay.portal.model.UserNotificationEvent findByU_A_First(
673                    long userId, boolean archived,
674                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
675                    throws com.liferay.portal.NoSuchUserNotificationEventException,
676                            com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
680            *
681            * @param userId the user ID
682            * @param archived the archived
683            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
684            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_First(
688                    long userId, boolean archived,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException;
691    
692            /**
693            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
694            *
695            * @param userId the user ID
696            * @param archived the archived
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching user notification event
699            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
700            * @throws SystemException if a system exception occurred
701            */
702            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
703                    long userId, boolean archived,
704                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
705                    throws com.liferay.portal.NoSuchUserNotificationEventException,
706                            com.liferay.portal.kernel.exception.SystemException;
707    
708            /**
709            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
710            *
711            * @param userId the user ID
712            * @param archived the archived
713            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
714            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
715            * @throws SystemException if a system exception occurred
716            */
717            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last(
718                    long userId, boolean archived,
719                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
720                    throws com.liferay.portal.kernel.exception.SystemException;
721    
722            /**
723            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
724            *
725            * @param userNotificationEventId the primary key of the current user notification event
726            * @param userId the user ID
727            * @param archived the archived
728            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
729            * @return the previous, current, and next user notification event
730            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
731            * @throws SystemException if a system exception occurred
732            */
733            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
734                    long userNotificationEventId, long userId, boolean archived,
735                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
736                    throws com.liferay.portal.NoSuchUserNotificationEventException,
737                            com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
741            *
742            * @param userId the user ID
743            * @param archived the archived
744            * @throws SystemException if a system exception occurred
745            */
746            public void removeByU_A(long userId, boolean archived)
747                    throws com.liferay.portal.kernel.exception.SystemException;
748    
749            /**
750            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
751            *
752            * @param userId the user ID
753            * @param archived the archived
754            * @return the number of matching user notification events
755            * @throws SystemException if a system exception occurred
756            */
757            public int countByU_A(long userId, boolean archived)
758                    throws com.liferay.portal.kernel.exception.SystemException;
759    
760            /**
761            * Caches the user notification event in the entity cache if it is enabled.
762            *
763            * @param userNotificationEvent the user notification event
764            */
765            public void cacheResult(
766                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
767    
768            /**
769            * Caches the user notification events in the entity cache if it is enabled.
770            *
771            * @param userNotificationEvents the user notification events
772            */
773            public void cacheResult(
774                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents);
775    
776            /**
777            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
778            *
779            * @param userNotificationEventId the primary key for the new user notification event
780            * @return the new user notification event
781            */
782            public com.liferay.portal.model.UserNotificationEvent create(
783                    long userNotificationEventId);
784    
785            /**
786            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
787            *
788            * @param userNotificationEventId the primary key of the user notification event
789            * @return the user notification event that was removed
790            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
791            * @throws SystemException if a system exception occurred
792            */
793            public com.liferay.portal.model.UserNotificationEvent remove(
794                    long userNotificationEventId)
795                    throws com.liferay.portal.NoSuchUserNotificationEventException,
796                            com.liferay.portal.kernel.exception.SystemException;
797    
798            public com.liferay.portal.model.UserNotificationEvent updateImpl(
799                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
804            *
805            * @param userNotificationEventId the primary key of the user notification event
806            * @return the user notification event
807            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
808            * @throws SystemException if a system exception occurred
809            */
810            public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
811                    long userNotificationEventId)
812                    throws com.liferay.portal.NoSuchUserNotificationEventException,
813                            com.liferay.portal.kernel.exception.SystemException;
814    
815            /**
816            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
817            *
818            * @param userNotificationEventId the primary key of the user notification event
819            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
820            * @throws SystemException if a system exception occurred
821            */
822            public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
823                    long userNotificationEventId)
824                    throws com.liferay.portal.kernel.exception.SystemException;
825    
826            /**
827            * Returns all the user notification events.
828            *
829            * @return the user notification events
830            * @throws SystemException if a system exception occurred
831            */
832            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll()
833                    throws com.liferay.portal.kernel.exception.SystemException;
834    
835            /**
836            * Returns a range of all the user notification events.
837            *
838            * <p>
839            * 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.
840            * </p>
841            *
842            * @param start the lower bound of the range of user notification events
843            * @param end the upper bound of the range of user notification events (not inclusive)
844            * @return the range of user notification events
845            * @throws SystemException if a system exception occurred
846            */
847            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
848                    int start, int end)
849                    throws com.liferay.portal.kernel.exception.SystemException;
850    
851            /**
852            * Returns an ordered range of all the user notification events.
853            *
854            * <p>
855            * 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.
856            * </p>
857            *
858            * @param start the lower bound of the range of user notification events
859            * @param end the upper bound of the range of user notification events (not inclusive)
860            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
861            * @return the ordered range of user notification events
862            * @throws SystemException if a system exception occurred
863            */
864            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
865                    int start, int end,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Removes all the user notification events from the database.
871            *
872            * @throws SystemException if a system exception occurred
873            */
874            public void removeAll()
875                    throws com.liferay.portal.kernel.exception.SystemException;
876    
877            /**
878            * Returns the number of user notification events.
879            *
880            * @return the number of user notification events
881            * @throws SystemException if a system exception occurred
882            */
883            public int countAll()
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    }