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