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