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