001    /**
002     * Copyright (c) 2000-2012 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            * <p>
156            * 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.
157            * </p>
158            *
159            * @param uuid the uuid
160            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
161            * @return the first matching user notification event
162            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
166                    java.lang.String uuid,
167                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168                    throws com.liferay.portal.NoSuchUserNotificationEventException,
169                            com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the last user notification event in the ordered set where uuid = &#63;.
173            *
174            * <p>
175            * 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.
176            * </p>
177            *
178            * @param uuid the uuid
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the last matching user notification event
181            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
182            * @throws SystemException if a system exception occurred
183            */
184            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
185                    java.lang.String uuid,
186                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187                    throws com.liferay.portal.NoSuchUserNotificationEventException,
188                            com.liferay.portal.kernel.exception.SystemException;
189    
190            /**
191            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
192            *
193            * <p>
194            * 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.
195            * </p>
196            *
197            * @param userNotificationEventId the primary key of the current user notification event
198            * @param uuid the uuid
199            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
200            * @return the previous, current, and next user notification event
201            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
205                    long userNotificationEventId, java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.NoSuchUserNotificationEventException,
208                            com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns all the user notification events where userId = &#63;.
212            *
213            * @param userId the user ID
214            * @return the matching user notification events
215            * @throws SystemException if a system exception occurred
216            */
217            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
218                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Returns a range of all the user notification events where userId = &#63;.
222            *
223            * <p>
224            * 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.
225            * </p>
226            *
227            * @param userId the user ID
228            * @param start the lower bound of the range of user notification events
229            * @param end the upper bound of the range of user notification events (not inclusive)
230            * @return the range of matching user notification events
231            * @throws SystemException if a system exception occurred
232            */
233            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
234                    long userId, int start, int end)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            /**
238            * Returns an ordered range of all the user notification events where userId = &#63;.
239            *
240            * <p>
241            * 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.
242            * </p>
243            *
244            * @param userId the user ID
245            * @param start the lower bound of the range of user notification events
246            * @param end the upper bound of the range of user notification events (not inclusive)
247            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
248            * @return the ordered range of matching user notification events
249            * @throws SystemException if a system exception occurred
250            */
251            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
252                    long userId, int start, int end,
253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns the first user notification event in the ordered set where userId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param userId the user ID
264            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
265            * @return the first 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 findByUserId_First(
270                    long userId,
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 userId = &#63;.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param userId the user ID
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching user notification event
285            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
289                    long userId,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.NoSuchUserNotificationEventException,
292                            com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param userNotificationEventId the primary key of the current user notification event
302            * @param userId the user ID
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the previous, current, and next user notification event
305            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
309                    long userNotificationEventId, long userId,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.NoSuchUserNotificationEventException,
312                            com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns all the user notification events where userId = &#63; and archived = &#63;.
316            *
317            * @param userId the user ID
318            * @param archived the archived
319            * @return the matching user notification events
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
323                    long userId, boolean archived)
324                    throws com.liferay.portal.kernel.exception.SystemException;
325    
326            /**
327            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
328            *
329            * <p>
330            * 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.
331            * </p>
332            *
333            * @param userId the user ID
334            * @param archived the archived
335            * @param start the lower bound of the range of user notification events
336            * @param end the upper bound of the range of user notification events (not inclusive)
337            * @return the range of matching user notification events
338            * @throws SystemException if a system exception occurred
339            */
340            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
341                    long userId, boolean archived, int start, int end)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
346            *
347            * <p>
348            * 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.
349            * </p>
350            *
351            * @param userId the user ID
352            * @param archived the archived
353            * @param start the lower bound of the range of user notification events
354            * @param end the upper bound of the range of user notification events (not inclusive)
355            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
356            * @return the ordered range of matching user notification events
357            * @throws SystemException if a system exception occurred
358            */
359            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
360                    long userId, boolean archived, int start, int end,
361                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
362                    throws com.liferay.portal.kernel.exception.SystemException;
363    
364            /**
365            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
366            *
367            * <p>
368            * 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.
369            * </p>
370            *
371            * @param userId the user ID
372            * @param archived the archived
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the first matching user notification event
375            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portal.model.UserNotificationEvent findByU_A_First(
379                    long userId, boolean archived,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.NoSuchUserNotificationEventException,
382                            com.liferay.portal.kernel.exception.SystemException;
383    
384            /**
385            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
386            *
387            * <p>
388            * 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.
389            * </p>
390            *
391            * @param userId the user ID
392            * @param archived the archived
393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
394            * @return the last matching user notification event
395            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
396            * @throws SystemException if a system exception occurred
397            */
398            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
399                    long userId, boolean archived,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.NoSuchUserNotificationEventException,
402                            com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
406            *
407            * <p>
408            * 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.
409            * </p>
410            *
411            * @param userNotificationEventId the primary key of the current user notification event
412            * @param userId the user ID
413            * @param archived the archived
414            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
415            * @return the previous, current, and next user notification event
416            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
417            * @throws SystemException if a system exception occurred
418            */
419            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
420                    long userNotificationEventId, long userId, boolean archived,
421                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
422                    throws com.liferay.portal.NoSuchUserNotificationEventException,
423                            com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Returns all the user notification events.
427            *
428            * @return the user notification events
429            * @throws SystemException if a system exception occurred
430            */
431            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll()
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns a range of all the user notification events.
436            *
437            * <p>
438            * 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.
439            * </p>
440            *
441            * @param start the lower bound of the range of user notification events
442            * @param end the upper bound of the range of user notification events (not inclusive)
443            * @return the range of user notification events
444            * @throws SystemException if a system exception occurred
445            */
446            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
447                    int start, int end)
448                    throws com.liferay.portal.kernel.exception.SystemException;
449    
450            /**
451            * Returns an ordered range of all the user notification events.
452            *
453            * <p>
454            * 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.
455            * </p>
456            *
457            * @param start the lower bound of the range of user notification events
458            * @param end the upper bound of the range of user notification events (not inclusive)
459            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
460            * @return the ordered range of user notification events
461            * @throws SystemException if a system exception occurred
462            */
463            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
464                    int start, int end,
465                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Removes all the user notification events where uuid = &#63; from the database.
470            *
471            * @param uuid the uuid
472            * @throws SystemException if a system exception occurred
473            */
474            public void removeByUuid(java.lang.String uuid)
475                    throws com.liferay.portal.kernel.exception.SystemException;
476    
477            /**
478            * Removes all the user notification events where userId = &#63; from the database.
479            *
480            * @param userId the user ID
481            * @throws SystemException if a system exception occurred
482            */
483            public void removeByUserId(long userId)
484                    throws com.liferay.portal.kernel.exception.SystemException;
485    
486            /**
487            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
488            *
489            * @param userId the user ID
490            * @param archived the archived
491            * @throws SystemException if a system exception occurred
492            */
493            public void removeByU_A(long userId, boolean archived)
494                    throws com.liferay.portal.kernel.exception.SystemException;
495    
496            /**
497            * Removes all the user notification events from the database.
498            *
499            * @throws SystemException if a system exception occurred
500            */
501            public void removeAll()
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns the number of user notification events where uuid = &#63;.
506            *
507            * @param uuid the uuid
508            * @return the number of matching user notification events
509            * @throws SystemException if a system exception occurred
510            */
511            public int countByUuid(java.lang.String uuid)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the number of user notification events where userId = &#63;.
516            *
517            * @param userId the user ID
518            * @return the number of matching user notification events
519            * @throws SystemException if a system exception occurred
520            */
521            public int countByUserId(long userId)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
526            *
527            * @param userId the user ID
528            * @param archived the archived
529            * @return the number of matching user notification events
530            * @throws SystemException if a system exception occurred
531            */
532            public int countByU_A(long userId, boolean archived)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Returns the number of user notification events.
537            *
538            * @return the number of user notification events
539            * @throws SystemException if a system exception occurred
540            */
541            public int countAll()
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    }