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