001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 to cache 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 to cache 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 to remove 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 * Finds 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 to find 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 * Finds 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 to find 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 * Finds all the journal feeds where uuid = ?. 200 * 201 * @param uuid the uuid to search with 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 * Finds 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 to search with 219 * @param start the lower bound of the range of journal feeds to return 220 * @param end the upper bound of the range of journal feeds to return (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 * Finds 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 to search with 238 * @param start the lower bound of the range of journal feeds to return 239 * @param end the upper bound of the range of journal feeds to return (not inclusive) 240 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 259 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 280 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 302 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 320 * @param groupId the group ID to search with 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 * Finds 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 to search with 336 * @param groupId the group ID to search with 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 * Finds 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 to search with 350 * @param groupId the group ID to search with 351 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 352 * @throws SystemException if a system exception occurred 353 */ 354 public static com.liferay.portlet.journal.model.JournalFeed fetchByUUID_G( 355 java.lang.String uuid, long groupId, boolean retrieveFromCache) 356 throws com.liferay.portal.kernel.exception.SystemException { 357 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 358 } 359 360 /** 361 * Finds all the journal feeds where groupId = ?. 362 * 363 * @param groupId the group ID to search with 364 * @return the matching journal feeds 365 * @throws SystemException if a system exception occurred 366 */ 367 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 368 long groupId) 369 throws com.liferay.portal.kernel.exception.SystemException { 370 return getPersistence().findByGroupId(groupId); 371 } 372 373 /** 374 * Finds a range of all the journal feeds where groupId = ?. 375 * 376 * <p> 377 * 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. 378 * </p> 379 * 380 * @param groupId the group ID to search with 381 * @param start the lower bound of the range of journal feeds to return 382 * @param end the upper bound of the range of journal feeds to return (not inclusive) 383 * @return the range of matching journal feeds 384 * @throws SystemException if a system exception occurred 385 */ 386 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 387 long groupId, int start, int end) 388 throws com.liferay.portal.kernel.exception.SystemException { 389 return getPersistence().findByGroupId(groupId, start, end); 390 } 391 392 /** 393 * Finds an ordered range of all the journal feeds where groupId = ?. 394 * 395 * <p> 396 * 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. 397 * </p> 398 * 399 * @param groupId the group ID to search with 400 * @param start the lower bound of the range of journal feeds to return 401 * @param end the upper bound of the range of journal feeds to return (not inclusive) 402 * @param orderByComparator the comparator to order the results by 403 * @return the ordered range of matching journal feeds 404 * @throws SystemException if a system exception occurred 405 */ 406 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findByGroupId( 407 long groupId, int start, int end, 408 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 409 throws com.liferay.portal.kernel.exception.SystemException { 410 return getPersistence() 411 .findByGroupId(groupId, start, end, orderByComparator); 412 } 413 414 /** 415 * Finds the first journal feed in the ordered set where groupId = ?. 416 * 417 * <p> 418 * 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. 419 * </p> 420 * 421 * @param groupId the group ID to search with 422 * @param orderByComparator the comparator to order the set by 423 * @return the first matching journal feed 424 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 425 * @throws SystemException if a system exception occurred 426 */ 427 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_First( 428 long groupId, 429 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 430 throws com.liferay.portal.kernel.exception.SystemException, 431 com.liferay.portlet.journal.NoSuchFeedException { 432 return getPersistence().findByGroupId_First(groupId, orderByComparator); 433 } 434 435 /** 436 * Finds the last journal feed in the ordered set where groupId = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param groupId the group ID to search with 443 * @param orderByComparator the comparator to order the set by 444 * @return the last matching journal feed 445 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 446 * @throws SystemException if a system exception occurred 447 */ 448 public static com.liferay.portlet.journal.model.JournalFeed findByGroupId_Last( 449 long groupId, 450 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 451 throws com.liferay.portal.kernel.exception.SystemException, 452 com.liferay.portlet.journal.NoSuchFeedException { 453 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 454 } 455 456 /** 457 * Finds the journal feeds before and after the current journal feed in the ordered set where groupId = ?. 458 * 459 * <p> 460 * 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. 461 * </p> 462 * 463 * @param id the primary key of the current journal feed 464 * @param groupId the group ID to search with 465 * @param orderByComparator the comparator to order the set by 466 * @return the previous, current, and next journal feed 467 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 468 * @throws SystemException if a system exception occurred 469 */ 470 public static com.liferay.portlet.journal.model.JournalFeed[] findByGroupId_PrevAndNext( 471 long id, long groupId, 472 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 473 throws com.liferay.portal.kernel.exception.SystemException, 474 com.liferay.portlet.journal.NoSuchFeedException { 475 return getPersistence() 476 .findByGroupId_PrevAndNext(id, groupId, orderByComparator); 477 } 478 479 /** 480 * Filters by the user's permissions and finds all the journal feeds where groupId = ?. 481 * 482 * @param groupId the group ID to search with 483 * @return the matching journal feeds that the user has permission to view 484 * @throws SystemException if a system exception occurred 485 */ 486 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 487 long groupId) 488 throws com.liferay.portal.kernel.exception.SystemException { 489 return getPersistence().filterFindByGroupId(groupId); 490 } 491 492 /** 493 * Filters by the user's permissions and finds a range of all the journal feeds where groupId = ?. 494 * 495 * <p> 496 * 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. 497 * </p> 498 * 499 * @param groupId the group ID to search with 500 * @param start the lower bound of the range of journal feeds to return 501 * @param end the upper bound of the range of journal feeds to return (not inclusive) 502 * @return the range of matching journal feeds that the user has permission to view 503 * @throws SystemException if a system exception occurred 504 */ 505 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 506 long groupId, int start, int end) 507 throws com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence().filterFindByGroupId(groupId, start, end); 509 } 510 511 /** 512 * Filters by the user's permissions and finds an ordered range of all the journal feeds where groupId = ?. 513 * 514 * <p> 515 * 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. 516 * </p> 517 * 518 * @param groupId the group ID to search with 519 * @param start the lower bound of the range of journal feeds to return 520 * @param end the upper bound of the range of journal feeds to return (not inclusive) 521 * @param orderByComparator the comparator to order the results by 522 * @return the ordered range of matching journal feeds that the user has permission to view 523 * @throws SystemException if a system exception occurred 524 */ 525 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> filterFindByGroupId( 526 long groupId, int start, int end, 527 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 528 throws com.liferay.portal.kernel.exception.SystemException { 529 return getPersistence() 530 .filterFindByGroupId(groupId, start, end, orderByComparator); 531 } 532 533 /** 534 * Filters the journal feeds before and after the current journal feed in the ordered set where groupId = ?. 535 * 536 * <p> 537 * 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. 538 * </p> 539 * 540 * @param id the primary key of the current journal feed 541 * @param groupId the group ID to search with 542 * @param orderByComparator the comparator to order the set by 543 * @return the previous, current, and next journal feed 544 * @throws com.liferay.portlet.journal.NoSuchFeedException if a journal feed with the primary key could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public static com.liferay.portlet.journal.model.JournalFeed[] filterFindByGroupId_PrevAndNext( 548 long id, long groupId, 549 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 550 throws com.liferay.portal.kernel.exception.SystemException, 551 com.liferay.portlet.journal.NoSuchFeedException { 552 return getPersistence() 553 .filterFindByGroupId_PrevAndNext(id, groupId, 554 orderByComparator); 555 } 556 557 /** 558 * Finds the journal feed where groupId = ? and feedId = ? or throws a {@link com.liferay.portlet.journal.NoSuchFeedException} if it could not be found. 559 * 560 * @param groupId the group ID to search with 561 * @param feedId the feed ID to search with 562 * @return the matching journal feed 563 * @throws com.liferay.portlet.journal.NoSuchFeedException if a matching journal feed could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public static com.liferay.portlet.journal.model.JournalFeed findByG_F( 567 long groupId, java.lang.String feedId) 568 throws com.liferay.portal.kernel.exception.SystemException, 569 com.liferay.portlet.journal.NoSuchFeedException { 570 return getPersistence().findByG_F(groupId, feedId); 571 } 572 573 /** 574 * Finds the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 575 * 576 * @param groupId the group ID to search with 577 * @param feedId the feed ID to search with 578 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 579 * @throws SystemException if a system exception occurred 580 */ 581 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 582 long groupId, java.lang.String feedId) 583 throws com.liferay.portal.kernel.exception.SystemException { 584 return getPersistence().fetchByG_F(groupId, feedId); 585 } 586 587 /** 588 * Finds the journal feed where groupId = ? and feedId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 589 * 590 * @param groupId the group ID to search with 591 * @param feedId the feed ID to search with 592 * @return the matching journal feed, or <code>null</code> if a matching journal feed could not be found 593 * @throws SystemException if a system exception occurred 594 */ 595 public static com.liferay.portlet.journal.model.JournalFeed fetchByG_F( 596 long groupId, java.lang.String feedId, boolean retrieveFromCache) 597 throws com.liferay.portal.kernel.exception.SystemException { 598 return getPersistence().fetchByG_F(groupId, feedId, retrieveFromCache); 599 } 600 601 /** 602 * Finds all the journal feeds. 603 * 604 * @return the journal feeds 605 * @throws SystemException if a system exception occurred 606 */ 607 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll() 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence().findAll(); 610 } 611 612 /** 613 * Finds a range of all the journal feeds. 614 * 615 * <p> 616 * 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. 617 * </p> 618 * 619 * @param start the lower bound of the range of journal feeds to return 620 * @param end the upper bound of the range of journal feeds to return (not inclusive) 621 * @return the range of journal feeds 622 * @throws SystemException if a system exception occurred 623 */ 624 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 625 int start, int end) 626 throws com.liferay.portal.kernel.exception.SystemException { 627 return getPersistence().findAll(start, end); 628 } 629 630 /** 631 * Finds an ordered range of all the journal feeds. 632 * 633 * <p> 634 * 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. 635 * </p> 636 * 637 * @param start the lower bound of the range of journal feeds to return 638 * @param end the upper bound of the range of journal feeds to return (not inclusive) 639 * @param orderByComparator the comparator to order the results by 640 * @return the ordered range of journal feeds 641 * @throws SystemException if a system exception occurred 642 */ 643 public static java.util.List<com.liferay.portlet.journal.model.JournalFeed> findAll( 644 int start, int end, 645 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 646 throws com.liferay.portal.kernel.exception.SystemException { 647 return getPersistence().findAll(start, end, orderByComparator); 648 } 649 650 /** 651 * Removes all the journal feeds where uuid = ? from the database. 652 * 653 * @param uuid the uuid to search with 654 * @throws SystemException if a system exception occurred 655 */ 656 public static void removeByUuid(java.lang.String uuid) 657 throws com.liferay.portal.kernel.exception.SystemException { 658 getPersistence().removeByUuid(uuid); 659 } 660 661 /** 662 * Removes the journal feed where uuid = ? and groupId = ? from the database. 663 * 664 * @param uuid the uuid to search with 665 * @param groupId the group ID to search with 666 * @throws SystemException if a system exception occurred 667 */ 668 public static void removeByUUID_G(java.lang.String uuid, long groupId) 669 throws com.liferay.portal.kernel.exception.SystemException, 670 com.liferay.portlet.journal.NoSuchFeedException { 671 getPersistence().removeByUUID_G(uuid, groupId); 672 } 673 674 /** 675 * Removes all the journal feeds where groupId = ? from the database. 676 * 677 * @param groupId the group ID to search with 678 * @throws SystemException if a system exception occurred 679 */ 680 public static void removeByGroupId(long groupId) 681 throws com.liferay.portal.kernel.exception.SystemException { 682 getPersistence().removeByGroupId(groupId); 683 } 684 685 /** 686 * Removes the journal feed where groupId = ? and feedId = ? from the database. 687 * 688 * @param groupId the group ID to search with 689 * @param feedId the feed ID to search with 690 * @throws SystemException if a system exception occurred 691 */ 692 public static void removeByG_F(long groupId, java.lang.String feedId) 693 throws com.liferay.portal.kernel.exception.SystemException, 694 com.liferay.portlet.journal.NoSuchFeedException { 695 getPersistence().removeByG_F(groupId, feedId); 696 } 697 698 /** 699 * Removes all the journal feeds from the database. 700 * 701 * @throws SystemException if a system exception occurred 702 */ 703 public static void removeAll() 704 throws com.liferay.portal.kernel.exception.SystemException { 705 getPersistence().removeAll(); 706 } 707 708 /** 709 * Counts all the journal feeds where uuid = ?. 710 * 711 * @param uuid the uuid to search with 712 * @return the number of matching journal feeds 713 * @throws SystemException if a system exception occurred 714 */ 715 public static int countByUuid(java.lang.String uuid) 716 throws com.liferay.portal.kernel.exception.SystemException { 717 return getPersistence().countByUuid(uuid); 718 } 719 720 /** 721 * Counts all the journal feeds where uuid = ? and groupId = ?. 722 * 723 * @param uuid the uuid to search with 724 * @param groupId the group ID to search with 725 * @return the number of matching journal feeds 726 * @throws SystemException if a system exception occurred 727 */ 728 public static int countByUUID_G(java.lang.String uuid, long groupId) 729 throws com.liferay.portal.kernel.exception.SystemException { 730 return getPersistence().countByUUID_G(uuid, groupId); 731 } 732 733 /** 734 * Counts all the journal feeds where groupId = ?. 735 * 736 * @param groupId the group ID to search with 737 * @return the number of matching journal feeds 738 * @throws SystemException if a system exception occurred 739 */ 740 public static int countByGroupId(long groupId) 741 throws com.liferay.portal.kernel.exception.SystemException { 742 return getPersistence().countByGroupId(groupId); 743 } 744 745 /** 746 * Filters by the user's permissions and counts all the journal feeds where groupId = ?. 747 * 748 * @param groupId the group ID to search with 749 * @return the number of matching journal feeds that the user has permission to view 750 * @throws SystemException if a system exception occurred 751 */ 752 public static int filterCountByGroupId(long groupId) 753 throws com.liferay.portal.kernel.exception.SystemException { 754 return getPersistence().filterCountByGroupId(groupId); 755 } 756 757 /** 758 * Counts all the journal feeds where groupId = ? and feedId = ?. 759 * 760 * @param groupId the group ID to search with 761 * @param feedId the feed ID to search with 762 * @return the number of matching journal feeds 763 * @throws SystemException if a system exception occurred 764 */ 765 public static int countByG_F(long groupId, java.lang.String feedId) 766 throws com.liferay.portal.kernel.exception.SystemException { 767 return getPersistence().countByG_F(groupId, feedId); 768 } 769 770 /** 771 * Counts all the journal feeds. 772 * 773 * @return the number of journal feeds 774 * @throws SystemException if a system exception occurred 775 */ 776 public static int countAll() 777 throws com.liferay.portal.kernel.exception.SystemException { 778 return getPersistence().countAll(); 779 } 780 781 public static JournalFeedPersistence getPersistence() { 782 if (_persistence == null) { 783 _persistence = (JournalFeedPersistence)PortalBeanLocatorUtil.locate(JournalFeedPersistence.class.getName()); 784 785 ReferenceRegistry.registerReference(JournalFeedUtil.class, 786 "_persistence"); 787 } 788 789 return _persistence; 790 } 791 792 public void setPersistence(JournalFeedPersistence persistence) { 793 _persistence = persistence; 794 795 ReferenceRegistry.registerReference(JournalFeedUtil.class, 796 "_persistence"); 797 } 798 799 private static JournalFeedPersistence _persistence; 800 }