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