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