001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.kernel.exception.SystemException;
018    import com.liferay.portal.model.UserNotificationEvent;
019    
020    /**
021     * The persistence interface for the user notification event service.
022     *
023     * <p>
024     * Caching information and settings can be found in <code>portal.properties</code>
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see UserNotificationEventPersistenceImpl
029     * @see UserNotificationEventUtil
030     * @generated
031     */
032    public interface UserNotificationEventPersistence extends BasePersistence<UserNotificationEvent> {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * 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.
037             */
038    
039            /**
040            * Caches the user notification event in the entity cache if it is enabled.
041            *
042            * @param userNotificationEvent the user notification event
043            */
044            public void cacheResult(
045                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent);
046    
047            /**
048            * Caches the user notification events in the entity cache if it is enabled.
049            *
050            * @param userNotificationEvents the user notification events
051            */
052            public void cacheResult(
053                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents);
054    
055            /**
056            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
057            *
058            * @param userNotificationEventId the primary key for the new user notification event
059            * @return the new user notification event
060            */
061            public com.liferay.portal.model.UserNotificationEvent create(
062                    long userNotificationEventId);
063    
064            /**
065            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
066            *
067            * @param userNotificationEventId the primary key of the user notification event
068            * @return the user notification event that was removed
069            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public com.liferay.portal.model.UserNotificationEvent remove(
073                    long userNotificationEventId)
074                    throws com.liferay.portal.NoSuchUserNotificationEventException,
075                            com.liferay.portal.kernel.exception.SystemException;
076    
077            public com.liferay.portal.model.UserNotificationEvent updateImpl(
078                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
079                    boolean merge)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
084            *
085            * @param userNotificationEventId the primary key of the user notification event
086            * @return the user notification event
087            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
091                    long userNotificationEventId)
092                    throws com.liferay.portal.NoSuchUserNotificationEventException,
093                            com.liferay.portal.kernel.exception.SystemException;
094    
095            /**
096            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param userNotificationEventId the primary key of the user notification event
099            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
103                    long userNotificationEventId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the user notification events where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @return the matching user notification events
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
114                    java.lang.String uuid)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the user notification events where uuid = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param uuid the uuid
125            * @param start the lower bound of the range of user notification events
126            * @param end the upper bound of the range of user notification events (not inclusive)
127            * @return the range of matching user notification events
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
131                    java.lang.String uuid, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the user notification events where uuid = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param uuid the uuid
142            * @param start the lower bound of the range of user notification events
143            * @param end the upper bound of the range of user notification events (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching user notification events
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
149                    java.lang.String uuid, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first user notification event in the ordered set where uuid = &#63;.
155            *
156            * <p>
157            * 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.
158            * </p>
159            *
160            * @param uuid the uuid
161            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
162            * @return the first matching user notification event
163            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            public com.liferay.portal.model.UserNotificationEvent findByUuid_First(
167                    java.lang.String uuid,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.NoSuchUserNotificationEventException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            /**
173            * Returns the last user notification event in the ordered set where uuid = &#63;.
174            *
175            * <p>
176            * 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.
177            * </p>
178            *
179            * @param uuid the uuid
180            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
181            * @return the last matching user notification event
182            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
186                    java.lang.String uuid,
187                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
188                    throws com.liferay.portal.NoSuchUserNotificationEventException,
189                            com.liferay.portal.kernel.exception.SystemException;
190    
191            /**
192            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
193            *
194            * <p>
195            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
196            * </p>
197            *
198            * @param userNotificationEventId the primary key of the current user notification event
199            * @param uuid the uuid
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the previous, current, and next user notification event
202            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
206                    long userNotificationEventId, java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.NoSuchUserNotificationEventException,
209                            com.liferay.portal.kernel.exception.SystemException;
210    
211            /**
212            * Returns all the user notification events where userId = &#63;.
213            *
214            * @param userId the user ID
215            * @return the matching user notification events
216            * @throws SystemException if a system exception occurred
217            */
218            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
219                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
220    
221            /**
222            * Returns a range of all the user notification events where userId = &#63;.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param userId the user ID
229            * @param start the lower bound of the range of user notification events
230            * @param end the upper bound of the range of user notification events (not inclusive)
231            * @return the range of matching user notification events
232            * @throws SystemException if a system exception occurred
233            */
234            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
235                    long userId, int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException;
237    
238            /**
239            * Returns an ordered range of all the user notification events where userId = &#63;.
240            *
241            * <p>
242            * 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.
243            * </p>
244            *
245            * @param userId the user ID
246            * @param start the lower bound of the range of user notification events
247            * @param end the upper bound of the range of user notification events (not inclusive)
248            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
249            * @return the ordered range of matching user notification events
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
253                    long userId, int start, int end,
254                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
255                    throws com.liferay.portal.kernel.exception.SystemException;
256    
257            /**
258            * Returns the first user notification event in the ordered set where userId = &#63;.
259            *
260            * <p>
261            * 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.
262            * </p>
263            *
264            * @param userId the user ID
265            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
266            * @return the first matching user notification event
267            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
268            * @throws SystemException if a system exception occurred
269            */
270            public com.liferay.portal.model.UserNotificationEvent findByUserId_First(
271                    long userId,
272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
273                    throws com.liferay.portal.NoSuchUserNotificationEventException,
274                            com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns the last user notification event in the ordered set where userId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param userId the user ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching user notification event
286            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
290                    long userId,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.NoSuchUserNotificationEventException,
293                            com.liferay.portal.kernel.exception.SystemException;
294    
295            /**
296            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
297            *
298            * <p>
299            * 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.
300            * </p>
301            *
302            * @param userNotificationEventId the primary key of the current user notification event
303            * @param userId the user ID
304            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
305            * @return the previous, current, and next user notification event
306            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
307            * @throws SystemException if a system exception occurred
308            */
309            public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
310                    long userNotificationEventId, long userId,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.NoSuchUserNotificationEventException,
313                            com.liferay.portal.kernel.exception.SystemException;
314    
315            /**
316            * Returns all the user notification events where userId = &#63; and archived = &#63;.
317            *
318            * @param userId the user ID
319            * @param archived the archived
320            * @return the matching user notification events
321            * @throws SystemException if a system exception occurred
322            */
323            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
324                    long userId, boolean archived)
325                    throws com.liferay.portal.kernel.exception.SystemException;
326    
327            /**
328            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
329            *
330            * <p>
331            * 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.
332            * </p>
333            *
334            * @param userId the user ID
335            * @param archived the archived
336            * @param start the lower bound of the range of user notification events
337            * @param end the upper bound of the range of user notification events (not inclusive)
338            * @return the range of matching user notification events
339            * @throws SystemException if a system exception occurred
340            */
341            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
342                    long userId, boolean archived, int start, int end)
343                    throws com.liferay.portal.kernel.exception.SystemException;
344    
345            /**
346            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
347            *
348            * <p>
349            * 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.
350            * </p>
351            *
352            * @param userId the user ID
353            * @param archived the archived
354            * @param start the lower bound of the range of user notification events
355            * @param end the upper bound of the range of user notification events (not inclusive)
356            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
357            * @return the ordered range of matching user notification events
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
361                    long userId, boolean archived, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
367            *
368            * <p>
369            * 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.
370            * </p>
371            *
372            * @param userId the user ID
373            * @param archived the archived
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 findByU_A_First(
380                    long userId, boolean archived,
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 last user notification event in the ordered set where userId = &#63; and archived = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param userId the user ID
393            * @param archived the archived
394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
395            * @return the last matching user notification event
396            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
397            * @throws SystemException if a system exception occurred
398            */
399            public com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
400                    long userId, boolean archived,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.NoSuchUserNotificationEventException,
403                            com.liferay.portal.kernel.exception.SystemException;
404    
405            /**
406            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
407            *
408            * <p>
409            * 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.
410            * </p>
411            *
412            * @param userNotificationEventId the primary key of the current user notification event
413            * @param userId the user ID
414            * @param archived the archived
415            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
416            * @return the previous, current, and next user notification event
417            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
418            * @throws SystemException if a system exception occurred
419            */
420            public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
421                    long userNotificationEventId, long userId, boolean archived,
422                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
423                    throws com.liferay.portal.NoSuchUserNotificationEventException,
424                            com.liferay.portal.kernel.exception.SystemException;
425    
426            /**
427            * Returns all the user notification events.
428            *
429            * @return the user notification events
430            * @throws SystemException if a system exception occurred
431            */
432            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll()
433                    throws com.liferay.portal.kernel.exception.SystemException;
434    
435            /**
436            * Returns a range of all the user notification events.
437            *
438            * <p>
439            * 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.
440            * </p>
441            *
442            * @param start the lower bound of the range of user notification events
443            * @param end the upper bound of the range of user notification events (not inclusive)
444            * @return the range of user notification events
445            * @throws SystemException if a system exception occurred
446            */
447            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
448                    int start, int end)
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Returns an ordered range of all the user notification events.
453            *
454            * <p>
455            * 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.
456            * </p>
457            *
458            * @param start the lower bound of the range of user notification events
459            * @param end the upper bound of the range of user notification events (not inclusive)
460            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
461            * @return the ordered range of user notification events
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
465                    int start, int end,
466                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
467                    throws com.liferay.portal.kernel.exception.SystemException;
468    
469            /**
470            * Removes all the user notification events where uuid = &#63; from the database.
471            *
472            * @param uuid the uuid
473            * @throws SystemException if a system exception occurred
474            */
475            public void removeByUuid(java.lang.String uuid)
476                    throws com.liferay.portal.kernel.exception.SystemException;
477    
478            /**
479            * Removes all the user notification events where userId = &#63; from the database.
480            *
481            * @param userId the user ID
482            * @throws SystemException if a system exception occurred
483            */
484            public void removeByUserId(long userId)
485                    throws com.liferay.portal.kernel.exception.SystemException;
486    
487            /**
488            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
489            *
490            * @param userId the user ID
491            * @param archived the archived
492            * @throws SystemException if a system exception occurred
493            */
494            public void removeByU_A(long userId, boolean archived)
495                    throws com.liferay.portal.kernel.exception.SystemException;
496    
497            /**
498            * Removes all the user notification events from the database.
499            *
500            * @throws SystemException if a system exception occurred
501            */
502            public void removeAll()
503                    throws com.liferay.portal.kernel.exception.SystemException;
504    
505            /**
506            * Returns the number of user notification events where uuid = &#63;.
507            *
508            * @param uuid the uuid
509            * @return the number of matching user notification events
510            * @throws SystemException if a system exception occurred
511            */
512            public int countByUuid(java.lang.String uuid)
513                    throws com.liferay.portal.kernel.exception.SystemException;
514    
515            /**
516            * Returns the number of user notification events where userId = &#63;.
517            *
518            * @param userId the user ID
519            * @return the number of matching user notification events
520            * @throws SystemException if a system exception occurred
521            */
522            public int countByUserId(long userId)
523                    throws com.liferay.portal.kernel.exception.SystemException;
524    
525            /**
526            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
527            *
528            * @param userId the user ID
529            * @param archived the archived
530            * @return the number of matching user notification events
531            * @throws SystemException if a system exception occurred
532            */
533            public int countByU_A(long userId, boolean archived)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Returns the number of user notification events.
538            *
539            * @return the number of user notification events
540            * @throws SystemException if a system exception occurred
541            */
542            public int countAll()
543                    throws com.liferay.portal.kernel.exception.SystemException;
544    
545            public UserNotificationEvent remove(
546                    UserNotificationEvent userNotificationEvent) throws SystemException;
547    }