001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.model.UserNotificationEvent;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the user notification event service. This utility wraps {@link UserNotificationEventPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see UserNotificationEventPersistence
037     * @see UserNotificationEventPersistenceImpl
038     * @generated
039     */
040    @ProviderType
041    public class UserNotificationEventUtil {
042            /*
043             * NOTE FOR DEVELOPERS:
044             *
045             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
046             */
047    
048            /**
049             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
050             */
051            public static void clearCache() {
052                    getPersistence().clearCache();
053            }
054    
055            /**
056             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
057             */
058            public static void clearCache(UserNotificationEvent userNotificationEvent) {
059                    getPersistence().clearCache(userNotificationEvent);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
064             */
065            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<UserNotificationEvent> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<UserNotificationEvent> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end) {
082                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
083            }
084    
085            /**
086             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
087             */
088            public static List<UserNotificationEvent> findWithDynamicQuery(
089                    DynamicQuery dynamicQuery, int start, int end,
090                    OrderByComparator<UserNotificationEvent> orderByComparator) {
091                    return getPersistence()
092                                       .findWithDynamicQuery(dynamicQuery, start, end,
093                            orderByComparator);
094            }
095    
096            /**
097             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
098             */
099            public static UserNotificationEvent update(
100                    UserNotificationEvent userNotificationEvent) {
101                    return getPersistence().update(userNotificationEvent);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static UserNotificationEvent update(
108                    UserNotificationEvent userNotificationEvent,
109                    ServiceContext serviceContext) {
110                    return getPersistence().update(userNotificationEvent, serviceContext);
111            }
112    
113            /**
114            * Returns all the user notification events where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @return the matching user notification events
118            */
119            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
120                    java.lang.String uuid) {
121                    return getPersistence().findByUuid(uuid);
122            }
123    
124            /**
125            * Returns a range of all the user notification events where uuid = &#63;.
126            *
127            * <p>
128            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
129            * </p>
130            *
131            * @param uuid the uuid
132            * @param start the lower bound of the range of user notification events
133            * @param end the upper bound of the range of user notification events (not inclusive)
134            * @return the range of matching user notification events
135            */
136            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
137                    java.lang.String uuid, int start, int end) {
138                    return getPersistence().findByUuid(uuid, start, end);
139            }
140    
141            /**
142            * Returns an ordered range of all the user notification events where uuid = &#63;.
143            *
144            * <p>
145            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
146            * </p>
147            *
148            * @param uuid the uuid
149            * @param start the lower bound of the range of user notification events
150            * @param end the upper bound of the range of user notification events (not inclusive)
151            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
152            * @return the ordered range of matching user notification events
153            */
154            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid(
155                    java.lang.String uuid, int start, int end,
156                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
157                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the first user notification event in the ordered set where uuid = &#63;.
162            *
163            * @param uuid the uuid
164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
165            * @return the first matching user notification event
166            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
167            */
168            public static com.liferay.portal.model.UserNotificationEvent findByUuid_First(
169                    java.lang.String uuid,
170                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
171                    throws com.liferay.portal.NoSuchUserNotificationEventException {
172                    return getPersistence().findByUuid_First(uuid, orderByComparator);
173            }
174    
175            /**
176            * Returns the first user notification event in the ordered set where uuid = &#63;.
177            *
178            * @param uuid the uuid
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
181            */
182            public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_First(
183                    java.lang.String uuid,
184                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
185                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
186            }
187    
188            /**
189            * Returns the last user notification event in the ordered set where uuid = &#63;.
190            *
191            * @param uuid the uuid
192            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
193            * @return the last matching user notification event
194            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
195            */
196            public static com.liferay.portal.model.UserNotificationEvent findByUuid_Last(
197                    java.lang.String uuid,
198                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
199                    throws com.liferay.portal.NoSuchUserNotificationEventException {
200                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
201            }
202    
203            /**
204            * Returns the last user notification event in the ordered set where uuid = &#63;.
205            *
206            * @param uuid the uuid
207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
208            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
209            */
210            public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last(
211                    java.lang.String uuid,
212                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
213                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
214            }
215    
216            /**
217            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63;.
218            *
219            * @param userNotificationEventId the primary key of the current user notification event
220            * @param uuid the uuid
221            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
222            * @return the previous, current, and next user notification event
223            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
224            */
225            public static com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext(
226                    long userNotificationEventId, java.lang.String uuid,
227                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
228                    throws com.liferay.portal.NoSuchUserNotificationEventException {
229                    return getPersistence()
230                                       .findByUuid_PrevAndNext(userNotificationEventId, uuid,
231                            orderByComparator);
232            }
233    
234            /**
235            * Removes all the user notification events where uuid = &#63; from the database.
236            *
237            * @param uuid the uuid
238            */
239            public static void removeByUuid(java.lang.String uuid) {
240                    getPersistence().removeByUuid(uuid);
241            }
242    
243            /**
244            * Returns the number of user notification events where uuid = &#63;.
245            *
246            * @param uuid the uuid
247            * @return the number of matching user notification events
248            */
249            public static int countByUuid(java.lang.String uuid) {
250                    return getPersistence().countByUuid(uuid);
251            }
252    
253            /**
254            * Returns all the user notification events where uuid = &#63; and companyId = &#63;.
255            *
256            * @param uuid the uuid
257            * @param companyId the company ID
258            * @return the matching user notification events
259            */
260            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
261                    java.lang.String uuid, long companyId) {
262                    return getPersistence().findByUuid_C(uuid, companyId);
263            }
264    
265            /**
266            * Returns a range of all the user notification events where uuid = &#63; and companyId = &#63;.
267            *
268            * <p>
269            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
270            * </p>
271            *
272            * @param uuid the uuid
273            * @param companyId the company ID
274            * @param start the lower bound of the range of user notification events
275            * @param end the upper bound of the range of user notification events (not inclusive)
276            * @return the range of matching user notification events
277            */
278            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
279                    java.lang.String uuid, long companyId, int start, int end) {
280                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
281            }
282    
283            /**
284            * Returns an ordered range of all the user notification events where uuid = &#63; and companyId = &#63;.
285            *
286            * <p>
287            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
288            * </p>
289            *
290            * @param uuid the uuid
291            * @param companyId the company ID
292            * @param start the lower bound of the range of user notification events
293            * @param end the upper bound of the range of user notification events (not inclusive)
294            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
295            * @return the ordered range of matching user notification events
296            */
297            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C(
298                    java.lang.String uuid, long companyId, int start, int end,
299                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
300                    return getPersistence()
301                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
302            }
303    
304            /**
305            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
306            *
307            * @param uuid the uuid
308            * @param companyId the company ID
309            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
310            * @return the first matching user notification event
311            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
312            */
313            public static com.liferay.portal.model.UserNotificationEvent findByUuid_C_First(
314                    java.lang.String uuid, long companyId,
315                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
316                    throws com.liferay.portal.NoSuchUserNotificationEventException {
317                    return getPersistence()
318                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
319            }
320    
321            /**
322            * Returns the first user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
323            *
324            * @param uuid the uuid
325            * @param companyId the company ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
328            */
329            public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First(
330                    java.lang.String uuid, long companyId,
331                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
332                    return getPersistence()
333                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
334            }
335    
336            /**
337            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
338            *
339            * @param uuid the uuid
340            * @param companyId the company ID
341            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
342            * @return the last matching user notification event
343            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
344            */
345            public static com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last(
346                    java.lang.String uuid, long companyId,
347                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
348                    throws com.liferay.portal.NoSuchUserNotificationEventException {
349                    return getPersistence()
350                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
351            }
352    
353            /**
354            * Returns the last user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
355            *
356            * @param uuid the uuid
357            * @param companyId the company ID
358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
359            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
360            */
361            public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last(
362                    java.lang.String uuid, long companyId,
363                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
364                    return getPersistence()
365                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
366            }
367    
368            /**
369            * Returns the user notification events before and after the current user notification event in the ordered set where uuid = &#63; and companyId = &#63;.
370            *
371            * @param userNotificationEventId the primary key of the current user notification event
372            * @param uuid the uuid
373            * @param companyId the company ID
374            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
375            * @return the previous, current, and next user notification event
376            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
377            */
378            public static com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext(
379                    long userNotificationEventId, java.lang.String uuid, long companyId,
380                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
381                    throws com.liferay.portal.NoSuchUserNotificationEventException {
382                    return getPersistence()
383                                       .findByUuid_C_PrevAndNext(userNotificationEventId, uuid,
384                            companyId, orderByComparator);
385            }
386    
387            /**
388            * Removes all the user notification events where uuid = &#63; and companyId = &#63; from the database.
389            *
390            * @param uuid the uuid
391            * @param companyId the company ID
392            */
393            public static void removeByUuid_C(java.lang.String uuid, long companyId) {
394                    getPersistence().removeByUuid_C(uuid, companyId);
395            }
396    
397            /**
398            * Returns the number of user notification events where uuid = &#63; and companyId = &#63;.
399            *
400            * @param uuid the uuid
401            * @param companyId the company ID
402            * @return the number of matching user notification events
403            */
404            public static int countByUuid_C(java.lang.String uuid, long companyId) {
405                    return getPersistence().countByUuid_C(uuid, companyId);
406            }
407    
408            /**
409            * Returns all the user notification events where userId = &#63;.
410            *
411            * @param userId the user ID
412            * @return the matching user notification events
413            */
414            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
415                    long userId) {
416                    return getPersistence().findByUserId(userId);
417            }
418    
419            /**
420            * Returns a range of all the user notification events where userId = &#63;.
421            *
422            * <p>
423            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
424            * </p>
425            *
426            * @param userId the user ID
427            * @param start the lower bound of the range of user notification events
428            * @param end the upper bound of the range of user notification events (not inclusive)
429            * @return the range of matching user notification events
430            */
431            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
432                    long userId, int start, int end) {
433                    return getPersistence().findByUserId(userId, start, end);
434            }
435    
436            /**
437            * Returns an ordered range of all the user notification events where userId = &#63;.
438            *
439            * <p>
440            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
441            * </p>
442            *
443            * @param userId the user ID
444            * @param start the lower bound of the range of user notification events
445            * @param end the upper bound of the range of user notification events (not inclusive)
446            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
447            * @return the ordered range of matching user notification events
448            */
449            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId(
450                    long userId, int start, int end,
451                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
452                    return getPersistence()
453                                       .findByUserId(userId, start, end, orderByComparator);
454            }
455    
456            /**
457            * Returns the first user notification event in the ordered set where userId = &#63;.
458            *
459            * @param userId the user ID
460            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
461            * @return the first matching user notification event
462            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
463            */
464            public static com.liferay.portal.model.UserNotificationEvent findByUserId_First(
465                    long userId,
466                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
467                    throws com.liferay.portal.NoSuchUserNotificationEventException {
468                    return getPersistence().findByUserId_First(userId, orderByComparator);
469            }
470    
471            /**
472            * Returns the first user notification event in the ordered set where userId = &#63;.
473            *
474            * @param userId the user ID
475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
476            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
477            */
478            public static com.liferay.portal.model.UserNotificationEvent fetchByUserId_First(
479                    long userId,
480                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
481                    return getPersistence().fetchByUserId_First(userId, orderByComparator);
482            }
483    
484            /**
485            * Returns the last user notification event in the ordered set where userId = &#63;.
486            *
487            * @param userId the user ID
488            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
489            * @return the last matching user notification event
490            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
491            */
492            public static com.liferay.portal.model.UserNotificationEvent findByUserId_Last(
493                    long userId,
494                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
495                    throws com.liferay.portal.NoSuchUserNotificationEventException {
496                    return getPersistence().findByUserId_Last(userId, orderByComparator);
497            }
498    
499            /**
500            * Returns the last user notification event in the ordered set where userId = &#63;.
501            *
502            * @param userId the user ID
503            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
504            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
505            */
506            public static com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last(
507                    long userId,
508                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
509                    return getPersistence().fetchByUserId_Last(userId, orderByComparator);
510            }
511    
512            /**
513            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63;.
514            *
515            * @param userNotificationEventId the primary key of the current user notification event
516            * @param userId the user ID
517            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
518            * @return the previous, current, and next user notification event
519            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
520            */
521            public static com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext(
522                    long userNotificationEventId, long userId,
523                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
524                    throws com.liferay.portal.NoSuchUserNotificationEventException {
525                    return getPersistence()
526                                       .findByUserId_PrevAndNext(userNotificationEventId, userId,
527                            orderByComparator);
528            }
529    
530            /**
531            * Removes all the user notification events where userId = &#63; from the database.
532            *
533            * @param userId the user ID
534            */
535            public static void removeByUserId(long userId) {
536                    getPersistence().removeByUserId(userId);
537            }
538    
539            /**
540            * Returns the number of user notification events where userId = &#63;.
541            *
542            * @param userId the user ID
543            * @return the number of matching user notification events
544            */
545            public static int countByUserId(long userId) {
546                    return getPersistence().countByUserId(userId);
547            }
548    
549            /**
550            * Returns all the user notification events where userId = &#63; and deliveryType = &#63;.
551            *
552            * @param userId the user ID
553            * @param deliveryType the delivery type
554            * @return the matching user notification events
555            */
556            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
557                    long userId, int deliveryType) {
558                    return getPersistence().findByU_DT(userId, deliveryType);
559            }
560    
561            /**
562            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63;.
563            *
564            * <p>
565            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
566            * </p>
567            *
568            * @param userId the user ID
569            * @param deliveryType the delivery type
570            * @param start the lower bound of the range of user notification events
571            * @param end the upper bound of the range of user notification events (not inclusive)
572            * @return the range of matching user notification events
573            */
574            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
575                    long userId, int deliveryType, int start, int end) {
576                    return getPersistence().findByU_DT(userId, deliveryType, start, end);
577            }
578    
579            /**
580            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63;.
581            *
582            * <p>
583            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
584            * </p>
585            *
586            * @param userId the user ID
587            * @param deliveryType the delivery type
588            * @param start the lower bound of the range of user notification events
589            * @param end the upper bound of the range of user notification events (not inclusive)
590            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
591            * @return the ordered range of matching user notification events
592            */
593            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT(
594                    long userId, int deliveryType, int start, int end,
595                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
596                    return getPersistence()
597                                       .findByU_DT(userId, deliveryType, start, end,
598                            orderByComparator);
599            }
600    
601            /**
602            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
603            *
604            * @param userId the user ID
605            * @param deliveryType the delivery type
606            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
607            * @return the first matching user notification event
608            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
609            */
610            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_First(
611                    long userId, int deliveryType,
612                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
613                    throws com.liferay.portal.NoSuchUserNotificationEventException {
614                    return getPersistence()
615                                       .findByU_DT_First(userId, deliveryType, orderByComparator);
616            }
617    
618            /**
619            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
620            *
621            * @param userId the user ID
622            * @param deliveryType the delivery type
623            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
624            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
625            */
626            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_First(
627                    long userId, int deliveryType,
628                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
629                    return getPersistence()
630                                       .fetchByU_DT_First(userId, deliveryType, orderByComparator);
631            }
632    
633            /**
634            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
635            *
636            * @param userId the user ID
637            * @param deliveryType the delivery type
638            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
639            * @return the last matching user notification event
640            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
641            */
642            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_Last(
643                    long userId, int deliveryType,
644                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
645                    throws com.liferay.portal.NoSuchUserNotificationEventException {
646                    return getPersistence()
647                                       .findByU_DT_Last(userId, deliveryType, orderByComparator);
648            }
649    
650            /**
651            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
652            *
653            * @param userId the user ID
654            * @param deliveryType the delivery type
655            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
656            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
657            */
658            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_Last(
659                    long userId, int deliveryType,
660                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
661                    return getPersistence()
662                                       .fetchByU_DT_Last(userId, deliveryType, orderByComparator);
663            }
664    
665            /**
666            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63;.
667            *
668            * @param userNotificationEventId the primary key of the current user notification event
669            * @param userId the user ID
670            * @param deliveryType the delivery type
671            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
672            * @return the previous, current, and next user notification event
673            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
674            */
675            public static com.liferay.portal.model.UserNotificationEvent[] findByU_DT_PrevAndNext(
676                    long userNotificationEventId, long userId, int deliveryType,
677                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
678                    throws com.liferay.portal.NoSuchUserNotificationEventException {
679                    return getPersistence()
680                                       .findByU_DT_PrevAndNext(userNotificationEventId, userId,
681                            deliveryType, orderByComparator);
682            }
683    
684            /**
685            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; from the database.
686            *
687            * @param userId the user ID
688            * @param deliveryType the delivery type
689            */
690            public static void removeByU_DT(long userId, int deliveryType) {
691                    getPersistence().removeByU_DT(userId, deliveryType);
692            }
693    
694            /**
695            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63;.
696            *
697            * @param userId the user ID
698            * @param deliveryType the delivery type
699            * @return the number of matching user notification events
700            */
701            public static int countByU_DT(long userId, int deliveryType) {
702                    return getPersistence().countByU_DT(userId, deliveryType);
703            }
704    
705            /**
706            * Returns all the user notification events where userId = &#63; and delivered = &#63;.
707            *
708            * @param userId the user ID
709            * @param delivered the delivered
710            * @return the matching user notification events
711            */
712            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
713                    long userId, boolean delivered) {
714                    return getPersistence().findByU_D(userId, delivered);
715            }
716    
717            /**
718            * Returns a range of all the user notification events where userId = &#63; and delivered = &#63;.
719            *
720            * <p>
721            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
722            * </p>
723            *
724            * @param userId the user ID
725            * @param delivered the delivered
726            * @param start the lower bound of the range of user notification events
727            * @param end the upper bound of the range of user notification events (not inclusive)
728            * @return the range of matching user notification events
729            */
730            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
731                    long userId, boolean delivered, int start, int end) {
732                    return getPersistence().findByU_D(userId, delivered, start, end);
733            }
734    
735            /**
736            * Returns an ordered range of all the user notification events where userId = &#63; and delivered = &#63;.
737            *
738            * <p>
739            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
740            * </p>
741            *
742            * @param userId the user ID
743            * @param delivered the delivered
744            * @param start the lower bound of the range of user notification events
745            * @param end the upper bound of the range of user notification events (not inclusive)
746            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
747            * @return the ordered range of matching user notification events
748            */
749            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D(
750                    long userId, boolean delivered, int start, int end,
751                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
752                    return getPersistence()
753                                       .findByU_D(userId, delivered, start, end, orderByComparator);
754            }
755    
756            /**
757            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
758            *
759            * @param userId the user ID
760            * @param delivered the delivered
761            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
762            * @return the first matching user notification event
763            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
764            */
765            public static com.liferay.portal.model.UserNotificationEvent findByU_D_First(
766                    long userId, boolean delivered,
767                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
768                    throws com.liferay.portal.NoSuchUserNotificationEventException {
769                    return getPersistence()
770                                       .findByU_D_First(userId, delivered, orderByComparator);
771            }
772    
773            /**
774            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63;.
775            *
776            * @param userId the user ID
777            * @param delivered the delivered
778            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
779            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
780            */
781            public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_First(
782                    long userId, boolean delivered,
783                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
784                    return getPersistence()
785                                       .fetchByU_D_First(userId, delivered, orderByComparator);
786            }
787    
788            /**
789            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
790            *
791            * @param userId the user ID
792            * @param delivered the delivered
793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
794            * @return the last matching user notification event
795            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
796            */
797            public static com.liferay.portal.model.UserNotificationEvent findByU_D_Last(
798                    long userId, boolean delivered,
799                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
800                    throws com.liferay.portal.NoSuchUserNotificationEventException {
801                    return getPersistence()
802                                       .findByU_D_Last(userId, delivered, orderByComparator);
803            }
804    
805            /**
806            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63;.
807            *
808            * @param userId the user ID
809            * @param delivered the delivered
810            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
811            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
812            */
813            public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_Last(
814                    long userId, boolean delivered,
815                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
816                    return getPersistence()
817                                       .fetchByU_D_Last(userId, delivered, orderByComparator);
818            }
819    
820            /**
821            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and delivered = &#63;.
822            *
823            * @param userNotificationEventId the primary key of the current user notification event
824            * @param userId the user ID
825            * @param delivered the delivered
826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
827            * @return the previous, current, and next user notification event
828            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
829            */
830            public static com.liferay.portal.model.UserNotificationEvent[] findByU_D_PrevAndNext(
831                    long userNotificationEventId, long userId, boolean delivered,
832                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
833                    throws com.liferay.portal.NoSuchUserNotificationEventException {
834                    return getPersistence()
835                                       .findByU_D_PrevAndNext(userNotificationEventId, userId,
836                            delivered, orderByComparator);
837            }
838    
839            /**
840            * Removes all the user notification events where userId = &#63; and delivered = &#63; from the database.
841            *
842            * @param userId the user ID
843            * @param delivered the delivered
844            */
845            public static void removeByU_D(long userId, boolean delivered) {
846                    getPersistence().removeByU_D(userId, delivered);
847            }
848    
849            /**
850            * Returns the number of user notification events where userId = &#63; and delivered = &#63;.
851            *
852            * @param userId the user ID
853            * @param delivered the delivered
854            * @return the number of matching user notification events
855            */
856            public static int countByU_D(long userId, boolean delivered) {
857                    return getPersistence().countByU_D(userId, delivered);
858            }
859    
860            /**
861            * Returns all the user notification events where userId = &#63; and archived = &#63;.
862            *
863            * @param userId the user ID
864            * @param archived the archived
865            * @return the matching user notification events
866            */
867            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
868                    long userId, boolean archived) {
869                    return getPersistence().findByU_A(userId, archived);
870            }
871    
872            /**
873            * Returns a range of all the user notification events where userId = &#63; and archived = &#63;.
874            *
875            * <p>
876            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
877            * </p>
878            *
879            * @param userId the user ID
880            * @param archived the archived
881            * @param start the lower bound of the range of user notification events
882            * @param end the upper bound of the range of user notification events (not inclusive)
883            * @return the range of matching user notification events
884            */
885            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
886                    long userId, boolean archived, int start, int end) {
887                    return getPersistence().findByU_A(userId, archived, start, end);
888            }
889    
890            /**
891            * Returns an ordered range of all the user notification events where userId = &#63; and archived = &#63;.
892            *
893            * <p>
894            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
895            * </p>
896            *
897            * @param userId the user ID
898            * @param archived the archived
899            * @param start the lower bound of the range of user notification events
900            * @param end the upper bound of the range of user notification events (not inclusive)
901            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
902            * @return the ordered range of matching user notification events
903            */
904            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A(
905                    long userId, boolean archived, int start, int end,
906                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
907                    return getPersistence()
908                                       .findByU_A(userId, archived, start, end, orderByComparator);
909            }
910    
911            /**
912            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
913            *
914            * @param userId the user ID
915            * @param archived the archived
916            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
917            * @return the first matching user notification event
918            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
919            */
920            public static com.liferay.portal.model.UserNotificationEvent findByU_A_First(
921                    long userId, boolean archived,
922                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
923                    throws com.liferay.portal.NoSuchUserNotificationEventException {
924                    return getPersistence()
925                                       .findByU_A_First(userId, archived, orderByComparator);
926            }
927    
928            /**
929            * Returns the first user notification event in the ordered set where userId = &#63; and archived = &#63;.
930            *
931            * @param userId the user ID
932            * @param archived the archived
933            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
934            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
935            */
936            public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_First(
937                    long userId, boolean archived,
938                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
939                    return getPersistence()
940                                       .fetchByU_A_First(userId, archived, orderByComparator);
941            }
942    
943            /**
944            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
945            *
946            * @param userId the user ID
947            * @param archived the archived
948            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
949            * @return the last matching user notification event
950            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
951            */
952            public static com.liferay.portal.model.UserNotificationEvent findByU_A_Last(
953                    long userId, boolean archived,
954                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
955                    throws com.liferay.portal.NoSuchUserNotificationEventException {
956                    return getPersistence()
957                                       .findByU_A_Last(userId, archived, orderByComparator);
958            }
959    
960            /**
961            * Returns the last user notification event in the ordered set where userId = &#63; and archived = &#63;.
962            *
963            * @param userId the user ID
964            * @param archived the archived
965            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
966            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
967            */
968            public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last(
969                    long userId, boolean archived,
970                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
971                    return getPersistence()
972                                       .fetchByU_A_Last(userId, archived, orderByComparator);
973            }
974    
975            /**
976            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and archived = &#63;.
977            *
978            * @param userNotificationEventId the primary key of the current user notification event
979            * @param userId the user ID
980            * @param archived the archived
981            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
982            * @return the previous, current, and next user notification event
983            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
984            */
985            public static com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext(
986                    long userNotificationEventId, long userId, boolean archived,
987                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
988                    throws com.liferay.portal.NoSuchUserNotificationEventException {
989                    return getPersistence()
990                                       .findByU_A_PrevAndNext(userNotificationEventId, userId,
991                            archived, orderByComparator);
992            }
993    
994            /**
995            * Removes all the user notification events where userId = &#63; and archived = &#63; from the database.
996            *
997            * @param userId the user ID
998            * @param archived the archived
999            */
1000            public static void removeByU_A(long userId, boolean archived) {
1001                    getPersistence().removeByU_A(userId, archived);
1002            }
1003    
1004            /**
1005            * Returns the number of user notification events where userId = &#63; and archived = &#63;.
1006            *
1007            * @param userId the user ID
1008            * @param archived the archived
1009            * @return the number of matching user notification events
1010            */
1011            public static int countByU_A(long userId, boolean archived) {
1012                    return getPersistence().countByU_A(userId, archived);
1013            }
1014    
1015            /**
1016            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1017            *
1018            * @param userId the user ID
1019            * @param deliveryType the delivery type
1020            * @param delivered the delivered
1021            * @return the matching user notification events
1022            */
1023            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
1024                    long userId, int deliveryType, boolean delivered) {
1025                    return getPersistence().findByU_DT_D(userId, deliveryType, delivered);
1026            }
1027    
1028            /**
1029            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1030            *
1031            * <p>
1032            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1033            * </p>
1034            *
1035            * @param userId the user ID
1036            * @param deliveryType the delivery type
1037            * @param delivered the delivered
1038            * @param start the lower bound of the range of user notification events
1039            * @param end the upper bound of the range of user notification events (not inclusive)
1040            * @return the range of matching user notification events
1041            */
1042            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
1043                    long userId, int deliveryType, boolean delivered, int start, int end) {
1044                    return getPersistence()
1045                                       .findByU_DT_D(userId, deliveryType, delivered, start, end);
1046            }
1047    
1048            /**
1049            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1050            *
1051            * <p>
1052            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1053            * </p>
1054            *
1055            * @param userId the user ID
1056            * @param deliveryType the delivery type
1057            * @param delivered the delivered
1058            * @param start the lower bound of the range of user notification events
1059            * @param end the upper bound of the range of user notification events (not inclusive)
1060            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1061            * @return the ordered range of matching user notification events
1062            */
1063            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D(
1064                    long userId, int deliveryType, boolean delivered, int start, int end,
1065                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1066                    return getPersistence()
1067                                       .findByU_DT_D(userId, deliveryType, delivered, start, end,
1068                            orderByComparator);
1069            }
1070    
1071            /**
1072            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1073            *
1074            * @param userId the user ID
1075            * @param deliveryType the delivery type
1076            * @param delivered the delivered
1077            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1078            * @return the first matching user notification event
1079            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1080            */
1081            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_D_First(
1082                    long userId, int deliveryType, boolean delivered,
1083                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1084                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1085                    return getPersistence()
1086                                       .findByU_DT_D_First(userId, deliveryType, delivered,
1087                            orderByComparator);
1088            }
1089    
1090            /**
1091            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1092            *
1093            * @param userId the user ID
1094            * @param deliveryType the delivery type
1095            * @param delivered the delivered
1096            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1097            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1098            */
1099            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_First(
1100                    long userId, int deliveryType, boolean delivered,
1101                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1102                    return getPersistence()
1103                                       .fetchByU_DT_D_First(userId, deliveryType, delivered,
1104                            orderByComparator);
1105            }
1106    
1107            /**
1108            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1109            *
1110            * @param userId the user ID
1111            * @param deliveryType the delivery type
1112            * @param delivered the delivered
1113            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1114            * @return the last matching user notification event
1115            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1116            */
1117            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_D_Last(
1118                    long userId, int deliveryType, boolean delivered,
1119                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1120                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1121                    return getPersistence()
1122                                       .findByU_DT_D_Last(userId, deliveryType, delivered,
1123                            orderByComparator);
1124            }
1125    
1126            /**
1127            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1128            *
1129            * @param userId the user ID
1130            * @param deliveryType the delivery type
1131            * @param delivered the delivered
1132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1133            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1134            */
1135            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_Last(
1136                    long userId, int deliveryType, boolean delivered,
1137                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1138                    return getPersistence()
1139                                       .fetchByU_DT_D_Last(userId, deliveryType, delivered,
1140                            orderByComparator);
1141            }
1142    
1143            /**
1144            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1145            *
1146            * @param userNotificationEventId the primary key of the current user notification event
1147            * @param userId the user ID
1148            * @param deliveryType the delivery type
1149            * @param delivered the delivered
1150            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1151            * @return the previous, current, and next user notification event
1152            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1153            */
1154            public static com.liferay.portal.model.UserNotificationEvent[] findByU_DT_D_PrevAndNext(
1155                    long userNotificationEventId, long userId, int deliveryType,
1156                    boolean delivered,
1157                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1158                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1159                    return getPersistence()
1160                                       .findByU_DT_D_PrevAndNext(userNotificationEventId, userId,
1161                            deliveryType, delivered, orderByComparator);
1162            }
1163    
1164            /**
1165            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; from the database.
1166            *
1167            * @param userId the user ID
1168            * @param deliveryType the delivery type
1169            * @param delivered the delivered
1170            */
1171            public static void removeByU_DT_D(long userId, int deliveryType,
1172                    boolean delivered) {
1173                    getPersistence().removeByU_DT_D(userId, deliveryType, delivered);
1174            }
1175    
1176            /**
1177            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63;.
1178            *
1179            * @param userId the user ID
1180            * @param deliveryType the delivery type
1181            * @param delivered the delivered
1182            * @return the number of matching user notification events
1183            */
1184            public static int countByU_DT_D(long userId, int deliveryType,
1185                    boolean delivered) {
1186                    return getPersistence().countByU_DT_D(userId, deliveryType, delivered);
1187            }
1188    
1189            /**
1190            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1191            *
1192            * @param userId the user ID
1193            * @param deliveryType the delivery type
1194            * @param archived the archived
1195            * @return the matching user notification events
1196            */
1197            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
1198                    long userId, int deliveryType, boolean archived) {
1199                    return getPersistence().findByU_DT_A(userId, deliveryType, archived);
1200            }
1201    
1202            /**
1203            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1204            *
1205            * <p>
1206            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1207            * </p>
1208            *
1209            * @param userId the user ID
1210            * @param deliveryType the delivery type
1211            * @param archived the archived
1212            * @param start the lower bound of the range of user notification events
1213            * @param end the upper bound of the range of user notification events (not inclusive)
1214            * @return the range of matching user notification events
1215            */
1216            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
1217                    long userId, int deliveryType, boolean archived, int start, int end) {
1218                    return getPersistence()
1219                                       .findByU_DT_A(userId, deliveryType, archived, start, end);
1220            }
1221    
1222            /**
1223            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1224            *
1225            * <p>
1226            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1227            * </p>
1228            *
1229            * @param userId the user ID
1230            * @param deliveryType the delivery type
1231            * @param archived the archived
1232            * @param start the lower bound of the range of user notification events
1233            * @param end the upper bound of the range of user notification events (not inclusive)
1234            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1235            * @return the ordered range of matching user notification events
1236            */
1237            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A(
1238                    long userId, int deliveryType, boolean archived, int start, int end,
1239                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1240                    return getPersistence()
1241                                       .findByU_DT_A(userId, deliveryType, archived, start, end,
1242                            orderByComparator);
1243            }
1244    
1245            /**
1246            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1247            *
1248            * @param userId the user ID
1249            * @param deliveryType the delivery type
1250            * @param archived the archived
1251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1252            * @return the first matching user notification event
1253            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1254            */
1255            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_A_First(
1256                    long userId, int deliveryType, boolean archived,
1257                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1258                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1259                    return getPersistence()
1260                                       .findByU_DT_A_First(userId, deliveryType, archived,
1261                            orderByComparator);
1262            }
1263    
1264            /**
1265            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1266            *
1267            * @param userId the user ID
1268            * @param deliveryType the delivery type
1269            * @param archived the archived
1270            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1271            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1272            */
1273            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_First(
1274                    long userId, int deliveryType, boolean archived,
1275                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1276                    return getPersistence()
1277                                       .fetchByU_DT_A_First(userId, deliveryType, archived,
1278                            orderByComparator);
1279            }
1280    
1281            /**
1282            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1283            *
1284            * @param userId the user ID
1285            * @param deliveryType the delivery type
1286            * @param archived the archived
1287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1288            * @return the last matching user notification event
1289            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1290            */
1291            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_A_Last(
1292                    long userId, int deliveryType, boolean archived,
1293                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1294                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1295                    return getPersistence()
1296                                       .findByU_DT_A_Last(userId, deliveryType, archived,
1297                            orderByComparator);
1298            }
1299    
1300            /**
1301            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1302            *
1303            * @param userId the user ID
1304            * @param deliveryType the delivery type
1305            * @param archived the archived
1306            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1307            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1308            */
1309            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_Last(
1310                    long userId, int deliveryType, boolean archived,
1311                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1312                    return getPersistence()
1313                                       .fetchByU_DT_A_Last(userId, deliveryType, archived,
1314                            orderByComparator);
1315            }
1316    
1317            /**
1318            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1319            *
1320            * @param userNotificationEventId the primary key of the current user notification event
1321            * @param userId the user ID
1322            * @param deliveryType the delivery type
1323            * @param archived the archived
1324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1325            * @return the previous, current, and next user notification event
1326            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1327            */
1328            public static com.liferay.portal.model.UserNotificationEvent[] findByU_DT_A_PrevAndNext(
1329                    long userNotificationEventId, long userId, int deliveryType,
1330                    boolean archived,
1331                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1332                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1333                    return getPersistence()
1334                                       .findByU_DT_A_PrevAndNext(userNotificationEventId, userId,
1335                            deliveryType, archived, orderByComparator);
1336            }
1337    
1338            /**
1339            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63; from the database.
1340            *
1341            * @param userId the user ID
1342            * @param deliveryType the delivery type
1343            * @param archived the archived
1344            */
1345            public static void removeByU_DT_A(long userId, int deliveryType,
1346                    boolean archived) {
1347                    getPersistence().removeByU_DT_A(userId, deliveryType, archived);
1348            }
1349    
1350            /**
1351            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and archived = &#63;.
1352            *
1353            * @param userId the user ID
1354            * @param deliveryType the delivery type
1355            * @param archived the archived
1356            * @return the number of matching user notification events
1357            */
1358            public static int countByU_DT_A(long userId, int deliveryType,
1359                    boolean archived) {
1360                    return getPersistence().countByU_DT_A(userId, deliveryType, archived);
1361            }
1362    
1363            /**
1364            * Returns all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1365            *
1366            * @param userId the user ID
1367            * @param delivered the delivered
1368            * @param actionRequired the action required
1369            * @return the matching user notification events
1370            */
1371            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1372                    long userId, boolean delivered, boolean actionRequired) {
1373                    return getPersistence().findByU_D_A(userId, delivered, actionRequired);
1374            }
1375    
1376            /**
1377            * Returns a range of all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1378            *
1379            * <p>
1380            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1381            * </p>
1382            *
1383            * @param userId the user ID
1384            * @param delivered the delivered
1385            * @param actionRequired the action required
1386            * @param start the lower bound of the range of user notification events
1387            * @param end the upper bound of the range of user notification events (not inclusive)
1388            * @return the range of matching user notification events
1389            */
1390            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1391                    long userId, boolean delivered, boolean actionRequired, int start,
1392                    int end) {
1393                    return getPersistence()
1394                                       .findByU_D_A(userId, delivered, actionRequired, start, end);
1395            }
1396    
1397            /**
1398            * Returns an ordered range of all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1399            *
1400            * <p>
1401            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1402            * </p>
1403            *
1404            * @param userId the user ID
1405            * @param delivered the delivered
1406            * @param actionRequired the action required
1407            * @param start the lower bound of the range of user notification events
1408            * @param end the upper bound of the range of user notification events (not inclusive)
1409            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1410            * @return the ordered range of matching user notification events
1411            */
1412            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D_A(
1413                    long userId, boolean delivered, boolean actionRequired, int start,
1414                    int end,
1415                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1416                    return getPersistence()
1417                                       .findByU_D_A(userId, delivered, actionRequired, start, end,
1418                            orderByComparator);
1419            }
1420    
1421            /**
1422            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1423            *
1424            * @param userId the user ID
1425            * @param delivered the delivered
1426            * @param actionRequired the action required
1427            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1428            * @return the first matching user notification event
1429            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1430            */
1431            public static com.liferay.portal.model.UserNotificationEvent findByU_D_A_First(
1432                    long userId, boolean delivered, boolean actionRequired,
1433                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1434                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1435                    return getPersistence()
1436                                       .findByU_D_A_First(userId, delivered, actionRequired,
1437                            orderByComparator);
1438            }
1439    
1440            /**
1441            * Returns the first user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1442            *
1443            * @param userId the user ID
1444            * @param delivered the delivered
1445            * @param actionRequired the action required
1446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1447            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1448            */
1449            public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_A_First(
1450                    long userId, boolean delivered, boolean actionRequired,
1451                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1452                    return getPersistence()
1453                                       .fetchByU_D_A_First(userId, delivered, actionRequired,
1454                            orderByComparator);
1455            }
1456    
1457            /**
1458            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1459            *
1460            * @param userId the user ID
1461            * @param delivered the delivered
1462            * @param actionRequired the action required
1463            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1464            * @return the last matching user notification event
1465            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1466            */
1467            public static com.liferay.portal.model.UserNotificationEvent findByU_D_A_Last(
1468                    long userId, boolean delivered, boolean actionRequired,
1469                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1470                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1471                    return getPersistence()
1472                                       .findByU_D_A_Last(userId, delivered, actionRequired,
1473                            orderByComparator);
1474            }
1475    
1476            /**
1477            * Returns the last user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1478            *
1479            * @param userId the user ID
1480            * @param delivered the delivered
1481            * @param actionRequired the action required
1482            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1483            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1484            */
1485            public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_A_Last(
1486                    long userId, boolean delivered, boolean actionRequired,
1487                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1488                    return getPersistence()
1489                                       .fetchByU_D_A_Last(userId, delivered, actionRequired,
1490                            orderByComparator);
1491            }
1492    
1493            /**
1494            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1495            *
1496            * @param userNotificationEventId the primary key of the current user notification event
1497            * @param userId the user ID
1498            * @param delivered the delivered
1499            * @param actionRequired the action required
1500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1501            * @return the previous, current, and next user notification event
1502            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1503            */
1504            public static com.liferay.portal.model.UserNotificationEvent[] findByU_D_A_PrevAndNext(
1505                    long userNotificationEventId, long userId, boolean delivered,
1506                    boolean actionRequired,
1507                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1508                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1509                    return getPersistence()
1510                                       .findByU_D_A_PrevAndNext(userNotificationEventId, userId,
1511                            delivered, actionRequired, orderByComparator);
1512            }
1513    
1514            /**
1515            * Removes all the user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63; from the database.
1516            *
1517            * @param userId the user ID
1518            * @param delivered the delivered
1519            * @param actionRequired the action required
1520            */
1521            public static void removeByU_D_A(long userId, boolean delivered,
1522                    boolean actionRequired) {
1523                    getPersistence().removeByU_D_A(userId, delivered, actionRequired);
1524            }
1525    
1526            /**
1527            * Returns the number of user notification events where userId = &#63; and delivered = &#63; and actionRequired = &#63;.
1528            *
1529            * @param userId the user ID
1530            * @param delivered the delivered
1531            * @param actionRequired the action required
1532            * @return the number of matching user notification events
1533            */
1534            public static int countByU_D_A(long userId, boolean delivered,
1535                    boolean actionRequired) {
1536                    return getPersistence().countByU_D_A(userId, delivered, actionRequired);
1537            }
1538    
1539            /**
1540            * Returns all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1541            *
1542            * @param userId the user ID
1543            * @param actionRequired the action required
1544            * @param archived the archived
1545            * @return the matching user notification events
1546            */
1547            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1548                    long userId, boolean actionRequired, boolean archived) {
1549                    return getPersistence().findByU_A_A(userId, actionRequired, archived);
1550            }
1551    
1552            /**
1553            * Returns a range of all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1554            *
1555            * <p>
1556            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1557            * </p>
1558            *
1559            * @param userId the user ID
1560            * @param actionRequired the action required
1561            * @param archived the archived
1562            * @param start the lower bound of the range of user notification events
1563            * @param end the upper bound of the range of user notification events (not inclusive)
1564            * @return the range of matching user notification events
1565            */
1566            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1567                    long userId, boolean actionRequired, boolean archived, int start,
1568                    int end) {
1569                    return getPersistence()
1570                                       .findByU_A_A(userId, actionRequired, archived, start, end);
1571            }
1572    
1573            /**
1574            * Returns an ordered range of all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1575            *
1576            * <p>
1577            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1578            * </p>
1579            *
1580            * @param userId the user ID
1581            * @param actionRequired the action required
1582            * @param archived the archived
1583            * @param start the lower bound of the range of user notification events
1584            * @param end the upper bound of the range of user notification events (not inclusive)
1585            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1586            * @return the ordered range of matching user notification events
1587            */
1588            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A_A(
1589                    long userId, boolean actionRequired, boolean archived, int start,
1590                    int end,
1591                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1592                    return getPersistence()
1593                                       .findByU_A_A(userId, actionRequired, archived, start, end,
1594                            orderByComparator);
1595            }
1596    
1597            /**
1598            * Returns the first user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1599            *
1600            * @param userId the user ID
1601            * @param actionRequired the action required
1602            * @param archived the archived
1603            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1604            * @return the first matching user notification event
1605            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1606            */
1607            public static com.liferay.portal.model.UserNotificationEvent findByU_A_A_First(
1608                    long userId, boolean actionRequired, boolean archived,
1609                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1610                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1611                    return getPersistence()
1612                                       .findByU_A_A_First(userId, actionRequired, archived,
1613                            orderByComparator);
1614            }
1615    
1616            /**
1617            * Returns the first user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1618            *
1619            * @param userId the user ID
1620            * @param actionRequired the action required
1621            * @param archived the archived
1622            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1623            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1624            */
1625            public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_A_First(
1626                    long userId, boolean actionRequired, boolean archived,
1627                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1628                    return getPersistence()
1629                                       .fetchByU_A_A_First(userId, actionRequired, archived,
1630                            orderByComparator);
1631            }
1632    
1633            /**
1634            * Returns the last user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1635            *
1636            * @param userId the user ID
1637            * @param actionRequired the action required
1638            * @param archived the archived
1639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1640            * @return the last matching user notification event
1641            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1642            */
1643            public static com.liferay.portal.model.UserNotificationEvent findByU_A_A_Last(
1644                    long userId, boolean actionRequired, boolean archived,
1645                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1646                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1647                    return getPersistence()
1648                                       .findByU_A_A_Last(userId, actionRequired, archived,
1649                            orderByComparator);
1650            }
1651    
1652            /**
1653            * Returns the last user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1654            *
1655            * @param userId the user ID
1656            * @param actionRequired the action required
1657            * @param archived the archived
1658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1659            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1660            */
1661            public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_A_Last(
1662                    long userId, boolean actionRequired, boolean archived,
1663                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1664                    return getPersistence()
1665                                       .fetchByU_A_A_Last(userId, actionRequired, archived,
1666                            orderByComparator);
1667            }
1668    
1669            /**
1670            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1671            *
1672            * @param userNotificationEventId the primary key of the current user notification event
1673            * @param userId the user ID
1674            * @param actionRequired the action required
1675            * @param archived the archived
1676            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1677            * @return the previous, current, and next user notification event
1678            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1679            */
1680            public static com.liferay.portal.model.UserNotificationEvent[] findByU_A_A_PrevAndNext(
1681                    long userNotificationEventId, long userId, boolean actionRequired,
1682                    boolean archived,
1683                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1684                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1685                    return getPersistence()
1686                                       .findByU_A_A_PrevAndNext(userNotificationEventId, userId,
1687                            actionRequired, archived, orderByComparator);
1688            }
1689    
1690            /**
1691            * Removes all the user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63; from the database.
1692            *
1693            * @param userId the user ID
1694            * @param actionRequired the action required
1695            * @param archived the archived
1696            */
1697            public static void removeByU_A_A(long userId, boolean actionRequired,
1698                    boolean archived) {
1699                    getPersistence().removeByU_A_A(userId, actionRequired, archived);
1700            }
1701    
1702            /**
1703            * Returns the number of user notification events where userId = &#63; and actionRequired = &#63; and archived = &#63;.
1704            *
1705            * @param userId the user ID
1706            * @param actionRequired the action required
1707            * @param archived the archived
1708            * @return the number of matching user notification events
1709            */
1710            public static int countByU_A_A(long userId, boolean actionRequired,
1711                    boolean archived) {
1712                    return getPersistence().countByU_A_A(userId, actionRequired, archived);
1713            }
1714    
1715            /**
1716            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1717            *
1718            * @param userId the user ID
1719            * @param deliveryType the delivery type
1720            * @param delivered the delivered
1721            * @param actionRequired the action required
1722            * @return the matching user notification events
1723            */
1724            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1725                    long userId, int deliveryType, boolean delivered, boolean actionRequired) {
1726                    return getPersistence()
1727                                       .findByU_DT_D_A(userId, deliveryType, delivered,
1728                            actionRequired);
1729            }
1730    
1731            /**
1732            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1733            *
1734            * <p>
1735            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1736            * </p>
1737            *
1738            * @param userId the user ID
1739            * @param deliveryType the delivery type
1740            * @param delivered the delivered
1741            * @param actionRequired the action required
1742            * @param start the lower bound of the range of user notification events
1743            * @param end the upper bound of the range of user notification events (not inclusive)
1744            * @return the range of matching user notification events
1745            */
1746            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1747                    long userId, int deliveryType, boolean delivered,
1748                    boolean actionRequired, int start, int end) {
1749                    return getPersistence()
1750                                       .findByU_DT_D_A(userId, deliveryType, delivered,
1751                            actionRequired, start, end);
1752            }
1753    
1754            /**
1755            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1756            *
1757            * <p>
1758            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1759            * </p>
1760            *
1761            * @param userId the user ID
1762            * @param deliveryType the delivery type
1763            * @param delivered the delivered
1764            * @param actionRequired the action required
1765            * @param start the lower bound of the range of user notification events
1766            * @param end the upper bound of the range of user notification events (not inclusive)
1767            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1768            * @return the ordered range of matching user notification events
1769            */
1770            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_D_A(
1771                    long userId, int deliveryType, boolean delivered,
1772                    boolean actionRequired, int start, int end,
1773                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1774                    return getPersistence()
1775                                       .findByU_DT_D_A(userId, deliveryType, delivered,
1776                            actionRequired, start, end, orderByComparator);
1777            }
1778    
1779            /**
1780            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1781            *
1782            * @param userId the user ID
1783            * @param deliveryType the delivery type
1784            * @param delivered the delivered
1785            * @param actionRequired the action required
1786            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1787            * @return the first matching user notification event
1788            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1789            */
1790            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_D_A_First(
1791                    long userId, int deliveryType, boolean delivered,
1792                    boolean actionRequired,
1793                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1794                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1795                    return getPersistence()
1796                                       .findByU_DT_D_A_First(userId, deliveryType, delivered,
1797                            actionRequired, orderByComparator);
1798            }
1799    
1800            /**
1801            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1802            *
1803            * @param userId the user ID
1804            * @param deliveryType the delivery type
1805            * @param delivered the delivered
1806            * @param actionRequired the action required
1807            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1808            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
1809            */
1810            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_A_First(
1811                    long userId, int deliveryType, boolean delivered,
1812                    boolean actionRequired,
1813                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1814                    return getPersistence()
1815                                       .fetchByU_DT_D_A_First(userId, deliveryType, delivered,
1816                            actionRequired, orderByComparator);
1817            }
1818    
1819            /**
1820            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1821            *
1822            * @param userId the user ID
1823            * @param deliveryType the delivery type
1824            * @param delivered the delivered
1825            * @param actionRequired the action required
1826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1827            * @return the last matching user notification event
1828            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1829            */
1830            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_D_A_Last(
1831                    long userId, int deliveryType, boolean delivered,
1832                    boolean actionRequired,
1833                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1834                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1835                    return getPersistence()
1836                                       .findByU_DT_D_A_Last(userId, deliveryType, delivered,
1837                            actionRequired, orderByComparator);
1838            }
1839    
1840            /**
1841            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1842            *
1843            * @param userId the user ID
1844            * @param deliveryType the delivery type
1845            * @param delivered the delivered
1846            * @param actionRequired the action required
1847            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1848            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
1849            */
1850            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_D_A_Last(
1851                    long userId, int deliveryType, boolean delivered,
1852                    boolean actionRequired,
1853                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1854                    return getPersistence()
1855                                       .fetchByU_DT_D_A_Last(userId, deliveryType, delivered,
1856                            actionRequired, orderByComparator);
1857            }
1858    
1859            /**
1860            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1861            *
1862            * @param userNotificationEventId the primary key of the current user notification event
1863            * @param userId the user ID
1864            * @param deliveryType the delivery type
1865            * @param delivered the delivered
1866            * @param actionRequired the action required
1867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1868            * @return the previous, current, and next user notification event
1869            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
1870            */
1871            public static com.liferay.portal.model.UserNotificationEvent[] findByU_DT_D_A_PrevAndNext(
1872                    long userNotificationEventId, long userId, int deliveryType,
1873                    boolean delivered, boolean actionRequired,
1874                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1875                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1876                    return getPersistence()
1877                                       .findByU_DT_D_A_PrevAndNext(userNotificationEventId, userId,
1878                            deliveryType, delivered, actionRequired, orderByComparator);
1879            }
1880    
1881            /**
1882            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63; from the database.
1883            *
1884            * @param userId the user ID
1885            * @param deliveryType the delivery type
1886            * @param delivered the delivered
1887            * @param actionRequired the action required
1888            */
1889            public static void removeByU_DT_D_A(long userId, int deliveryType,
1890                    boolean delivered, boolean actionRequired) {
1891                    getPersistence()
1892                            .removeByU_DT_D_A(userId, deliveryType, delivered, actionRequired);
1893            }
1894    
1895            /**
1896            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and delivered = &#63; and actionRequired = &#63;.
1897            *
1898            * @param userId the user ID
1899            * @param deliveryType the delivery type
1900            * @param delivered the delivered
1901            * @param actionRequired the action required
1902            * @return the number of matching user notification events
1903            */
1904            public static int countByU_DT_D_A(long userId, int deliveryType,
1905                    boolean delivered, boolean actionRequired) {
1906                    return getPersistence()
1907                                       .countByU_DT_D_A(userId, deliveryType, delivered,
1908                            actionRequired);
1909            }
1910    
1911            /**
1912            * Returns all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1913            *
1914            * @param userId the user ID
1915            * @param deliveryType the delivery type
1916            * @param actionRequired the action required
1917            * @param archived the archived
1918            * @return the matching user notification events
1919            */
1920            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1921                    long userId, int deliveryType, boolean actionRequired, boolean archived) {
1922                    return getPersistence()
1923                                       .findByU_DT_A_A(userId, deliveryType, actionRequired,
1924                            archived);
1925            }
1926    
1927            /**
1928            * Returns a range of all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1929            *
1930            * <p>
1931            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1932            * </p>
1933            *
1934            * @param userId the user ID
1935            * @param deliveryType the delivery type
1936            * @param actionRequired the action required
1937            * @param archived the archived
1938            * @param start the lower bound of the range of user notification events
1939            * @param end the upper bound of the range of user notification events (not inclusive)
1940            * @return the range of matching user notification events
1941            */
1942            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1943                    long userId, int deliveryType, boolean actionRequired,
1944                    boolean archived, int start, int end) {
1945                    return getPersistence()
1946                                       .findByU_DT_A_A(userId, deliveryType, actionRequired,
1947                            archived, start, end);
1948            }
1949    
1950            /**
1951            * Returns an ordered range of all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1952            *
1953            * <p>
1954            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1955            * </p>
1956            *
1957            * @param userId the user ID
1958            * @param deliveryType the delivery type
1959            * @param actionRequired the action required
1960            * @param archived the archived
1961            * @param start the lower bound of the range of user notification events
1962            * @param end the upper bound of the range of user notification events (not inclusive)
1963            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1964            * @return the ordered range of matching user notification events
1965            */
1966            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_DT_A_A(
1967                    long userId, int deliveryType, boolean actionRequired,
1968                    boolean archived, int start, int end,
1969                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
1970                    return getPersistence()
1971                                       .findByU_DT_A_A(userId, deliveryType, actionRequired,
1972                            archived, start, end, orderByComparator);
1973            }
1974    
1975            /**
1976            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1977            *
1978            * @param userId the user ID
1979            * @param deliveryType the delivery type
1980            * @param actionRequired the action required
1981            * @param archived the archived
1982            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1983            * @return the first matching user notification event
1984            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
1985            */
1986            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_A_A_First(
1987                    long userId, int deliveryType, boolean actionRequired,
1988                    boolean archived,
1989                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
1990                    throws com.liferay.portal.NoSuchUserNotificationEventException {
1991                    return getPersistence()
1992                                       .findByU_DT_A_A_First(userId, deliveryType, actionRequired,
1993                            archived, orderByComparator);
1994            }
1995    
1996            /**
1997            * Returns the first user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
1998            *
1999            * @param userId the user ID
2000            * @param deliveryType the delivery type
2001            * @param actionRequired the action required
2002            * @param archived the archived
2003            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2004            * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found
2005            */
2006            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_A_First(
2007                    long userId, int deliveryType, boolean actionRequired,
2008                    boolean archived,
2009                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
2010                    return getPersistence()
2011                                       .fetchByU_DT_A_A_First(userId, deliveryType, actionRequired,
2012                            archived, orderByComparator);
2013            }
2014    
2015            /**
2016            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
2017            *
2018            * @param userId the user ID
2019            * @param deliveryType the delivery type
2020            * @param actionRequired the action required
2021            * @param archived the archived
2022            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2023            * @return the last matching user notification event
2024            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found
2025            */
2026            public static com.liferay.portal.model.UserNotificationEvent findByU_DT_A_A_Last(
2027                    long userId, int deliveryType, boolean actionRequired,
2028                    boolean archived,
2029                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
2030                    throws com.liferay.portal.NoSuchUserNotificationEventException {
2031                    return getPersistence()
2032                                       .findByU_DT_A_A_Last(userId, deliveryType, actionRequired,
2033                            archived, orderByComparator);
2034            }
2035    
2036            /**
2037            * Returns the last user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
2038            *
2039            * @param userId the user ID
2040            * @param deliveryType the delivery type
2041            * @param actionRequired the action required
2042            * @param archived the archived
2043            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2044            * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found
2045            */
2046            public static com.liferay.portal.model.UserNotificationEvent fetchByU_DT_A_A_Last(
2047                    long userId, int deliveryType, boolean actionRequired,
2048                    boolean archived,
2049                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
2050                    return getPersistence()
2051                                       .fetchByU_DT_A_A_Last(userId, deliveryType, actionRequired,
2052                            archived, orderByComparator);
2053            }
2054    
2055            /**
2056            * Returns the user notification events before and after the current user notification event in the ordered set where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
2057            *
2058            * @param userNotificationEventId the primary key of the current user notification event
2059            * @param userId the user ID
2060            * @param deliveryType the delivery type
2061            * @param actionRequired the action required
2062            * @param archived the archived
2063            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2064            * @return the previous, current, and next user notification event
2065            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
2066            */
2067            public static com.liferay.portal.model.UserNotificationEvent[] findByU_DT_A_A_PrevAndNext(
2068                    long userNotificationEventId, long userId, int deliveryType,
2069                    boolean actionRequired, boolean archived,
2070                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator)
2071                    throws com.liferay.portal.NoSuchUserNotificationEventException {
2072                    return getPersistence()
2073                                       .findByU_DT_A_A_PrevAndNext(userNotificationEventId, userId,
2074                            deliveryType, actionRequired, archived, orderByComparator);
2075            }
2076    
2077            /**
2078            * Removes all the user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63; from the database.
2079            *
2080            * @param userId the user ID
2081            * @param deliveryType the delivery type
2082            * @param actionRequired the action required
2083            * @param archived the archived
2084            */
2085            public static void removeByU_DT_A_A(long userId, int deliveryType,
2086                    boolean actionRequired, boolean archived) {
2087                    getPersistence()
2088                            .removeByU_DT_A_A(userId, deliveryType, actionRequired, archived);
2089            }
2090    
2091            /**
2092            * Returns the number of user notification events where userId = &#63; and deliveryType = &#63; and actionRequired = &#63; and archived = &#63;.
2093            *
2094            * @param userId the user ID
2095            * @param deliveryType the delivery type
2096            * @param actionRequired the action required
2097            * @param archived the archived
2098            * @return the number of matching user notification events
2099            */
2100            public static int countByU_DT_A_A(long userId, int deliveryType,
2101                    boolean actionRequired, boolean archived) {
2102                    return getPersistence()
2103                                       .countByU_DT_A_A(userId, deliveryType, actionRequired,
2104                            archived);
2105            }
2106    
2107            /**
2108            * Caches the user notification event in the entity cache if it is enabled.
2109            *
2110            * @param userNotificationEvent the user notification event
2111            */
2112            public static void cacheResult(
2113                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
2114                    getPersistence().cacheResult(userNotificationEvent);
2115            }
2116    
2117            /**
2118            * Caches the user notification events in the entity cache if it is enabled.
2119            *
2120            * @param userNotificationEvents the user notification events
2121            */
2122            public static void cacheResult(
2123                    java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents) {
2124                    getPersistence().cacheResult(userNotificationEvents);
2125            }
2126    
2127            /**
2128            * Creates a new user notification event with the primary key. Does not add the user notification event to the database.
2129            *
2130            * @param userNotificationEventId the primary key for the new user notification event
2131            * @return the new user notification event
2132            */
2133            public static com.liferay.portal.model.UserNotificationEvent create(
2134                    long userNotificationEventId) {
2135                    return getPersistence().create(userNotificationEventId);
2136            }
2137    
2138            /**
2139            * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners.
2140            *
2141            * @param userNotificationEventId the primary key of the user notification event
2142            * @return the user notification event that was removed
2143            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
2144            */
2145            public static com.liferay.portal.model.UserNotificationEvent remove(
2146                    long userNotificationEventId)
2147                    throws com.liferay.portal.NoSuchUserNotificationEventException {
2148                    return getPersistence().remove(userNotificationEventId);
2149            }
2150    
2151            public static com.liferay.portal.model.UserNotificationEvent updateImpl(
2152                    com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
2153                    return getPersistence().updateImpl(userNotificationEvent);
2154            }
2155    
2156            /**
2157            * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found.
2158            *
2159            * @param userNotificationEventId the primary key of the user notification event
2160            * @return the user notification event
2161            * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found
2162            */
2163            public static com.liferay.portal.model.UserNotificationEvent findByPrimaryKey(
2164                    long userNotificationEventId)
2165                    throws com.liferay.portal.NoSuchUserNotificationEventException {
2166                    return getPersistence().findByPrimaryKey(userNotificationEventId);
2167            }
2168    
2169            /**
2170            * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found.
2171            *
2172            * @param userNotificationEventId the primary key of the user notification event
2173            * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found
2174            */
2175            public static com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey(
2176                    long userNotificationEventId) {
2177                    return getPersistence().fetchByPrimaryKey(userNotificationEventId);
2178            }
2179    
2180            public static java.util.Map<java.io.Serializable, com.liferay.portal.model.UserNotificationEvent> fetchByPrimaryKeys(
2181                    java.util.Set<java.io.Serializable> primaryKeys) {
2182                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
2183            }
2184    
2185            /**
2186            * Returns all the user notification events.
2187            *
2188            * @return the user notification events
2189            */
2190            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll() {
2191                    return getPersistence().findAll();
2192            }
2193    
2194            /**
2195            * Returns a range of all the user notification events.
2196            *
2197            * <p>
2198            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2199            * </p>
2200            *
2201            * @param start the lower bound of the range of user notification events
2202            * @param end the upper bound of the range of user notification events (not inclusive)
2203            * @return the range of user notification events
2204            */
2205            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
2206                    int start, int end) {
2207                    return getPersistence().findAll(start, end);
2208            }
2209    
2210            /**
2211            * Returns an ordered range of all the user notification events.
2212            *
2213            * <p>
2214            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.UserNotificationEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2215            * </p>
2216            *
2217            * @param start the lower bound of the range of user notification events
2218            * @param end the upper bound of the range of user notification events (not inclusive)
2219            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2220            * @return the ordered range of user notification events
2221            */
2222            public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll(
2223                    int start, int end,
2224                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.UserNotificationEvent> orderByComparator) {
2225                    return getPersistence().findAll(start, end, orderByComparator);
2226            }
2227    
2228            /**
2229            * Removes all the user notification events from the database.
2230            */
2231            public static void removeAll() {
2232                    getPersistence().removeAll();
2233            }
2234    
2235            /**
2236            * Returns the number of user notification events.
2237            *
2238            * @return the number of user notification events
2239            */
2240            public static int countAll() {
2241                    return getPersistence().countAll();
2242            }
2243    
2244            public static UserNotificationEventPersistence getPersistence() {
2245                    if (_persistence == null) {
2246                            _persistence = (UserNotificationEventPersistence)PortalBeanLocatorUtil.locate(UserNotificationEventPersistence.class.getName());
2247    
2248                            ReferenceRegistry.registerReference(UserNotificationEventUtil.class,
2249                                    "_persistence");
2250                    }
2251    
2252                    return _persistence;
2253            }
2254    
2255            /**
2256             * @deprecated As of 6.2.0
2257             */
2258            @Deprecated
2259            public void setPersistence(UserNotificationEventPersistence persistence) {
2260            }
2261    
2262            private static UserNotificationEventPersistence _persistence;
2263    }