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