001 /** 002 * Copyright (c) 2000-2011 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 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. 026 * </p> 027 * 028 * <p> 029 * Caching information and settings can be found in <code>portal.properties</code> 030 * </p> 031 * 032 * @author Brian Wing Shun Chan 033 * @see AnnouncementsEntryPersistenceImpl 034 * @see AnnouncementsEntryUtil 035 * @generated 036 */ 037 public interface AnnouncementsEntryPersistence extends BasePersistence<AnnouncementsEntry> { 038 /** 039 * Caches the announcements entry in the entity cache if it is enabled. 040 * 041 * @param announcementsEntry the announcements entry to cache 042 */ 043 public void cacheResult( 044 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry); 045 046 /** 047 * Caches the announcements entries in the entity cache if it is enabled. 048 * 049 * @param announcementsEntries the announcements entries to cache 050 */ 051 public void cacheResult( 052 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> announcementsEntries); 053 054 /** 055 * Creates a new announcements entry with the primary key. Does not add the announcements entry to the database. 056 * 057 * @param entryId the primary key for the new announcements entry 058 * @return the new announcements entry 059 */ 060 public com.liferay.portlet.announcements.model.AnnouncementsEntry create( 061 long entryId); 062 063 /** 064 * Removes the announcements entry with the primary key from the database. Also notifies the appropriate model listeners. 065 * 066 * @param entryId the primary key of the announcements entry to remove 067 * @return the announcements entry that was removed 068 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 069 * @throws SystemException if a system exception occurred 070 */ 071 public com.liferay.portlet.announcements.model.AnnouncementsEntry remove( 072 long entryId) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.announcements.NoSuchEntryException; 075 076 public com.liferay.portlet.announcements.model.AnnouncementsEntry updateImpl( 077 com.liferay.portlet.announcements.model.AnnouncementsEntry announcementsEntry, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Finds the announcements entry with the primary key or throws a {@link com.liferay.portlet.announcements.NoSuchEntryException} if it could not be found. 083 * 084 * @param entryId the primary key of the announcements entry to find 085 * @return the announcements entry 086 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByPrimaryKey( 090 long entryId) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.announcements.NoSuchEntryException; 093 094 /** 095 * Finds the announcements entry with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param entryId the primary key of the announcements entry to find 098 * @return the announcements entry, or <code>null</code> if a announcements entry with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.announcements.model.AnnouncementsEntry fetchByPrimaryKey( 102 long entryId) 103 throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the announcements entries where uuid = ?. 107 * 108 * @param uuid the uuid to search with 109 * @return the matching announcements entries 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Finds a range of all the announcements entries where uuid = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param uuid the uuid to search with 124 * @param start the lower bound of the range of announcements entries to return 125 * @param end the upper bound of the range of announcements entries to return (not inclusive) 126 * @return the range of matching announcements entries 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 130 java.lang.String uuid, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Finds an ordered range of all the announcements entries where uuid = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param uuid the uuid to search with 141 * @param start the lower bound of the range of announcements entries to return 142 * @param end the upper bound of the range of announcements entries to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 144 * @return the ordered range of matching announcements entries 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUuid( 148 java.lang.String uuid, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Finds the first announcements entry in the ordered set where uuid = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param uuid the uuid to search with 160 * @param orderByComparator the comparator to order the set by 161 * @return the first matching announcements entry 162 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.announcements.NoSuchEntryException; 170 171 /** 172 * Finds the last announcements entry in the ordered set where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid to search with 179 * @param orderByComparator the comparator to order the set by 180 * @return the last matching announcements entry 181 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.announcements.NoSuchEntryException; 189 190 /** 191 * Finds the announcements entries before and after the current announcements entry in the ordered set where uuid = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param entryId the primary key of the current announcements entry 198 * @param uuid the uuid to search with 199 * @param orderByComparator the comparator to order the set by 200 * @return the previous, current, and next announcements entry 201 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUuid_PrevAndNext( 205 long entryId, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.announcements.NoSuchEntryException; 209 210 /** 211 * Filters by the user's permissions and finds all the announcements entries where uuid = ?. 212 * 213 * @param uuid the uuid to search with 214 * @return the matching announcements entries that the user has permission to view 215 * @throws SystemException if a system exception occurred 216 */ 217 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 218 java.lang.String uuid) 219 throws com.liferay.portal.kernel.exception.SystemException; 220 221 /** 222 * Filters by the user's permissions and finds a range of all the announcements entries where uuid = ?. 223 * 224 * <p> 225 * 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. 226 * </p> 227 * 228 * @param uuid the uuid to search with 229 * @param start the lower bound of the range of announcements entries to return 230 * @param end the upper bound of the range of announcements entries to return (not inclusive) 231 * @return the range of matching announcements entries that the user has permission to view 232 * @throws SystemException if a system exception occurred 233 */ 234 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 235 java.lang.String uuid, int start, int end) 236 throws com.liferay.portal.kernel.exception.SystemException; 237 238 /** 239 * Filters by the user's permissions and finds an ordered range of all the announcements entries where uuid = ?. 240 * 241 * <p> 242 * 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. 243 * </p> 244 * 245 * @param uuid the uuid to search with 246 * @param start the lower bound of the range of announcements entries to return 247 * @param end the upper bound of the range of announcements entries to return (not inclusive) 248 * @param orderByComparator the comparator to order the results by 249 * @return the ordered range of matching announcements entries that the user has permission to view 250 * @throws SystemException if a system exception occurred 251 */ 252 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUuid( 253 java.lang.String uuid, int start, int end, 254 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 255 throws com.liferay.portal.kernel.exception.SystemException; 256 257 /** 258 * Finds all the announcements entries where userId = ?. 259 * 260 * @param userId the user id to search with 261 * @return the matching announcements entries 262 * @throws SystemException if a system exception occurred 263 */ 264 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 265 long userId) throws com.liferay.portal.kernel.exception.SystemException; 266 267 /** 268 * Finds a range of all the announcements entries where userId = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param userId the user id to search with 275 * @param start the lower bound of the range of announcements entries to return 276 * @param end the upper bound of the range of announcements entries to return (not inclusive) 277 * @return the range of matching announcements entries 278 * @throws SystemException if a system exception occurred 279 */ 280 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 281 long userId, int start, int end) 282 throws com.liferay.portal.kernel.exception.SystemException; 283 284 /** 285 * Finds an ordered range of all the announcements entries where userId = ?. 286 * 287 * <p> 288 * 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. 289 * </p> 290 * 291 * @param userId the user id to search with 292 * @param start the lower bound of the range of announcements entries to return 293 * @param end the upper bound of the range of announcements entries to return (not inclusive) 294 * @param orderByComparator the comparator to order the results by 295 * @return the ordered range of matching announcements entries 296 * @throws SystemException if a system exception occurred 297 */ 298 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByUserId( 299 long userId, int start, int end, 300 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 301 throws com.liferay.portal.kernel.exception.SystemException; 302 303 /** 304 * Finds the first announcements entry in the ordered set where userId = ?. 305 * 306 * <p> 307 * 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. 308 * </p> 309 * 310 * @param userId the user id to search with 311 * @param orderByComparator the comparator to order the set by 312 * @return the first matching announcements entry 313 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 314 * @throws SystemException if a system exception occurred 315 */ 316 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_First( 317 long userId, 318 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 319 throws com.liferay.portal.kernel.exception.SystemException, 320 com.liferay.portlet.announcements.NoSuchEntryException; 321 322 /** 323 * Finds the last announcements entry in the ordered set where userId = ?. 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 userId the user id to search with 330 * @param orderByComparator the comparator to order the set by 331 * @return the last matching announcements entry 332 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByUserId_Last( 336 long userId, 337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 338 throws com.liferay.portal.kernel.exception.SystemException, 339 com.liferay.portlet.announcements.NoSuchEntryException; 340 341 /** 342 * Finds the announcements entries before and after the current announcements entry in the ordered set where userId = ?. 343 * 344 * <p> 345 * 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. 346 * </p> 347 * 348 * @param entryId the primary key of the current announcements entry 349 * @param userId the user id to search with 350 * @param orderByComparator the comparator to order the set by 351 * @return the previous, current, and next announcements entry 352 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 353 * @throws SystemException if a system exception occurred 354 */ 355 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByUserId_PrevAndNext( 356 long entryId, long userId, 357 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 358 throws com.liferay.portal.kernel.exception.SystemException, 359 com.liferay.portlet.announcements.NoSuchEntryException; 360 361 /** 362 * Filters by the user's permissions and finds all the announcements entries where userId = ?. 363 * 364 * @param userId the user id to search with 365 * @return the matching announcements entries that the user has permission to view 366 * @throws SystemException if a system exception occurred 367 */ 368 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 369 long userId) throws com.liferay.portal.kernel.exception.SystemException; 370 371 /** 372 * Filters by the user's permissions and finds a range of all the announcements entries where userId = ?. 373 * 374 * <p> 375 * 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. 376 * </p> 377 * 378 * @param userId the user id to search with 379 * @param start the lower bound of the range of announcements entries to return 380 * @param end the upper bound of the range of announcements entries to return (not inclusive) 381 * @return the range of matching announcements entries that the user has permission to view 382 * @throws SystemException if a system exception occurred 383 */ 384 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 385 long userId, int start, int end) 386 throws com.liferay.portal.kernel.exception.SystemException; 387 388 /** 389 * Filters by the user's permissions and finds an ordered range of all the announcements entries where userId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param userId the user id to search with 396 * @param start the lower bound of the range of announcements entries to return 397 * @param end the upper bound of the range of announcements entries to return (not inclusive) 398 * @param orderByComparator the comparator to order the results by 399 * @return the ordered range of matching announcements entries that the user has permission to view 400 * @throws SystemException if a system exception occurred 401 */ 402 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByUserId( 403 long userId, int start, int end, 404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 405 throws com.liferay.portal.kernel.exception.SystemException; 406 407 /** 408 * Finds all the announcements entries where classNameId = ? and classPK = ?. 409 * 410 * @param classNameId the class name id to search with 411 * @param classPK the class p k to search with 412 * @return the matching announcements entries 413 * @throws SystemException if a system exception occurred 414 */ 415 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 416 long classNameId, long classPK) 417 throws com.liferay.portal.kernel.exception.SystemException; 418 419 /** 420 * Finds a range of all the announcements entries where classNameId = ? and classPK = ?. 421 * 422 * <p> 423 * 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. 424 * </p> 425 * 426 * @param classNameId the class name id to search with 427 * @param classPK the class p k to search with 428 * @param start the lower bound of the range of announcements entries to return 429 * @param end the upper bound of the range of announcements entries to return (not inclusive) 430 * @return the range of matching announcements entries 431 * @throws SystemException if a system exception occurred 432 */ 433 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 434 long classNameId, long classPK, int start, int end) 435 throws com.liferay.portal.kernel.exception.SystemException; 436 437 /** 438 * Finds an ordered range of all the announcements entries where classNameId = ? and classPK = ?. 439 * 440 * <p> 441 * 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. 442 * </p> 443 * 444 * @param classNameId the class name id to search with 445 * @param classPK the class p k to search with 446 * @param start the lower bound of the range of announcements entries to return 447 * @param end the upper bound of the range of announcements entries to return (not inclusive) 448 * @param orderByComparator the comparator to order the results by 449 * @return the ordered range of matching announcements entries 450 * @throws SystemException if a system exception occurred 451 */ 452 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C( 453 long classNameId, long classPK, int start, int end, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException; 456 457 /** 458 * Finds the first announcements entry in the ordered set where classNameId = ? and classPK = ?. 459 * 460 * <p> 461 * 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. 462 * </p> 463 * 464 * @param classNameId the class name id to search with 465 * @param classPK the class p k to search with 466 * @param orderByComparator the comparator to order the set by 467 * @return the first matching announcements entry 468 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 469 * @throws SystemException if a system exception occurred 470 */ 471 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_First( 472 long classNameId, long classPK, 473 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 474 throws com.liferay.portal.kernel.exception.SystemException, 475 com.liferay.portlet.announcements.NoSuchEntryException; 476 477 /** 478 * Finds the last announcements entry in the ordered set where classNameId = ? and classPK = ?. 479 * 480 * <p> 481 * 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. 482 * </p> 483 * 484 * @param classNameId the class name id to search with 485 * @param classPK the class p k to search with 486 * @param orderByComparator the comparator to order the set by 487 * @return the last matching announcements entry 488 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 489 * @throws SystemException if a system exception occurred 490 */ 491 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_Last( 492 long classNameId, long classPK, 493 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 494 throws com.liferay.portal.kernel.exception.SystemException, 495 com.liferay.portlet.announcements.NoSuchEntryException; 496 497 /** 498 * Finds the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ?. 499 * 500 * <p> 501 * 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. 502 * </p> 503 * 504 * @param entryId the primary key of the current announcements entry 505 * @param classNameId the class name id to search with 506 * @param classPK the class p k to search with 507 * @param orderByComparator the comparator to order the set by 508 * @return the previous, current, and next announcements entry 509 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 510 * @throws SystemException if a system exception occurred 511 */ 512 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_PrevAndNext( 513 long entryId, long classNameId, long classPK, 514 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 515 throws com.liferay.portal.kernel.exception.SystemException, 516 com.liferay.portlet.announcements.NoSuchEntryException; 517 518 /** 519 * Filters by the user's permissions and finds all the announcements entries where classNameId = ? and classPK = ?. 520 * 521 * @param classNameId the class name id to search with 522 * @param classPK the class p k to search with 523 * @return the matching announcements entries that the user has permission to view 524 * @throws SystemException if a system exception occurred 525 */ 526 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 527 long classNameId, long classPK) 528 throws com.liferay.portal.kernel.exception.SystemException; 529 530 /** 531 * Filters by the user's permissions and finds a range of all the announcements entries where classNameId = ? and classPK = ?. 532 * 533 * <p> 534 * 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. 535 * </p> 536 * 537 * @param classNameId the class name id to search with 538 * @param classPK the class p k to search with 539 * @param start the lower bound of the range of announcements entries to return 540 * @param end the upper bound of the range of announcements entries to return (not inclusive) 541 * @return the range of matching announcements entries that the user has permission to view 542 * @throws SystemException if a system exception occurred 543 */ 544 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 545 long classNameId, long classPK, int start, int end) 546 throws com.liferay.portal.kernel.exception.SystemException; 547 548 /** 549 * Filters by the user's permissions and finds an ordered range of all the announcements entries where classNameId = ? and classPK = ?. 550 * 551 * <p> 552 * 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. 553 * </p> 554 * 555 * @param classNameId the class name id to search with 556 * @param classPK the class p k to search with 557 * @param start the lower bound of the range of announcements entries to return 558 * @param end the upper bound of the range of announcements entries to return (not inclusive) 559 * @param orderByComparator the comparator to order the results by 560 * @return the ordered range of matching announcements entries that the user has permission to view 561 * @throws SystemException if a system exception occurred 562 */ 563 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C( 564 long classNameId, long classPK, int start, int end, 565 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 566 throws com.liferay.portal.kernel.exception.SystemException; 567 568 /** 569 * Finds all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 570 * 571 * @param classNameId the class name id to search with 572 * @param classPK the class p k to search with 573 * @param alert the alert to search with 574 * @return the matching announcements entries 575 * @throws SystemException if a system exception occurred 576 */ 577 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 578 long classNameId, long classPK, boolean alert) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Finds a range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param classNameId the class name id to search with 589 * @param classPK the class p k to search with 590 * @param alert the alert to search with 591 * @param start the lower bound of the range of announcements entries to return 592 * @param end the upper bound of the range of announcements entries to return (not inclusive) 593 * @return the range of matching announcements entries 594 * @throws SystemException if a system exception occurred 595 */ 596 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 597 long classNameId, long classPK, boolean alert, int start, int end) 598 throws com.liferay.portal.kernel.exception.SystemException; 599 600 /** 601 * Finds an ordered range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 602 * 603 * <p> 604 * 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. 605 * </p> 606 * 607 * @param classNameId the class name id to search with 608 * @param classPK the class p k to search with 609 * @param alert the alert to search with 610 * @param start the lower bound of the range of announcements entries to return 611 * @param end the upper bound of the range of announcements entries to return (not inclusive) 612 * @param orderByComparator the comparator to order the results by 613 * @return the ordered range of matching announcements entries 614 * @throws SystemException if a system exception occurred 615 */ 616 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findByC_C_A( 617 long classNameId, long classPK, boolean alert, int start, int end, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Finds the first announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 623 * 624 * <p> 625 * 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. 626 * </p> 627 * 628 * @param classNameId the class name id to search with 629 * @param classPK the class p k to search with 630 * @param alert the alert to search with 631 * @param orderByComparator the comparator to order the set by 632 * @return the first matching announcements entry 633 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 634 * @throws SystemException if a system exception occurred 635 */ 636 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_First( 637 long classNameId, long classPK, boolean alert, 638 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 639 throws com.liferay.portal.kernel.exception.SystemException, 640 com.liferay.portlet.announcements.NoSuchEntryException; 641 642 /** 643 * Finds the last announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 644 * 645 * <p> 646 * 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. 647 * </p> 648 * 649 * @param classNameId the class name id to search with 650 * @param classPK the class p k to search with 651 * @param alert the alert to search with 652 * @param orderByComparator the comparator to order the set by 653 * @return the last matching announcements entry 654 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a matching announcements entry could not be found 655 * @throws SystemException if a system exception occurred 656 */ 657 public com.liferay.portlet.announcements.model.AnnouncementsEntry findByC_C_A_Last( 658 long classNameId, long classPK, boolean alert, 659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 660 throws com.liferay.portal.kernel.exception.SystemException, 661 com.liferay.portlet.announcements.NoSuchEntryException; 662 663 /** 664 * Finds the announcements entries before and after the current announcements entry in the ordered set where classNameId = ? and classPK = ? and alert = ?. 665 * 666 * <p> 667 * 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. 668 * </p> 669 * 670 * @param entryId the primary key of the current announcements entry 671 * @param classNameId the class name id to search with 672 * @param classPK the class p k to search with 673 * @param alert the alert to search with 674 * @param orderByComparator the comparator to order the set by 675 * @return the previous, current, and next announcements entry 676 * @throws com.liferay.portlet.announcements.NoSuchEntryException if a announcements entry with the primary key could not be found 677 * @throws SystemException if a system exception occurred 678 */ 679 public com.liferay.portlet.announcements.model.AnnouncementsEntry[] findByC_C_A_PrevAndNext( 680 long entryId, long classNameId, long classPK, boolean alert, 681 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 682 throws com.liferay.portal.kernel.exception.SystemException, 683 com.liferay.portlet.announcements.NoSuchEntryException; 684 685 /** 686 * Filters by the user's permissions and finds all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 687 * 688 * @param classNameId the class name id to search with 689 * @param classPK the class p k to search with 690 * @param alert the alert to search with 691 * @return the matching announcements entries that the user has permission to view 692 * @throws SystemException if a system exception occurred 693 */ 694 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 695 long classNameId, long classPK, boolean alert) 696 throws com.liferay.portal.kernel.exception.SystemException; 697 698 /** 699 * Filters by the user's permissions and finds a range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 700 * 701 * <p> 702 * 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. 703 * </p> 704 * 705 * @param classNameId the class name id to search with 706 * @param classPK the class p k to search with 707 * @param alert the alert to search with 708 * @param start the lower bound of the range of announcements entries to return 709 * @param end the upper bound of the range of announcements entries to return (not inclusive) 710 * @return the range of matching announcements entries that the user has permission to view 711 * @throws SystemException if a system exception occurred 712 */ 713 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 714 long classNameId, long classPK, boolean alert, int start, int end) 715 throws com.liferay.portal.kernel.exception.SystemException; 716 717 /** 718 * Filters by the user's permissions and finds an ordered range of all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 719 * 720 * <p> 721 * 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. 722 * </p> 723 * 724 * @param classNameId the class name id to search with 725 * @param classPK the class p k to search with 726 * @param alert the alert to search with 727 * @param start the lower bound of the range of announcements entries to return 728 * @param end the upper bound of the range of announcements entries to return (not inclusive) 729 * @param orderByComparator the comparator to order the results by 730 * @return the ordered range of matching announcements entries that the user has permission to view 731 * @throws SystemException if a system exception occurred 732 */ 733 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> filterFindByC_C_A( 734 long classNameId, long classPK, boolean alert, int start, int end, 735 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 736 throws com.liferay.portal.kernel.exception.SystemException; 737 738 /** 739 * Finds all the announcements entries. 740 * 741 * @return the announcements entries 742 * @throws SystemException if a system exception occurred 743 */ 744 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll() 745 throws com.liferay.portal.kernel.exception.SystemException; 746 747 /** 748 * Finds a range of all the announcements entries. 749 * 750 * <p> 751 * 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. 752 * </p> 753 * 754 * @param start the lower bound of the range of announcements entries to return 755 * @param end the upper bound of the range of announcements entries to return (not inclusive) 756 * @return the range of announcements entries 757 * @throws SystemException if a system exception occurred 758 */ 759 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 760 int start, int end) 761 throws com.liferay.portal.kernel.exception.SystemException; 762 763 /** 764 * Finds an ordered range of all the announcements entries. 765 * 766 * <p> 767 * 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. 768 * </p> 769 * 770 * @param start the lower bound of the range of announcements entries to return 771 * @param end the upper bound of the range of announcements entries to return (not inclusive) 772 * @param orderByComparator the comparator to order the results by 773 * @return the ordered range of announcements entries 774 * @throws SystemException if a system exception occurred 775 */ 776 public java.util.List<com.liferay.portlet.announcements.model.AnnouncementsEntry> findAll( 777 int start, int end, 778 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 779 throws com.liferay.portal.kernel.exception.SystemException; 780 781 /** 782 * Removes all the announcements entries where uuid = ? from the database. 783 * 784 * @param uuid the uuid to search with 785 * @throws SystemException if a system exception occurred 786 */ 787 public void removeByUuid(java.lang.String uuid) 788 throws com.liferay.portal.kernel.exception.SystemException; 789 790 /** 791 * Removes all the announcements entries where userId = ? from the database. 792 * 793 * @param userId the user id to search with 794 * @throws SystemException if a system exception occurred 795 */ 796 public void removeByUserId(long userId) 797 throws com.liferay.portal.kernel.exception.SystemException; 798 799 /** 800 * Removes all the announcements entries where classNameId = ? and classPK = ? from the database. 801 * 802 * @param classNameId the class name id to search with 803 * @param classPK the class p k to search with 804 * @throws SystemException if a system exception occurred 805 */ 806 public void removeByC_C(long classNameId, long classPK) 807 throws com.liferay.portal.kernel.exception.SystemException; 808 809 /** 810 * Removes all the announcements entries where classNameId = ? and classPK = ? and alert = ? from the database. 811 * 812 * @param classNameId the class name id to search with 813 * @param classPK the class p k to search with 814 * @param alert the alert to search with 815 * @throws SystemException if a system exception occurred 816 */ 817 public void removeByC_C_A(long classNameId, long classPK, boolean alert) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Removes all the announcements entries from the database. 822 * 823 * @throws SystemException if a system exception occurred 824 */ 825 public void removeAll() 826 throws com.liferay.portal.kernel.exception.SystemException; 827 828 /** 829 * Counts all the announcements entries where uuid = ?. 830 * 831 * @param uuid the uuid to search with 832 * @return the number of matching announcements entries 833 * @throws SystemException if a system exception occurred 834 */ 835 public int countByUuid(java.lang.String uuid) 836 throws com.liferay.portal.kernel.exception.SystemException; 837 838 /** 839 * Filters by the user's permissions and counts all the announcements entries where uuid = ?. 840 * 841 * @param uuid the uuid to search with 842 * @return the number of matching announcements entries that the user has permission to view 843 * @throws SystemException if a system exception occurred 844 */ 845 public int filterCountByUuid(java.lang.String uuid) 846 throws com.liferay.portal.kernel.exception.SystemException; 847 848 /** 849 * Counts all the announcements entries where userId = ?. 850 * 851 * @param userId the user id to search with 852 * @return the number of matching announcements entries 853 * @throws SystemException if a system exception occurred 854 */ 855 public int countByUserId(long userId) 856 throws com.liferay.portal.kernel.exception.SystemException; 857 858 /** 859 * Filters by the user's permissions and counts all the announcements entries where userId = ?. 860 * 861 * @param userId the user id to search with 862 * @return the number of matching announcements entries that the user has permission to view 863 * @throws SystemException if a system exception occurred 864 */ 865 public int filterCountByUserId(long userId) 866 throws com.liferay.portal.kernel.exception.SystemException; 867 868 /** 869 * Counts all the announcements entries where classNameId = ? and classPK = ?. 870 * 871 * @param classNameId the class name id to search with 872 * @param classPK the class p k to search with 873 * @return the number of matching announcements entries 874 * @throws SystemException if a system exception occurred 875 */ 876 public int countByC_C(long classNameId, long classPK) 877 throws com.liferay.portal.kernel.exception.SystemException; 878 879 /** 880 * Filters by the user's permissions and counts all the announcements entries where classNameId = ? and classPK = ?. 881 * 882 * @param classNameId the class name id to search with 883 * @param classPK the class p k to search with 884 * @return the number of matching announcements entries that the user has permission to view 885 * @throws SystemException if a system exception occurred 886 */ 887 public int filterCountByC_C(long classNameId, long classPK) 888 throws com.liferay.portal.kernel.exception.SystemException; 889 890 /** 891 * Counts all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 892 * 893 * @param classNameId the class name id to search with 894 * @param classPK the class p k to search with 895 * @param alert the alert to search with 896 * @return the number of matching announcements entries 897 * @throws SystemException if a system exception occurred 898 */ 899 public int countByC_C_A(long classNameId, long classPK, boolean alert) 900 throws com.liferay.portal.kernel.exception.SystemException; 901 902 /** 903 * Filters by the user's permissions and counts all the announcements entries where classNameId = ? and classPK = ? and alert = ?. 904 * 905 * @param classNameId the class name id to search with 906 * @param classPK the class p k to search with 907 * @param alert the alert to search with 908 * @return the number of matching announcements entries that the user has permission to view 909 * @throws SystemException if a system exception occurred 910 */ 911 public int filterCountByC_C_A(long classNameId, long classPK, boolean alert) 912 throws com.liferay.portal.kernel.exception.SystemException; 913 914 /** 915 * Counts all the announcements entries. 916 * 917 * @return the number of announcements entries 918 * @throws SystemException if a system exception occurred 919 */ 920 public int countAll() 921 throws com.liferay.portal.kernel.exception.SystemException; 922 }