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