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.journal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.journal.model.JournalFeed; 022 023 /** 024 * The persistence interface for the journal feed 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 com.liferay.portlet.journal.service.persistence.impl.JournalFeedPersistenceImpl 032 * @see JournalFeedUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface JournalFeedPersistence extends BasePersistence<JournalFeed> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link JournalFeedUtil} to access the journal feed persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the journal feeds where uuid = ?. 045 * 046 * @param uuid the uuid 047 * @return the matching journal feeds 048 */ 049 public java.util.List<JournalFeed> findByUuid(java.lang.String uuid); 050 051 /** 052 * Returns a range of all the journal feeds 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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 journal feeds 060 * @param end the upper bound of the range of journal feeds (not inclusive) 061 * @return the range of matching journal feeds 062 */ 063 public java.util.List<JournalFeed> findByUuid(java.lang.String uuid, 064 int start, int end); 065 066 /** 067 * Returns an ordered range of all the journal feeds where uuid = ?. 068 * 069 * <p> 070 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 071 * </p> 072 * 073 * @param uuid the uuid 074 * @param start the lower bound of the range of journal feeds 075 * @param end the upper bound of the range of journal feeds (not inclusive) 076 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 077 * @return the ordered range of matching journal feeds 078 */ 079 public java.util.List<JournalFeed> findByUuid(java.lang.String uuid, 080 int start, int end, 081 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 082 083 /** 084 * Returns the first journal feed in the ordered set where uuid = ?. 085 * 086 * @param uuid the uuid 087 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 088 * @return the first matching journal feed 089 * @throws NoSuchFeedException if a matching journal feed could not be found 090 */ 091 public JournalFeed findByUuid_First(java.lang.String uuid, 092 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 093 throws com.liferay.portlet.journal.NoSuchFeedException; 094 095 /** 096 * Returns the first journal feed in the ordered set where uuid = ?. 097 * 098 * @param uuid the uuid 099 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 100 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 101 */ 102 public JournalFeed fetchByUuid_First(java.lang.String uuid, 103 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 104 105 /** 106 * Returns the last journal feed in the ordered set where uuid = ?. 107 * 108 * @param uuid the uuid 109 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 110 * @return the last matching journal feed 111 * @throws NoSuchFeedException if a matching journal feed could not be found 112 */ 113 public JournalFeed findByUuid_Last(java.lang.String uuid, 114 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 115 throws com.liferay.portlet.journal.NoSuchFeedException; 116 117 /** 118 * Returns the last journal feed in the ordered set where uuid = ?. 119 * 120 * @param uuid the uuid 121 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 122 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 123 */ 124 public JournalFeed fetchByUuid_Last(java.lang.String uuid, 125 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 126 127 /** 128 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ?. 129 * 130 * @param id the primary key of the current journal feed 131 * @param uuid the uuid 132 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 133 * @return the previous, current, and next journal feed 134 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 135 */ 136 public JournalFeed[] findByUuid_PrevAndNext(long id, java.lang.String uuid, 137 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 138 throws com.liferay.portlet.journal.NoSuchFeedException; 139 140 /** 141 * Removes all the journal feeds where uuid = ? from the database. 142 * 143 * @param uuid the uuid 144 */ 145 public void removeByUuid(java.lang.String uuid); 146 147 /** 148 * Returns the number of journal feeds where uuid = ?. 149 * 150 * @param uuid the uuid 151 * @return the number of matching journal feeds 152 */ 153 public int countByUuid(java.lang.String uuid); 154 155 /** 156 * Returns the journal feed where uuid = ? and groupId = ? or throws a {@link NoSuchFeedException} if it could not be found. 157 * 158 * @param uuid the uuid 159 * @param groupId the group ID 160 * @return the matching journal feed 161 * @throws NoSuchFeedException if a matching journal feed could not be found 162 */ 163 public JournalFeed findByUUID_G(java.lang.String uuid, long groupId) 164 throws com.liferay.portlet.journal.NoSuchFeedException; 165 166 /** 167 * Returns the journal feed where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 168 * 169 * @param uuid the uuid 170 * @param groupId the group ID 171 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 172 */ 173 public JournalFeed fetchByUUID_G(java.lang.String uuid, long groupId); 174 175 /** 176 * Returns the journal feed where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 177 * 178 * @param uuid the uuid 179 * @param groupId the group ID 180 * @param retrieveFromCache whether to use the finder cache 181 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 182 */ 183 public JournalFeed fetchByUUID_G(java.lang.String uuid, long groupId, 184 boolean retrieveFromCache); 185 186 /** 187 * Removes the journal feed where uuid = ? and groupId = ? from the database. 188 * 189 * @param uuid the uuid 190 * @param groupId the group ID 191 * @return the journal feed that was removed 192 */ 193 public JournalFeed removeByUUID_G(java.lang.String uuid, long groupId) 194 throws com.liferay.portlet.journal.NoSuchFeedException; 195 196 /** 197 * Returns the number of journal feeds where uuid = ? and groupId = ?. 198 * 199 * @param uuid the uuid 200 * @param groupId the group ID 201 * @return the number of matching journal feeds 202 */ 203 public int countByUUID_G(java.lang.String uuid, long groupId); 204 205 /** 206 * Returns all the journal feeds where uuid = ? and companyId = ?. 207 * 208 * @param uuid the uuid 209 * @param companyId the company ID 210 * @return the matching journal feeds 211 */ 212 public java.util.List<JournalFeed> findByUuid_C(java.lang.String uuid, 213 long companyId); 214 215 /** 216 * Returns a range of all the journal feeds where uuid = ? and companyId = ?. 217 * 218 * <p> 219 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 220 * </p> 221 * 222 * @param uuid the uuid 223 * @param companyId the company ID 224 * @param start the lower bound of the range of journal feeds 225 * @param end the upper bound of the range of journal feeds (not inclusive) 226 * @return the range of matching journal feeds 227 */ 228 public java.util.List<JournalFeed> findByUuid_C(java.lang.String uuid, 229 long companyId, int start, int end); 230 231 /** 232 * Returns an ordered range of all the journal feeds where uuid = ? and companyId = ?. 233 * 234 * <p> 235 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 236 * </p> 237 * 238 * @param uuid the uuid 239 * @param companyId the company ID 240 * @param start the lower bound of the range of journal feeds 241 * @param end the upper bound of the range of journal feeds (not inclusive) 242 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 243 * @return the ordered range of matching journal feeds 244 */ 245 public java.util.List<JournalFeed> findByUuid_C(java.lang.String uuid, 246 long companyId, int start, int end, 247 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 248 249 /** 250 * Returns the first journal feed in the ordered set where uuid = ? and companyId = ?. 251 * 252 * @param uuid the uuid 253 * @param companyId the company ID 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching journal feed 256 * @throws NoSuchFeedException if a matching journal feed could not be found 257 */ 258 public JournalFeed findByUuid_C_First(java.lang.String uuid, 259 long companyId, 260 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 261 throws com.liferay.portlet.journal.NoSuchFeedException; 262 263 /** 264 * Returns the first journal feed in the ordered set where uuid = ? and companyId = ?. 265 * 266 * @param uuid the uuid 267 * @param companyId the company ID 268 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 269 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 270 */ 271 public JournalFeed fetchByUuid_C_First(java.lang.String uuid, 272 long companyId, 273 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 274 275 /** 276 * Returns the last journal feed in the ordered set where uuid = ? and companyId = ?. 277 * 278 * @param uuid the uuid 279 * @param companyId the company ID 280 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 281 * @return the last matching journal feed 282 * @throws NoSuchFeedException if a matching journal feed could not be found 283 */ 284 public JournalFeed findByUuid_C_Last(java.lang.String uuid, long companyId, 285 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 286 throws com.liferay.portlet.journal.NoSuchFeedException; 287 288 /** 289 * Returns the last journal feed in the ordered set where uuid = ? and companyId = ?. 290 * 291 * @param uuid the uuid 292 * @param companyId the company ID 293 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 294 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 295 */ 296 public JournalFeed fetchByUuid_C_Last(java.lang.String uuid, 297 long companyId, 298 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 299 300 /** 301 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ? and companyId = ?. 302 * 303 * @param id the primary key of the current journal feed 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 previous, current, and next journal feed 308 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 309 */ 310 public JournalFeed[] findByUuid_C_PrevAndNext(long id, 311 java.lang.String uuid, long companyId, 312 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 313 throws com.liferay.portlet.journal.NoSuchFeedException; 314 315 /** 316 * Removes all the journal feeds where uuid = ? and companyId = ? from the database. 317 * 318 * @param uuid the uuid 319 * @param companyId the company ID 320 */ 321 public void removeByUuid_C(java.lang.String uuid, long companyId); 322 323 /** 324 * Returns the number of journal feeds where uuid = ? and companyId = ?. 325 * 326 * @param uuid the uuid 327 * @param companyId the company ID 328 * @return the number of matching journal feeds 329 */ 330 public int countByUuid_C(java.lang.String uuid, long companyId); 331 332 /** 333 * Returns all the journal feeds where groupId = ?. 334 * 335 * @param groupId the group ID 336 * @return the matching journal feeds 337 */ 338 public java.util.List<JournalFeed> findByGroupId(long groupId); 339 340 /** 341 * Returns a range of all the journal feeds where groupId = ?. 342 * 343 * <p> 344 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 345 * </p> 346 * 347 * @param groupId the group ID 348 * @param start the lower bound of the range of journal feeds 349 * @param end the upper bound of the range of journal feeds (not inclusive) 350 * @return the range of matching journal feeds 351 */ 352 public java.util.List<JournalFeed> findByGroupId(long groupId, int start, 353 int end); 354 355 /** 356 * Returns an ordered range of all the journal feeds where groupId = ?. 357 * 358 * <p> 359 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 360 * </p> 361 * 362 * @param groupId the group ID 363 * @param start the lower bound of the range of journal feeds 364 * @param end the upper bound of the range of journal feeds (not inclusive) 365 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 366 * @return the ordered range of matching journal feeds 367 */ 368 public java.util.List<JournalFeed> findByGroupId(long groupId, int start, 369 int end, 370 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 371 372 /** 373 * Returns the first journal feed in the ordered set where groupId = ?. 374 * 375 * @param groupId the group ID 376 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 377 * @return the first matching journal feed 378 * @throws NoSuchFeedException if a matching journal feed could not be found 379 */ 380 public JournalFeed findByGroupId_First(long groupId, 381 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 382 throws com.liferay.portlet.journal.NoSuchFeedException; 383 384 /** 385 * Returns the first journal feed in the ordered set where groupId = ?. 386 * 387 * @param groupId the group ID 388 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 389 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 390 */ 391 public JournalFeed fetchByGroupId_First(long groupId, 392 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 393 394 /** 395 * Returns the last journal feed in the ordered set where groupId = ?. 396 * 397 * @param groupId the group ID 398 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 399 * @return the last matching journal feed 400 * @throws NoSuchFeedException if a matching journal feed could not be found 401 */ 402 public JournalFeed findByGroupId_Last(long groupId, 403 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 404 throws com.liferay.portlet.journal.NoSuchFeedException; 405 406 /** 407 * Returns the last journal feed in the ordered set where groupId = ?. 408 * 409 * @param groupId the group ID 410 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 411 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 412 */ 413 public JournalFeed fetchByGroupId_Last(long groupId, 414 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 415 416 /** 417 * Returns the journal feeds before and after the current journal feed in the ordered set where groupId = ?. 418 * 419 * @param id the primary key of the current journal feed 420 * @param groupId the group ID 421 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 422 * @return the previous, current, and next journal feed 423 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 424 */ 425 public JournalFeed[] findByGroupId_PrevAndNext(long id, long groupId, 426 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 427 throws com.liferay.portlet.journal.NoSuchFeedException; 428 429 /** 430 * Returns all the journal feeds that the user has permission to view where groupId = ?. 431 * 432 * @param groupId the group ID 433 * @return the matching journal feeds that the user has permission to view 434 */ 435 public java.util.List<JournalFeed> filterFindByGroupId(long groupId); 436 437 /** 438 * Returns a range of all the journal feeds that the user has permission to view where groupId = ?. 439 * 440 * <p> 441 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 442 * </p> 443 * 444 * @param groupId the group ID 445 * @param start the lower bound of the range of journal feeds 446 * @param end the upper bound of the range of journal feeds (not inclusive) 447 * @return the range of matching journal feeds that the user has permission to view 448 */ 449 public java.util.List<JournalFeed> filterFindByGroupId(long groupId, 450 int start, int end); 451 452 /** 453 * Returns an ordered range of all the journal feeds that the user has permissions to view where groupId = ?. 454 * 455 * <p> 456 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 457 * </p> 458 * 459 * @param groupId the group ID 460 * @param start the lower bound of the range of journal feeds 461 * @param end the upper bound of the range of journal feeds (not inclusive) 462 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 463 * @return the ordered range of matching journal feeds that the user has permission to view 464 */ 465 public java.util.List<JournalFeed> filterFindByGroupId(long groupId, 466 int start, int end, 467 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 468 469 /** 470 * Returns the journal feeds before and after the current journal feed in the ordered set of journal feeds that the user has permission to view where groupId = ?. 471 * 472 * @param id the primary key of the current journal feed 473 * @param groupId the group ID 474 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 475 * @return the previous, current, and next journal feed 476 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 477 */ 478 public JournalFeed[] filterFindByGroupId_PrevAndNext(long id, long groupId, 479 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator) 480 throws com.liferay.portlet.journal.NoSuchFeedException; 481 482 /** 483 * Removes all the journal feeds where groupId = ? from the database. 484 * 485 * @param groupId the group ID 486 */ 487 public void removeByGroupId(long groupId); 488 489 /** 490 * Returns the number of journal feeds where groupId = ?. 491 * 492 * @param groupId the group ID 493 * @return the number of matching journal feeds 494 */ 495 public int countByGroupId(long groupId); 496 497 /** 498 * Returns the number of journal feeds that the user has permission to view where groupId = ?. 499 * 500 * @param groupId the group ID 501 * @return the number of matching journal feeds that the user has permission to view 502 */ 503 public int filterCountByGroupId(long groupId); 504 505 /** 506 * Returns the journal feed where groupId = ? and feedId = ? or throws a {@link NoSuchFeedException} if it could not be found. 507 * 508 * @param groupId the group ID 509 * @param feedId the feed ID 510 * @return the matching journal feed 511 * @throws NoSuchFeedException if a matching journal feed could not be found 512 */ 513 public JournalFeed findByG_F(long groupId, java.lang.String feedId) 514 throws com.liferay.portlet.journal.NoSuchFeedException; 515 516 /** 517 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 518 * 519 * @param groupId the group ID 520 * @param feedId the feed ID 521 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 522 */ 523 public JournalFeed fetchByG_F(long groupId, java.lang.String feedId); 524 525 /** 526 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 527 * 528 * @param groupId the group ID 529 * @param feedId the feed ID 530 * @param retrieveFromCache whether to use the finder cache 531 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 532 */ 533 public JournalFeed fetchByG_F(long groupId, java.lang.String feedId, 534 boolean retrieveFromCache); 535 536 /** 537 * Removes the journal feed where groupId = ? and feedId = ? from the database. 538 * 539 * @param groupId the group ID 540 * @param feedId the feed ID 541 * @return the journal feed that was removed 542 */ 543 public JournalFeed removeByG_F(long groupId, java.lang.String feedId) 544 throws com.liferay.portlet.journal.NoSuchFeedException; 545 546 /** 547 * Returns the number of journal feeds where groupId = ? and feedId = ?. 548 * 549 * @param groupId the group ID 550 * @param feedId the feed ID 551 * @return the number of matching journal feeds 552 */ 553 public int countByG_F(long groupId, java.lang.String feedId); 554 555 /** 556 * Caches the journal feed in the entity cache if it is enabled. 557 * 558 * @param journalFeed the journal feed 559 */ 560 public void cacheResult(JournalFeed journalFeed); 561 562 /** 563 * Caches the journal feeds in the entity cache if it is enabled. 564 * 565 * @param journalFeeds the journal feeds 566 */ 567 public void cacheResult(java.util.List<JournalFeed> journalFeeds); 568 569 /** 570 * Creates a new journal feed with the primary key. Does not add the journal feed to the database. 571 * 572 * @param id the primary key for the new journal feed 573 * @return the new journal feed 574 */ 575 public JournalFeed create(long id); 576 577 /** 578 * Removes the journal feed with the primary key from the database. Also notifies the appropriate model listeners. 579 * 580 * @param id the primary key of the journal feed 581 * @return the journal feed that was removed 582 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 583 */ 584 public JournalFeed remove(long id) 585 throws com.liferay.portlet.journal.NoSuchFeedException; 586 587 public JournalFeed updateImpl(JournalFeed journalFeed); 588 589 /** 590 * Returns the journal feed with the primary key or throws a {@link NoSuchFeedException} if it could not be found. 591 * 592 * @param id the primary key of the journal feed 593 * @return the journal feed 594 * @throws NoSuchFeedException if a journal feed with the primary key could not be found 595 */ 596 public JournalFeed findByPrimaryKey(long id) 597 throws com.liferay.portlet.journal.NoSuchFeedException; 598 599 /** 600 * Returns the journal feed with the primary key or returns <code>null</code> if it could not be found. 601 * 602 * @param id the primary key of the journal feed 603 * @return the journal feed, or <code>null</code> if a journal feed with the primary key could not be found 604 */ 605 public JournalFeed fetchByPrimaryKey(long id); 606 607 @Override 608 public java.util.Map<java.io.Serializable, JournalFeed> fetchByPrimaryKeys( 609 java.util.Set<java.io.Serializable> primaryKeys); 610 611 /** 612 * Returns all the journal feeds. 613 * 614 * @return the journal feeds 615 */ 616 public java.util.List<JournalFeed> findAll(); 617 618 /** 619 * Returns a range of all the journal feeds. 620 * 621 * <p> 622 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 623 * </p> 624 * 625 * @param start the lower bound of the range of journal feeds 626 * @param end the upper bound of the range of journal feeds (not inclusive) 627 * @return the range of journal feeds 628 */ 629 public java.util.List<JournalFeed> findAll(int start, int end); 630 631 /** 632 * Returns an ordered range of all the journal feeds. 633 * 634 * <p> 635 * 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 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 QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link JournalFeedModelImpl}. 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. 636 * </p> 637 * 638 * @param start the lower bound of the range of journal feeds 639 * @param end the upper bound of the range of journal feeds (not inclusive) 640 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 641 * @return the ordered range of journal feeds 642 */ 643 public java.util.List<JournalFeed> findAll(int start, int end, 644 com.liferay.portal.kernel.util.OrderByComparator<JournalFeed> orderByComparator); 645 646 /** 647 * Removes all the journal feeds from the database. 648 */ 649 public void removeAll(); 650 651 /** 652 * Returns the number of journal feeds. 653 * 654 * @return the number of journal feeds 655 */ 656 public int countAll(); 657 }