001 /** 002 * Copyright (c) 2000-2010 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 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 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 * Caches the announcements entry in the entity cache if it is enabled. 036 * 037 * @param announcementsEntry the announcements entry to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry); 041 042 /** 043 * Caches the announcements entries in the entity cache if it is enabled. 044 * 045 * @param announcementsEntries the announcements entries to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries); 049 050 /** 051 * Creates a new announcements entry with the primary key. 052 * 053 * @param entryId the primary key for the new announcements entry 054 * @return the new announcements entry 055 */ 056 public com.liferay.portlet.announcements.model.AnnouncementsEntry create( 057 long entryId); 058 059 /** 060 * Removes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param entryId the primary key of the announcements entry to remove 063 * @return the announcements entry that was removed 064 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.announcements.model.AnnouncementsEntry remove( 068 long entryId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.announcements.NoSuchEntryException; 071 072 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl( 073 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the announcements entry with the primary key or throws a {@link com.liferay.portlet.announcements.NoSuchEntryException} if it could not be found. 079 * 080 * @param entryId the primary key of the announcements entry to find 081 * @return the announcements entry 082 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey( 086 long entryId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.announcements.NoSuchEntryException; 089 090 /** 091 * Finds the announcements entry with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param entryId the primary key of the announcements entry to find 094 * @return the announcements entry, or <code>null</code> if a announcements entry with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey( 098 long entryId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the announcements entries where uuid = ?. 103 * 104 * @param uuid the uuid to search with 105 * @return the matching announcements entries 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 109 java.lang.String uuid) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Finds a range of all the announcements entries where uuid = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param uuid the uuid to search with 120 * @param start the lower bound of the range of announcements entries to return 121 * @param end the upper bound of the range of announcements entries to return (not inclusive) 122 * @return the range of matching announcements entries 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 126 java.lang.String uuid, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Finds an ordered range of all the announcements entries where uuid = ?. 131 * 132 * <p> 133 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 134 * </p> 135 * 136 * @param uuid the uuid to search with 137 * @param start the lower bound of the range of announcements entries to return 138 * @param end the upper bound of the range of announcements entries to return (not inclusive) 139 * @param orderByComparator the comparator to order the results by 140 * @return the ordered range of matching announcements entries 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 144 java.lang.String uuid, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Finds the first announcements entry in the ordered set where uuid = ?. 150 * 151 * <p> 152 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 153 * </p> 154 * 155 * @param uuid the uuid to search with 156 * @param orderByComparator the comparator to order the set by 157 * @return the first matching announcements entry 158 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First( 162 java.lang.String uuid, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.announcements.NoSuchEntryException; 166 167 /** 168 * Finds the last announcements entry in the ordered set where uuid = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param uuid the uuid to search with 175 * @param orderByComparator the comparator to order the set by 176 * @return the last matching announcements entry 177 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last( 181 java.lang.String uuid, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.announcements.NoSuchEntryException; 185 186 /** 187 * Finds the announcements entries before and after the current announcements entry in the ordered set where uuid = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param entryId the primary key of the current announcements entry 194 * @param uuid the uuid to search with 195 * @param orderByComparator the comparator to order the set by 196 * @return the previous, current, and next announcements entry 197 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext( 201 long entryId, java.lang.String uuid, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.announcements.NoSuchEntryException; 205 206 /** 207 * Finds all the announcements entries where userId = ?. 208 * 209 * @param userId the user id to search with 210 * @return the matching announcements entries 211 * @throws SystemException if a system exception occurred 212 */ 213 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 214 long userId) throws com.liferay.portal.kernel.exception.SystemException; 215 216 /** 217 * Finds a range of all the announcements entries where userId = ?. 218 * 219 * <p> 220 * 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. 221 * </p> 222 * 223 * @param userId the user id to search with 224 * @param start the lower bound of the range of announcements entries to return 225 * @param end the upper bound of the range of announcements entries to return (not inclusive) 226 * @return the range of matching announcements entries 227 * @throws SystemException if a system exception occurred 228 */ 229 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 230 long userId, int start, int end) 231 throws com.liferay.portal.kernel.exception.SystemException; 232 233 /** 234 * Finds an ordered range of all the announcements entries where userId = ?. 235 * 236 * <p> 237 * 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. 238 * </p> 239 * 240 * @param userId the user id to search with 241 * @param start the lower bound of the range of announcements entries to return 242 * @param end the upper bound of the range of announcements entries to return (not inclusive) 243 * @param orderByComparator the comparator to order the results by 244 * @return the ordered range of matching announcements entries 245 * @throws SystemException if a system exception occurred 246 */ 247 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 248 long userId, int start, int end, 249 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds the first announcements entry in the ordered set where userId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param userId the user id to search with 260 * @param orderByComparator the comparator to order the set by 261 * @return the first matching announcements entry 262 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 263 * @throws SystemException if a system exception occurred 264 */ 265 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First( 266 long userId, 267 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 268 throws com.liferay.portal.kernel.exception.SystemException, 269 com.liferay.portlet.announcements.NoSuchEntryException; 270 271 /** 272 * Finds the last announcements entry in the ordered set where userId = ?. 273 * 274 * <p> 275 * 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. 276 * </p> 277 * 278 * @param userId the user id to search with 279 * @param orderByComparator the comparator to order the set by 280 * @return the last matching announcements entry 281 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 282 * @throws SystemException if a system exception occurred 283 */ 284 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last( 285 long userId, 286 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 287 throws com.liferay.portal.kernel.exception.SystemException, 288 com.liferay.portlet.announcements.NoSuchEntryException; 289 290 /** 291 * Finds the announcements entries before and after the current announcements entry in the ordered set where userId = ?. 292 * 293 * <p> 294 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 295 * </p> 296 * 297 * @param entryId the primary key of the current announcements entry 298 * @param userId the user id to search with 299 * @param orderByComparator the comparator to order the set by 300 * @return the previous, current, and next announcements entry 301 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 302 * @throws SystemException if a system exception occurred 303 */ 304 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext( 305 long entryId, long userId, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException, 308 com.liferay.portlet.announcements.NoSuchEntryException; 309 310 /** 311 * Finds all the announcements entries where classNameId = ? and classPK = ?. 312 * 313 * @param classNameId the class name id to search with 314 * @param classPK the class p k to search with 315 * @return the matching announcements entries 316 * @throws SystemException if a system exception occurred 317 */ 318 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 319 long classNameId, long classPK) 320 throws com.liferay.portal.kernel.exception.SystemException; 321 322 /** 323 * Finds a range of all the announcements entries where classNameId = ? and classPK = ?. 324 * 325 * <p> 326 * 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. 327 * </p> 328 * 329 * @param classNameId the class name id to search with 330 * @param classPK the class p k to search with 331 * @param start the lower bound of the range of announcements entries to return 332 * @param end the upper bound of the range of announcements entries to return (not inclusive) 333 * @return the range of matching announcements entries 334 * @throws SystemException if a system exception occurred 335 */ 336 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 337 long classNameId, long classPK, int start, int end) 338 throws com.liferay.portal.kernel.exception.SystemException; 339 340 /** 341 * Finds an ordered range of all the announcements entries where classNameId = ? and classPK = ?. 342 * 343 * <p> 344 * 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. 345 * </p> 346 * 347 * @param classNameId the class name id to search with 348 * @param classPK the class p k to search with 349 * @param start the lower bound of the range of announcements entries to return 350 * @param end the upper bound of the range of announcements entries to return (not inclusive) 351 * @param orderByComparator the comparator to order the results by 352 * @return the ordered range of matching announcements entries 353 * @throws SystemException if a system exception occurred 354 */ 355 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 356 long classNameId, long classPK, int start, int end, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException; 359 360 /** 361 * Finds the first announcements entry in the ordered set where classNameId = ? and classPK = ?. 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 classNameId the class name id to search with 368 * @param classPK the class p k to search with 369 * @param orderByComparator the comparator to order the set by 370 * @return the first matching announcements entry 371 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First( 375 long classNameId, long classPK, 376 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 377 throws com.liferay.portal.kernel.exception.SystemException, 378 com.liferay.portlet.announcements.NoSuchEntryException; 379 380 /** 381 * Finds the last announcements entry in the ordered set where classNameId = ? and classPK = ?. 382 * 383 * <p> 384 * 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. 385 * </p> 386 * 387 * @param classNameId the class name id to search with 388 * @param classPK the class p k to search with 389 * @param orderByComparator the comparator to order the set by 390 * @return the last matching announcements entry 391 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 392 * @throws SystemException if a system exception occurred 393 */ 394 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last( 395 long classNameId, long classPK, 396 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 397 throws com.liferay.portal.kernel.exception.SystemException, 398 com.liferay.portlet.announcements.NoSuchEntryException; 399 400 /** 401 * Finds the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param entryId the primary key of the current announcements entry 408 * @param classNameId the class name id to search with 409 * @param classPK the class p k to search with 410 * @param orderByComparator the comparator to order the set by 411 * @return the previous, current, and next announcements entry 412 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 413 * @throws SystemException if a system exception occurred 414 */ 415 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext( 416 long entryId, long classNameId, long classPK, 417 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 418 throws com.liferay.portal.kernel.exception.SystemException, 419 com.liferay.portlet.announcements.NoSuchEntryException; 420 421 /** 422 * Finds all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 423 * 424 * @param classNameId the class name id to search with 425 * @param classPK the class p k to search with 426 * @param alert the alert to search with 427 * @return the matching announcements entries 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 431 long classNameId, long classPK, boolean alert) 432 throws com.liferay.portal.kernel.exception.SystemException; 433 434 /** 435 * Finds a range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 436 * 437 * <p> 438 * 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. 439 * </p> 440 * 441 * @param classNameId the class name id to search with 442 * @param classPK the class p k to search with 443 * @param alert the alert to search with 444 * @param start the lower bound of the range of announcements entries to return 445 * @param end the upper bound of the range of announcements entries to return (not inclusive) 446 * @return the range of matching announcements entries 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 450 long classNameId, long classPK, boolean alert, int start, int end) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Finds an ordered range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param classNameId the class name id to search with 461 * @param classPK the class p k to search with 462 * @param alert the alert to search with 463 * @param start the lower bound of the range of announcements entries to return 464 * @param end the upper bound of the range of announcements entries to return (not inclusive) 465 * @param orderByComparator the comparator to order the results by 466 * @return the ordered range of matching announcements entries 467 * @throws SystemException if a system exception occurred 468 */ 469 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 470 long classNameId, long classPK, boolean alert, int start, int end, 471 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 472 throws com.liferay.portal.kernel.exception.SystemException; 473 474 /** 475 * Finds the first announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 476 * 477 * <p> 478 * 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. 479 * </p> 480 * 481 * @param classNameId the class name id to search with 482 * @param classPK the class p k to search with 483 * @param alert the alert to search with 484 * @param orderByComparator the comparator to order the set by 485 * @return the first matching announcements entry 486 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 487 * @throws SystemException if a system exception occurred 488 */ 489 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First( 490 long classNameId, long classPK, boolean alert, 491 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 492 throws com.liferay.portal.kernel.exception.SystemException, 493 com.liferay.portlet.announcements.NoSuchEntryException; 494 495 /** 496 * Finds the last announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param classNameId the class name id to search with 503 * @param classPK the class p k to search with 504 * @param alert the alert to search with 505 * @param orderByComparator the comparator to order the set by 506 * @return the last matching announcements entry 507 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 508 * @throws SystemException if a system exception occurred 509 */ 510 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last( 511 long classNameId, long classPK, boolean alert, 512 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 513 throws com.liferay.portal.kernel.exception.SystemException, 514 com.liferay.portlet.announcements.NoSuchEntryException; 515 516 /** 517 * Finds the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 518 * 519 * <p> 520 * 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. 521 * </p> 522 * 523 * @param entryId the primary key of the current announcements entry 524 * @param classNameId the class name id to search with 525 * @param classPK the class p k to search with 526 * @param alert the alert to search with 527 * @param orderByComparator the comparator to order the set by 528 * @return the previous, current, and next announcements entry 529 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 530 * @throws SystemException if a system exception occurred 531 */ 532 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext( 533 long entryId, long classNameId, long classPK, boolean alert, 534 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 535 throws com.liferay.portal.kernel.exception.SystemException, 536 com.liferay.portlet.announcements.NoSuchEntryException; 537 538 /** 539 * Finds all the announcements entries. 540 * 541 * @return the announcements entries 542 * @throws SystemException if a system exception occurred 543 */ 544 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll() 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Finds a range of all the announcements entries. 549 * 550 * <p> 551 * 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. 552 * </p> 553 * 554 * @param start the lower bound of the range of announcements entries to return 555 * @param end the upper bound of the range of announcements entries to return (not inclusive) 556 * @return the range of announcements entries 557 * @throws SystemException if a system exception occurred 558 */ 559 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 560 int start, int end) 561 throws com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Finds an ordered range of all the announcements entries. 565 * 566 * <p> 567 * 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. 568 * </p> 569 * 570 * @param start the lower bound of the range of announcements entries to return 571 * @param end the upper bound of the range of announcements entries to return (not inclusive) 572 * @param orderByComparator the comparator to order the results by 573 * @return the ordered range of announcements entries 574 * @throws SystemException if a system exception occurred 575 */ 576 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 577 int start, int end, 578 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Removes all the announcements entries where uuid = ? from the database. 583 * 584 * @param uuid the uuid to search with 585 * @throws SystemException if a system exception occurred 586 */ 587 public void removeByUuid(java.lang.String uuid) 588 throws com.liferay.portal.kernel.exception.SystemException; 589 590 /** 591 * Removes all the announcements entries where userId = ? from the database. 592 * 593 * @param userId the user id to search with 594 * @throws SystemException if a system exception occurred 595 */ 596 public void removeByUserId(long userId) 597 throws com.liferay.portal.kernel.exception.SystemException; 598 599 /** 600 * Removes all the announcements entries where classNameId = ? and classPK = ? from the database. 601 * 602 * @param classNameId the class name id to search with 603 * @param classPK the class p k to search with 604 * @throws SystemException if a system exception occurred 605 */ 606 public void removeByC_C(long classNameId, long classPK) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Removes all the announcements entries where classNameId = ? and classPK = ? and alert = ? from the database. 611 * 612 * @param classNameId the class name id to search with 613 * @param classPK the class p k to search with 614 * @param alert the alert to search with 615 * @throws SystemException if a system exception occurred 616 */ 617 public void removeByC_C_A(long classNameId, long classPK, boolean alert) 618 throws com.liferay.portal.kernel.exception.SystemException; 619 620 /** 621 * Removes all the announcements entries from the database. 622 * 623 * @throws SystemException if a system exception occurred 624 */ 625 public void removeAll() 626 throws com.liferay.portal.kernel.exception.SystemException; 627 628 /** 629 * Counts all the announcements entries where uuid = ?. 630 * 631 * @param uuid the uuid to search with 632 * @return the number of matching announcements entries 633 * @throws SystemException if a system exception occurred 634 */ 635 public int countByUuid(java.lang.String uuid) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Counts all the announcements entries where userId = ?. 640 * 641 * @param userId the user id to search with 642 * @return the number of matching announcements entries 643 * @throws SystemException if a system exception occurred 644 */ 645 public int countByUserId(long userId) 646 throws com.liferay.portal.kernel.exception.SystemException; 647 648 /** 649 * Counts all the announcements entries where classNameId = ? and classPK = ?. 650 * 651 * @param classNameId the class name id to search with 652 * @param classPK the class p k to search with 653 * @return the number of matching announcements entries 654 * @throws SystemException if a system exception occurred 655 */ 656 public int countByC_C(long classNameId, long classPK) 657 throws com.liferay.portal.kernel.exception.SystemException; 658 659 /** 660 * Counts all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 661 * 662 * @param classNameId the class name id to search with 663 * @param classPK the class p k to search with 664 * @param alert the alert to search with 665 * @return the number of matching announcements entries 666 * @throws SystemException if a system exception occurred 667 */ 668 public int countByC_C_A(long classNameId, long classPK, boolean alert) 669 throws com.liferay.portal.kernel.exception.SystemException; 670 671 /** 672 * Counts all the announcements entries. 673 * 674 * @return the number of announcements entries 675 * @throws SystemException if a system exception occurred 676 */ 677 public int countAll() 678 throws com.liferay.portal.kernel.exception.SystemException; 679 }