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