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