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.model.UserNotificationEvent; 020 021 /** 022 * The persistence interface for the user notification event service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see com.liferay.portal.service.persistence.impl.UserNotificationEventPersistenceImpl 030 * @see UserNotificationEventUtil 031 * @generated 032 */ 033 @ProviderType 034 public interface UserNotificationEventPersistence extends BasePersistence<UserNotificationEvent> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link UserNotificationEventUtil} to access the user notification event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Returns all the user notification events where uuid = ?. 043 * 044 * @param uuid the uuid 045 * @return the matching user notification events 046 */ 047 public java.util.List<UserNotificationEvent> findByUuid( 048 java.lang.String uuid); 049 050 /** 051 * Returns a range of all the user notification events where uuid = ?. 052 * 053 * <p> 054 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 055 * </p> 056 * 057 * @param uuid the uuid 058 * @param start the lower bound of the range of user notification events 059 * @param end the upper bound of the range of user notification events (not inclusive) 060 * @return the range of matching user notification events 061 */ 062 public java.util.List<UserNotificationEvent> findByUuid( 063 java.lang.String uuid, int start, int end); 064 065 /** 066 * Returns an ordered range of all the user notification events where uuid = ?. 067 * 068 * <p> 069 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 070 * </p> 071 * 072 * @param uuid the uuid 073 * @param start the lower bound of the range of user notification events 074 * @param end the upper bound of the range of user notification events (not inclusive) 075 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 076 * @return the ordered range of matching user notification events 077 */ 078 public java.util.List<UserNotificationEvent> findByUuid( 079 java.lang.String uuid, int start, int end, 080 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 081 082 /** 083 * Returns the first user notification event in the ordered set where uuid = ?. 084 * 085 * @param uuid the uuid 086 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 087 * @return the first matching user notification event 088 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 089 */ 090 public UserNotificationEvent findByUuid_First(java.lang.String uuid, 091 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 092 throws com.liferay.portal.NoSuchUserNotificationEventException; 093 094 /** 095 * Returns the first user notification event in the ordered set where uuid = ?. 096 * 097 * @param uuid the uuid 098 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 099 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 100 */ 101 public UserNotificationEvent fetchByUuid_First(java.lang.String uuid, 102 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 103 104 /** 105 * Returns the last user notification event in the ordered set where uuid = ?. 106 * 107 * @param uuid the uuid 108 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 109 * @return the last matching user notification event 110 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 111 */ 112 public UserNotificationEvent findByUuid_Last(java.lang.String uuid, 113 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 114 throws com.liferay.portal.NoSuchUserNotificationEventException; 115 116 /** 117 * Returns the last user notification event in the ordered set where uuid = ?. 118 * 119 * @param uuid the uuid 120 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 121 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 122 */ 123 public UserNotificationEvent fetchByUuid_Last(java.lang.String uuid, 124 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 125 126 /** 127 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ?. 128 * 129 * @param userNotificationEventId the primary key of the current user notification event 130 * @param uuid the uuid 131 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 132 * @return the previous, current, and next user notification event 133 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 134 */ 135 public UserNotificationEvent[] findByUuid_PrevAndNext( 136 long userNotificationEventId, java.lang.String uuid, 137 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 138 throws com.liferay.portal.NoSuchUserNotificationEventException; 139 140 /** 141 * Removes all the user notification events where uuid = ? from the database. 142 * 143 * @param uuid the uuid 144 */ 145 public void removeByUuid(java.lang.String uuid); 146 147 /** 148 * Returns the number of user notification events where uuid = ?. 149 * 150 * @param uuid the uuid 151 * @return the number of matching user notification events 152 */ 153 public int countByUuid(java.lang.String uuid); 154 155 /** 156 * Returns all the user notification events where uuid = ? and companyId = ?. 157 * 158 * @param uuid the uuid 159 * @param companyId the company ID 160 * @return the matching user notification events 161 */ 162 public java.util.List<UserNotificationEvent> findByUuid_C( 163 java.lang.String uuid, long companyId); 164 165 /** 166 * Returns a range of all the user notification events where uuid = ? and companyId = ?. 167 * 168 * <p> 169 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 170 * </p> 171 * 172 * @param uuid the uuid 173 * @param companyId the company ID 174 * @param start the lower bound of the range of user notification events 175 * @param end the upper bound of the range of user notification events (not inclusive) 176 * @return the range of matching user notification events 177 */ 178 public java.util.List<UserNotificationEvent> findByUuid_C( 179 java.lang.String uuid, long companyId, int start, int end); 180 181 /** 182 * Returns an ordered range of all the user notification events where uuid = ? and companyId = ?. 183 * 184 * <p> 185 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 186 * </p> 187 * 188 * @param uuid the uuid 189 * @param companyId the company ID 190 * @param start the lower bound of the range of user notification events 191 * @param end the upper bound of the range of user notification events (not inclusive) 192 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 193 * @return the ordered range of matching user notification events 194 */ 195 public java.util.List<UserNotificationEvent> findByUuid_C( 196 java.lang.String uuid, long companyId, int start, int end, 197 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 198 199 /** 200 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 201 * 202 * @param uuid the uuid 203 * @param companyId the company ID 204 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 205 * @return the first matching user notification event 206 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 207 */ 208 public UserNotificationEvent findByUuid_C_First(java.lang.String uuid, 209 long companyId, 210 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 211 throws com.liferay.portal.NoSuchUserNotificationEventException; 212 213 /** 214 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 215 * 216 * @param uuid the uuid 217 * @param companyId the company ID 218 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 219 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 220 */ 221 public UserNotificationEvent fetchByUuid_C_First(java.lang.String uuid, 222 long companyId, 223 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 224 225 /** 226 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 227 * 228 * @param uuid the uuid 229 * @param companyId the company ID 230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 231 * @return the last matching user notification event 232 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 233 */ 234 public UserNotificationEvent findByUuid_C_Last(java.lang.String uuid, 235 long companyId, 236 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 237 throws com.liferay.portal.NoSuchUserNotificationEventException; 238 239 /** 240 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 241 * 242 * @param uuid the uuid 243 * @param companyId the company ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 246 */ 247 public UserNotificationEvent fetchByUuid_C_Last(java.lang.String uuid, 248 long companyId, 249 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 250 251 /** 252 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ? and companyId = ?. 253 * 254 * @param userNotificationEventId the primary key of the current user notification event 255 * @param uuid the uuid 256 * @param companyId the company ID 257 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 258 * @return the previous, current, and next user notification event 259 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 260 */ 261 public UserNotificationEvent[] findByUuid_C_PrevAndNext( 262 long userNotificationEventId, java.lang.String uuid, long companyId, 263 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 264 throws com.liferay.portal.NoSuchUserNotificationEventException; 265 266 /** 267 * Removes all the user notification events where uuid = ? and companyId = ? from the database. 268 * 269 * @param uuid the uuid 270 * @param companyId the company ID 271 */ 272 public void removeByUuid_C(java.lang.String uuid, long companyId); 273 274 /** 275 * Returns the number of user notification events where uuid = ? and companyId = ?. 276 * 277 * @param uuid the uuid 278 * @param companyId the company ID 279 * @return the number of matching user notification events 280 */ 281 public int countByUuid_C(java.lang.String uuid, long companyId); 282 283 /** 284 * Returns all the user notification events where userId = ?. 285 * 286 * @param userId the user ID 287 * @return the matching user notification events 288 */ 289 public java.util.List<UserNotificationEvent> findByUserId(long userId); 290 291 /** 292 * Returns a range of all the user notification events where userId = ?. 293 * 294 * <p> 295 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 296 * </p> 297 * 298 * @param userId the user 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 */ 303 public java.util.List<UserNotificationEvent> findByUserId(long userId, 304 int start, int end); 305 306 /** 307 * Returns an ordered range of all the user notification events where userId = ?. 308 * 309 * <p> 310 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 311 * </p> 312 * 313 * @param userId the user ID 314 * @param start the lower bound of the range of user notification events 315 * @param end the upper bound of the range of user notification events (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching user notification events 318 */ 319 public java.util.List<UserNotificationEvent> findByUserId(long userId, 320 int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 322 323 /** 324 * Returns the first user notification event in the ordered set where userId = ?. 325 * 326 * @param userId the user ID 327 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 328 * @return the first matching user notification event 329 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 330 */ 331 public UserNotificationEvent findByUserId_First(long userId, 332 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 333 throws com.liferay.portal.NoSuchUserNotificationEventException; 334 335 /** 336 * Returns the first user notification event in the ordered set where userId = ?. 337 * 338 * @param userId the user ID 339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 340 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 341 */ 342 public UserNotificationEvent fetchByUserId_First(long userId, 343 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 344 345 /** 346 * Returns the last user notification event in the ordered set where userId = ?. 347 * 348 * @param userId the user ID 349 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 350 * @return the last matching user notification event 351 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 352 */ 353 public UserNotificationEvent findByUserId_Last(long userId, 354 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 355 throws com.liferay.portal.NoSuchUserNotificationEventException; 356 357 /** 358 * Returns the last user notification event in the ordered set where userId = ?. 359 * 360 * @param userId the user ID 361 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 362 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 363 */ 364 public UserNotificationEvent fetchByUserId_Last(long userId, 365 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 366 367 /** 368 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ?. 369 * 370 * @param userNotificationEventId the primary key of the current user notification event 371 * @param userId the user ID 372 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 373 * @return the previous, current, and next user notification event 374 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 375 */ 376 public UserNotificationEvent[] findByUserId_PrevAndNext( 377 long userNotificationEventId, long userId, 378 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 379 throws com.liferay.portal.NoSuchUserNotificationEventException; 380 381 /** 382 * Removes all the user notification events where userId = ? from the database. 383 * 384 * @param userId the user ID 385 */ 386 public void removeByUserId(long userId); 387 388 /** 389 * Returns the number of user notification events where userId = ?. 390 * 391 * @param userId the user ID 392 * @return the number of matching user notification events 393 */ 394 public int countByUserId(long userId); 395 396 /** 397 * Returns all the user notification events where userId = ? and deliveryType = ?. 398 * 399 * @param userId the user ID 400 * @param deliveryType the delivery type 401 * @return the matching user notification events 402 */ 403 public java.util.List<UserNotificationEvent> findByU_DT(long userId, 404 int deliveryType); 405 406 /** 407 * Returns a range of all the user notification events where userId = ? and deliveryType = ?. 408 * 409 * <p> 410 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 411 * </p> 412 * 413 * @param userId the user ID 414 * @param deliveryType the delivery type 415 * @param start the lower bound of the range of user notification events 416 * @param end the upper bound of the range of user notification events (not inclusive) 417 * @return the range of matching user notification events 418 */ 419 public java.util.List<UserNotificationEvent> findByU_DT(long userId, 420 int deliveryType, int start, int end); 421 422 /** 423 * Returns an ordered range of all the user notification events where userId = ? and deliveryType = ?. 424 * 425 * <p> 426 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 427 * </p> 428 * 429 * @param userId the user ID 430 * @param deliveryType the delivery type 431 * @param start the lower bound of the range of user notification events 432 * @param end the upper bound of the range of user notification events (not inclusive) 433 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 434 * @return the ordered range of matching user notification events 435 */ 436 public java.util.List<UserNotificationEvent> findByU_DT(long userId, 437 int deliveryType, int start, int end, 438 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 439 440 /** 441 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ?. 442 * 443 * @param userId the user ID 444 * @param deliveryType the delivery type 445 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 446 * @return the first matching user notification event 447 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 448 */ 449 public UserNotificationEvent findByU_DT_First(long userId, 450 int deliveryType, 451 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 452 throws com.liferay.portal.NoSuchUserNotificationEventException; 453 454 /** 455 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ?. 456 * 457 * @param userId the user ID 458 * @param deliveryType the delivery type 459 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 460 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 461 */ 462 public UserNotificationEvent fetchByU_DT_First(long userId, 463 int deliveryType, 464 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 465 466 /** 467 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ?. 468 * 469 * @param userId the user ID 470 * @param deliveryType the delivery type 471 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 472 * @return the last matching user notification event 473 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 474 */ 475 public UserNotificationEvent findByU_DT_Last(long userId, int deliveryType, 476 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 477 throws com.liferay.portal.NoSuchUserNotificationEventException; 478 479 /** 480 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ?. 481 * 482 * @param userId the user ID 483 * @param deliveryType the delivery type 484 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 485 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 486 */ 487 public UserNotificationEvent fetchByU_DT_Last(long userId, 488 int deliveryType, 489 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 490 491 /** 492 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and deliveryType = ?. 493 * 494 * @param userNotificationEventId the primary key of the current user notification event 495 * @param userId the user ID 496 * @param deliveryType the delivery type 497 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 498 * @return the previous, current, and next user notification event 499 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 500 */ 501 public UserNotificationEvent[] findByU_DT_PrevAndNext( 502 long userNotificationEventId, long userId, int deliveryType, 503 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 504 throws com.liferay.portal.NoSuchUserNotificationEventException; 505 506 /** 507 * Removes all the user notification events where userId = ? and deliveryType = ? from the database. 508 * 509 * @param userId the user ID 510 * @param deliveryType the delivery type 511 */ 512 public void removeByU_DT(long userId, int deliveryType); 513 514 /** 515 * Returns the number of user notification events where userId = ? and deliveryType = ?. 516 * 517 * @param userId the user ID 518 * @param deliveryType the delivery type 519 * @return the number of matching user notification events 520 */ 521 public int countByU_DT(long userId, int deliveryType); 522 523 /** 524 * Returns all the user notification events where userId = ? and delivered = ?. 525 * 526 * @param userId the user ID 527 * @param delivered the delivered 528 * @return the matching user notification events 529 */ 530 public java.util.List<UserNotificationEvent> findByU_D(long userId, 531 boolean delivered); 532 533 /** 534 * Returns a range of all the user notification events where userId = ? and delivered = ?. 535 * 536 * <p> 537 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 538 * </p> 539 * 540 * @param userId the user ID 541 * @param delivered the delivered 542 * @param start the lower bound of the range of user notification events 543 * @param end the upper bound of the range of user notification events (not inclusive) 544 * @return the range of matching user notification events 545 */ 546 public java.util.List<UserNotificationEvent> findByU_D(long userId, 547 boolean delivered, int start, int end); 548 549 /** 550 * Returns an ordered range of all the user notification events where userId = ? and delivered = ?. 551 * 552 * <p> 553 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 554 * </p> 555 * 556 * @param userId the user ID 557 * @param delivered the delivered 558 * @param start the lower bound of the range of user notification events 559 * @param end the upper bound of the range of user notification events (not inclusive) 560 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 561 * @return the ordered range of matching user notification events 562 */ 563 public java.util.List<UserNotificationEvent> findByU_D(long userId, 564 boolean delivered, int start, int end, 565 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 566 567 /** 568 * Returns the first user notification event in the ordered set where userId = ? and delivered = ?. 569 * 570 * @param userId the user ID 571 * @param delivered the delivered 572 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 573 * @return the first matching user notification event 574 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 575 */ 576 public UserNotificationEvent findByU_D_First(long userId, 577 boolean delivered, 578 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 579 throws com.liferay.portal.NoSuchUserNotificationEventException; 580 581 /** 582 * Returns the first user notification event in the ordered set where userId = ? and delivered = ?. 583 * 584 * @param userId the user ID 585 * @param delivered the delivered 586 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 587 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 588 */ 589 public UserNotificationEvent fetchByU_D_First(long userId, 590 boolean delivered, 591 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 592 593 /** 594 * Returns the last user notification event in the ordered set where userId = ? and delivered = ?. 595 * 596 * @param userId the user ID 597 * @param delivered the delivered 598 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 599 * @return the last matching user notification event 600 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 601 */ 602 public UserNotificationEvent findByU_D_Last(long userId, boolean delivered, 603 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 604 throws com.liferay.portal.NoSuchUserNotificationEventException; 605 606 /** 607 * Returns the last user notification event in the ordered set where userId = ? and delivered = ?. 608 * 609 * @param userId the user ID 610 * @param delivered the delivered 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 613 */ 614 public UserNotificationEvent fetchByU_D_Last(long userId, 615 boolean delivered, 616 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 617 618 /** 619 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and delivered = ?. 620 * 621 * @param userNotificationEventId the primary key of the current user notification event 622 * @param userId the user ID 623 * @param delivered the delivered 624 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 625 * @return the previous, current, and next user notification event 626 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 627 */ 628 public UserNotificationEvent[] findByU_D_PrevAndNext( 629 long userNotificationEventId, long userId, boolean delivered, 630 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 631 throws com.liferay.portal.NoSuchUserNotificationEventException; 632 633 /** 634 * Removes all the user notification events where userId = ? and delivered = ? from the database. 635 * 636 * @param userId the user ID 637 * @param delivered the delivered 638 */ 639 public void removeByU_D(long userId, boolean delivered); 640 641 /** 642 * Returns the number of user notification events where userId = ? and delivered = ?. 643 * 644 * @param userId the user ID 645 * @param delivered the delivered 646 * @return the number of matching user notification events 647 */ 648 public int countByU_D(long userId, boolean delivered); 649 650 /** 651 * Returns all the user notification events where userId = ? and archived = ?. 652 * 653 * @param userId the user ID 654 * @param archived the archived 655 * @return the matching user notification events 656 */ 657 public java.util.List<UserNotificationEvent> findByU_A(long userId, 658 boolean archived); 659 660 /** 661 * Returns a range of all the user notification events where userId = ? and archived = ?. 662 * 663 * <p> 664 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 665 * </p> 666 * 667 * @param userId the user ID 668 * @param archived the archived 669 * @param start the lower bound of the range of user notification events 670 * @param end the upper bound of the range of user notification events (not inclusive) 671 * @return the range of matching user notification events 672 */ 673 public java.util.List<UserNotificationEvent> findByU_A(long userId, 674 boolean archived, int start, int end); 675 676 /** 677 * Returns an ordered range of all the user notification events where userId = ? and archived = ?. 678 * 679 * <p> 680 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 681 * </p> 682 * 683 * @param userId the user ID 684 * @param archived the archived 685 * @param start the lower bound of the range of user notification events 686 * @param end the upper bound of the range of user notification events (not inclusive) 687 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 688 * @return the ordered range of matching user notification events 689 */ 690 public java.util.List<UserNotificationEvent> findByU_A(long userId, 691 boolean archived, int start, int end, 692 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 693 694 /** 695 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 696 * 697 * @param userId the user ID 698 * @param archived the archived 699 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 700 * @return the first matching user notification event 701 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 702 */ 703 public UserNotificationEvent findByU_A_First(long userId, boolean archived, 704 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 705 throws com.liferay.portal.NoSuchUserNotificationEventException; 706 707 /** 708 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 709 * 710 * @param userId the user ID 711 * @param archived the archived 712 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 713 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 714 */ 715 public UserNotificationEvent fetchByU_A_First(long userId, 716 boolean archived, 717 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 718 719 /** 720 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 721 * 722 * @param userId the user ID 723 * @param archived the archived 724 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 725 * @return the last matching user notification event 726 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 727 */ 728 public UserNotificationEvent findByU_A_Last(long userId, boolean archived, 729 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 730 throws com.liferay.portal.NoSuchUserNotificationEventException; 731 732 /** 733 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 734 * 735 * @param userId the user ID 736 * @param archived the archived 737 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 738 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 739 */ 740 public UserNotificationEvent fetchByU_A_Last(long userId, boolean archived, 741 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 742 743 /** 744 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and archived = ?. 745 * 746 * @param userNotificationEventId the primary key of the current user notification event 747 * @param userId the user ID 748 * @param archived the archived 749 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 750 * @return the previous, current, and next user notification event 751 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 752 */ 753 public UserNotificationEvent[] findByU_A_PrevAndNext( 754 long userNotificationEventId, long userId, boolean archived, 755 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 756 throws com.liferay.portal.NoSuchUserNotificationEventException; 757 758 /** 759 * Removes all the user notification events where userId = ? and archived = ? from the database. 760 * 761 * @param userId the user ID 762 * @param archived the archived 763 */ 764 public void removeByU_A(long userId, boolean archived); 765 766 /** 767 * Returns the number of user notification events where userId = ? and archived = ?. 768 * 769 * @param userId the user ID 770 * @param archived the archived 771 * @return the number of matching user notification events 772 */ 773 public int countByU_A(long userId, boolean archived); 774 775 /** 776 * Returns all the user notification events where userId = ? and deliveryType = ? and delivered = ?. 777 * 778 * @param userId the user ID 779 * @param deliveryType the delivery type 780 * @param delivered the delivered 781 * @return the matching user notification events 782 */ 783 public java.util.List<UserNotificationEvent> findByU_DT_D(long userId, 784 int deliveryType, boolean delivered); 785 786 /** 787 * Returns a range of all the user notification events where userId = ? and deliveryType = ? and delivered = ?. 788 * 789 * <p> 790 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 791 * </p> 792 * 793 * @param userId the user ID 794 * @param deliveryType the delivery type 795 * @param delivered the delivered 796 * @param start the lower bound of the range of user notification events 797 * @param end the upper bound of the range of user notification events (not inclusive) 798 * @return the range of matching user notification events 799 */ 800 public java.util.List<UserNotificationEvent> findByU_DT_D(long userId, 801 int deliveryType, boolean delivered, int start, int end); 802 803 /** 804 * Returns an ordered range of all the user notification events where userId = ? and deliveryType = ? and delivered = ?. 805 * 806 * <p> 807 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 808 * </p> 809 * 810 * @param userId the user ID 811 * @param deliveryType the delivery type 812 * @param delivered the delivered 813 * @param start the lower bound of the range of user notification events 814 * @param end the upper bound of the range of user notification events (not inclusive) 815 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 816 * @return the ordered range of matching user notification events 817 */ 818 public java.util.List<UserNotificationEvent> findByU_DT_D(long userId, 819 int deliveryType, boolean delivered, int start, int end, 820 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 821 822 /** 823 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ?. 824 * 825 * @param userId the user ID 826 * @param deliveryType the delivery type 827 * @param delivered the delivered 828 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 829 * @return the first matching user notification event 830 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 831 */ 832 public UserNotificationEvent findByU_DT_D_First(long userId, 833 int deliveryType, boolean delivered, 834 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 835 throws com.liferay.portal.NoSuchUserNotificationEventException; 836 837 /** 838 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ?. 839 * 840 * @param userId the user ID 841 * @param deliveryType the delivery type 842 * @param delivered the delivered 843 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 844 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 845 */ 846 public UserNotificationEvent fetchByU_DT_D_First(long userId, 847 int deliveryType, boolean delivered, 848 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 849 850 /** 851 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ?. 852 * 853 * @param userId the user ID 854 * @param deliveryType the delivery type 855 * @param delivered the delivered 856 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 857 * @return the last matching user notification event 858 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 859 */ 860 public UserNotificationEvent findByU_DT_D_Last(long userId, 861 int deliveryType, boolean delivered, 862 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 863 throws com.liferay.portal.NoSuchUserNotificationEventException; 864 865 /** 866 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ?. 867 * 868 * @param userId the user ID 869 * @param deliveryType the delivery type 870 * @param delivered the delivered 871 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 872 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 873 */ 874 public UserNotificationEvent fetchByU_DT_D_Last(long userId, 875 int deliveryType, boolean delivered, 876 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 877 878 /** 879 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ?. 880 * 881 * @param userNotificationEventId the primary key of the current user notification event 882 * @param userId the user ID 883 * @param deliveryType the delivery type 884 * @param delivered the delivered 885 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 886 * @return the previous, current, and next user notification event 887 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 888 */ 889 public UserNotificationEvent[] findByU_DT_D_PrevAndNext( 890 long userNotificationEventId, long userId, int deliveryType, 891 boolean delivered, 892 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 893 throws com.liferay.portal.NoSuchUserNotificationEventException; 894 895 /** 896 * Removes all the user notification events where userId = ? and deliveryType = ? and delivered = ? from the database. 897 * 898 * @param userId the user ID 899 * @param deliveryType the delivery type 900 * @param delivered the delivered 901 */ 902 public void removeByU_DT_D(long userId, int deliveryType, boolean delivered); 903 904 /** 905 * Returns the number of user notification events where userId = ? and deliveryType = ? and delivered = ?. 906 * 907 * @param userId the user ID 908 * @param deliveryType the delivery type 909 * @param delivered the delivered 910 * @return the number of matching user notification events 911 */ 912 public int countByU_DT_D(long userId, int deliveryType, boolean delivered); 913 914 /** 915 * Returns all the user notification events where userId = ? and deliveryType = ? and archived = ?. 916 * 917 * @param userId the user ID 918 * @param deliveryType the delivery type 919 * @param archived the archived 920 * @return the matching user notification events 921 */ 922 public java.util.List<UserNotificationEvent> findByU_DT_A(long userId, 923 int deliveryType, boolean archived); 924 925 /** 926 * Returns a range of all the user notification events where userId = ? and deliveryType = ? and archived = ?. 927 * 928 * <p> 929 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 930 * </p> 931 * 932 * @param userId the user ID 933 * @param deliveryType the delivery type 934 * @param archived the archived 935 * @param start the lower bound of the range of user notification events 936 * @param end the upper bound of the range of user notification events (not inclusive) 937 * @return the range of matching user notification events 938 */ 939 public java.util.List<UserNotificationEvent> findByU_DT_A(long userId, 940 int deliveryType, boolean archived, int start, int end); 941 942 /** 943 * Returns an ordered range of all the user notification events where userId = ? and deliveryType = ? and archived = ?. 944 * 945 * <p> 946 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 947 * </p> 948 * 949 * @param userId the user ID 950 * @param deliveryType the delivery type 951 * @param archived the archived 952 * @param start the lower bound of the range of user notification events 953 * @param end the upper bound of the range of user notification events (not inclusive) 954 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 955 * @return the ordered range of matching user notification events 956 */ 957 public java.util.List<UserNotificationEvent> findByU_DT_A(long userId, 958 int deliveryType, boolean archived, int start, int end, 959 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 960 961 /** 962 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and archived = ?. 963 * 964 * @param userId the user ID 965 * @param deliveryType the delivery type 966 * @param archived the archived 967 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 968 * @return the first matching user notification event 969 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 970 */ 971 public UserNotificationEvent findByU_DT_A_First(long userId, 972 int deliveryType, boolean archived, 973 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 974 throws com.liferay.portal.NoSuchUserNotificationEventException; 975 976 /** 977 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and archived = ?. 978 * 979 * @param userId the user ID 980 * @param deliveryType the delivery type 981 * @param archived the archived 982 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 983 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 984 */ 985 public UserNotificationEvent fetchByU_DT_A_First(long userId, 986 int deliveryType, boolean archived, 987 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 988 989 /** 990 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and archived = ?. 991 * 992 * @param userId the user ID 993 * @param deliveryType the delivery type 994 * @param archived the archived 995 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 996 * @return the last matching user notification event 997 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 998 */ 999 public UserNotificationEvent findByU_DT_A_Last(long userId, 1000 int deliveryType, boolean archived, 1001 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1002 throws com.liferay.portal.NoSuchUserNotificationEventException; 1003 1004 /** 1005 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and archived = ?. 1006 * 1007 * @param userId the user ID 1008 * @param deliveryType the delivery type 1009 * @param archived the archived 1010 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1011 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 1012 */ 1013 public UserNotificationEvent fetchByU_DT_A_Last(long userId, 1014 int deliveryType, boolean archived, 1015 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1016 1017 /** 1018 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and deliveryType = ? and archived = ?. 1019 * 1020 * @param userNotificationEventId the primary key of the current user notification event 1021 * @param userId the user ID 1022 * @param deliveryType the delivery type 1023 * @param archived the archived 1024 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1025 * @return the previous, current, and next user notification event 1026 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1027 */ 1028 public UserNotificationEvent[] findByU_DT_A_PrevAndNext( 1029 long userNotificationEventId, long userId, int deliveryType, 1030 boolean archived, 1031 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1032 throws com.liferay.portal.NoSuchUserNotificationEventException; 1033 1034 /** 1035 * Removes all the user notification events where userId = ? and deliveryType = ? and archived = ? from the database. 1036 * 1037 * @param userId the user ID 1038 * @param deliveryType the delivery type 1039 * @param archived the archived 1040 */ 1041 public void removeByU_DT_A(long userId, int deliveryType, boolean archived); 1042 1043 /** 1044 * Returns the number of user notification events where userId = ? and deliveryType = ? and archived = ?. 1045 * 1046 * @param userId the user ID 1047 * @param deliveryType the delivery type 1048 * @param archived the archived 1049 * @return the number of matching user notification events 1050 */ 1051 public int countByU_DT_A(long userId, int deliveryType, boolean archived); 1052 1053 /** 1054 * Returns all the user notification events where userId = ? and delivered = ? and actionRequired = ?. 1055 * 1056 * @param userId the user ID 1057 * @param delivered the delivered 1058 * @param actionRequired the action required 1059 * @return the matching user notification events 1060 */ 1061 public java.util.List<UserNotificationEvent> findByU_D_A(long userId, 1062 boolean delivered, boolean actionRequired); 1063 1064 /** 1065 * Returns a range of all the user notification events where userId = ? and delivered = ? and actionRequired = ?. 1066 * 1067 * <p> 1068 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1069 * </p> 1070 * 1071 * @param userId the user ID 1072 * @param delivered the delivered 1073 * @param actionRequired the action required 1074 * @param start the lower bound of the range of user notification events 1075 * @param end the upper bound of the range of user notification events (not inclusive) 1076 * @return the range of matching user notification events 1077 */ 1078 public java.util.List<UserNotificationEvent> findByU_D_A(long userId, 1079 boolean delivered, boolean actionRequired, int start, int end); 1080 1081 /** 1082 * Returns an ordered range of all the user notification events where userId = ? and delivered = ? and actionRequired = ?. 1083 * 1084 * <p> 1085 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1086 * </p> 1087 * 1088 * @param userId the user ID 1089 * @param delivered the delivered 1090 * @param actionRequired the action required 1091 * @param start the lower bound of the range of user notification events 1092 * @param end the upper bound of the range of user notification events (not inclusive) 1093 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1094 * @return the ordered range of matching user notification events 1095 */ 1096 public java.util.List<UserNotificationEvent> findByU_D_A(long userId, 1097 boolean delivered, boolean actionRequired, int start, int end, 1098 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1099 1100 /** 1101 * Returns the first user notification event in the ordered set where userId = ? and delivered = ? and actionRequired = ?. 1102 * 1103 * @param userId the user ID 1104 * @param delivered the delivered 1105 * @param actionRequired the action required 1106 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1107 * @return the first matching user notification event 1108 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1109 */ 1110 public UserNotificationEvent findByU_D_A_First(long userId, 1111 boolean delivered, boolean actionRequired, 1112 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1113 throws com.liferay.portal.NoSuchUserNotificationEventException; 1114 1115 /** 1116 * Returns the first user notification event in the ordered set where userId = ? and delivered = ? and actionRequired = ?. 1117 * 1118 * @param userId the user ID 1119 * @param delivered the delivered 1120 * @param actionRequired the action required 1121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1122 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 1123 */ 1124 public UserNotificationEvent fetchByU_D_A_First(long userId, 1125 boolean delivered, boolean actionRequired, 1126 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1127 1128 /** 1129 * Returns the last user notification event in the ordered set where userId = ? and delivered = ? and actionRequired = ?. 1130 * 1131 * @param userId the user ID 1132 * @param delivered the delivered 1133 * @param actionRequired the action required 1134 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1135 * @return the last matching user notification event 1136 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1137 */ 1138 public UserNotificationEvent findByU_D_A_Last(long userId, 1139 boolean delivered, boolean actionRequired, 1140 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1141 throws com.liferay.portal.NoSuchUserNotificationEventException; 1142 1143 /** 1144 * Returns the last user notification event in the ordered set where userId = ? and delivered = ? and actionRequired = ?. 1145 * 1146 * @param userId the user ID 1147 * @param delivered the delivered 1148 * @param actionRequired the action required 1149 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1150 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 1151 */ 1152 public UserNotificationEvent fetchByU_D_A_Last(long userId, 1153 boolean delivered, boolean actionRequired, 1154 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1155 1156 /** 1157 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and delivered = ? and actionRequired = ?. 1158 * 1159 * @param userNotificationEventId the primary key of the current user notification event 1160 * @param userId the user ID 1161 * @param delivered the delivered 1162 * @param actionRequired the action required 1163 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1164 * @return the previous, current, and next user notification event 1165 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1166 */ 1167 public UserNotificationEvent[] findByU_D_A_PrevAndNext( 1168 long userNotificationEventId, long userId, boolean delivered, 1169 boolean actionRequired, 1170 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1171 throws com.liferay.portal.NoSuchUserNotificationEventException; 1172 1173 /** 1174 * Removes all the user notification events where userId = ? and delivered = ? and actionRequired = ? from the database. 1175 * 1176 * @param userId the user ID 1177 * @param delivered the delivered 1178 * @param actionRequired the action required 1179 */ 1180 public void removeByU_D_A(long userId, boolean delivered, 1181 boolean actionRequired); 1182 1183 /** 1184 * Returns the number of user notification events where userId = ? and delivered = ? and actionRequired = ?. 1185 * 1186 * @param userId the user ID 1187 * @param delivered the delivered 1188 * @param actionRequired the action required 1189 * @return the number of matching user notification events 1190 */ 1191 public int countByU_D_A(long userId, boolean delivered, 1192 boolean actionRequired); 1193 1194 /** 1195 * Returns all the user notification events where userId = ? and actionRequired = ? and archived = ?. 1196 * 1197 * @param userId the user ID 1198 * @param actionRequired the action required 1199 * @param archived the archived 1200 * @return the matching user notification events 1201 */ 1202 public java.util.List<UserNotificationEvent> findByU_A_A(long userId, 1203 boolean actionRequired, boolean archived); 1204 1205 /** 1206 * Returns a range of all the user notification events where userId = ? and actionRequired = ? and archived = ?. 1207 * 1208 * <p> 1209 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1210 * </p> 1211 * 1212 * @param userId the user ID 1213 * @param actionRequired the action required 1214 * @param archived the archived 1215 * @param start the lower bound of the range of user notification events 1216 * @param end the upper bound of the range of user notification events (not inclusive) 1217 * @return the range of matching user notification events 1218 */ 1219 public java.util.List<UserNotificationEvent> findByU_A_A(long userId, 1220 boolean actionRequired, boolean archived, int start, int end); 1221 1222 /** 1223 * Returns an ordered range of all the user notification events where userId = ? and actionRequired = ? and archived = ?. 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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 actionRequired the action required 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 java.util.List<UserNotificationEvent> findByU_A_A(long userId, 1238 boolean actionRequired, boolean archived, int start, int end, 1239 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1240 1241 /** 1242 * Returns the first user notification event in the ordered set where userId = ? and actionRequired = ? and archived = ?. 1243 * 1244 * @param userId the user ID 1245 * @param actionRequired the action required 1246 * @param archived the archived 1247 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1248 * @return the first matching user notification event 1249 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1250 */ 1251 public UserNotificationEvent findByU_A_A_First(long userId, 1252 boolean actionRequired, boolean archived, 1253 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1254 throws com.liferay.portal.NoSuchUserNotificationEventException; 1255 1256 /** 1257 * Returns the first user notification event in the ordered set where userId = ? and actionRequired = ? and archived = ?. 1258 * 1259 * @param userId the user ID 1260 * @param actionRequired the action required 1261 * @param archived the archived 1262 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1263 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 1264 */ 1265 public UserNotificationEvent fetchByU_A_A_First(long userId, 1266 boolean actionRequired, boolean archived, 1267 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1268 1269 /** 1270 * Returns the last user notification event in the ordered set where userId = ? and actionRequired = ? and archived = ?. 1271 * 1272 * @param userId the user ID 1273 * @param actionRequired the action required 1274 * @param archived the archived 1275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1276 * @return the last matching user notification event 1277 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1278 */ 1279 public UserNotificationEvent findByU_A_A_Last(long userId, 1280 boolean actionRequired, boolean archived, 1281 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1282 throws com.liferay.portal.NoSuchUserNotificationEventException; 1283 1284 /** 1285 * Returns the last user notification event in the ordered set where userId = ? and actionRequired = ? and archived = ?. 1286 * 1287 * @param userId the user ID 1288 * @param actionRequired the action required 1289 * @param archived the archived 1290 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1291 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 1292 */ 1293 public UserNotificationEvent fetchByU_A_A_Last(long userId, 1294 boolean actionRequired, boolean archived, 1295 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1296 1297 /** 1298 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and actionRequired = ? and archived = ?. 1299 * 1300 * @param userNotificationEventId the primary key of the current user notification event 1301 * @param userId the user ID 1302 * @param actionRequired the action required 1303 * @param archived the archived 1304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1305 * @return the previous, current, and next user notification event 1306 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1307 */ 1308 public UserNotificationEvent[] findByU_A_A_PrevAndNext( 1309 long userNotificationEventId, long userId, boolean actionRequired, 1310 boolean archived, 1311 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1312 throws com.liferay.portal.NoSuchUserNotificationEventException; 1313 1314 /** 1315 * Removes all the user notification events where userId = ? and actionRequired = ? and archived = ? from the database. 1316 * 1317 * @param userId the user ID 1318 * @param actionRequired the action required 1319 * @param archived the archived 1320 */ 1321 public void removeByU_A_A(long userId, boolean actionRequired, 1322 boolean archived); 1323 1324 /** 1325 * Returns the number of user notification events where userId = ? and actionRequired = ? and archived = ?. 1326 * 1327 * @param userId the user ID 1328 * @param actionRequired the action required 1329 * @param archived the archived 1330 * @return the number of matching user notification events 1331 */ 1332 public int countByU_A_A(long userId, boolean actionRequired, 1333 boolean archived); 1334 1335 /** 1336 * Returns all the user notification events where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1337 * 1338 * @param userId the user ID 1339 * @param deliveryType the delivery type 1340 * @param delivered the delivered 1341 * @param actionRequired the action required 1342 * @return the matching user notification events 1343 */ 1344 public java.util.List<UserNotificationEvent> findByU_DT_D_A(long userId, 1345 int deliveryType, boolean delivered, boolean actionRequired); 1346 1347 /** 1348 * Returns a range of all the user notification events where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1349 * 1350 * <p> 1351 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1352 * </p> 1353 * 1354 * @param userId the user ID 1355 * @param deliveryType the delivery type 1356 * @param delivered the delivered 1357 * @param actionRequired the action required 1358 * @param start the lower bound of the range of user notification events 1359 * @param end the upper bound of the range of user notification events (not inclusive) 1360 * @return the range of matching user notification events 1361 */ 1362 public java.util.List<UserNotificationEvent> findByU_DT_D_A(long userId, 1363 int deliveryType, boolean delivered, boolean actionRequired, int start, 1364 int end); 1365 1366 /** 1367 * Returns an ordered range of all the user notification events where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1368 * 1369 * <p> 1370 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1371 * </p> 1372 * 1373 * @param userId the user ID 1374 * @param deliveryType the delivery type 1375 * @param delivered the delivered 1376 * @param actionRequired the action required 1377 * @param start the lower bound of the range of user notification events 1378 * @param end the upper bound of the range of user notification events (not inclusive) 1379 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1380 * @return the ordered range of matching user notification events 1381 */ 1382 public java.util.List<UserNotificationEvent> findByU_DT_D_A(long userId, 1383 int deliveryType, boolean delivered, boolean actionRequired, int start, 1384 int end, 1385 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1386 1387 /** 1388 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1389 * 1390 * @param userId the user ID 1391 * @param deliveryType the delivery type 1392 * @param delivered the delivered 1393 * @param actionRequired the action required 1394 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1395 * @return the first matching user notification event 1396 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1397 */ 1398 public UserNotificationEvent findByU_DT_D_A_First(long userId, 1399 int deliveryType, boolean delivered, boolean actionRequired, 1400 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1401 throws com.liferay.portal.NoSuchUserNotificationEventException; 1402 1403 /** 1404 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1405 * 1406 * @param userId the user ID 1407 * @param deliveryType the delivery type 1408 * @param delivered the delivered 1409 * @param actionRequired the action required 1410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1411 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 1412 */ 1413 public UserNotificationEvent fetchByU_DT_D_A_First(long userId, 1414 int deliveryType, boolean delivered, boolean actionRequired, 1415 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1416 1417 /** 1418 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1419 * 1420 * @param userId the user ID 1421 * @param deliveryType the delivery type 1422 * @param delivered the delivered 1423 * @param actionRequired the action required 1424 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1425 * @return the last matching user notification event 1426 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1427 */ 1428 public UserNotificationEvent findByU_DT_D_A_Last(long userId, 1429 int deliveryType, boolean delivered, boolean actionRequired, 1430 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1431 throws com.liferay.portal.NoSuchUserNotificationEventException; 1432 1433 /** 1434 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1435 * 1436 * @param userId the user ID 1437 * @param deliveryType the delivery type 1438 * @param delivered the delivered 1439 * @param actionRequired the action required 1440 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1441 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 1442 */ 1443 public UserNotificationEvent fetchByU_DT_D_A_Last(long userId, 1444 int deliveryType, boolean delivered, boolean actionRequired, 1445 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1446 1447 /** 1448 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1449 * 1450 * @param userNotificationEventId the primary key of the current user notification event 1451 * @param userId the user ID 1452 * @param deliveryType the delivery type 1453 * @param delivered the delivered 1454 * @param actionRequired the action required 1455 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1456 * @return the previous, current, and next user notification event 1457 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1458 */ 1459 public UserNotificationEvent[] findByU_DT_D_A_PrevAndNext( 1460 long userNotificationEventId, long userId, int deliveryType, 1461 boolean delivered, boolean actionRequired, 1462 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1463 throws com.liferay.portal.NoSuchUserNotificationEventException; 1464 1465 /** 1466 * Removes all the user notification events where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ? from the database. 1467 * 1468 * @param userId the user ID 1469 * @param deliveryType the delivery type 1470 * @param delivered the delivered 1471 * @param actionRequired the action required 1472 */ 1473 public void removeByU_DT_D_A(long userId, int deliveryType, 1474 boolean delivered, boolean actionRequired); 1475 1476 /** 1477 * Returns the number of user notification events where userId = ? and deliveryType = ? and delivered = ? and actionRequired = ?. 1478 * 1479 * @param userId the user ID 1480 * @param deliveryType the delivery type 1481 * @param delivered the delivered 1482 * @param actionRequired the action required 1483 * @return the number of matching user notification events 1484 */ 1485 public int countByU_DT_D_A(long userId, int deliveryType, 1486 boolean delivered, boolean actionRequired); 1487 1488 /** 1489 * Returns all the user notification events where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1490 * 1491 * @param userId the user ID 1492 * @param deliveryType the delivery type 1493 * @param actionRequired the action required 1494 * @param archived the archived 1495 * @return the matching user notification events 1496 */ 1497 public java.util.List<UserNotificationEvent> findByU_DT_A_A(long userId, 1498 int deliveryType, boolean actionRequired, boolean archived); 1499 1500 /** 1501 * Returns a range of all the user notification events where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1502 * 1503 * <p> 1504 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1505 * </p> 1506 * 1507 * @param userId the user ID 1508 * @param deliveryType the delivery type 1509 * @param actionRequired the action required 1510 * @param archived the archived 1511 * @param start the lower bound of the range of user notification events 1512 * @param end the upper bound of the range of user notification events (not inclusive) 1513 * @return the range of matching user notification events 1514 */ 1515 public java.util.List<UserNotificationEvent> findByU_DT_A_A(long userId, 1516 int deliveryType, boolean actionRequired, boolean archived, int start, 1517 int end); 1518 1519 /** 1520 * Returns an ordered range of all the user notification events where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1521 * 1522 * <p> 1523 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1524 * </p> 1525 * 1526 * @param userId the user ID 1527 * @param deliveryType the delivery type 1528 * @param actionRequired the action required 1529 * @param archived the archived 1530 * @param start the lower bound of the range of user notification events 1531 * @param end the upper bound of the range of user notification events (not inclusive) 1532 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1533 * @return the ordered range of matching user notification events 1534 */ 1535 public java.util.List<UserNotificationEvent> findByU_DT_A_A(long userId, 1536 int deliveryType, boolean actionRequired, boolean archived, int start, 1537 int end, 1538 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1539 1540 /** 1541 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1542 * 1543 * @param userId the user ID 1544 * @param deliveryType the delivery type 1545 * @param actionRequired the action required 1546 * @param archived the archived 1547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1548 * @return the first matching user notification event 1549 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1550 */ 1551 public UserNotificationEvent findByU_DT_A_A_First(long userId, 1552 int deliveryType, boolean actionRequired, boolean archived, 1553 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1554 throws com.liferay.portal.NoSuchUserNotificationEventException; 1555 1556 /** 1557 * Returns the first user notification event in the ordered set where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1558 * 1559 * @param userId the user ID 1560 * @param deliveryType the delivery type 1561 * @param actionRequired the action required 1562 * @param archived the archived 1563 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1564 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 1565 */ 1566 public UserNotificationEvent fetchByU_DT_A_A_First(long userId, 1567 int deliveryType, boolean actionRequired, boolean archived, 1568 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1569 1570 /** 1571 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1572 * 1573 * @param userId the user ID 1574 * @param deliveryType the delivery type 1575 * @param actionRequired the action required 1576 * @param archived the archived 1577 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1578 * @return the last matching user notification event 1579 * @throws NoSuchUserNotificationEventException if a matching user notification event could not be found 1580 */ 1581 public UserNotificationEvent findByU_DT_A_A_Last(long userId, 1582 int deliveryType, boolean actionRequired, boolean archived, 1583 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1584 throws com.liferay.portal.NoSuchUserNotificationEventException; 1585 1586 /** 1587 * Returns the last user notification event in the ordered set where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1588 * 1589 * @param userId the user ID 1590 * @param deliveryType the delivery type 1591 * @param actionRequired the action required 1592 * @param archived the archived 1593 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1594 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 1595 */ 1596 public UserNotificationEvent fetchByU_DT_A_A_Last(long userId, 1597 int deliveryType, boolean actionRequired, boolean archived, 1598 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1599 1600 /** 1601 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1602 * 1603 * @param userNotificationEventId the primary key of the current user notification event 1604 * @param userId the user ID 1605 * @param deliveryType the delivery type 1606 * @param actionRequired the action required 1607 * @param archived the archived 1608 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1609 * @return the previous, current, and next user notification event 1610 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1611 */ 1612 public UserNotificationEvent[] findByU_DT_A_A_PrevAndNext( 1613 long userNotificationEventId, long userId, int deliveryType, 1614 boolean actionRequired, boolean archived, 1615 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator) 1616 throws com.liferay.portal.NoSuchUserNotificationEventException; 1617 1618 /** 1619 * Removes all the user notification events where userId = ? and deliveryType = ? and actionRequired = ? and archived = ? from the database. 1620 * 1621 * @param userId the user ID 1622 * @param deliveryType the delivery type 1623 * @param actionRequired the action required 1624 * @param archived the archived 1625 */ 1626 public void removeByU_DT_A_A(long userId, int deliveryType, 1627 boolean actionRequired, boolean archived); 1628 1629 /** 1630 * Returns the number of user notification events where userId = ? and deliveryType = ? and actionRequired = ? and archived = ?. 1631 * 1632 * @param userId the user ID 1633 * @param deliveryType the delivery type 1634 * @param actionRequired the action required 1635 * @param archived the archived 1636 * @return the number of matching user notification events 1637 */ 1638 public int countByU_DT_A_A(long userId, int deliveryType, 1639 boolean actionRequired, boolean archived); 1640 1641 /** 1642 * Caches the user notification event in the entity cache if it is enabled. 1643 * 1644 * @param userNotificationEvent the user notification event 1645 */ 1646 public void cacheResult(UserNotificationEvent userNotificationEvent); 1647 1648 /** 1649 * Caches the user notification events in the entity cache if it is enabled. 1650 * 1651 * @param userNotificationEvents the user notification events 1652 */ 1653 public void cacheResult( 1654 java.util.List<UserNotificationEvent> userNotificationEvents); 1655 1656 /** 1657 * Creates a new user notification event with the primary key. Does not add the user notification event to the database. 1658 * 1659 * @param userNotificationEventId the primary key for the new user notification event 1660 * @return the new user notification event 1661 */ 1662 public UserNotificationEvent create(long userNotificationEventId); 1663 1664 /** 1665 * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners. 1666 * 1667 * @param userNotificationEventId the primary key of the user notification event 1668 * @return the user notification event that was removed 1669 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1670 */ 1671 public UserNotificationEvent remove(long userNotificationEventId) 1672 throws com.liferay.portal.NoSuchUserNotificationEventException; 1673 1674 public UserNotificationEvent updateImpl( 1675 UserNotificationEvent userNotificationEvent); 1676 1677 /** 1678 * Returns the user notification event with the primary key or throws a {@link NoSuchUserNotificationEventException} if it could not be found. 1679 * 1680 * @param userNotificationEventId the primary key of the user notification event 1681 * @return the user notification event 1682 * @throws NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 1683 */ 1684 public UserNotificationEvent findByPrimaryKey(long userNotificationEventId) 1685 throws com.liferay.portal.NoSuchUserNotificationEventException; 1686 1687 /** 1688 * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found. 1689 * 1690 * @param userNotificationEventId the primary key of the user notification event 1691 * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found 1692 */ 1693 public UserNotificationEvent fetchByPrimaryKey(long userNotificationEventId); 1694 1695 @Override 1696 public java.util.Map<java.io.Serializable, UserNotificationEvent> fetchByPrimaryKeys( 1697 java.util.Set<java.io.Serializable> primaryKeys); 1698 1699 /** 1700 * Returns all the user notification events. 1701 * 1702 * @return the user notification events 1703 */ 1704 public java.util.List<UserNotificationEvent> findAll(); 1705 1706 /** 1707 * Returns a range of all the user notification events. 1708 * 1709 * <p> 1710 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1711 * </p> 1712 * 1713 * @param start the lower bound of the range of user notification events 1714 * @param end the upper bound of the range of user notification events (not inclusive) 1715 * @return the range of user notification events 1716 */ 1717 public java.util.List<UserNotificationEvent> findAll(int start, int end); 1718 1719 /** 1720 * Returns an ordered range of all the user notification events. 1721 * 1722 * <p> 1723 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link 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. 1724 * </p> 1725 * 1726 * @param start the lower bound of the range of user notification events 1727 * @param end the upper bound of the range of user notification events (not inclusive) 1728 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1729 * @return the ordered range of user notification events 1730 */ 1731 public java.util.List<UserNotificationEvent> findAll(int start, int end, 1732 com.liferay.portal.kernel.util.OrderByComparator<UserNotificationEvent> orderByComparator); 1733 1734 /** 1735 * Removes all the user notification events from the database. 1736 */ 1737 public void removeAll(); 1738 1739 /** 1740 * Returns the number of user notification events. 1741 * 1742 * @return the number of user notification events 1743 */ 1744 public int countAll(); 1745 }