001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.journal.model.JournalFeed; 020 021 /** 022 * The persistence interface for the journal feed service. 023 * 024 * <p> 025 * Caching information and settings can be found in <code>portal.properties</code> 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see JournalFeedPersistenceImpl 030 * @see JournalFeedUtil 031 * @generated 032 */ 033 public interface JournalFeedPersistence extends BasePersistence<JournalFeed> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * 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. 038 */ 039 040 /** 041 * Caches the journal feed in the entity cache if it is enabled. 042 * 043 * @param journalFeed the journal feed 044 */ 045 public void cacheResult( 046 com.liferay.portlet.journal.model.JournalFeed journalFeed); 047 048 /** 049 * Caches the journal feeds in the entity cache if it is enabled. 050 * 051 * @param journalFeeds the journal feeds 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.journal.model.JournalFeed> journalFeeds); 055 056 /** 057 * Creates a new journal feed with the primary key. Does not add the journal feed to the database. 058 * 059 * @param id the primary key for the new journal feed 060 * @return the new journal feed 061 */ 062 public com.liferay.portlet.journal.model.JournalFeed create(long id); 063 064 /** 065 * Removes the journal feed with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param id the primary key of the journal feed 068 * @return the journal feed that was removed 069 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portlet.journal.model.JournalFeed remove(long id) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.journal.NoSuchFeedException; 075 076 public com.liferay.portlet.journal.model.JournalFeed updateImpl( 077 com.liferay.portlet.journal.model.JournalFeed journalFeed) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the journal feed with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 082 * 083 * @param id the primary key of the journal feed 084 * @return the journal feed 085 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portlet.journal.model.JournalFeed findByPrimaryKey( 089 long id) 090 throws com.liferay.portal.kernel.exception.SystemException, 091 com.liferay.portlet.journal.NoSuchFeedException; 092 093 /** 094 * Returns the journal feed with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param id the primary key of the journal feed 097 * @return the journal feed, or <code>null</code> if a journal feed with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portlet.journal.model.JournalFeed fetchByPrimaryKey( 101 long id) throws com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Returns all the journal feeds where uuid = ?. 105 * 106 * @param uuid the uuid 107 * @return the matching journal feeds 108 * @throws SystemException if a system exception occurred 109 */ 110 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 111 java.lang.String uuid) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns a range of all the journal feeds where uuid = ?. 116 * 117 * <p> 118 * 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. 119 * </p> 120 * 121 * @param uuid the uuid 122 * @param start the lower bound of the range of journal feeds 123 * @param end the upper bound of the range of journal feeds (not inclusive) 124 * @return the range of matching journal feeds 125 * @throws SystemException if a system exception occurred 126 */ 127 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 128 java.lang.String uuid, int start, int end) 129 throws com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns an ordered range of all the journal feeds where uuid = ?. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param uuid the uuid 139 * @param start the lower bound of the range of journal feeds 140 * @param end the upper bound of the range of journal feeds (not inclusive) 141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 142 * @return the ordered range of matching journal feeds 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid( 146 java.lang.String uuid, int start, int end, 147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 /** 151 * Returns the first journal feed in the ordered set where uuid = ?. 152 * 153 * @param uuid the uuid 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the first matching journal feed 156 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portlet.journal.model.JournalFeed findByUuid_First( 160 java.lang.String uuid, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.journal.NoSuchFeedException; 164 165 /** 166 * Returns the first journal feed in the ordered set where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_First( 174 java.lang.String uuid, 175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the last journal feed in the ordered set where uuid = ?. 180 * 181 * @param uuid the uuid 182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 183 * @return the last matching journal feed 184 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.journal.model.JournalFeed findByUuid_Last( 188 java.lang.String uuid, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.kernel.exception.SystemException, 191 com.liferay.portlet.journal.NoSuchFeedException; 192 193 /** 194 * Returns the last journal feed in the ordered set where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 198 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_Last( 202 java.lang.String uuid, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ?. 208 * 209 * @param id the primary key of the current journal feed 210 * @param uuid the uuid 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next journal feed 213 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.journal.model.JournalFeed[] findByUuid_PrevAndNext( 217 long id, java.lang.String uuid, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.kernel.exception.SystemException, 220 com.liferay.portlet.journal.NoSuchFeedException; 221 222 /** 223 * Returns the journal feed where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 224 * 225 * @param uuid the uuid 226 * @param groupId the group ID 227 * @return the matching journal feed 228 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 229 * @throws SystemException if a system exception occurred 230 */ 231 public com.liferay.portlet.journal.model.JournalFeed findByUUID_G( 232 java.lang.String uuid, long groupId) 233 throws com.liferay.portal.kernel.exception.SystemException, 234 com.liferay.portlet.journal.NoSuchFeedException; 235 236 /** 237 * Returns the journal feed where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 238 * 239 * @param uuid the uuid 240 * @param groupId the group ID 241 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 242 * @throws SystemException if a system exception occurred 243 */ 244 public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G( 245 java.lang.String uuid, long groupId) 246 throws com.liferay.portal.kernel.exception.SystemException; 247 248 /** 249 * Returns the journal feed where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 250 * 251 * @param uuid the uuid 252 * @param groupId the group ID 253 * @param retrieveFromCache whether to use the finder cache 254 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G( 258 java.lang.String uuid, long groupId, boolean retrieveFromCache) 259 throws com.liferay.portal.kernel.exception.SystemException; 260 261 /** 262 * Returns all the journal feeds where uuid = ? and companyId = ?. 263 * 264 * @param uuid the uuid 265 * @param companyId the company ID 266 * @return the matching journal feeds 267 * @throws SystemException if a system exception occurred 268 */ 269 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 270 java.lang.String uuid, long companyId) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns a range of all the journal feeds where uuid = ? and companyId = ?. 275 * 276 * <p> 277 * 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. 278 * </p> 279 * 280 * @param uuid the uuid 281 * @param companyId the company ID 282 * @param start the lower bound of the range of journal feeds 283 * @param end the upper bound of the range of journal feeds (not inclusive) 284 * @return the range of matching journal feeds 285 * @throws SystemException if a system exception occurred 286 */ 287 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 288 java.lang.String uuid, long companyId, int start, int end) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns an ordered range of all the journal feeds where uuid = ? and companyId = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param uuid the uuid 299 * @param companyId the company ID 300 * @param start the lower bound of the range of journal feeds 301 * @param end the upper bound of the range of journal feeds (not inclusive) 302 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 303 * @return the ordered range of matching journal feeds 304 * @throws SystemException if a system exception occurred 305 */ 306 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByUuid_C( 307 java.lang.String uuid, long companyId, int start, int end, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException; 310 311 /** 312 * Returns the first journal feed in the ordered set where uuid = ? and companyId = ?. 313 * 314 * @param uuid the uuid 315 * @param companyId the company ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching journal feed 318 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.journal.model.JournalFeed findByUuid_C_First( 322 java.lang.String uuid, long companyId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.journal.NoSuchFeedException; 326 327 /** 328 * Returns the first journal feed in the ordered set where uuid = ? and companyId = ?. 329 * 330 * @param uuid the uuid 331 * @param companyId the company ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_First( 337 java.lang.String uuid, long companyId, 338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns the last journal feed in the ordered set where uuid = ? and companyId = ?. 343 * 344 * @param uuid the uuid 345 * @param companyId the company ID 346 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 347 * @return the last matching journal feed 348 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portlet.journal.model.JournalFeed findByUuid_C_Last( 352 java.lang.String uuid, long companyId, 353 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 354 throws com.liferay.portal.kernel.exception.SystemException, 355 com.liferay.portlet.journal.NoSuchFeedException; 356 357 /** 358 * Returns the last journal feed in the ordered set where uuid = ? and companyId = ?. 359 * 360 * @param uuid the uuid 361 * @param companyId the company ID 362 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 363 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 364 * @throws SystemException if a system exception occurred 365 */ 366 public com.liferay.portlet.journal.model.JournalFeed fetchByUuid_C_Last( 367 java.lang.String uuid, long companyId, 368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 369 throws com.liferay.portal.kernel.exception.SystemException; 370 371 /** 372 * Returns the journal feeds before and after the current journal feed in the ordered set where uuid = ? and companyId = ?. 373 * 374 * @param id the primary key of the current journal feed 375 * @param uuid the uuid 376 * @param companyId the company ID 377 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 378 * @return the previous, current, and next journal feed 379 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public com.liferay.portlet.journal.model.JournalFeed[] findByUuid_C_PrevAndNext( 383 long id, java.lang.String uuid, long companyId, 384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 385 throws com.liferay.portal.kernel.exception.SystemException, 386 com.liferay.portlet.journal.NoSuchFeedException; 387 388 /** 389 * Returns all the journal feeds where groupId = ?. 390 * 391 * @param groupId the group ID 392 * @return the matching journal feeds 393 * @throws SystemException if a system exception occurred 394 */ 395 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 396 long groupId) 397 throws com.liferay.portal.kernel.exception.SystemException; 398 399 /** 400 * Returns a range of all the journal feeds where groupId = ?. 401 * 402 * <p> 403 * 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. 404 * </p> 405 * 406 * @param groupId the group ID 407 * @param start the lower bound of the range of journal feeds 408 * @param end the upper bound of the range of journal feeds (not inclusive) 409 * @return the range of matching journal feeds 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 413 long groupId, int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns an ordered range of all the journal feeds where groupId = ?. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param groupId the group ID 424 * @param start the lower bound of the range of journal feeds 425 * @param end the upper bound of the range of journal feeds (not inclusive) 426 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 427 * @return the ordered range of matching journal feeds 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 431 long groupId, int start, int end, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException; 434 435 /** 436 * Returns the first journal feed in the ordered set where groupId = ?. 437 * 438 * @param groupId the group ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the first matching journal feed 441 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public com.liferay.portlet.journal.model.JournalFeed findByGroupId_First( 445 long groupId, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.kernel.exception.SystemException, 448 com.liferay.portlet.journal.NoSuchFeedException; 449 450 /** 451 * Returns the first journal feed in the ordered set where groupId = ?. 452 * 453 * @param groupId the group ID 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the first matching journal feed, or <code>null</code> if a matching journal feed could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_First( 459 long groupId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * Returns the last journal feed in the ordered set where groupId = ?. 465 * 466 * @param groupId the group ID 467 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 468 * @return the last matching journal feed 469 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 470 * @throws SystemException if a system exception occurred 471 */ 472 public com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last( 473 long groupId, 474 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 475 throws com.liferay.portal.kernel.exception.SystemException, 476 com.liferay.portlet.journal.NoSuchFeedException; 477 478 /** 479 * Returns the last journal feed in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching journal feed, or <code>null</code> if a matching journal feed could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public com.liferay.portlet.journal.model.JournalFeed fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the journal feeds before and after the current journal feed in the ordered set where groupId = ?. 493 * 494 * @param id the primary key of the current journal feed 495 * @param groupId the group ID 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the previous, current, and next journal feed 498 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext( 502 long id, long groupId, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.kernel.exception.SystemException, 505 com.liferay.portlet.journal.NoSuchFeedException; 506 507 /** 508 * Returns all the journal feeds that the user has permission to view where groupId = ?. 509 * 510 * @param groupId the group ID 511 * @return the matching journal feeds that the user has permission to view 512 * @throws SystemException if a system exception occurred 513 */ 514 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 515 long groupId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns a range of all the journal feeds that the user has permission to view where groupId = ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param groupId the group ID 526 * @param start the lower bound of the range of journal feeds 527 * @param end the upper bound of the range of journal feeds (not inclusive) 528 * @return the range of matching journal feeds that the user has permission to view 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 532 long groupId, int start, int end) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Returns an ordered range of all the journal feeds that the user has permissions to view where groupId = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param groupId the group ID 543 * @param start the lower bound of the range of journal feeds 544 * @param end the upper bound of the range of journal feeds (not inclusive) 545 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 546 * @return the ordered range of matching journal feeds that the user has permission to view 547 * @throws SystemException if a system exception occurred 548 */ 549 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 550 long groupId, int start, int end, 551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 552 throws com.liferay.portal.kernel.exception.SystemException; 553 554 /** 555 * 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 = ?. 556 * 557 * @param id the primary key of the current journal feed 558 * @param groupId the group ID 559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 560 * @return the previous, current, and next journal feed 561 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portlet.journal.model.JournalFeed[] filterFindByGroupId_PrevAndNext( 565 long id, long groupId, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.journal.NoSuchFeedException; 569 570 /** 571 * Returns the journal feed where groupId = ? and feedId = ? or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 572 * 573 * @param groupId the group ID 574 * @param feedId the feed ID 575 * @return the matching journal feed 576 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public com.liferay.portlet.journal.model.JournalFeed findByG_F( 580 long groupId, java.lang.String feedId) 581 throws com.liferay.portal.kernel.exception.SystemException, 582 com.liferay.portlet.journal.NoSuchFeedException; 583 584 /** 585 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 586 * 587 * @param groupId the group ID 588 * @param feedId the feed ID 589 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 590 * @throws SystemException if a system exception occurred 591 */ 592 public com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 593 long groupId, java.lang.String feedId) 594 throws com.liferay.portal.kernel.exception.SystemException; 595 596 /** 597 * Returns the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 598 * 599 * @param groupId the group ID 600 * @param feedId the feed ID 601 * @param retrieveFromCache whether to use the finder cache 602 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 603 * @throws SystemException if a system exception occurred 604 */ 605 public com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 606 long groupId, java.lang.String feedId, boolean retrieveFromCache) 607 throws com.liferay.portal.kernel.exception.SystemException; 608 609 /** 610 * Returns all the journal feeds. 611 * 612 * @return the journal feeds 613 * @throws SystemException if a system exception occurred 614 */ 615 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll() 616 throws com.liferay.portal.kernel.exception.SystemException; 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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 * @throws SystemException if a system exception occurred 629 */ 630 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 631 int start, int end) 632 throws com.liferay.portal.kernel.exception.SystemException; 633 634 /** 635 * Returns an ordered range of all the journal feeds. 636 * 637 * <p> 638 * 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. 639 * </p> 640 * 641 * @param start the lower bound of the range of journal feeds 642 * @param end the upper bound of the range of journal feeds (not inclusive) 643 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 644 * @return the ordered range of journal feeds 645 * @throws SystemException if a system exception occurred 646 */ 647 public java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 648 int start, int end, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException; 651 652 /** 653 * Removes all the journal feeds where uuid = ? from the database. 654 * 655 * @param uuid the uuid 656 * @throws SystemException if a system exception occurred 657 */ 658 public void removeByUuid(java.lang.String uuid) 659 throws com.liferay.portal.kernel.exception.SystemException; 660 661 /** 662 * Removes the journal feed where uuid = ? and groupId = ? from the database. 663 * 664 * @param uuid the uuid 665 * @param groupId the group ID 666 * @return the journal feed that was removed 667 * @throws SystemException if a system exception occurred 668 */ 669 public com.liferay.portlet.journal.model.JournalFeed removeByUUID_G( 670 java.lang.String uuid, long groupId) 671 throws com.liferay.portal.kernel.exception.SystemException, 672 com.liferay.portlet.journal.NoSuchFeedException; 673 674 /** 675 * Removes all the journal feeds where uuid = ? and companyId = ? from the database. 676 * 677 * @param uuid the uuid 678 * @param companyId the company ID 679 * @throws SystemException if a system exception occurred 680 */ 681 public void removeByUuid_C(java.lang.String uuid, long companyId) 682 throws com.liferay.portal.kernel.exception.SystemException; 683 684 /** 685 * Removes all the journal feeds where groupId = ? from the database. 686 * 687 * @param groupId the group ID 688 * @throws SystemException if a system exception occurred 689 */ 690 public void removeByGroupId(long groupId) 691 throws com.liferay.portal.kernel.exception.SystemException; 692 693 /** 694 * Removes the journal feed where groupId = ? and feedId = ? from the database. 695 * 696 * @param groupId the group ID 697 * @param feedId the feed ID 698 * @return the journal feed that was removed 699 * @throws SystemException if a system exception occurred 700 */ 701 public com.liferay.portlet.journal.model.JournalFeed removeByG_F( 702 long groupId, java.lang.String feedId) 703 throws com.liferay.portal.kernel.exception.SystemException, 704 com.liferay.portlet.journal.NoSuchFeedException; 705 706 /** 707 * Removes all the journal feeds from the database. 708 * 709 * @throws SystemException if a system exception occurred 710 */ 711 public void removeAll() 712 throws com.liferay.portal.kernel.exception.SystemException; 713 714 /** 715 * Returns the number of journal feeds where uuid = ?. 716 * 717 * @param uuid the uuid 718 * @return the number of matching journal feeds 719 * @throws SystemException if a system exception occurred 720 */ 721 public int countByUuid(java.lang.String uuid) 722 throws com.liferay.portal.kernel.exception.SystemException; 723 724 /** 725 * Returns the number of journal feeds where uuid = ? and groupId = ?. 726 * 727 * @param uuid the uuid 728 * @param groupId the group ID 729 * @return the number of matching journal feeds 730 * @throws SystemException if a system exception occurred 731 */ 732 public int countByUUID_G(java.lang.String uuid, long groupId) 733 throws com.liferay.portal.kernel.exception.SystemException; 734 735 /** 736 * Returns the number of journal feeds where uuid = ? and companyId = ?. 737 * 738 * @param uuid the uuid 739 * @param companyId the company ID 740 * @return the number of matching journal feeds 741 * @throws SystemException if a system exception occurred 742 */ 743 public int countByUuid_C(java.lang.String uuid, long companyId) 744 throws com.liferay.portal.kernel.exception.SystemException; 745 746 /** 747 * Returns the number of journal feeds where groupId = ?. 748 * 749 * @param groupId the group ID 750 * @return the number of matching journal feeds 751 * @throws SystemException if a system exception occurred 752 */ 753 public int countByGroupId(long groupId) 754 throws com.liferay.portal.kernel.exception.SystemException; 755 756 /** 757 * Returns the number of journal feeds that the user has permission to view where groupId = ?. 758 * 759 * @param groupId the group ID 760 * @return the number of matching journal feeds that the user has permission to view 761 * @throws SystemException if a system exception occurred 762 */ 763 public int filterCountByGroupId(long groupId) 764 throws com.liferay.portal.kernel.exception.SystemException; 765 766 /** 767 * Returns the number of journal feeds where groupId = ? and feedId = ?. 768 * 769 * @param groupId the group ID 770 * @param feedId the feed ID 771 * @return the number of matching journal feeds 772 * @throws SystemException if a system exception occurred 773 */ 774 public int countByG_F(long groupId, java.lang.String feedId) 775 throws com.liferay.portal.kernel.exception.SystemException; 776 777 /** 778 * Returns the number of journal feeds. 779 * 780 * @return the number of journal feeds 781 * @throws SystemException if a system exception occurred 782 */ 783 public int countAll() 784 throws com.liferay.portal.kernel.exception.SystemException; 785 }