001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service.persistence; 016 017 import com.liferay.portal.model.UserNotificationEvent; 018 019 /** 020 * The persistence interface for the user notification event service. 021 * 022 * <p> 023 * Caching information and settings can be found in <code>portal.properties</code> 024 * </p> 025 * 026 * @author Brian Wing Shun Chan 027 * @see UserNotificationEventPersistenceImpl 028 * @see UserNotificationEventUtil 029 * @generated 030 */ 031 public interface UserNotificationEventPersistence extends BasePersistence<UserNotificationEvent> { 032 /* 033 * NOTE FOR DEVELOPERS: 034 * 035 * Never modify or reference this interface directly. Always use {@link UserNotificationEventUtil} to access the user notification event persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 036 */ 037 038 /** 039 * Caches the user notification event in the entity cache if it is enabled. 040 * 041 * @param userNotificationEvent the user notification event 042 */ 043 public void cacheResult( 044 com.liferay.portal.model.UserNotificationEvent userNotificationEvent); 045 046 /** 047 * Caches the user notification events in the entity cache if it is enabled. 048 * 049 * @param userNotificationEvents the user notification events 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portal.model.UserNotificationEvent> userNotificationEvents); 053 054 /** 055 * Creates a new user notification event with the primary key. Does not add the user notification event to the database. 056 * 057 * @param userNotificationEventId the primary key for the new user notification event 058 * @return the new user notification event 059 */ 060 public com.liferay.portal.model.UserNotificationEvent create( 061 long userNotificationEventId); 062 063 /** 064 * Removes the user notification event with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param userNotificationEventId the primary key of the user notification event 067 * @return the user notification event that was removed 068 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portal.model.UserNotificationEvent remove( 072 long userNotificationEventId) 073 throws com.liferay.portal.NoSuchUserNotificationEventException, 074 com.liferay.portal.kernel.exception.SystemException; 075 076 public com.liferay.portal.model.UserNotificationEvent updateImpl( 077 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the user notification event with the primary key or throws a {@link com.liferay.portal.NoSuchUserNotificationEventException} if it could not be found. 082 * 083 * @param userNotificationEventId the primary key of the user notification event 084 * @return the user notification event 085 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portal.model.UserNotificationEvent findByPrimaryKey( 089 long userNotificationEventId) 090 throws com.liferay.portal.NoSuchUserNotificationEventException, 091 com.liferay.portal.kernel.exception.SystemException; 092 093 /** 094 * Returns the user notification event with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param userNotificationEventId the primary key of the user notification event 097 * @return the user notification event, or <code>null</code> if a user notification event with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portal.model.UserNotificationEvent fetchByPrimaryKey( 101 long userNotificationEventId) 102 throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the user notification events where uuid = ?. 106 * 107 * @param uuid the uuid 108 * @return the matching user notification events 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 112 java.lang.String uuid) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns a range of all the user notification events where uuid = ?. 117 * 118 * <p> 119 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 120 * </p> 121 * 122 * @param uuid the uuid 123 * @param start the lower bound of the range of user notification events 124 * @param end the upper bound of the range of user notification events (not inclusive) 125 * @return the range of matching user notification events 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 129 java.lang.String uuid, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Returns an ordered range of all the user notification events where uuid = ?. 134 * 135 * <p> 136 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 137 * </p> 138 * 139 * @param uuid the uuid 140 * @param start the lower bound of the range of user notification events 141 * @param end the upper bound of the range of user notification events (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching user notification events 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid( 147 java.lang.String uuid, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Returns the first user notification event in the ordered set where uuid = ?. 153 * 154 * @param uuid the uuid 155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 156 * @return the first matching user notification event 157 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public com.liferay.portal.model.UserNotificationEvent findByUuid_First( 161 java.lang.String uuid, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.NoSuchUserNotificationEventException, 164 com.liferay.portal.kernel.exception.SystemException; 165 166 /** 167 * Returns the first user notification event in the ordered set where uuid = ?. 168 * 169 * @param uuid the uuid 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public com.liferay.portal.model.UserNotificationEvent fetchByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException; 178 179 /** 180 * Returns the last user notification event in the ordered set where uuid = ?. 181 * 182 * @param uuid the uuid 183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 184 * @return the last matching user notification event 185 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public com.liferay.portal.model.UserNotificationEvent findByUuid_Last( 189 java.lang.String uuid, 190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 191 throws com.liferay.portal.NoSuchUserNotificationEventException, 192 com.liferay.portal.kernel.exception.SystemException; 193 194 /** 195 * Returns the last user notification event in the ordered set where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 public com.liferay.portal.model.UserNotificationEvent fetchByUuid_Last( 203 java.lang.String uuid, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ?. 209 * 210 * @param userNotificationEventId the primary key of the current user notification event 211 * @param uuid the uuid 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the previous, current, and next user notification event 214 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portal.model.UserNotificationEvent[] findByUuid_PrevAndNext( 218 long userNotificationEventId, java.lang.String uuid, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.NoSuchUserNotificationEventException, 221 com.liferay.portal.kernel.exception.SystemException; 222 223 /** 224 * Returns all the user notification events where uuid = ? and companyId = ?. 225 * 226 * @param uuid the uuid 227 * @param companyId the company ID 228 * @return the matching user notification events 229 * @throws SystemException if a system exception occurred 230 */ 231 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 232 java.lang.String uuid, long companyId) 233 throws com.liferay.portal.kernel.exception.SystemException; 234 235 /** 236 * Returns a range of all the user notification events where uuid = ? and companyId = ?. 237 * 238 * <p> 239 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 240 * </p> 241 * 242 * @param uuid the uuid 243 * @param companyId the company ID 244 * @param start the lower bound of the range of user notification events 245 * @param end the upper bound of the range of user notification events (not inclusive) 246 * @return the range of matching user notification events 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 250 java.lang.String uuid, long companyId, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the user notification events where uuid = ? and companyId = ?. 255 * 256 * <p> 257 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 258 * </p> 259 * 260 * @param uuid the uuid 261 * @param companyId the company ID 262 * @param start the lower bound of the range of user notification events 263 * @param end the upper bound of the range of user notification events (not inclusive) 264 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 265 * @return the ordered range of matching user notification events 266 * @throws SystemException if a system exception occurred 267 */ 268 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUuid_C( 269 java.lang.String uuid, long companyId, int start, int end, 270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 275 * 276 * @param uuid the uuid 277 * @param companyId the company ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the first matching user notification event 280 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public com.liferay.portal.model.UserNotificationEvent findByUuid_C_First( 284 java.lang.String uuid, long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.NoSuchUserNotificationEventException, 287 com.liferay.portal.kernel.exception.SystemException; 288 289 /** 290 * Returns the first user notification event in the ordered set where uuid = ? and companyId = ?. 291 * 292 * @param uuid the uuid 293 * @param companyId the company ID 294 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 295 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 296 * @throws SystemException if a system exception occurred 297 */ 298 public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_First( 299 java.lang.String uuid, long companyId, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.kernel.exception.SystemException; 302 303 /** 304 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 305 * 306 * @param uuid the uuid 307 * @param companyId the company ID 308 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 309 * @return the last matching user notification event 310 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 311 * @throws SystemException if a system exception occurred 312 */ 313 public com.liferay.portal.model.UserNotificationEvent findByUuid_C_Last( 314 java.lang.String uuid, long companyId, 315 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 316 throws com.liferay.portal.NoSuchUserNotificationEventException, 317 com.liferay.portal.kernel.exception.SystemException; 318 319 /** 320 * Returns the last user notification event in the ordered set where uuid = ? and companyId = ?. 321 * 322 * @param uuid the uuid 323 * @param companyId the company ID 324 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 325 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 326 * @throws SystemException if a system exception occurred 327 */ 328 public com.liferay.portal.model.UserNotificationEvent fetchByUuid_C_Last( 329 java.lang.String uuid, long companyId, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.kernel.exception.SystemException; 332 333 /** 334 * Returns the user notification events before and after the current user notification event in the ordered set where uuid = ? and companyId = ?. 335 * 336 * @param userNotificationEventId the primary key of the current user notification event 337 * @param uuid the uuid 338 * @param companyId the company ID 339 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 340 * @return the previous, current, and next user notification event 341 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 342 * @throws SystemException if a system exception occurred 343 */ 344 public com.liferay.portal.model.UserNotificationEvent[] findByUuid_C_PrevAndNext( 345 long userNotificationEventId, java.lang.String uuid, long companyId, 346 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 347 throws com.liferay.portal.NoSuchUserNotificationEventException, 348 com.liferay.portal.kernel.exception.SystemException; 349 350 /** 351 * Returns all the user notification events where userId = ?. 352 * 353 * @param userId the user ID 354 * @return the matching user notification events 355 * @throws SystemException if a system exception occurred 356 */ 357 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 358 long userId) throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Returns a range of all the user notification events where userId = ?. 362 * 363 * <p> 364 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 365 * </p> 366 * 367 * @param userId the user ID 368 * @param start the lower bound of the range of user notification events 369 * @param end the upper bound of the range of user notification events (not inclusive) 370 * @return the range of matching user notification events 371 * @throws SystemException if a system exception occurred 372 */ 373 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 374 long userId, int start, int end) 375 throws com.liferay.portal.kernel.exception.SystemException; 376 377 /** 378 * Returns an ordered range of all the user notification events where userId = ?. 379 * 380 * <p> 381 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 382 * </p> 383 * 384 * @param userId the user ID 385 * @param start the lower bound of the range of user notification events 386 * @param end the upper bound of the range of user notification events (not inclusive) 387 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 388 * @return the ordered range of matching user notification events 389 * @throws SystemException if a system exception occurred 390 */ 391 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByUserId( 392 long userId, int start, int end, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException; 395 396 /** 397 * Returns the first user notification event in the ordered set where userId = ?. 398 * 399 * @param userId the user ID 400 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 401 * @return the first matching user notification event 402 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 403 * @throws SystemException if a system exception occurred 404 */ 405 public com.liferay.portal.model.UserNotificationEvent findByUserId_First( 406 long userId, 407 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 408 throws com.liferay.portal.NoSuchUserNotificationEventException, 409 com.liferay.portal.kernel.exception.SystemException; 410 411 /** 412 * Returns the first user notification event in the ordered set where userId = ?. 413 * 414 * @param userId the user ID 415 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 416 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 417 * @throws SystemException if a system exception occurred 418 */ 419 public com.liferay.portal.model.UserNotificationEvent fetchByUserId_First( 420 long userId, 421 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 422 throws com.liferay.portal.kernel.exception.SystemException; 423 424 /** 425 * Returns the last user notification event in the ordered set where userId = ?. 426 * 427 * @param userId the user ID 428 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 429 * @return the last matching user notification event 430 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 431 * @throws SystemException if a system exception occurred 432 */ 433 public com.liferay.portal.model.UserNotificationEvent findByUserId_Last( 434 long userId, 435 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 436 throws com.liferay.portal.NoSuchUserNotificationEventException, 437 com.liferay.portal.kernel.exception.SystemException; 438 439 /** 440 * Returns the last user notification event in the ordered set where userId = ?. 441 * 442 * @param userId the user ID 443 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 444 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 445 * @throws SystemException if a system exception occurred 446 */ 447 public com.liferay.portal.model.UserNotificationEvent fetchByUserId_Last( 448 long userId, 449 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 450 throws com.liferay.portal.kernel.exception.SystemException; 451 452 /** 453 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ?. 454 * 455 * @param userNotificationEventId the primary key of the current user notification event 456 * @param userId the user ID 457 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 458 * @return the previous, current, and next user notification event 459 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portal.model.UserNotificationEvent[] findByUserId_PrevAndNext( 463 long userNotificationEventId, long userId, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.NoSuchUserNotificationEventException, 466 com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Returns all the user notification events where userId = ? and archived = ?. 470 * 471 * @param userId the user ID 472 * @param archived the archived 473 * @return the matching user notification events 474 * @throws SystemException if a system exception occurred 475 */ 476 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 477 long userId, boolean archived) 478 throws com.liferay.portal.kernel.exception.SystemException; 479 480 /** 481 * Returns a range of all the user notification events where userId = ? and archived = ?. 482 * 483 * <p> 484 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 485 * </p> 486 * 487 * @param userId the user ID 488 * @param archived the archived 489 * @param start the lower bound of the range of user notification events 490 * @param end the upper bound of the range of user notification events (not inclusive) 491 * @return the range of matching user notification events 492 * @throws SystemException if a system exception occurred 493 */ 494 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 495 long userId, boolean archived, int start, int end) 496 throws com.liferay.portal.kernel.exception.SystemException; 497 498 /** 499 * Returns an ordered range of all the user notification events where userId = ? and archived = ?. 500 * 501 * <p> 502 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 503 * </p> 504 * 505 * @param userId the user ID 506 * @param archived the archived 507 * @param start the lower bound of the range of user notification events 508 * @param end the upper bound of the range of user notification events (not inclusive) 509 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 510 * @return the ordered range of matching user notification events 511 * @throws SystemException if a system exception occurred 512 */ 513 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findByU_A( 514 long userId, boolean archived, int start, int end, 515 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 520 * 521 * @param userId the user ID 522 * @param archived the archived 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the first matching user notification event 525 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portal.model.UserNotificationEvent findByU_A_First( 529 long userId, boolean archived, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.NoSuchUserNotificationEventException, 532 com.liferay.portal.kernel.exception.SystemException; 533 534 /** 535 * Returns the first user notification event in the ordered set where userId = ? and archived = ?. 536 * 537 * @param userId the user ID 538 * @param archived the archived 539 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 540 * @return the first matching user notification event, or <code>null</code> if a matching user notification event could not be found 541 * @throws SystemException if a system exception occurred 542 */ 543 public com.liferay.portal.model.UserNotificationEvent fetchByU_A_First( 544 long userId, boolean archived, 545 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 550 * 551 * @param userId the user ID 552 * @param archived the archived 553 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 554 * @return the last matching user notification event 555 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a matching user notification event could not be found 556 * @throws SystemException if a system exception occurred 557 */ 558 public com.liferay.portal.model.UserNotificationEvent findByU_A_Last( 559 long userId, boolean archived, 560 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 561 throws com.liferay.portal.NoSuchUserNotificationEventException, 562 com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Returns the last user notification event in the ordered set where userId = ? and archived = ?. 566 * 567 * @param userId the user ID 568 * @param archived the archived 569 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 570 * @return the last matching user notification event, or <code>null</code> if a matching user notification event could not be found 571 * @throws SystemException if a system exception occurred 572 */ 573 public com.liferay.portal.model.UserNotificationEvent fetchByU_A_Last( 574 long userId, boolean archived, 575 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 576 throws com.liferay.portal.kernel.exception.SystemException; 577 578 /** 579 * Returns the user notification events before and after the current user notification event in the ordered set where userId = ? and archived = ?. 580 * 581 * @param userNotificationEventId the primary key of the current user notification event 582 * @param userId the user ID 583 * @param archived the archived 584 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 585 * @return the previous, current, and next user notification event 586 * @throws com.liferay.portal.NoSuchUserNotificationEventException if a user notification event with the primary key could not be found 587 * @throws SystemException if a system exception occurred 588 */ 589 public com.liferay.portal.model.UserNotificationEvent[] findByU_A_PrevAndNext( 590 long userNotificationEventId, long userId, boolean archived, 591 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 592 throws com.liferay.portal.NoSuchUserNotificationEventException, 593 com.liferay.portal.kernel.exception.SystemException; 594 595 /** 596 * Returns all the user notification events. 597 * 598 * @return the user notification events 599 * @throws SystemException if a system exception occurred 600 */ 601 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll() 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Returns a range of all the user notification events. 606 * 607 * <p> 608 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 609 * </p> 610 * 611 * @param start the lower bound of the range of user notification events 612 * @param end the upper bound of the range of user notification events (not inclusive) 613 * @return the range of user notification events 614 * @throws SystemException if a system exception occurred 615 */ 616 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll( 617 int start, int end) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Returns an ordered range of all the user notification events. 622 * 623 * <p> 624 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 625 * </p> 626 * 627 * @param start the lower bound of the range of user notification events 628 * @param end the upper bound of the range of user notification events (not inclusive) 629 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 630 * @return the ordered range of user notification events 631 * @throws SystemException if a system exception occurred 632 */ 633 public java.util.List<com.liferay.portal.model.UserNotificationEvent> findAll( 634 int start, int end, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Removes all the user notification events where uuid = ? from the database. 640 * 641 * @param uuid the uuid 642 * @throws SystemException if a system exception occurred 643 */ 644 public void removeByUuid(java.lang.String uuid) 645 throws com.liferay.portal.kernel.exception.SystemException; 646 647 /** 648 * Removes all the user notification events where uuid = ? and companyId = ? from the database. 649 * 650 * @param uuid the uuid 651 * @param companyId the company ID 652 * @throws SystemException if a system exception occurred 653 */ 654 public void removeByUuid_C(java.lang.String uuid, long companyId) 655 throws com.liferay.portal.kernel.exception.SystemException; 656 657 /** 658 * Removes all the user notification events where userId = ? from the database. 659 * 660 * @param userId the user ID 661 * @throws SystemException if a system exception occurred 662 */ 663 public void removeByUserId(long userId) 664 throws com.liferay.portal.kernel.exception.SystemException; 665 666 /** 667 * Removes all the user notification events where userId = ? and archived = ? from the database. 668 * 669 * @param userId the user ID 670 * @param archived the archived 671 * @throws SystemException if a system exception occurred 672 */ 673 public void removeByU_A(long userId, boolean archived) 674 throws com.liferay.portal.kernel.exception.SystemException; 675 676 /** 677 * Removes all the user notification events from the database. 678 * 679 * @throws SystemException if a system exception occurred 680 */ 681 public void removeAll() 682 throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Returns the number of user notification events where uuid = ?. 686 * 687 * @param uuid the uuid 688 * @return the number of matching user notification events 689 * @throws SystemException if a system exception occurred 690 */ 691 public int countByUuid(java.lang.String uuid) 692 throws com.liferay.portal.kernel.exception.SystemException; 693 694 /** 695 * Returns the number of user notification events where uuid = ? and companyId = ?. 696 * 697 * @param uuid the uuid 698 * @param companyId the company ID 699 * @return the number of matching user notification events 700 * @throws SystemException if a system exception occurred 701 */ 702 public int countByUuid_C(java.lang.String uuid, long companyId) 703 throws com.liferay.portal.kernel.exception.SystemException; 704 705 /** 706 * Returns the number of user notification events where userId = ?. 707 * 708 * @param userId the user ID 709 * @return the number of matching user notification events 710 * @throws SystemException if a system exception occurred 711 */ 712 public int countByUserId(long userId) 713 throws com.liferay.portal.kernel.exception.SystemException; 714 715 /** 716 * Returns the number of user notification events where userId = ? and archived = ?. 717 * 718 * @param userId the user ID 719 * @param archived the archived 720 * @return the number of matching user notification events 721 * @throws SystemException if a system exception occurred 722 */ 723 public int countByU_A(long userId, boolean archived) 724 throws com.liferay.portal.kernel.exception.SystemException; 725 726 /** 727 * Returns the number of user notification events. 728 * 729 * @return the number of user notification events 730 * @throws SystemException if a system exception occurred 731 */ 732 public int countAll() 733 throws com.liferay.portal.kernel.exception.SystemException; 734 }