001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import 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.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.model.UserNotificationEvent; 025 import com.liferay.portal.service.ServiceContext; 026 027 import java.util.List; 028 029 /** 030 * 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. 031 * 032 * <p> 033 * Caching information and settings can be found in <code>portal.properties</code> 034 * </p> 035 * 036 * @author Brian Wing Shun Chan 037 * @see UserNotificationEventPersistence 038 * @see UserNotificationEventPersistenceImpl 039 * @generated 040 */ 041 @ProviderType 042 public class UserNotificationEventUtil { 043 /* 044 * NOTE FOR DEVELOPERS: 045 * 046 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 047 */ 048 049 /** 050 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 051 */ 052 public static void clearCache() { 053 getPersistence().clearCache(); 054 } 055 056 /** 057 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 058 */ 059 public static void clearCache(UserNotificationEvent userNotificationEvent) { 060 getPersistence().clearCache(userNotificationEvent); 061 } 062 063 /** 064 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 065 */ 066 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 067 throws SystemException { 068 return getPersistence().countWithDynamicQuery(dynamicQuery); 069 } 070 071 /** 072 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 073 */ 074 public static List<UserNotificationEvent> findWithDynamicQuery( 075 DynamicQuery dynamicQuery) throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 081 */ 082 public static List<UserNotificationEvent> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end) 084 throws SystemException { 085 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 086 } 087 088 /** 089 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 090 */ 091 public static List<UserNotificationEvent> findWithDynamicQuery( 092 DynamicQuery dynamicQuery, int start, int end, 093 OrderByComparator orderByComparator) throws SystemException { 094 return getPersistence() 095 .findWithDynamicQuery(dynamicQuery, start, end, 096 orderByComparator); 097 } 098 099 /** 100 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 101 */ 102 public static UserNotificationEvent update( 103 UserNotificationEvent userNotificationEvent) throws SystemException { 104 return getPersistence().update(userNotificationEvent); 105 } 106 107 /** 108 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 109 */ 110 public static UserNotificationEvent update( 111 UserNotificationEvent userNotificationEvent, 112 ServiceContext serviceContext) throws SystemException { 113 return getPersistence().update(userNotificationEvent, serviceContext); 114 } 115 116 /** 117 * Returns all the user notification events where uuid = ?. 118 * 119 * @param uuid the uuid 120 * @return the matching user notification events 121 * @throws SystemException if a system exception occurred 122 */ 123 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 124 java.lang.String uuid) 125 throws com.liferay.portal.kernel.exception.SystemException { 126 return getPersistence().findByUuid(uuid); 127 } 128 129 /** 130 * Returns a range of all the user notification events where uuid = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param uuid the uuid 137 * @param start the lower bound of the range of user notification events 138 * @param end the upper bound of the range of user notification events (not inclusive) 139 * @return the range of matching user notification events 140 * @throws SystemException if a system exception occurred 141 */ 142 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 143 java.lang.String uuid, int start, int end) 144 throws com.liferay.portal.kernel.exception.SystemException { 145 return getPersistence().findByUuid(uuid, start, end); 146 } 147 148 /** 149 * Returns an ordered range of all the user notification events where uuid = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param uuid the uuid 156 * @param start the lower bound of the range of user notification events 157 * @param end the upper bound of the range of user notification events (not inclusive) 158 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 159 * @return the ordered range of matching user notification events 160 * @throws SystemException if a system exception occurred 161 */ 162 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 163 java.lang.String uuid, int start, int end, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 167 } 168 169 /** 170 * Returns the first user notification event in the ordered set where uuid = ?. 171 * 172 * @param uuid the uuid 173 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 174 * @return the first matching user notification event 175 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 176 * @throws SystemException if a system exception occurred 177 */ 178 public static com.liferay.portal.model.UserNotificationEvent findByUuid_First( 179 java.lang.String uuid, 180 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 181 throws com.liferay.portal.NoSuchUserNotificationEventException, 182 com.liferay.portal.kernel.exception.SystemException { 183 return getPersistence().findByUuid_First(uuid, orderByComparator); 184 } 185 186 /** 187 * Returns the first user notification event in the ordered set where uuid = ?. 188 * 189 * @param uuid the uuid 190 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 191 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 192 * @throws SystemException if a system exception occurred 193 */ 194 public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_First( 195 java.lang.String uuid, 196 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 197 throws com.liferay.portal.kernel.exception.SystemException { 198 return getPersistence().fetchByUuid_First(uuid, orderByComparator); 199 } 200 201 /** 202 * Returns the last user notification event in the ordered set where uuid = ?. 203 * 204 * @param uuid the uuid 205 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 206 * @return the last matching user notification event 207 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 208 * @throws SystemException if a system exception occurred 209 */ 210 public static com.liferay.portal.model.UserNotificationEvent findByUuid_Last( 211 java.lang.String uuid, 212 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 213 throws com.liferay.portal.NoSuchUserNotificationEventException, 214 com.liferay.portal.kernel.exception.SystemException { 215 return getPersistence().findByUuid_Last(uuid, orderByComparator); 216 } 217 218 /** 219 * Returns the last user notification event in the ordered set where uuid = ?. 220 * 221 * @param uuid the uuid 222 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 223 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 224 * @throws SystemException if a system exception occurred 225 */ 226 public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last( 227 java.lang.String uuid, 228 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 229 throws com.liferay.portal.kernel.exception.SystemException { 230 return getPersistence().fetchByUuid_Last(uuid, orderByComparator); 231 } 232 233 /** 234 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ?. 235 * 236 * @param userNotificationEventId the primary key of the current user notification event 237 * @param uuid the uuid 238 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 239 * @return the previous, current, and next user notification event 240 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 241 * @throws SystemException if a system exception occurred 242 */ 243 public static com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext( 244 long userNotificationEventId, java.lang.String uuid, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.NoSuchUserNotificationEventException, 247 com.liferay.portal.kernel.exception.SystemException { 248 return getPersistence() 249 .findByUuid_PrevAndNext(userNotificationEventId, uuid, 250 orderByComparator); 251 } 252 253 /** 254 * Removes all the user notification events where uuid = ? from the database. 255 * 256 * @param uuid the uuid 257 * @throws SystemException if a system exception occurred 258 */ 259 public static void removeByUuid(java.lang.String uuid) 260 throws com.liferay.portal.kernel.exception.SystemException { 261 getPersistence().removeByUuid(uuid); 262 } 263 264 /** 265 * Returns the number of user notification events where uuid = ?. 266 * 267 * @param uuid the uuid 268 * @return the number of matching user notification events 269 * @throws SystemException if a system exception occurred 270 */ 271 public static int countByUuid(java.lang.String uuid) 272 throws com.liferay.portal.kernel.exception.SystemException { 273 return getPersistence().countByUuid(uuid); 274 } 275 276 /** 277 * Returns all the user notification events where uuid = ? and companyId = ?. 278 * 279 * @param uuid the uuid 280 * @param companyId the company ID 281 * @return the matching user notification events 282 * @throws SystemException if a system exception occurred 283 */ 284 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 285 java.lang.String uuid, long companyId) 286 throws com.liferay.portal.kernel.exception.SystemException { 287 return getPersistence().findByUuid_C(uuid, companyId); 288 } 289 290 /** 291 * Returns a range of all the user notification events where uuid = ? and companyId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param uuid the uuid 298 * @param companyId the company ID 299 * @param start the lower bound of the range of user notification events 300 * @param end the upper bound of the range of user notification events (not inclusive) 301 * @return the range of matching user notification events 302 * @throws SystemException if a system exception occurred 303 */ 304 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 305 java.lang.String uuid, long companyId, int start, int end) 306 throws com.liferay.portal.kernel.exception.SystemException { 307 return getPersistence().findByUuid_C(uuid, companyId, start, end); 308 } 309 310 /** 311 * Returns an ordered range of all the user notification events where uuid = ? and companyId = ?. 312 * 313 * <p> 314 * 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. 315 * </p> 316 * 317 * @param uuid the uuid 318 * @param companyId the company ID 319 * @param start the lower bound of the range of user notification events 320 * @param end the upper bound of the range of user notification events (not inclusive) 321 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 322 * @return the ordered range of matching user notification events 323 * @throws SystemException if a system exception occurred 324 */ 325 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 326 java.lang.String uuid, long companyId, int start, int end, 327 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 328 throws com.liferay.portal.kernel.exception.SystemException { 329 return getPersistence() 330 .findByUuid_C(uuid, companyId, start, end, orderByComparator); 331 } 332 333 /** 334 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 335 * 336 * @param uuid the uuid 337 * @param companyId the company ID 338 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 339 * @return the first matching user notification event 340 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 341 * @throws SystemException if a system exception occurred 342 */ 343 public static com.liferay.portal.model.UserNotificationEvent findByUuid_C_First( 344 java.lang.String uuid, long companyId, 345 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 346 throws com.liferay.portal.NoSuchUserNotificationEventException, 347 com.liferay.portal.kernel.exception.SystemException { 348 return getPersistence() 349 .findByUuid_C_First(uuid, companyId, orderByComparator); 350 } 351 352 /** 353 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 354 * 355 * @param uuid the uuid 356 * @param companyId the company ID 357 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 358 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 359 * @throws SystemException if a system exception occurred 360 */ 361 public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First( 362 java.lang.String uuid, long companyId, 363 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return getPersistence() 366 .fetchByUuid_C_First(uuid, companyId, orderByComparator); 367 } 368 369 /** 370 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 371 * 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 last matching user notification event 376 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last( 380 java.lang.String uuid, long companyId, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.NoSuchUserNotificationEventException, 383 com.liferay.portal.kernel.exception.SystemException { 384 return getPersistence() 385 .findByUuid_C_Last(uuid, companyId, orderByComparator); 386 } 387 388 /** 389 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 390 * 391 * @param uuid the uuid 392 * @param companyId the company ID 393 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 394 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public static com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last( 398 java.lang.String uuid, long companyId, 399 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 400 throws com.liferay.portal.kernel.exception.SystemException { 401 return getPersistence() 402 .fetchByUuid_C_Last(uuid, companyId, orderByComparator); 403 } 404 405 /** 406 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ? and companyId = ?. 407 * 408 * @param userNotificationEventId the primary key of the current user notification event 409 * @param uuid the uuid 410 * @param companyId the company ID 411 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 412 * @return the previous, current, and next user notification event 413 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 414 * @throws SystemException if a system exception occurred 415 */ 416 public static com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext( 417 long userNotificationEventId, java.lang.String uuid, long companyId, 418 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 419 throws com.liferay.portal.NoSuchUserNotificationEventException, 420 com.liferay.portal.kernel.exception.SystemException { 421 return getPersistence() 422 .findByUuid_C_PrevAndNext(userNotificationEventId, uuid, 423 companyId, orderByComparator); 424 } 425 426 /** 427 * Removes all the user notification events where uuid = ? and companyId = ? from the database. 428 * 429 * @param uuid the uuid 430 * @param companyId the company ID 431 * @throws SystemException if a system exception occurred 432 */ 433 public static void removeByUuid_C(java.lang.String uuid, long companyId) 434 throws com.liferay.portal.kernel.exception.SystemException { 435 getPersistence().removeByUuid_C(uuid, companyId); 436 } 437 438 /** 439 * Returns the number of user notification events where uuid = ? and companyId = ?. 440 * 441 * @param uuid the uuid 442 * @param companyId the company ID 443 * @return the number of matching user notification events 444 * @throws SystemException if a system exception occurred 445 */ 446 public static int countByUuid_C(java.lang.String uuid, long companyId) 447 throws com.liferay.portal.kernel.exception.SystemException { 448 return getPersistence().countByUuid_C(uuid, companyId); 449 } 450 451 /** 452 * Returns all the user notification events where userId = ?. 453 * 454 * @param userId the user ID 455 * @return the matching user notification events 456 * @throws SystemException if a system exception occurred 457 */ 458 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 459 long userId) throws com.liferay.portal.kernel.exception.SystemException { 460 return getPersistence().findByUserId(userId); 461 } 462 463 /** 464 * Returns a range of all the user notification events where userId = ?. 465 * 466 * <p> 467 * 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. 468 * </p> 469 * 470 * @param userId the user ID 471 * @param start the lower bound of the range of user notification events 472 * @param end the upper bound of the range of user notification events (not inclusive) 473 * @return the range of matching user notification events 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 477 long userId, int start, int end) 478 throws com.liferay.portal.kernel.exception.SystemException { 479 return getPersistence().findByUserId(userId, start, end); 480 } 481 482 /** 483 * Returns an ordered range of all the user notification events where userId = ?. 484 * 485 * <p> 486 * 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. 487 * </p> 488 * 489 * @param userId the user ID 490 * @param start the lower bound of the range of user notification events 491 * @param end the upper bound of the range of user notification events (not inclusive) 492 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 493 * @return the ordered range of matching user notification events 494 * @throws SystemException if a system exception occurred 495 */ 496 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 497 long userId, int start, int end, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException { 500 return getPersistence() 501 .findByUserId(userId, start, end, orderByComparator); 502 } 503 504 /** 505 * Returns the first user notification event in the ordered set where userId = ?. 506 * 507 * @param userId the user ID 508 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 509 * @return the first matching user notification event 510 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 511 * @throws SystemException if a system exception occurred 512 */ 513 public static com.liferay.portal.model.UserNotificationEvent findByUserId_First( 514 long userId, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.NoSuchUserNotificationEventException, 517 com.liferay.portal.kernel.exception.SystemException { 518 return getPersistence().findByUserId_First(userId, orderByComparator); 519 } 520 521 /** 522 * Returns the first user notification event in the ordered set where userId = ?. 523 * 524 * @param userId the user ID 525 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 526 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public static com.liferay.portal.model.UserNotificationEvent fetchByUserId_First( 530 long userId, 531 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 532 throws com.liferay.portal.kernel.exception.SystemException { 533 return getPersistence().fetchByUserId_First(userId, orderByComparator); 534 } 535 536 /** 537 * Returns the last user notification event in the ordered set where userId = ?. 538 * 539 * @param userId the user ID 540 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 541 * @return the last matching user notification event 542 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 543 * @throws SystemException if a system exception occurred 544 */ 545 public static com.liferay.portal.model.UserNotificationEvent findByUserId_Last( 546 long userId, 547 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 548 throws com.liferay.portal.NoSuchUserNotificationEventException, 549 com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().findByUserId_Last(userId, orderByComparator); 551 } 552 553 /** 554 * Returns the last user notification event in the ordered set where userId = ?. 555 * 556 * @param userId the user ID 557 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 558 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 559 * @throws SystemException if a system exception occurred 560 */ 561 public static com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last( 562 long userId, 563 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 564 throws com.liferay.portal.kernel.exception.SystemException { 565 return getPersistence().fetchByUserId_Last(userId, orderByComparator); 566 } 567 568 /** 569 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ?. 570 * 571 * @param userNotificationEventId the primary key of the current user notification event 572 * @param userId the user ID 573 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 574 * @return the previous, current, and next user notification event 575 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 576 * @throws SystemException if a system exception occurred 577 */ 578 public static com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext( 579 long userNotificationEventId, long userId, 580 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 581 throws com.liferay.portal.NoSuchUserNotificationEventException, 582 com.liferay.portal.kernel.exception.SystemException { 583 return getPersistence() 584 .findByUserId_PrevAndNext(userNotificationEventId, userId, 585 orderByComparator); 586 } 587 588 /** 589 * Removes all the user notification events where userId = ? from the database. 590 * 591 * @param userId the user ID 592 * @throws SystemException if a system exception occurred 593 */ 594 public static void removeByUserId(long userId) 595 throws com.liferay.portal.kernel.exception.SystemException { 596 getPersistence().removeByUserId(userId); 597 } 598 599 /** 600 * Returns the number of user notification events where userId = ?. 601 * 602 * @param userId the user ID 603 * @return the number of matching user notification events 604 * @throws SystemException if a system exception occurred 605 */ 606 public static int countByUserId(long userId) 607 throws com.liferay.portal.kernel.exception.SystemException { 608 return getPersistence().countByUserId(userId); 609 } 610 611 /** 612 * Returns all the user notification events where userId = ? and delivered = ?. 613 * 614 * @param userId the user ID 615 * @param delivered the delivered 616 * @return the matching user notification events 617 * @throws SystemException if a system exception occurred 618 */ 619 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D( 620 long userId, boolean delivered) 621 throws com.liferay.portal.kernel.exception.SystemException { 622 return getPersistence().findByU_D(userId, delivered); 623 } 624 625 /** 626 * Returns a range of all the user notification events where userId = ? and delivered = ?. 627 * 628 * <p> 629 * 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. 630 * </p> 631 * 632 * @param userId the user ID 633 * @param delivered the delivered 634 * @param start the lower bound of the range of user notification events 635 * @param end the upper bound of the range of user notification events (not inclusive) 636 * @return the range of matching user notification events 637 * @throws SystemException if a system exception occurred 638 */ 639 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D( 640 long userId, boolean delivered, int start, int end) 641 throws com.liferay.portal.kernel.exception.SystemException { 642 return getPersistence().findByU_D(userId, delivered, start, end); 643 } 644 645 /** 646 * Returns an ordered range of all the user notification events where userId = ? and delivered = ?. 647 * 648 * <p> 649 * 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. 650 * </p> 651 * 652 * @param userId the user ID 653 * @param delivered the delivered 654 * @param start the lower bound of the range of user notification events 655 * @param end the upper bound of the range of user notification events (not inclusive) 656 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 657 * @return the ordered range of matching user notification events 658 * @throws SystemException if a system exception occurred 659 */ 660 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_D( 661 long userId, boolean delivered, int start, int end, 662 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 663 throws com.liferay.portal.kernel.exception.SystemException { 664 return getPersistence() 665 .findByU_D(userId, delivered, start, end, orderByComparator); 666 } 667 668 /** 669 * Returns the first user notification event in the ordered set where userId = ? and delivered = ?. 670 * 671 * @param userId the user ID 672 * @param delivered the delivered 673 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 674 * @return the first matching user notification event 675 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 676 * @throws SystemException if a system exception occurred 677 */ 678 public static com.liferay.portal.model.UserNotificationEvent findByU_D_First( 679 long userId, boolean delivered, 680 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 681 throws com.liferay.portal.NoSuchUserNotificationEventException, 682 com.liferay.portal.kernel.exception.SystemException { 683 return getPersistence() 684 .findByU_D_First(userId, delivered, orderByComparator); 685 } 686 687 /** 688 * Returns the first user notification event in the ordered set where userId = ? and delivered = ?. 689 * 690 * @param userId the user ID 691 * @param delivered the delivered 692 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 693 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 694 * @throws SystemException if a system exception occurred 695 */ 696 public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_First( 697 long userId, boolean delivered, 698 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence() 701 .fetchByU_D_First(userId, delivered, orderByComparator); 702 } 703 704 /** 705 * Returns the last user notification event in the ordered set where userId = ? and delivered = ?. 706 * 707 * @param userId the user ID 708 * @param delivered the delivered 709 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 710 * @return the last matching user notification event 711 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 712 * @throws SystemException if a system exception occurred 713 */ 714 public static com.liferay.portal.model.UserNotificationEvent findByU_D_Last( 715 long userId, boolean delivered, 716 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 717 throws com.liferay.portal.NoSuchUserNotificationEventException, 718 com.liferay.portal.kernel.exception.SystemException { 719 return getPersistence() 720 .findByU_D_Last(userId, delivered, orderByComparator); 721 } 722 723 /** 724 * Returns the last user notification event in the ordered set where userId = ? and delivered = ?. 725 * 726 * @param userId the user ID 727 * @param delivered the delivered 728 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 729 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 730 * @throws SystemException if a system exception occurred 731 */ 732 public static com.liferay.portal.model.UserNotificationEvent fetchByU_D_Last( 733 long userId, boolean delivered, 734 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 735 throws com.liferay.portal.kernel.exception.SystemException { 736 return getPersistence() 737 .fetchByU_D_Last(userId, delivered, orderByComparator); 738 } 739 740 /** 741 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and delivered = ?. 742 * 743 * @param userNotificationEventId the primary key of the current user notification event 744 * @param userId the user ID 745 * @param delivered the delivered 746 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 747 * @return the previous, current, and next user notification event 748 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 749 * @throws SystemException if a system exception occurred 750 */ 751 public static com.liferay.portal.model.UserNotificationEvent[] findByU_D_PrevAndNext( 752 long userNotificationEventId, long userId, boolean delivered, 753 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 754 throws com.liferay.portal.NoSuchUserNotificationEventException, 755 com.liferay.portal.kernel.exception.SystemException { 756 return getPersistence() 757 .findByU_D_PrevAndNext(userNotificationEventId, userId, 758 delivered, orderByComparator); 759 } 760 761 /** 762 * Removes all the user notification events where userId = ? and delivered = ? from the database. 763 * 764 * @param userId the user ID 765 * @param delivered the delivered 766 * @throws SystemException if a system exception occurred 767 */ 768 public static void removeByU_D(long userId, boolean delivered) 769 throws com.liferay.portal.kernel.exception.SystemException { 770 getPersistence().removeByU_D(userId, delivered); 771 } 772 773 /** 774 * Returns the number of user notification events where userId = ? and delivered = ?. 775 * 776 * @param userId the user ID 777 * @param delivered the delivered 778 * @return the number of matching user notification events 779 * @throws SystemException if a system exception occurred 780 */ 781 public static int countByU_D(long userId, boolean delivered) 782 throws com.liferay.portal.kernel.exception.SystemException { 783 return getPersistence().countByU_D(userId, delivered); 784 } 785 786 /** 787 * Returns all the user notification events where userId = ? and archived = ?. 788 * 789 * @param userId the user ID 790 * @param archived the archived 791 * @return the matching user notification events 792 * @throws SystemException if a system exception occurred 793 */ 794 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 795 long userId, boolean archived) 796 throws com.liferay.portal.kernel.exception.SystemException { 797 return getPersistence().findByU_A(userId, archived); 798 } 799 800 /** 801 * Returns a range of all the user notification events where userId = ? and archived = ?. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param userId the user ID 808 * @param archived the archived 809 * @param start the lower bound of the range of user notification events 810 * @param end the upper bound of the range of user notification events (not inclusive) 811 * @return the range of matching user notification events 812 * @throws SystemException if a system exception occurred 813 */ 814 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 815 long userId, boolean archived, int start, int end) 816 throws com.liferay.portal.kernel.exception.SystemException { 817 return getPersistence().findByU_A(userId, archived, start, end); 818 } 819 820 /** 821 * Returns an ordered range of all the user notification events where userId = ? and archived = ?. 822 * 823 * <p> 824 * 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. 825 * </p> 826 * 827 * @param userId the user ID 828 * @param archived the archived 829 * @param start the lower bound of the range of user notification events 830 * @param end the upper bound of the range of user notification events (not inclusive) 831 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 832 * @return the ordered range of matching user notification events 833 * @throws SystemException if a system exception occurred 834 */ 835 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 836 long userId, boolean archived, int start, int end, 837 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 838 throws com.liferay.portal.kernel.exception.SystemException { 839 return getPersistence() 840 .findByU_A(userId, archived, start, end, orderByComparator); 841 } 842 843 /** 844 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 845 * 846 * @param userId the user ID 847 * @param archived the archived 848 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 849 * @return the first matching user notification event 850 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 851 * @throws SystemException if a system exception occurred 852 */ 853 public static com.liferay.portal.model.UserNotificationEvent findByU_A_First( 854 long userId, boolean archived, 855 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 856 throws com.liferay.portal.NoSuchUserNotificationEventException, 857 com.liferay.portal.kernel.exception.SystemException { 858 return getPersistence() 859 .findByU_A_First(userId, archived, orderByComparator); 860 } 861 862 /** 863 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 864 * 865 * @param userId the user ID 866 * @param archived the archived 867 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 868 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 869 * @throws SystemException if a system exception occurred 870 */ 871 public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_First( 872 long userId, boolean archived, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.kernel.exception.SystemException { 875 return getPersistence() 876 .fetchByU_A_First(userId, archived, orderByComparator); 877 } 878 879 /** 880 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 881 * 882 * @param userId the user ID 883 * @param archived the archived 884 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 885 * @return the last matching user notification event 886 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 887 * @throws SystemException if a system exception occurred 888 */ 889 public static com.liferay.portal.model.UserNotificationEvent findByU_A_Last( 890 long userId, boolean archived, 891 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 892 throws com.liferay.portal.NoSuchUserNotificationEventException, 893 com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence() 895 .findByU_A_Last(userId, archived, orderByComparator); 896 } 897 898 /** 899 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 900 * 901 * @param userId the user ID 902 * @param archived the archived 903 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 904 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 905 * @throws SystemException if a system exception occurred 906 */ 907 public static com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last( 908 long userId, boolean archived, 909 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 910 throws com.liferay.portal.kernel.exception.SystemException { 911 return getPersistence() 912 .fetchByU_A_Last(userId, archived, orderByComparator); 913 } 914 915 /** 916 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and archived = ?. 917 * 918 * @param userNotificationEventId the primary key of the current user notification event 919 * @param userId the user ID 920 * @param archived the archived 921 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 922 * @return the previous, current, and next user notification event 923 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 924 * @throws SystemException if a system exception occurred 925 */ 926 public static com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext( 927 long userNotificationEventId, long userId, boolean archived, 928 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 929 throws com.liferay.portal.NoSuchUserNotificationEventException, 930 com.liferay.portal.kernel.exception.SystemException { 931 return getPersistence() 932 .findByU_A_PrevAndNext(userNotificationEventId, userId, 933 archived, orderByComparator); 934 } 935 936 /** 937 * Removes all the user notification events where userId = ? and archived = ? from the database. 938 * 939 * @param userId the user ID 940 * @param archived the archived 941 * @throws SystemException if a system exception occurred 942 */ 943 public static void removeByU_A(long userId, boolean archived) 944 throws com.liferay.portal.kernel.exception.SystemException { 945 getPersistence().removeByU_A(userId, archived); 946 } 947 948 /** 949 * Returns the number of user notification events where userId = ? and archived = ?. 950 * 951 * @param userId the user ID 952 * @param archived the archived 953 * @return the number of matching user notification events 954 * @throws SystemException if a system exception occurred 955 */ 956 public static int countByU_A(long userId, boolean archived) 957 throws com.liferay.portal.kernel.exception.SystemException { 958 return getPersistence().countByU_A(userId, archived); 959 } 960 961 /** 962 * Caches the user notification event in the entity cache if it is enabled. 963 * 964 * @param userNotificationEvent the user notification event 965 */ 966 public static void cacheResult( 967 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) { 968 getPersistence().cacheResult(userNotificationEvent); 969 } 970 971 /** 972 * Caches the user notification events in the entity cache if it is enabled. 973 * 974 * @param userNotificationEvents the user notification events 975 */ 976 public static void cacheResult( 977 java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents) { 978 getPersistence().cacheResult(userNotificationEvents); 979 } 980 981 /** 982 * Creates a new user notification event with the primary key. Does not add the user notification event to the database. 983 * 984 * @param userNotificationEventId the primary key for the new user notification event 985 * @return the new user notification event 986 */ 987 public static com.liferay.portal.model.UserNotificationEvent create( 988 long userNotificationEventId) { 989 return getPersistence().create(userNotificationEventId); 990 } 991 992 /** 993 * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners. 994 * 995 * @param userNotificationEventId the primary key of the user notification event 996 * @return the user notification event that was removed 997 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 998 * @throws SystemException if a system exception occurred 999 */ 1000 public static com.liferay.portal.model.UserNotificationEvent remove( 1001 long userNotificationEventId) 1002 throws com.liferay.portal.NoSuchUserNotificationEventException, 1003 com.liferay.portal.kernel.exception.SystemException { 1004 return getPersistence().remove(userNotificationEventId); 1005 } 1006 1007 public static com.liferay.portal.model.UserNotificationEvent updateImpl( 1008 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) 1009 throws com.liferay.portal.kernel.exception.SystemException { 1010 return getPersistence().updateImpl(userNotificationEvent); 1011 } 1012 1013 /** 1014 * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found. 1015 * 1016 * @param userNotificationEventId the primary key of the user notification event 1017 * @return the user notification event 1018 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1019 * @throws SystemException if a system exception occurred 1020 */ 1021 public static com.liferay.portal.model.UserNotificationEvent findByPrimaryKey( 1022 long userNotificationEventId) 1023 throws com.liferay.portal.NoSuchUserNotificationEventException, 1024 com.liferay.portal.kernel.exception.SystemException { 1025 return getPersistence().findByPrimaryKey(userNotificationEventId); 1026 } 1027 1028 /** 1029 * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found. 1030 * 1031 * @param userNotificationEventId the primary key of the user notification event 1032 * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public static com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey( 1036 long userNotificationEventId) 1037 throws com.liferay.portal.kernel.exception.SystemException { 1038 return getPersistence().fetchByPrimaryKey(userNotificationEventId); 1039 } 1040 1041 /** 1042 * Returns all the user notification events. 1043 * 1044 * @return the user notification events 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll() 1048 throws com.liferay.portal.kernel.exception.SystemException { 1049 return getPersistence().findAll(); 1050 } 1051 1052 /** 1053 * Returns a range of all the user notification events. 1054 * 1055 * <p> 1056 * 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. 1057 * </p> 1058 * 1059 * @param start the lower bound of the range of user notification events 1060 * @param end the upper bound of the range of user notification events (not inclusive) 1061 * @return the range of user notification events 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll( 1065 int start, int end) 1066 throws com.liferay.portal.kernel.exception.SystemException { 1067 return getPersistence().findAll(start, end); 1068 } 1069 1070 /** 1071 * Returns an ordered range of all the user notification events. 1072 * 1073 * <p> 1074 * 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. 1075 * </p> 1076 * 1077 * @param start the lower bound of the range of user notification events 1078 * @param end the upper bound of the range of user notification events (not inclusive) 1079 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1080 * @return the ordered range of user notification events 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public static java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll( 1084 int start, int end, 1085 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1086 throws com.liferay.portal.kernel.exception.SystemException { 1087 return getPersistence().findAll(start, end, orderByComparator); 1088 } 1089 1090 /** 1091 * Removes all the user notification events from the database. 1092 * 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public static void removeAll() 1096 throws com.liferay.portal.kernel.exception.SystemException { 1097 getPersistence().removeAll(); 1098 } 1099 1100 /** 1101 * Returns the number of user notification events. 1102 * 1103 * @return the number of user notification events 1104 * @throws SystemException if a system exception occurred 1105 */ 1106 public static int countAll() 1107 throws com.liferay.portal.kernel.exception.SystemException { 1108 return getPersistence().countAll(); 1109 } 1110 1111 public static UserNotificationEventPersistence getPersistence() { 1112 if (_persistence == null) { 1113 _persistence = (UserNotificationEventPersistence)PortalBeanLocatorUtil.locate(UserNotificationEventPersistence.class.getName()); 1114 1115 ReferenceRegistry.registerReference(UserNotificationEventUtil.class, 1116 "_persistence"); 1117 } 1118 1119 return _persistence; 1120 } 1121 1122 /** 1123 * @deprecated As of 6.2.0 1124 */ 1125 public void setPersistence(UserNotificationEventPersistence persistence) { 1126 } 1127 1128 private static UserNotificationEventPersistence _persistence; 1129 }