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            * Caches the user notification event in the entity cache if it is enabled.
040            *
041            * @param userNotificationEvent the user notification event
042            */
043            public void cacheResult(
044                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
045    
046            /**
047            * Caches the user notification events in the entity cache if it is enabled.
048            *
049            * @param userNotificationEvents the user notification events
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents);
053    
054            /**
055            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
056            *
057            * @param userNotificationEventId the primary key for the new user notification event
058            * @return the new user notification event
059            */
060            public com.liferay.portal.model.UserNotificationEvent create(
061                    long userNotificationEventId);
062    
063            /**
064            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
065            *
066            * @param userNotificationEventId the primary key of the user notification event
067            * @return the user notification event that was removed
068            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
069            * @throws SystemException if a system exception occurred
070            */
071            public com.liferay.portal.model.UserNotificationEvent remove(
072                    long userNotificationEventId)
073                    throws com.liferay.portal.NoSuchUserNotificationEventException,
074                            com.liferay.portal.kernel.exception.SystemException;
075    
076            public com.liferay.portal.model.UserNotificationEvent updateImpl(
077                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
078                    boolean merge)
079                    throws com.liferay.portal.kernel.exception.SystemException;
080    
081            /**
082            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
083            *
084            * @param userNotificationEventId the primary key of the user notification event
085            * @return the user notification event
086            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
087            * @throws SystemException if a system exception occurred
088            */
089            public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
090                    long userNotificationEventId)
091                    throws com.liferay.portal.NoSuchUserNotificationEventException,
092                            com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
096            *
097            * @param userNotificationEventId the primary key of the user notification event
098            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
099            * @throws SystemException if a system exception occurred
100            */
101            public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
102                    long userNotificationEventId)
103                    throws com.liferay.portal.kernel.exception.SystemException;
104    
105            /**
106            * Returns all the user notification events where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @return the matching user notification events
110            * @throws SystemException if a system exception occurred
111            */
112            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
113                    java.lang.String uuid)
114                    throws com.liferay.portal.kernel.exception.SystemException;
115    
116            /**
117            * Returns a range of all the user notification events where uuid = &#63;.
118            *
119            * <p>
120            * 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.
121            * </p>
122            *
123            * @param uuid the uuid
124            * @param start the lower bound of the range of user notification events
125            * @param end the upper bound of the range of user notification events (not inclusive)
126            * @return the range of matching user notification events
127            * @throws SystemException if a system exception occurred
128            */
129            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
130                    java.lang.String uuid, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Returns an ordered range of all the user notification events where uuid = &#63;.
135            *
136            * <p>
137            * 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.
138            * </p>
139            *
140            * @param uuid the uuid
141            * @param start the lower bound of the range of user notification events
142            * @param end the upper bound of the range of user notification events (not inclusive)
143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
144            * @return the ordered range of matching user notification events
145            * @throws SystemException if a system exception occurred
146            */
147            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
148                    java.lang.String uuid, int start, int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            /**
153            * Returns the first user notification event in the ordered set where uuid = &#63;.
154            *
155            * @param uuid the uuid
156            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
157            * @return the first matching user notification event
158            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
159            * @throws SystemException if a system exception occurred
160            */
161            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
162                    java.lang.String uuid,
163                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164                    throws com.liferay.portal.NoSuchUserNotificationEventException,
165                            com.liferay.portal.kernel.exception.SystemException;
166    
167            /**
168            * Returns the first user notification event in the ordered set where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
172            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_First(
176                    java.lang.String uuid,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException;
179    
180            /**
181            * Returns the last user notification event in the ordered set where uuid = &#63;.
182            *
183            * @param uuid the uuid
184            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
185            * @return the last matching user notification event
186            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
187            * @throws SystemException if a system exception occurred
188            */
189            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
190                    java.lang.String uuid,
191                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
192                    throws com.liferay.portal.NoSuchUserNotificationEventException,
193                            com.liferay.portal.kernel.exception.SystemException;
194    
195            /**
196            * Returns the last user notification event in the ordered set where uuid = &#63;.
197            *
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last(
204                    java.lang.String uuid,
205                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
206                    throws com.liferay.portal.kernel.exception.SystemException;
207    
208            /**
209            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
210            *
211            * @param userNotificationEventId the primary key of the current user notification event
212            * @param uuid the uuid
213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
214            * @return the previous, current, and next user notification event
215            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
219                    long userNotificationEventId, java.lang.String uuid,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.NoSuchUserNotificationEventException,
222                            com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Returns all the user notification events where userId = &#63;.
226            *
227            * @param userId the user ID
228            * @return the matching user notification events
229            * @throws SystemException if a system exception occurred
230            */
231            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
232                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Returns a range of all the user notification events where userId = &#63;.
236            *
237            * <p>
238            * 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.
239            * </p>
240            *
241            * @param userId the user ID
242            * @param start the lower bound of the range of user notification events
243            * @param end the upper bound of the range of user notification events (not inclusive)
244            * @return the range of matching user notification events
245            * @throws SystemException if a system exception occurred
246            */
247            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
248                    long userId, int start, int end)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * Returns an ordered range of all the user notification events where userId = &#63;.
253            *
254            * <p>
255            * 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.
256            * </p>
257            *
258            * @param userId the user ID
259            * @param start the lower bound of the range of user notification events
260            * @param end the upper bound of the range of user notification events (not inclusive)
261            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
262            * @return the ordered range of matching user notification events
263            * @throws SystemException if a system exception occurred
264            */
265            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
266                    long userId, int start, int end,
267                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
268                    throws com.liferay.portal.kernel.exception.SystemException;
269    
270            /**
271            * Returns the first user notification event in the ordered set where userId = &#63;.
272            *
273            * @param userId the user ID
274            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
275            * @return the first matching user notification event
276            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
277            * @throws SystemException if a system exception occurred
278            */
279            public com.liferay.portal.model.UserNotificationEvent findByUserId_First(
280                    long userId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.NoSuchUserNotificationEventException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            /**
286            * Returns the first user notification event in the ordered set where userId = &#63;.
287            *
288            * @param userId the user ID
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
291            * @throws SystemException if a system exception occurred
292            */
293            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_First(
294                    long userId,
295                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
296                    throws com.liferay.portal.kernel.exception.SystemException;
297    
298            /**
299            * Returns the last user notification event in the ordered set where userId = &#63;.
300            *
301            * @param userId the user ID
302            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
303            * @return the last matching user notification event
304            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
305            * @throws SystemException if a system exception occurred
306            */
307            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
308                    long userId,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.NoSuchUserNotificationEventException,
311                            com.liferay.portal.kernel.exception.SystemException;
312    
313            /**
314            * Returns the last user notification event in the ordered set where userId = &#63;.
315            *
316            * @param userId the user ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last(
322                    long userId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
328            *
329            * @param userNotificationEventId the primary key of the current user notification event
330            * @param userId the user ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the previous, current, and next user notification event
333            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
337                    long userNotificationEventId, long userId,
338                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
339                    throws com.liferay.portal.NoSuchUserNotificationEventException,
340                            com.liferay.portal.kernel.exception.SystemException;
341    
342            /**
343            * Returns all the user notification events where userId = &#63; and archived = &#63;.
344            *
345            * @param userId the user ID
346            * @param archived the archived
347            * @return the matching user notification events
348            * @throws SystemException if a system exception occurred
349            */
350            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
351                    long userId, boolean archived)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns a range of all the user notification events where userId = &#63; and archived = &#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.
359            * </p>
360            *
361            * @param userId the user ID
362            * @param archived the archived
363            * @param start the lower bound of the range of user notification events
364            * @param end the upper bound of the range of user notification events (not inclusive)
365            * @return the 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> findByU_A(
369                    long userId, boolean archived, int start, int end)
370                    throws com.liferay.portal.kernel.exception.SystemException;
371    
372            /**
373            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
374            *
375            * <p>
376            * 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.
377            * </p>
378            *
379            * @param userId the user ID
380            * @param archived the archived
381            * @param start the lower bound of the range of user notification events
382            * @param end the upper bound of the range of user notification events (not inclusive)
383            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
384            * @return the ordered range of matching user notification events
385            * @throws SystemException if a system exception occurred
386            */
387            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
388                    long userId, boolean archived, int start, int end,
389                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
394            *
395            * @param userId the user ID
396            * @param archived the archived
397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
398            * @return the first matching user notification event
399            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
400            * @throws SystemException if a system exception occurred
401            */
402            public com.liferay.portal.model.UserNotificationEvent findByU_A_First(
403                    long userId, boolean archived,
404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
405                    throws com.liferay.portal.NoSuchUserNotificationEventException,
406                            com.liferay.portal.kernel.exception.SystemException;
407    
408            /**
409            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
410            *
411            * @param userId the user ID
412            * @param archived the archived
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_First(
418                    long userId, boolean archived,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException;
421    
422            /**
423            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
424            *
425            * @param userId the user ID
426            * @param archived the archived
427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
428            * @return the last matching user notification event
429            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
430            * @throws SystemException if a system exception occurred
431            */
432            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
433                    long userId, boolean archived,
434                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
435                    throws com.liferay.portal.NoSuchUserNotificationEventException,
436                            com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
440            *
441            * @param userId the user ID
442            * @param archived the archived
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last(
448                    long userId, boolean archived,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException;
451    
452            /**
453            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
454            *
455            * @param userNotificationEventId the primary key of the current user notification event
456            * @param userId the user ID
457            * @param archived the archived
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the previous, current, and next user notification event
460            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
461            * @throws SystemException if a system exception occurred
462            */
463            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
464                    long userNotificationEventId, long userId, boolean archived,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.NoSuchUserNotificationEventException,
467                            com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Returns all the user notification events.
471            *
472            * @return the user notification events
473            * @throws SystemException if a system exception occurred
474            */
475            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll()
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Returns a range of all the user notification events.
480            *
481            * <p>
482            * 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.
483            * </p>
484            *
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 user notification events
488            * @throws SystemException if a system exception occurred
489            */
490            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
491                    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.
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.
499            * </p>
500            *
501            * @param start the lower bound of the range of user notification events
502            * @param end the upper bound of the range of user notification events (not inclusive)
503            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
504            * @return the ordered range of user notification events
505            * @throws SystemException if a system exception occurred
506            */
507            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
508                    int start, int end,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException;
511    
512            /**
513            * Removes all the user notification events where uuid = &#63; from the database.
514            *
515            * @param uuid the uuid
516            * @throws SystemException if a system exception occurred
517            */
518            public void removeByUuid(java.lang.String uuid)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Removes all the user notification events where userId = &#63; from the database.
523            *
524            * @param userId the user ID
525            * @throws SystemException if a system exception occurred
526            */
527            public void removeByUserId(long userId)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
532            *
533            * @param userId the user ID
534            * @param archived the archived
535            * @throws SystemException if a system exception occurred
536            */
537            public void removeByU_A(long userId, boolean archived)
538                    throws com.liferay.portal.kernel.exception.SystemException;
539    
540            /**
541            * Removes all the user notification events from the database.
542            *
543            * @throws SystemException if a system exception occurred
544            */
545            public void removeAll()
546                    throws com.liferay.portal.kernel.exception.SystemException;
547    
548            /**
549            * Returns the number of user notification events where uuid = &#63;.
550            *
551            * @param uuid the uuid
552            * @return the number of matching user notification events
553            * @throws SystemException if a system exception occurred
554            */
555            public int countByUuid(java.lang.String uuid)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Returns the number of user notification events where userId = &#63;.
560            *
561            * @param userId the user ID
562            * @return the number of matching user notification events
563            * @throws SystemException if a system exception occurred
564            */
565            public int countByUserId(long userId)
566                    throws com.liferay.portal.kernel.exception.SystemException;
567    
568            /**
569            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
570            *
571            * @param userId the user ID
572            * @param archived the archived
573            * @return the number of matching user notification events
574            * @throws SystemException if a system exception occurred
575            */
576            public int countByU_A(long userId, boolean archived)
577                    throws com.liferay.portal.kernel.exception.SystemException;
578    
579            /**
580            * Returns the number of user notification events.
581            *
582            * @return the number of user notification events
583            * @throws SystemException if a system exception occurred
584            */
585            public int countAll()
586                    throws com.liferay.portal.kernel.exception.SystemException;
587    }