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 com.liferay.portal.model.UserNotificationEvent;
018    
019    /**
020     * The persistence interface for the user notification event service.
021     *
022     * <p>
023     * Caching information and settings can be found in <code>portal.properties</code>
024     * </p>
025     *
026     * @author Brian Wing Shun Chan
027     * @see UserNotificationEventPersistenceImpl
028     * @see UserNotificationEventUtil
029     * @generated
030     */
031    public interface UserNotificationEventPersistence extends BasePersistence<UserNotificationEvent> {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * 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.
036             */
037    
038            /**
039            * Returns all the user notification events where uuid = &#63;.
040            *
041            * @param uuid the uuid
042            * @return the matching user notification events
043            * @throws SystemException if a system exception occurred
044            */
045            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
046                    java.lang.String uuid)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            /**
050            * Returns a range of all the user notification events where uuid = &#63;.
051            *
052            * <p>
053            * 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.
054            * </p>
055            *
056            * @param uuid the uuid
057            * @param start the lower bound of the range of user notification events
058            * @param end the upper bound of the range of user notification events (not inclusive)
059            * @return the range of matching user notification events
060            * @throws SystemException if a system exception occurred
061            */
062            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
063                    java.lang.String uuid, int start, int end)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            /**
067            * Returns an ordered range of all the user notification events where uuid = &#63;.
068            *
069            * <p>
070            * 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.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of user notification events
075            * @param end the upper bound of the range of user notification events (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching user notification events
078            * @throws SystemException if a system exception occurred
079            */
080            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
083                    throws com.liferay.portal.kernel.exception.SystemException;
084    
085            /**
086            * Returns the first user notification event in the ordered set where uuid = &#63;.
087            *
088            * @param uuid the uuid
089            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
090            * @return the first matching user notification event
091            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
092            * @throws SystemException if a system exception occurred
093            */
094            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
095                    java.lang.String uuid,
096                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
097                    throws com.liferay.portal.NoSuchUserNotificationEventException,
098                            com.liferay.portal.kernel.exception.SystemException;
099    
100            /**
101            * Returns the first user notification event in the ordered set where uuid = &#63;.
102            *
103            * @param uuid the uuid
104            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
105            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
106            * @throws SystemException if a system exception occurred
107            */
108            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_First(
109                    java.lang.String uuid,
110                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Returns the last user notification event in the ordered set where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
118            * @return the last matching user notification event
119            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
120            * @throws SystemException if a system exception occurred
121            */
122            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
123                    java.lang.String uuid,
124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125                    throws com.liferay.portal.NoSuchUserNotificationEventException,
126                            com.liferay.portal.kernel.exception.SystemException;
127    
128            /**
129            * Returns the last user notification event in the ordered set where uuid = &#63;.
130            *
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
134            * @throws SystemException if a system exception occurred
135            */
136            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last(
137                    java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException;
140    
141            /**
142            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
143            *
144            * @param userNotificationEventId the primary key of the current user notification event
145            * @param uuid the uuid
146            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
147            * @return the previous, current, and next user notification event
148            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
149            * @throws SystemException if a system exception occurred
150            */
151            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
152                    long userNotificationEventId, java.lang.String uuid,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.NoSuchUserNotificationEventException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Removes all the user notification events where uuid = &#63; from the database.
159            *
160            * @param uuid the uuid
161            * @throws SystemException if a system exception occurred
162            */
163            public void removeByUuid(java.lang.String uuid)
164                    throws com.liferay.portal.kernel.exception.SystemException;
165    
166            /**
167            * Returns the number of user notification events where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @return the number of matching user notification events
171            * @throws SystemException if a system exception occurred
172            */
173            public int countByUuid(java.lang.String uuid)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            /**
177            * Returns all the user notification events where uuid = &#63; and companyId = &#63;.
178            *
179            * @param uuid the uuid
180            * @param companyId the company ID
181            * @return the matching user notification events
182            * @throws SystemException if a system exception occurred
183            */
184            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
185                    java.lang.String uuid, long companyId)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            /**
189            * Returns a range of all the user notification events where uuid = &#63; and companyId = &#63;.
190            *
191            * <p>
192            * 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.
193            * </p>
194            *
195            * @param uuid the uuid
196            * @param companyId the company ID
197            * @param start the lower bound of the range of user notification events
198            * @param end the upper bound of the range of user notification events (not inclusive)
199            * @return the range of matching user notification events
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
203                    java.lang.String uuid, long companyId, int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException;
205    
206            /**
207            * Returns an ordered range of all the user notification events where uuid = &#63; and companyId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param companyId the company ID
215            * @param start the lower bound of the range of user notification events
216            * @param end the upper bound of the range of user notification events (not inclusive)
217            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
218            * @return the ordered range of matching user notification events
219            * @throws SystemException if a system exception occurred
220            */
221            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
222                    java.lang.String uuid, long companyId, int start, int end,
223                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224                    throws com.liferay.portal.kernel.exception.SystemException;
225    
226            /**
227            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
228            *
229            * @param uuid the uuid
230            * @param companyId the company ID
231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
232            * @return the first matching user notification event
233            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_First(
237                    java.lang.String uuid, long companyId,
238                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239                    throws com.liferay.portal.NoSuchUserNotificationEventException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            /**
243            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
244            *
245            * @param uuid the uuid
246            * @param companyId the company ID
247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
248            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
249            * @throws SystemException if a system exception occurred
250            */
251            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First(
252                    java.lang.String uuid, long companyId,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
258            *
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 last matching user notification event
263            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
264            * @throws SystemException if a system exception occurred
265            */
266            public com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last(
267                    java.lang.String uuid, long companyId,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.NoSuchUserNotificationEventException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
274            *
275            * @param uuid the uuid
276            * @param companyId the company ID
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last(
282                    java.lang.String uuid, long companyId,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException;
285    
286            /**
287            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
288            *
289            * @param userNotificationEventId the primary key of the current user notification event
290            * @param uuid the uuid
291            * @param companyId the company ID
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the previous, current, and next user notification event
294            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
295            * @throws SystemException if a system exception occurred
296            */
297            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext(
298                    long userNotificationEventId, java.lang.String uuid, long companyId,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.NoSuchUserNotificationEventException,
301                            com.liferay.portal.kernel.exception.SystemException;
302    
303            /**
304            * Removes all the user notification events where uuid = &#63; and companyId = &#63; from the database.
305            *
306            * @param uuid the uuid
307            * @param companyId the company ID
308            * @throws SystemException if a system exception occurred
309            */
310            public void removeByUuid_C(java.lang.String uuid, long companyId)
311                    throws com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the number of user notification events where uuid = &#63; and companyId = &#63;.
315            *
316            * @param uuid the uuid
317            * @param companyId the company ID
318            * @return the number of matching user notification events
319            * @throws SystemException if a system exception occurred
320            */
321            public int countByUuid_C(java.lang.String uuid, long companyId)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns all the user notification events where userId = &#63;.
326            *
327            * @param userId the user ID
328            * @return the matching user notification events
329            * @throws SystemException if a system exception occurred
330            */
331            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
332                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
333    
334            /**
335            * Returns a range of all the user notification events where userId = &#63;.
336            *
337            * <p>
338            * 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.
339            * </p>
340            *
341            * @param userId the user ID
342            * @param start the lower bound of the range of user notification events
343            * @param end the upper bound of the range of user notification events (not inclusive)
344            * @return the range of matching user notification events
345            * @throws SystemException if a system exception occurred
346            */
347            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
348                    long userId, int start, int end)
349                    throws com.liferay.portal.kernel.exception.SystemException;
350    
351            /**
352            * Returns an ordered range of all the user notification events where userId = &#63;.
353            *
354            * <p>
355            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.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.
356            * </p>
357            *
358            * @param userId the user ID
359            * @param start the lower bound of the range of user notification events
360            * @param end the upper bound of the range of user notification events (not inclusive)
361            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
362            * @return the ordered range of matching user notification events
363            * @throws SystemException if a system exception occurred
364            */
365            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
366                    long userId, int start, int end,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException;
369    
370            /**
371            * Returns the first user notification event in the ordered set where userId = &#63;.
372            *
373            * @param userId the user ID
374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
375            * @return the first matching user notification event
376            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
377            * @throws SystemException if a system exception occurred
378            */
379            public com.liferay.portal.model.UserNotificationEvent findByUserId_First(
380                    long userId,
381                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
382                    throws com.liferay.portal.NoSuchUserNotificationEventException,
383                            com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * Returns the first user notification event in the ordered set where userId = &#63;.
387            *
388            * @param userId the user ID
389            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
390            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
391            * @throws SystemException if a system exception occurred
392            */
393            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_First(
394                    long userId,
395                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
396                    throws com.liferay.portal.kernel.exception.SystemException;
397    
398            /**
399            * Returns the last user notification event in the ordered set where userId = &#63;.
400            *
401            * @param userId the user ID
402            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
403            * @return the last matching user notification event
404            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
405            * @throws SystemException if a system exception occurred
406            */
407            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
408                    long userId,
409                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
410                    throws com.liferay.portal.NoSuchUserNotificationEventException,
411                            com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns the last user notification event in the ordered set where userId = &#63;.
415            *
416            * @param userId the user ID
417            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
418            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
419            * @throws SystemException if a system exception occurred
420            */
421            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last(
422                    long userId,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
428            *
429            * @param userNotificationEventId the primary key of the current user notification event
430            * @param userId the user ID
431            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
432            * @return the previous, current, and next user notification event
433            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
434            * @throws SystemException if a system exception occurred
435            */
436            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
437                    long userNotificationEventId, long userId,
438                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
439                    throws com.liferay.portal.NoSuchUserNotificationEventException,
440                            com.liferay.portal.kernel.exception.SystemException;
441    
442            /**
443            * Removes all the user notification events where userId = &#63; from the database.
444            *
445            * @param userId the user ID
446            * @throws SystemException if a system exception occurred
447            */
448            public void removeByUserId(long userId)
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Returns the number of user notification events where userId = &#63;.
453            *
454            * @param userId the user ID
455            * @return the number of matching user notification events
456            * @throws SystemException if a system exception occurred
457            */
458            public int countByUserId(long userId)
459                    throws com.liferay.portal.kernel.exception.SystemException;
460    
461            /**
462            * Returns all the user notification events where userId = &#63; and archived = &#63;.
463            *
464            * @param userId the user ID
465            * @param archived the archived
466            * @return the matching user notification events
467            * @throws SystemException if a system exception occurred
468            */
469            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
470                    long userId, boolean archived)
471                    throws com.liferay.portal.kernel.exception.SystemException;
472    
473            /**
474            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
475            *
476            * <p>
477            * 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.
478            * </p>
479            *
480            * @param userId the user ID
481            * @param archived the archived
482            * @param start the lower bound of the range of user notification events
483            * @param end the upper bound of the range of user notification events (not inclusive)
484            * @return the range of matching user notification events
485            * @throws SystemException if a system exception occurred
486            */
487            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
488                    long userId, boolean archived, int start, int end)
489                    throws com.liferay.portal.kernel.exception.SystemException;
490    
491            /**
492            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
493            *
494            * <p>
495            * 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.
496            * </p>
497            *
498            * @param userId the user ID
499            * @param archived the archived
500            * @param start the lower bound of the range of user notification events
501            * @param end the upper bound of the range of user notification events (not inclusive)
502            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
503            * @return the ordered range of matching user notification events
504            * @throws SystemException if a system exception occurred
505            */
506            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
507                    long userId, boolean archived, int start, int end,
508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
513            *
514            * @param userId the user ID
515            * @param archived the archived
516            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
517            * @return the first matching user notification event
518            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
519            * @throws SystemException if a system exception occurred
520            */
521            public com.liferay.portal.model.UserNotificationEvent findByU_A_First(
522                    long userId, boolean archived,
523                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
524                    throws com.liferay.portal.NoSuchUserNotificationEventException,
525                            com.liferay.portal.kernel.exception.SystemException;
526    
527            /**
528            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
529            *
530            * @param userId the user ID
531            * @param archived the archived
532            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
533            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
534            * @throws SystemException if a system exception occurred
535            */
536            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_First(
537                    long userId, boolean archived,
538                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
543            *
544            * @param userId the user ID
545            * @param archived the archived
546            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
547            * @return the last matching user notification event
548            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
549            * @throws SystemException if a system exception occurred
550            */
551            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
552                    long userId, boolean archived,
553                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
554                    throws com.liferay.portal.NoSuchUserNotificationEventException,
555                            com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
559            *
560            * @param userId the user ID
561            * @param archived the archived
562            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
563            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
564            * @throws SystemException if a system exception occurred
565            */
566            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last(
567                    long userId, boolean archived,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
573            *
574            * @param userNotificationEventId the primary key of the current user notification event
575            * @param userId the user ID
576            * @param archived the archived
577            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
578            * @return the previous, current, and next user notification event
579            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
580            * @throws SystemException if a system exception occurred
581            */
582            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
583                    long userNotificationEventId, long userId, boolean archived,
584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585                    throws com.liferay.portal.NoSuchUserNotificationEventException,
586                            com.liferay.portal.kernel.exception.SystemException;
587    
588            /**
589            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
590            *
591            * @param userId the user ID
592            * @param archived the archived
593            * @throws SystemException if a system exception occurred
594            */
595            public void removeByU_A(long userId, boolean archived)
596                    throws com.liferay.portal.kernel.exception.SystemException;
597    
598            /**
599            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
600            *
601            * @param userId the user ID
602            * @param archived the archived
603            * @return the number of matching user notification events
604            * @throws SystemException if a system exception occurred
605            */
606            public int countByU_A(long userId, boolean archived)
607                    throws com.liferay.portal.kernel.exception.SystemException;
608    
609            /**
610            * Caches the user notification event in the entity cache if it is enabled.
611            *
612            * @param userNotificationEvent the user notification event
613            */
614            public void cacheResult(
615                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
616    
617            /**
618            * Caches the user notification events in the entity cache if it is enabled.
619            *
620            * @param userNotificationEvents the user notification events
621            */
622            public void cacheResult(
623                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents);
624    
625            /**
626            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
627            *
628            * @param userNotificationEventId the primary key for the new user notification event
629            * @return the new user notification event
630            */
631            public com.liferay.portal.model.UserNotificationEvent create(
632                    long userNotificationEventId);
633    
634            /**
635            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
636            *
637            * @param userNotificationEventId the primary key of the user notification event
638            * @return the user notification event that was removed
639            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
640            * @throws SystemException if a system exception occurred
641            */
642            public com.liferay.portal.model.UserNotificationEvent remove(
643                    long userNotificationEventId)
644                    throws com.liferay.portal.NoSuchUserNotificationEventException,
645                            com.liferay.portal.kernel.exception.SystemException;
646    
647            public com.liferay.portal.model.UserNotificationEvent updateImpl(
648                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent)
649                    throws com.liferay.portal.kernel.exception.SystemException;
650    
651            /**
652            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
653            *
654            * @param userNotificationEventId the primary key of the user notification event
655            * @return the user notification event
656            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
660                    long userNotificationEventId)
661                    throws com.liferay.portal.NoSuchUserNotificationEventException,
662                            com.liferay.portal.kernel.exception.SystemException;
663    
664            /**
665            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
666            *
667            * @param userNotificationEventId the primary key of the user notification event
668            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
672                    long userNotificationEventId)
673                    throws com.liferay.portal.kernel.exception.SystemException;
674    
675            /**
676            * Returns all the user notification events.
677            *
678            * @return the user notification events
679            * @throws SystemException if a system exception occurred
680            */
681            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll()
682                    throws com.liferay.portal.kernel.exception.SystemException;
683    
684            /**
685            * Returns a range of all the user notification events.
686            *
687            * <p>
688            * 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.
689            * </p>
690            *
691            * @param start the lower bound of the range of user notification events
692            * @param end the upper bound of the range of user notification events (not inclusive)
693            * @return the range of user notification events
694            * @throws SystemException if a system exception occurred
695            */
696            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
697                    int start, int end)
698                    throws com.liferay.portal.kernel.exception.SystemException;
699    
700            /**
701            * Returns an ordered range of all the user notification events.
702            *
703            * <p>
704            * 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.
705            * </p>
706            *
707            * @param start the lower bound of the range of user notification events
708            * @param end the upper bound of the range of user notification events (not inclusive)
709            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
710            * @return the ordered range of user notification events
711            * @throws SystemException if a system exception occurred
712            */
713            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
714                    int start, int end,
715                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * Removes all the user notification events from the database.
720            *
721            * @throws SystemException if a system exception occurred
722            */
723            public void removeAll()
724                    throws com.liferay.portal.kernel.exception.SystemException;
725    
726            /**
727            * Returns the number of user notification events.
728            *
729            * @return the number of user notification events
730            * @throws SystemException if a system exception occurred
731            */
732            public int countAll()
733                    throws com.liferay.portal.kernel.exception.SystemException;
734    }