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.portlet.announcements.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.announcements.model.AnnouncementsEntry; 020 021 /** 022 * The persistence interface for the announcements entry 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 AnnouncementsEntryPersistenceImpl 030 * @see AnnouncementsEntryUtil 031 * @generated 032 */ 033 public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link AnnouncementsEntryUtil} to access the announcements entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the announcements entry in the entity cache if it is enabled. 042 * 043 * @param announcementsEntry the announcements entry 044 */ 045 public void cacheResult( 046 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry); 047 048 /** 049 * Caches the announcements entries in the entity cache if it is enabled. 050 * 051 * @param announcementsEntries the announcements entries 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries); 055 056 /** 057 * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database. 058 * 059 * @param entryId the primary key for the new announcements entry 060 * @return the new announcements entry 061 */ 062 public com.liferay.portlet.announcements.model.AnnouncementsEntry create( 063 long entryId); 064 065 /** 066 * Removes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param entryId the primary key of the announcements entry 069 * @return the announcements entry that was removed 070 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.announcements.model.AnnouncementsEntry remove( 074 long entryId) 075 throws com.liferay.portal.kernel.exception.SystemException, 076 com.liferay.portlet.announcements.NoSuchEntryException; 077 078 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl( 079 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Returns the announcements entry with the primary key or throws a {@link com.liferay.portlet.announcements.NoSuchEntryException} if it could not be found. 084 * 085 * @param entryId the primary key of the announcements entry 086 * @return the announcements entry 087 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey( 091 long entryId) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.announcements.NoSuchEntryException; 094 095 /** 096 * Returns the announcements entry with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param entryId the primary key of the announcements entry 099 * @return the announcements entry, or <code>null</code> if a announcements entry with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey( 103 long entryId) 104 throws com.liferay.portal.kernel.exception.SystemException; 105 106 /** 107 * Returns all the announcements entries where uuid = ?. 108 * 109 * @param uuid the uuid 110 * @return the matching announcements entries 111 * @throws SystemException if a system exception occurred 112 */ 113 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 114 java.lang.String uuid) 115 throws com.liferay.portal.kernel.exception.SystemException; 116 117 /** 118 * Returns a range of all the announcements entries where uuid = ?. 119 * 120 * <p> 121 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 122 * </p> 123 * 124 * @param uuid the uuid 125 * @param start the lower bound of the range of announcements entries 126 * @param end the upper bound of the range of announcements entries (not inclusive) 127 * @return the range of matching announcements entries 128 * @throws SystemException if a system exception occurred 129 */ 130 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 131 java.lang.String uuid, int start, int end) 132 throws com.liferay.portal.kernel.exception.SystemException; 133 134 /** 135 * Returns an ordered range of all the announcements entries where uuid = ?. 136 * 137 * <p> 138 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 139 * </p> 140 * 141 * @param uuid the uuid 142 * @param start the lower bound of the range of announcements entries 143 * @param end the upper bound of the range of announcements entries (not inclusive) 144 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 145 * @return the ordered range of matching announcements entries 146 * @throws SystemException if a system exception occurred 147 */ 148 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 149 java.lang.String uuid, int start, int end, 150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 151 throws com.liferay.portal.kernel.exception.SystemException; 152 153 /** 154 * Returns the first announcements entry in the ordered set where uuid = ?. 155 * 156 * @param uuid the uuid 157 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 158 * @return the first matching announcements entry 159 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 160 * @throws SystemException if a system exception occurred 161 */ 162 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First( 163 java.lang.String uuid, 164 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 165 throws com.liferay.portal.kernel.exception.SystemException, 166 com.liferay.portlet.announcements.NoSuchEntryException; 167 168 /** 169 * Returns the first announcements entry in the ordered set where uuid = ?. 170 * 171 * @param uuid the uuid 172 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 173 * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 174 * @throws SystemException if a system exception occurred 175 */ 176 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_First( 177 java.lang.String uuid, 178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 179 throws com.liferay.portal.kernel.exception.SystemException; 180 181 /** 182 * Returns the last announcements entry in the ordered set where uuid = ?. 183 * 184 * @param uuid the uuid 185 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 186 * @return the last matching announcements entry 187 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 188 * @throws SystemException if a system exception occurred 189 */ 190 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last( 191 java.lang.String uuid, 192 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 193 throws com.liferay.portal.kernel.exception.SystemException, 194 com.liferay.portlet.announcements.NoSuchEntryException; 195 196 /** 197 * Returns the last announcements entry in the ordered set where uuid = ?. 198 * 199 * @param uuid the uuid 200 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 201 * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_Last( 205 java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException; 208 209 /** 210 * Returns the announcements entries before and after the current announcements entry in the ordered set where uuid = ?. 211 * 212 * @param entryId the primary key of the current announcements entry 213 * @param uuid the uuid 214 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 215 * @return the previous, current, and next announcements entry 216 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext( 220 long entryId, java.lang.String uuid, 221 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 222 throws com.liferay.portal.kernel.exception.SystemException, 223 com.liferay.portlet.announcements.NoSuchEntryException; 224 225 /** 226 * Returns all the announcements entries that the user has permission to view where uuid = ?. 227 * 228 * @param uuid the uuid 229 * @return the matching announcements entries that the user has permission to view 230 * @throws SystemException if a system exception occurred 231 */ 232 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 233 java.lang.String uuid) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Returns a range of all the announcements entries that the user has permission to view where uuid = ?. 238 * 239 * <p> 240 * 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. 241 * </p> 242 * 243 * @param uuid the uuid 244 * @param start the lower bound of the range of announcements entries 245 * @param end the upper bound of the range of announcements entries (not inclusive) 246 * @return the range of matching announcements entries that the user has permission to view 247 * @throws SystemException if a system exception occurred 248 */ 249 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 250 java.lang.String uuid, int start, int end) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Returns an ordered range of all the announcements entries that the user has permissions to view where uuid = ?. 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 start the lower bound of the range of announcements entries 262 * @param end the upper bound of the range of announcements entries (not inclusive) 263 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 264 * @return the ordered range of matching announcements entries that the user has permission to view 265 * @throws SystemException if a system exception occurred 266 */ 267 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 268 java.lang.String uuid, int start, int end, 269 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 270 throws com.liferay.portal.kernel.exception.SystemException; 271 272 /** 273 * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where uuid = ?. 274 * 275 * @param entryId the primary key of the current announcements entry 276 * @param uuid the uuid 277 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 278 * @return the previous, current, and next announcements entry 279 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 280 * @throws SystemException if a system exception occurred 281 */ 282 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUuid_PrevAndNext( 283 long entryId, java.lang.String uuid, 284 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 285 throws com.liferay.portal.kernel.exception.SystemException, 286 com.liferay.portlet.announcements.NoSuchEntryException; 287 288 /** 289 * Returns all the announcements entries where uuid = ? and companyId = ?. 290 * 291 * @param uuid the uuid 292 * @param companyId the company ID 293 * @return the matching announcements entries 294 * @throws SystemException if a system exception occurred 295 */ 296 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid_C( 297 java.lang.String uuid, long companyId) 298 throws com.liferay.portal.kernel.exception.SystemException; 299 300 /** 301 * Returns a range of all the announcements entries where uuid = ? and companyId = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param uuid the uuid 308 * @param companyId the company ID 309 * @param start the lower bound of the range of announcements entries 310 * @param end the upper bound of the range of announcements entries (not inclusive) 311 * @return the range of matching announcements entries 312 * @throws SystemException if a system exception occurred 313 */ 314 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid_C( 315 java.lang.String uuid, long companyId, int start, int end) 316 throws com.liferay.portal.kernel.exception.SystemException; 317 318 /** 319 * Returns an ordered range of all the announcements entries where uuid = ? and companyId = ?. 320 * 321 * <p> 322 * 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. 323 * </p> 324 * 325 * @param uuid the uuid 326 * @param companyId the company ID 327 * @param start the lower bound of the range of announcements entries 328 * @param end the upper bound of the range of announcements entries (not inclusive) 329 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 330 * @return the ordered range of matching announcements entries 331 * @throws SystemException if a system exception occurred 332 */ 333 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid_C( 334 java.lang.String uuid, long companyId, int start, int end, 335 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 336 throws com.liferay.portal.kernel.exception.SystemException; 337 338 /** 339 * Returns the first announcements entry in the ordered set where uuid = ? and companyId = ?. 340 * 341 * @param uuid the uuid 342 * @param companyId the company ID 343 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 344 * @return the first matching announcements entry 345 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 346 * @throws SystemException if a system exception occurred 347 */ 348 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_C_First( 349 java.lang.String uuid, long companyId, 350 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 351 throws com.liferay.portal.kernel.exception.SystemException, 352 com.liferay.portlet.announcements.NoSuchEntryException; 353 354 /** 355 * Returns the first announcements entry in the ordered set where uuid = ? and companyId = ?. 356 * 357 * @param uuid the uuid 358 * @param companyId the company ID 359 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 360 * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 361 * @throws SystemException if a system exception occurred 362 */ 363 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_C_First( 364 java.lang.String uuid, long companyId, 365 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 366 throws com.liferay.portal.kernel.exception.SystemException; 367 368 /** 369 * Returns the last announcements entry in the ordered set where uuid = ? and companyId = ?. 370 * 371 * @param uuid the uuid 372 * @param companyId the company ID 373 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 374 * @return the last matching announcements entry 375 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 376 * @throws SystemException if a system exception occurred 377 */ 378 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_C_Last( 379 java.lang.String uuid, long companyId, 380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 381 throws com.liferay.portal.kernel.exception.SystemException, 382 com.liferay.portlet.announcements.NoSuchEntryException; 383 384 /** 385 * Returns the last announcements entry in the ordered set where uuid = ? and companyId = ?. 386 * 387 * @param uuid the uuid 388 * @param companyId the company ID 389 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 390 * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 391 * @throws SystemException if a system exception occurred 392 */ 393 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUuid_C_Last( 394 java.lang.String uuid, long companyId, 395 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 396 throws com.liferay.portal.kernel.exception.SystemException; 397 398 /** 399 * Returns the announcements entries before and after the current announcements entry in the ordered set where uuid = ? and companyId = ?. 400 * 401 * @param entryId the primary key of the current announcements entry 402 * @param uuid the uuid 403 * @param companyId the company ID 404 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 405 * @return the previous, current, and next announcements entry 406 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 407 * @throws SystemException if a system exception occurred 408 */ 409 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_C_PrevAndNext( 410 long entryId, java.lang.String uuid, long companyId, 411 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 412 throws com.liferay.portal.kernel.exception.SystemException, 413 com.liferay.portlet.announcements.NoSuchEntryException; 414 415 /** 416 * Returns all the announcements entries that the user has permission to view where uuid = ? and companyId = ?. 417 * 418 * @param uuid the uuid 419 * @param companyId the company ID 420 * @return the matching announcements entries that the user has permission to view 421 * @throws SystemException if a system exception occurred 422 */ 423 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C( 424 java.lang.String uuid, long companyId) 425 throws com.liferay.portal.kernel.exception.SystemException; 426 427 /** 428 * Returns a range of all the announcements entries that the user has permission to view where uuid = ? and companyId = ?. 429 * 430 * <p> 431 * 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. 432 * </p> 433 * 434 * @param uuid the uuid 435 * @param companyId the company ID 436 * @param start the lower bound of the range of announcements entries 437 * @param end the upper bound of the range of announcements entries (not inclusive) 438 * @return the range of matching announcements entries that the user has permission to view 439 * @throws SystemException if a system exception occurred 440 */ 441 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C( 442 java.lang.String uuid, long companyId, int start, int end) 443 throws com.liferay.portal.kernel.exception.SystemException; 444 445 /** 446 * Returns an ordered range of all the announcements entries that the user has permissions to view where uuid = ? and companyId = ?. 447 * 448 * <p> 449 * 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. 450 * </p> 451 * 452 * @param uuid the uuid 453 * @param companyId the company ID 454 * @param start the lower bound of the range of announcements entries 455 * @param end the upper bound of the range of announcements entries (not inclusive) 456 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 457 * @return the ordered range of matching announcements entries that the user has permission to view 458 * @throws SystemException if a system exception occurred 459 */ 460 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid_C( 461 java.lang.String uuid, long companyId, int start, int end, 462 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 463 throws com.liferay.portal.kernel.exception.SystemException; 464 465 /** 466 * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where uuid = ? and companyId = ?. 467 * 468 * @param entryId the primary key of the current announcements entry 469 * @param uuid the uuid 470 * @param companyId the company ID 471 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 472 * @return the previous, current, and next announcements entry 473 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 474 * @throws SystemException if a system exception occurred 475 */ 476 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUuid_C_PrevAndNext( 477 long entryId, java.lang.String uuid, long companyId, 478 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 479 throws com.liferay.portal.kernel.exception.SystemException, 480 com.liferay.portlet.announcements.NoSuchEntryException; 481 482 /** 483 * Returns all the announcements entries where userId = ?. 484 * 485 * @param userId the user ID 486 * @return the matching announcements entries 487 * @throws SystemException if a system exception occurred 488 */ 489 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 490 long userId) throws com.liferay.portal.kernel.exception.SystemException; 491 492 /** 493 * Returns a range of all the announcements entries where userId = ?. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param userId the user ID 500 * @param start the lower bound of the range of announcements entries 501 * @param end the upper bound of the range of announcements entries (not inclusive) 502 * @return the range of matching announcements entries 503 * @throws SystemException if a system exception occurred 504 */ 505 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 506 long userId, int start, int end) 507 throws com.liferay.portal.kernel.exception.SystemException; 508 509 /** 510 * Returns an ordered range of all the announcements entries where userId = ?. 511 * 512 * <p> 513 * 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. 514 * </p> 515 * 516 * @param userId the user ID 517 * @param start the lower bound of the range of announcements entries 518 * @param end the upper bound of the range of announcements entries (not inclusive) 519 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 520 * @return the ordered range of matching announcements entries 521 * @throws SystemException if a system exception occurred 522 */ 523 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 524 long userId, int start, int end, 525 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 526 throws com.liferay.portal.kernel.exception.SystemException; 527 528 /** 529 * Returns the first announcements entry in the ordered set where userId = ?. 530 * 531 * @param userId the user ID 532 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 533 * @return the first matching announcements entry 534 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 535 * @throws SystemException if a system exception occurred 536 */ 537 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First( 538 long userId, 539 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 540 throws com.liferay.portal.kernel.exception.SystemException, 541 com.liferay.portlet.announcements.NoSuchEntryException; 542 543 /** 544 * Returns the first announcements entry in the ordered set where userId = ?. 545 * 546 * @param userId the user ID 547 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 548 * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_First( 552 long userId, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException; 555 556 /** 557 * Returns the last announcements entry in the ordered set where userId = ?. 558 * 559 * @param userId the user ID 560 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 561 * @return the last matching announcements entry 562 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 563 * @throws SystemException if a system exception occurred 564 */ 565 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last( 566 long userId, 567 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.announcements.NoSuchEntryException; 570 571 /** 572 * Returns the last announcements entry in the ordered set where userId = ?. 573 * 574 * @param userId the user ID 575 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 576 * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByUserId_Last( 580 long userId, 581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Returns the announcements entries before and after the current announcements entry in the ordered set where userId = ?. 586 * 587 * @param entryId the primary key of the current announcements entry 588 * @param userId the user ID 589 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 590 * @return the previous, current, and next announcements entry 591 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 592 * @throws SystemException if a system exception occurred 593 */ 594 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext( 595 long entryId, long userId, 596 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 597 throws com.liferay.portal.kernel.exception.SystemException, 598 com.liferay.portlet.announcements.NoSuchEntryException; 599 600 /** 601 * Returns all the announcements entries that the user has permission to view where userId = ?. 602 * 603 * @param userId the user ID 604 * @return the matching announcements entries that the user has permission to view 605 * @throws SystemException if a system exception occurred 606 */ 607 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 608 long userId) throws com.liferay.portal.kernel.exception.SystemException; 609 610 /** 611 * Returns a range of all the announcements entries that the user has permission to view where userId = ?. 612 * 613 * <p> 614 * 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. 615 * </p> 616 * 617 * @param userId the user ID 618 * @param start the lower bound of the range of announcements entries 619 * @param end the upper bound of the range of announcements entries (not inclusive) 620 * @return the range of matching announcements entries that the user has permission to view 621 * @throws SystemException if a system exception occurred 622 */ 623 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 624 long userId, int start, int end) 625 throws com.liferay.portal.kernel.exception.SystemException; 626 627 /** 628 * Returns an ordered range of all the announcements entries that the user has permissions to view where userId = ?. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param userId the user ID 635 * @param start the lower bound of the range of announcements entries 636 * @param end the upper bound of the range of announcements entries (not inclusive) 637 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 638 * @return the ordered range of matching announcements entries that the user has permission to view 639 * @throws SystemException if a system exception occurred 640 */ 641 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 642 long userId, int start, int end, 643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 644 throws com.liferay.portal.kernel.exception.SystemException; 645 646 /** 647 * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where userId = ?. 648 * 649 * @param entryId the primary key of the current announcements entry 650 * @param userId the user ID 651 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 652 * @return the previous, current, and next announcements entry 653 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 654 * @throws SystemException if a system exception occurred 655 */ 656 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByUserId_PrevAndNext( 657 long entryId, long userId, 658 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 659 throws com.liferay.portal.kernel.exception.SystemException, 660 com.liferay.portlet.announcements.NoSuchEntryException; 661 662 /** 663 * Returns all the announcements entries where classNameId = ? and classPK = ?. 664 * 665 * @param classNameId the class name ID 666 * @param classPK the class p k 667 * @return the matching announcements entries 668 * @throws SystemException if a system exception occurred 669 */ 670 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 671 long classNameId, long classPK) 672 throws com.liferay.portal.kernel.exception.SystemException; 673 674 /** 675 * Returns a range of all the announcements entries where classNameId = ? and classPK = ?. 676 * 677 * <p> 678 * 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. 679 * </p> 680 * 681 * @param classNameId the class name ID 682 * @param classPK the class p k 683 * @param start the lower bound of the range of announcements entries 684 * @param end the upper bound of the range of announcements entries (not inclusive) 685 * @return the range of matching announcements entries 686 * @throws SystemException if a system exception occurred 687 */ 688 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 689 long classNameId, long classPK, int start, int end) 690 throws com.liferay.portal.kernel.exception.SystemException; 691 692 /** 693 * Returns an ordered range of all the announcements entries where classNameId = ? and classPK = ?. 694 * 695 * <p> 696 * 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. 697 * </p> 698 * 699 * @param classNameId the class name ID 700 * @param classPK the class p k 701 * @param start the lower bound of the range of announcements entries 702 * @param end the upper bound of the range of announcements entries (not inclusive) 703 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 704 * @return the ordered range of matching announcements entries 705 * @throws SystemException if a system exception occurred 706 */ 707 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 708 long classNameId, long classPK, int start, int end, 709 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Returns the first announcements entry in the ordered set where classNameId = ? and classPK = ?. 714 * 715 * @param classNameId the class name ID 716 * @param classPK the class p k 717 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 718 * @return the first matching announcements entry 719 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 720 * @throws SystemException if a system exception occurred 721 */ 722 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First( 723 long classNameId, long classPK, 724 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 725 throws com.liferay.portal.kernel.exception.SystemException, 726 com.liferay.portlet.announcements.NoSuchEntryException; 727 728 /** 729 * Returns the first announcements entry in the ordered set where classNameId = ? and classPK = ?. 730 * 731 * @param classNameId the class name ID 732 * @param classPK the class p k 733 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 734 * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 735 * @throws SystemException if a system exception occurred 736 */ 737 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_First( 738 long classNameId, long classPK, 739 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 740 throws com.liferay.portal.kernel.exception.SystemException; 741 742 /** 743 * Returns the last announcements entry in the ordered set where classNameId = ? and classPK = ?. 744 * 745 * @param classNameId the class name ID 746 * @param classPK the class p k 747 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 748 * @return the last matching announcements entry 749 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 750 * @throws SystemException if a system exception occurred 751 */ 752 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last( 753 long classNameId, long classPK, 754 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 755 throws com.liferay.portal.kernel.exception.SystemException, 756 com.liferay.portlet.announcements.NoSuchEntryException; 757 758 /** 759 * Returns the last announcements entry in the ordered set where classNameId = ? and classPK = ?. 760 * 761 * @param classNameId the class name ID 762 * @param classPK the class p k 763 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 764 * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 765 * @throws SystemException if a system exception occurred 766 */ 767 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_Last( 768 long classNameId, long classPK, 769 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 770 throws com.liferay.portal.kernel.exception.SystemException; 771 772 /** 773 * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ?. 774 * 775 * @param entryId the primary key of the current announcements entry 776 * @param classNameId the class name ID 777 * @param classPK the class p k 778 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 779 * @return the previous, current, and next announcements entry 780 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 781 * @throws SystemException if a system exception occurred 782 */ 783 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext( 784 long entryId, long classNameId, long classPK, 785 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 786 throws com.liferay.portal.kernel.exception.SystemException, 787 com.liferay.portlet.announcements.NoSuchEntryException; 788 789 /** 790 * Returns all the announcements entries that the user has permission to view where classNameId = ? and classPK = ?. 791 * 792 * @param classNameId the class name ID 793 * @param classPK the class p k 794 * @return the matching announcements entries that the user has permission to view 795 * @throws SystemException if a system exception occurred 796 */ 797 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 798 long classNameId, long classPK) 799 throws com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Returns a range of all the announcements entries that the user has permission to view where classNameId = ? and classPK = ?. 803 * 804 * <p> 805 * 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. 806 * </p> 807 * 808 * @param classNameId the class name ID 809 * @param classPK the class p k 810 * @param start the lower bound of the range of announcements entries 811 * @param end the upper bound of the range of announcements entries (not inclusive) 812 * @return the range of matching announcements entries that the user has permission to view 813 * @throws SystemException if a system exception occurred 814 */ 815 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 816 long classNameId, long classPK, int start, int end) 817 throws com.liferay.portal.kernel.exception.SystemException; 818 819 /** 820 * Returns an ordered range of all the announcements entries that the user has permissions to view where classNameId = ? and classPK = ?. 821 * 822 * <p> 823 * 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. 824 * </p> 825 * 826 * @param classNameId the class name ID 827 * @param classPK the class p k 828 * @param start the lower bound of the range of announcements entries 829 * @param end the upper bound of the range of announcements entries (not inclusive) 830 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 831 * @return the ordered range of matching announcements entries that the user has permission to view 832 * @throws SystemException if a system exception occurred 833 */ 834 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 835 long classNameId, long classPK, int start, int end, 836 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 837 throws com.liferay.portal.kernel.exception.SystemException; 838 839 /** 840 * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where classNameId = ? and classPK = ?. 841 * 842 * @param entryId the primary key of the current announcements entry 843 * @param classNameId the class name ID 844 * @param classPK the class p k 845 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 846 * @return the previous, current, and next announcements entry 847 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 848 * @throws SystemException if a system exception occurred 849 */ 850 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_PrevAndNext( 851 long entryId, long classNameId, long classPK, 852 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 853 throws com.liferay.portal.kernel.exception.SystemException, 854 com.liferay.portlet.announcements.NoSuchEntryException; 855 856 /** 857 * Returns all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 858 * 859 * @param classNameId the class name ID 860 * @param classPK the class p k 861 * @param alert the alert 862 * @return the matching announcements entries 863 * @throws SystemException if a system exception occurred 864 */ 865 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 866 long classNameId, long classPK, boolean alert) 867 throws com.liferay.portal.kernel.exception.SystemException; 868 869 /** 870 * Returns a range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 871 * 872 * <p> 873 * 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. 874 * </p> 875 * 876 * @param classNameId the class name ID 877 * @param classPK the class p k 878 * @param alert the alert 879 * @param start the lower bound of the range of announcements entries 880 * @param end the upper bound of the range of announcements entries (not inclusive) 881 * @return the range of matching announcements entries 882 * @throws SystemException if a system exception occurred 883 */ 884 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 885 long classNameId, long classPK, boolean alert, int start, int end) 886 throws com.liferay.portal.kernel.exception.SystemException; 887 888 /** 889 * Returns an ordered range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 890 * 891 * <p> 892 * 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. 893 * </p> 894 * 895 * @param classNameId the class name ID 896 * @param classPK the class p k 897 * @param alert the alert 898 * @param start the lower bound of the range of announcements entries 899 * @param end the upper bound of the range of announcements entries (not inclusive) 900 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 901 * @return the ordered range of matching announcements entries 902 * @throws SystemException if a system exception occurred 903 */ 904 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 905 long classNameId, long classPK, boolean alert, int start, int end, 906 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 907 throws com.liferay.portal.kernel.exception.SystemException; 908 909 /** 910 * Returns the first announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 911 * 912 * @param classNameId the class name ID 913 * @param classPK the class p k 914 * @param alert the alert 915 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 916 * @return the first matching announcements entry 917 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 918 * @throws SystemException if a system exception occurred 919 */ 920 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First( 921 long classNameId, long classPK, boolean alert, 922 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 923 throws com.liferay.portal.kernel.exception.SystemException, 924 com.liferay.portlet.announcements.NoSuchEntryException; 925 926 /** 927 * Returns the first announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 928 * 929 * @param classNameId the class name ID 930 * @param classPK the class p k 931 * @param alert the alert 932 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 933 * @return the first matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 934 * @throws SystemException if a system exception occurred 935 */ 936 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_First( 937 long classNameId, long classPK, boolean alert, 938 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 939 throws com.liferay.portal.kernel.exception.SystemException; 940 941 /** 942 * Returns the last announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 943 * 944 * @param classNameId the class name ID 945 * @param classPK the class p k 946 * @param alert the alert 947 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 948 * @return the last matching announcements entry 949 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 950 * @throws SystemException if a system exception occurred 951 */ 952 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last( 953 long classNameId, long classPK, boolean alert, 954 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 955 throws com.liferay.portal.kernel.exception.SystemException, 956 com.liferay.portlet.announcements.NoSuchEntryException; 957 958 /** 959 * Returns the last announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 960 * 961 * @param classNameId the class name ID 962 * @param classPK the class p k 963 * @param alert the alert 964 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 965 * @return the last matching announcements entry, or <code>null</code> if a matching announcements entry could not be found 966 * @throws SystemException if a system exception occurred 967 */ 968 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByC_C_A_Last( 969 long classNameId, long classPK, boolean alert, 970 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 971 throws com.liferay.portal.kernel.exception.SystemException; 972 973 /** 974 * Returns the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 975 * 976 * @param entryId the primary key of the current announcements entry 977 * @param classNameId the class name ID 978 * @param classPK the class p k 979 * @param alert the alert 980 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 981 * @return the previous, current, and next announcements entry 982 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 983 * @throws SystemException if a system exception occurred 984 */ 985 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext( 986 long entryId, long classNameId, long classPK, boolean alert, 987 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 988 throws com.liferay.portal.kernel.exception.SystemException, 989 com.liferay.portlet.announcements.NoSuchEntryException; 990 991 /** 992 * Returns all the announcements entries that the user has permission to view where classNameId = ? and classPK = ? and alert = ?. 993 * 994 * @param classNameId the class name ID 995 * @param classPK the class p k 996 * @param alert the alert 997 * @return the matching announcements entries that the user has permission to view 998 * @throws SystemException if a system exception occurred 999 */ 1000 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 1001 long classNameId, long classPK, boolean alert) 1002 throws com.liferay.portal.kernel.exception.SystemException; 1003 1004 /** 1005 * Returns a range of all the announcements entries that the user has permission to view where classNameId = ? and classPK = ? and alert = ?. 1006 * 1007 * <p> 1008 * 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. 1009 * </p> 1010 * 1011 * @param classNameId the class name ID 1012 * @param classPK the class p k 1013 * @param alert the alert 1014 * @param start the lower bound of the range of announcements entries 1015 * @param end the upper bound of the range of announcements entries (not inclusive) 1016 * @return the range of matching announcements entries that the user has permission to view 1017 * @throws SystemException if a system exception occurred 1018 */ 1019 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 1020 long classNameId, long classPK, boolean alert, int start, int end) 1021 throws com.liferay.portal.kernel.exception.SystemException; 1022 1023 /** 1024 * Returns an ordered range of all the announcements entries that the user has permissions to view where classNameId = ? and classPK = ? and alert = ?. 1025 * 1026 * <p> 1027 * 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. 1028 * </p> 1029 * 1030 * @param classNameId the class name ID 1031 * @param classPK the class p k 1032 * @param alert the alert 1033 * @param start the lower bound of the range of announcements entries 1034 * @param end the upper bound of the range of announcements entries (not inclusive) 1035 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1036 * @return the ordered range of matching announcements entries that the user has permission to view 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 1040 long classNameId, long classPK, boolean alert, int start, int end, 1041 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1042 throws com.liferay.portal.kernel.exception.SystemException; 1043 1044 /** 1045 * Returns the announcements entries before and after the current announcements entry in the ordered set of announcements entries that the user has permission to view where classNameId = ? and classPK = ? and alert = ?. 1046 * 1047 * @param entryId the primary key of the current announcements entry 1048 * @param classNameId the class name ID 1049 * @param classPK the class p k 1050 * @param alert the alert 1051 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1052 * @return the previous, current, and next announcements entry 1053 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 1054 * @throws SystemException if a system exception occurred 1055 */ 1056 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] filterFindByC_C_A_PrevAndNext( 1057 long entryId, long classNameId, long classPK, boolean alert, 1058 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1059 throws com.liferay.portal.kernel.exception.SystemException, 1060 com.liferay.portlet.announcements.NoSuchEntryException; 1061 1062 /** 1063 * Returns all the announcements entries. 1064 * 1065 * @return the announcements entries 1066 * @throws SystemException if a system exception occurred 1067 */ 1068 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll() 1069 throws com.liferay.portal.kernel.exception.SystemException; 1070 1071 /** 1072 * Returns a range of all the announcements entries. 1073 * 1074 * <p> 1075 * 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. 1076 * </p> 1077 * 1078 * @param start the lower bound of the range of announcements entries 1079 * @param end the upper bound of the range of announcements entries (not inclusive) 1080 * @return the range of announcements entries 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 1084 int start, int end) 1085 throws com.liferay.portal.kernel.exception.SystemException; 1086 1087 /** 1088 * Returns an ordered range of all the announcements entries. 1089 * 1090 * <p> 1091 * 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. 1092 * </p> 1093 * 1094 * @param start the lower bound of the range of announcements entries 1095 * @param end the upper bound of the range of announcements entries (not inclusive) 1096 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1097 * @return the ordered range of announcements entries 1098 * @throws SystemException if a system exception occurred 1099 */ 1100 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 1101 int start, int end, 1102 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1103 throws com.liferay.portal.kernel.exception.SystemException; 1104 1105 /** 1106 * Removes all the announcements entries where uuid = ? from the database. 1107 * 1108 * @param uuid the uuid 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public void removeByUuid(java.lang.String uuid) 1112 throws com.liferay.portal.kernel.exception.SystemException; 1113 1114 /** 1115 * Removes all the announcements entries where uuid = ? and companyId = ? from the database. 1116 * 1117 * @param uuid the uuid 1118 * @param companyId the company ID 1119 * @throws SystemException if a system exception occurred 1120 */ 1121 public void removeByUuid_C(java.lang.String uuid, long companyId) 1122 throws com.liferay.portal.kernel.exception.SystemException; 1123 1124 /** 1125 * Removes all the announcements entries where userId = ? from the database. 1126 * 1127 * @param userId the user ID 1128 * @throws SystemException if a system exception occurred 1129 */ 1130 public void removeByUserId(long userId) 1131 throws com.liferay.portal.kernel.exception.SystemException; 1132 1133 /** 1134 * Removes all the announcements entries where classNameId = ? and classPK = ? from the database. 1135 * 1136 * @param classNameId the class name ID 1137 * @param classPK the class p k 1138 * @throws SystemException if a system exception occurred 1139 */ 1140 public void removeByC_C(long classNameId, long classPK) 1141 throws com.liferay.portal.kernel.exception.SystemException; 1142 1143 /** 1144 * Removes all the announcements entries where classNameId = ? and classPK = ? and alert = ? from the database. 1145 * 1146 * @param classNameId the class name ID 1147 * @param classPK the class p k 1148 * @param alert the alert 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public void removeByC_C_A(long classNameId, long classPK, boolean alert) 1152 throws com.liferay.portal.kernel.exception.SystemException; 1153 1154 /** 1155 * Removes all the announcements entries from the database. 1156 * 1157 * @throws SystemException if a system exception occurred 1158 */ 1159 public void removeAll() 1160 throws com.liferay.portal.kernel.exception.SystemException; 1161 1162 /** 1163 * Returns the number of announcements entries where uuid = ?. 1164 * 1165 * @param uuid the uuid 1166 * @return the number of matching announcements entries 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public int countByUuid(java.lang.String uuid) 1170 throws com.liferay.portal.kernel.exception.SystemException; 1171 1172 /** 1173 * Returns the number of announcements entries that the user has permission to view where uuid = ?. 1174 * 1175 * @param uuid the uuid 1176 * @return the number of matching announcements entries that the user has permission to view 1177 * @throws SystemException if a system exception occurred 1178 */ 1179 public int filterCountByUuid(java.lang.String uuid) 1180 throws com.liferay.portal.kernel.exception.SystemException; 1181 1182 /** 1183 * Returns the number of announcements entries where uuid = ? and companyId = ?. 1184 * 1185 * @param uuid the uuid 1186 * @param companyId the company ID 1187 * @return the number of matching announcements entries 1188 * @throws SystemException if a system exception occurred 1189 */ 1190 public int countByUuid_C(java.lang.String uuid, long companyId) 1191 throws com.liferay.portal.kernel.exception.SystemException; 1192 1193 /** 1194 * Returns the number of announcements entries that the user has permission to view where uuid = ? and companyId = ?. 1195 * 1196 * @param uuid the uuid 1197 * @param companyId the company ID 1198 * @return the number of matching announcements entries that the user has permission to view 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public int filterCountByUuid_C(java.lang.String uuid, long companyId) 1202 throws com.liferay.portal.kernel.exception.SystemException; 1203 1204 /** 1205 * Returns the number of announcements entries where userId = ?. 1206 * 1207 * @param userId the user ID 1208 * @return the number of matching announcements entries 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public int countByUserId(long userId) 1212 throws com.liferay.portal.kernel.exception.SystemException; 1213 1214 /** 1215 * Returns the number of announcements entries that the user has permission to view where userId = ?. 1216 * 1217 * @param userId the user ID 1218 * @return the number of matching announcements entries that the user has permission to view 1219 * @throws SystemException if a system exception occurred 1220 */ 1221 public int filterCountByUserId(long userId) 1222 throws com.liferay.portal.kernel.exception.SystemException; 1223 1224 /** 1225 * Returns the number of announcements entries where classNameId = ? and classPK = ?. 1226 * 1227 * @param classNameId the class name ID 1228 * @param classPK the class p k 1229 * @return the number of matching announcements entries 1230 * @throws SystemException if a system exception occurred 1231 */ 1232 public int countByC_C(long classNameId, long classPK) 1233 throws com.liferay.portal.kernel.exception.SystemException; 1234 1235 /** 1236 * Returns the number of announcements entries that the user has permission to view where classNameId = ? and classPK = ?. 1237 * 1238 * @param classNameId the class name ID 1239 * @param classPK the class p k 1240 * @return the number of matching announcements entries that the user has permission to view 1241 * @throws SystemException if a system exception occurred 1242 */ 1243 public int filterCountByC_C(long classNameId, long classPK) 1244 throws com.liferay.portal.kernel.exception.SystemException; 1245 1246 /** 1247 * Returns the number of announcements entries where classNameId = ? and classPK = ? and alert = ?. 1248 * 1249 * @param classNameId the class name ID 1250 * @param classPK the class p k 1251 * @param alert the alert 1252 * @return the number of matching announcements entries 1253 * @throws SystemException if a system exception occurred 1254 */ 1255 public int countByC_C_A(long classNameId, long classPK, boolean alert) 1256 throws com.liferay.portal.kernel.exception.SystemException; 1257 1258 /** 1259 * Returns the number of announcements entries that the user has permission to view where classNameId = ? and classPK = ? and alert = ?. 1260 * 1261 * @param classNameId the class name ID 1262 * @param classPK the class p k 1263 * @param alert the alert 1264 * @return the number of matching announcements entries that the user has permission to view 1265 * @throws SystemException if a system exception occurred 1266 */ 1267 public int filterCountByC_C_A(long classNameId, long classPK, boolean alert) 1268 throws com.liferay.portal.kernel.exception.SystemException; 1269 1270 /** 1271 * Returns the number of announcements entries. 1272 * 1273 * @return the number of announcements entries 1274 * @throws SystemException if a system exception occurred 1275 */ 1276 public int countAll() 1277 throws com.liferay.portal.kernel.exception.SystemException; 1278 }