001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.journal.model.JournalArticleImage; 020 021 /** 022 * The persistence interface for the journal article image service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see JournalArticleImagePersistenceImpl 030 * @see JournalArticleImageUtil 031 * @generated 032 */ 033 public interface JournalArticleImagePersistence extends BasePersistence<JournalArticleImage> { 034 /** 035 * Caches the journal article image in the entity cache if it is enabled. 036 * 037 * @param journalArticleImage the journal article image to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage); 041 042 /** 043 * Caches the journal article images in the entity cache if it is enabled. 044 * 045 * @param journalArticleImages the journal article images to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> journalArticleImages); 049 050 /** 051 * Creates a new journal article image with the primary key. 052 * 053 * @param articleImageId the primary key for the new journal article image 054 * @return the new journal article image 055 */ 056 public com.liferay.portlet.journal.model.JournalArticleImage create( 057 long articleImageId); 058 059 /** 060 * Removes the journal article image with the primary key from the database. Also notifies the appropriate model listeners. 061 * 062 * @param articleImageId the primary key of the journal article image to remove 063 * @return the journal article image that was removed 064 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found 065 * @throws SystemException if a system exception occurred 066 */ 067 public com.liferay.portlet.journal.model.JournalArticleImage remove( 068 long articleImageId) 069 throws com.liferay.portal.kernel.exception.SystemException, 070 com.liferay.portlet.journal.NoSuchArticleImageException; 071 072 public com.liferay.portlet.journal.model.JournalArticleImage updateImpl( 073 com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage, 074 boolean merge) 075 throws com.liferay.portal.kernel.exception.SystemException; 076 077 /** 078 * Finds the journal article image with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchArticleImageException} if it could not be found. 079 * 080 * @param articleImageId the primary key of the journal article image to find 081 * @return the journal article image 082 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found 083 * @throws SystemException if a system exception occurred 084 */ 085 public com.liferay.portlet.journal.model.JournalArticleImage findByPrimaryKey( 086 long articleImageId) 087 throws com.liferay.portal.kernel.exception.SystemException, 088 com.liferay.portlet.journal.NoSuchArticleImageException; 089 090 /** 091 * Finds the journal article image with the primary key or returns <code>null</code> if it could not be found. 092 * 093 * @param articleImageId the primary key of the journal article image to find 094 * @return the journal article image, or <code>null</code> if a journal article image with the primary key could not be found 095 * @throws SystemException if a system exception occurred 096 */ 097 public com.liferay.portlet.journal.model.JournalArticleImage fetchByPrimaryKey( 098 long articleImageId) 099 throws com.liferay.portal.kernel.exception.SystemException; 100 101 /** 102 * Finds all the journal article images where groupId = ?. 103 * 104 * @param groupId the group id to search with 105 * @return the matching journal article images 106 * @throws SystemException if a system exception occurred 107 */ 108 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId( 109 long groupId) 110 throws com.liferay.portal.kernel.exception.SystemException; 111 112 /** 113 * Finds a range of all the journal article images where groupId = ?. 114 * 115 * <p> 116 * 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. 117 * </p> 118 * 119 * @param groupId the group id to search with 120 * @param start the lower bound of the range of journal article images to return 121 * @param end the upper bound of the range of journal article images to return (not inclusive) 122 * @return the range of matching journal article images 123 * @throws SystemException if a system exception occurred 124 */ 125 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId( 126 long groupId, int start, int end) 127 throws com.liferay.portal.kernel.exception.SystemException; 128 129 /** 130 * Finds an ordered range of all the journal article images where groupId = ?. 131 * 132 * <p> 133 * 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. 134 * </p> 135 * 136 * @param groupId the group id to search with 137 * @param start the lower bound of the range of journal article images to return 138 * @param end the upper bound of the range of journal article images to return (not inclusive) 139 * @param orderByComparator the comparator to order the results by 140 * @return the ordered range of matching journal article images 141 * @throws SystemException if a system exception occurred 142 */ 143 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByGroupId( 144 long groupId, int start, int end, 145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 146 throws com.liferay.portal.kernel.exception.SystemException; 147 148 /** 149 * Finds the first journal article image in the ordered set where groupId = ?. 150 * 151 * <p> 152 * 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. 153 * </p> 154 * 155 * @param groupId the group id to search with 156 * @param orderByComparator the comparator to order the set by 157 * @return the first matching journal article image 158 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 159 * @throws SystemException if a system exception occurred 160 */ 161 public com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_First( 162 long groupId, 163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 164 throws com.liferay.portal.kernel.exception.SystemException, 165 com.liferay.portlet.journal.NoSuchArticleImageException; 166 167 /** 168 * Finds the last journal article image in the ordered set where groupId = ?. 169 * 170 * <p> 171 * 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. 172 * </p> 173 * 174 * @param groupId the group id to search with 175 * @param orderByComparator the comparator to order the set by 176 * @return the last 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 com.liferay.portlet.journal.model.JournalArticleImage findByGroupId_Last( 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 186 /** 187 * Finds the journal article images before and after the current journal article image in the ordered set where groupId = ?. 188 * 189 * <p> 190 * 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. 191 * </p> 192 * 193 * @param articleImageId the primary key of the current journal article image 194 * @param groupId the group id to search with 195 * @param orderByComparator the comparator to order the set by 196 * @return the previous, current, and next journal article image 197 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found 198 * @throws SystemException if a system exception occurred 199 */ 200 public com.liferay.portlet.journal.model.JournalArticleImage[] findByGroupId_PrevAndNext( 201 long articleImageId, long groupId, 202 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 203 throws com.liferay.portal.kernel.exception.SystemException, 204 com.liferay.portlet.journal.NoSuchArticleImageException; 205 206 /** 207 * Finds all the journal article images where tempImage = ?. 208 * 209 * @param tempImage the temp image to search with 210 * @return the matching journal article images 211 * @throws SystemException if a system exception occurred 212 */ 213 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage( 214 boolean tempImage) 215 throws com.liferay.portal.kernel.exception.SystemException; 216 217 /** 218 * Finds a range of all the journal article images where tempImage = ?. 219 * 220 * <p> 221 * 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. 222 * </p> 223 * 224 * @param tempImage the temp image to search with 225 * @param start the lower bound of the range of journal article images to return 226 * @param end the upper bound of the range of journal article images to return (not inclusive) 227 * @return the range of matching journal article images 228 * @throws SystemException if a system exception occurred 229 */ 230 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage( 231 boolean tempImage, int start, int end) 232 throws com.liferay.portal.kernel.exception.SystemException; 233 234 /** 235 * Finds an ordered range of all the journal article images where tempImage = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param tempImage the temp image to search with 242 * @param start the lower bound of the range of journal article images to return 243 * @param end the upper bound of the range of journal article images to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 245 * @return the ordered range of matching journal article images 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByTempImage( 249 boolean tempImage, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException; 252 253 /** 254 * Finds the first journal article image in the ordered set where tempImage = ?. 255 * 256 * <p> 257 * 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. 258 * </p> 259 * 260 * @param tempImage the temp image to search with 261 * @param orderByComparator the comparator to order the set by 262 * @return the first matching journal article image 263 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 264 * @throws SystemException if a system exception occurred 265 */ 266 public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_First( 267 boolean tempImage, 268 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 269 throws com.liferay.portal.kernel.exception.SystemException, 270 com.liferay.portlet.journal.NoSuchArticleImageException; 271 272 /** 273 * Finds the last journal article image in the ordered set where tempImage = ?. 274 * 275 * <p> 276 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 277 * </p> 278 * 279 * @param tempImage the temp image to search with 280 * @param orderByComparator the comparator to order the set by 281 * @return the last matching journal article image 282 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 283 * @throws SystemException if a system exception occurred 284 */ 285 public com.liferay.portlet.journal.model.JournalArticleImage findByTempImage_Last( 286 boolean tempImage, 287 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 288 throws com.liferay.portal.kernel.exception.SystemException, 289 com.liferay.portlet.journal.NoSuchArticleImageException; 290 291 /** 292 * Finds the journal article images before and after the current journal article image in the ordered set 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. 296 * </p> 297 * 298 * @param articleImageId the primary key of the current journal article image 299 * @param tempImage the temp image to search with 300 * @param orderByComparator the comparator to order the set by 301 * @return the previous, current, and next journal article image 302 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found 303 * @throws SystemException if a system exception occurred 304 */ 305 public com.liferay.portlet.journal.model.JournalArticleImage[] findByTempImage_PrevAndNext( 306 long articleImageId, boolean tempImage, 307 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 308 throws com.liferay.portal.kernel.exception.SystemException, 309 com.liferay.portlet.journal.NoSuchArticleImageException; 310 311 /** 312 * Finds all the journal article images where groupId = ? and articleId = ? and version = ?. 313 * 314 * @param groupId the group id to search with 315 * @param articleId the article id to search with 316 * @param version the version to search with 317 * @return the matching journal article images 318 * @throws SystemException if a system exception occurred 319 */ 320 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V( 321 long groupId, java.lang.String articleId, double version) 322 throws com.liferay.portal.kernel.exception.SystemException; 323 324 /** 325 * Finds a range of all the journal article images where groupId = ? and articleId = ? and version = ?. 326 * 327 * <p> 328 * 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. 329 * </p> 330 * 331 * @param groupId the group id to search with 332 * @param articleId the article id to search with 333 * @param version the version to search with 334 * @param start the lower bound of the range of journal article images to return 335 * @param end the upper bound of the range of journal article images to return (not inclusive) 336 * @return the range of matching journal article images 337 * @throws SystemException if a system exception occurred 338 */ 339 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V( 340 long groupId, java.lang.String articleId, double version, int start, 341 int end) throws com.liferay.portal.kernel.exception.SystemException; 342 343 /** 344 * Finds an ordered range of all the journal article images where groupId = ? and articleId = ? and version = ?. 345 * 346 * <p> 347 * 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. 348 * </p> 349 * 350 * @param groupId the group id to search with 351 * @param articleId the article id to search with 352 * @param version the version to search with 353 * @param start the lower bound of the range of journal article images to return 354 * @param end the upper bound of the range of journal article images to return (not inclusive) 355 * @param orderByComparator the comparator to order the results by 356 * @return the ordered range of matching journal article images 357 * @throws SystemException if a system exception occurred 358 */ 359 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findByG_A_V( 360 long groupId, java.lang.String articleId, double version, int start, 361 int end, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.kernel.exception.SystemException; 364 365 /** 366 * Finds the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?. 367 * 368 * <p> 369 * 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. 370 * </p> 371 * 372 * @param groupId the group id to search with 373 * @param articleId the article id to search with 374 * @param version the version to search with 375 * @param orderByComparator the comparator to order the set by 376 * @return the first matching journal article image 377 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 378 * @throws SystemException if a system exception occurred 379 */ 380 public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_First( 381 long groupId, java.lang.String articleId, double version, 382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 383 throws com.liferay.portal.kernel.exception.SystemException, 384 com.liferay.portlet.journal.NoSuchArticleImageException; 385 386 /** 387 * Finds the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?. 388 * 389 * <p> 390 * 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. 391 * </p> 392 * 393 * @param groupId the group id to search with 394 * @param articleId the article id to search with 395 * @param version the version to search with 396 * @param orderByComparator the comparator to order the set by 397 * @return the last matching journal article image 398 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 399 * @throws SystemException if a system exception occurred 400 */ 401 public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_Last( 402 long groupId, java.lang.String articleId, double version, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException, 405 com.liferay.portlet.journal.NoSuchArticleImageException; 406 407 /** 408 * Finds the journal article images before and after the current journal article image in the ordered set where groupId = ? and articleId = ? and version = ?. 409 * 410 * <p> 411 * 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. 412 * </p> 413 * 414 * @param articleImageId the primary key of the current journal article image 415 * @param groupId the group id to search with 416 * @param articleId the article id to search with 417 * @param version the version to search with 418 * @param orderByComparator the comparator to order the set by 419 * @return the previous, current, and next journal article image 420 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a journal article image with the primary key could not be found 421 * @throws SystemException if a system exception occurred 422 */ 423 public com.liferay.portlet.journal.model.JournalArticleImage[] findByG_A_V_PrevAndNext( 424 long articleImageId, long groupId, java.lang.String articleId, 425 double version, 426 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 427 throws com.liferay.portal.kernel.exception.SystemException, 428 com.liferay.portlet.journal.NoSuchArticleImageException; 429 430 /** 431 * Finds 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. 432 * 433 * @param groupId the group id to search with 434 * @param articleId the article id to search with 435 * @param version the version to search with 436 * @param elInstanceId the el instance id to search with 437 * @param elName the el name to search with 438 * @param languageId the language id to search with 439 * @return the matching journal article image 440 * @throws com.liferay.portlet.journal.NoSuchArticleImageException if a matching journal article image could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public com.liferay.portlet.journal.model.JournalArticleImage findByG_A_V_E_E_L( 444 long groupId, java.lang.String articleId, double version, 445 java.lang.String elInstanceId, java.lang.String elName, 446 java.lang.String languageId) 447 throws com.liferay.portal.kernel.exception.SystemException, 448 com.liferay.portlet.journal.NoSuchArticleImageException; 449 450 /** 451 * Finds 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. 452 * 453 * @param groupId the group id to search with 454 * @param articleId the article id to search with 455 * @param version the version to search with 456 * @param elInstanceId the el instance id to search with 457 * @param elName the el name to search with 458 * @param languageId the language id to search with 459 * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found 460 * @throws SystemException if a system exception occurred 461 */ 462 public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L( 463 long groupId, java.lang.String articleId, double version, 464 java.lang.String elInstanceId, java.lang.String elName, 465 java.lang.String languageId) 466 throws com.liferay.portal.kernel.exception.SystemException; 467 468 /** 469 * Finds 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. 470 * 471 * @param groupId the group id to search with 472 * @param articleId the article id to search with 473 * @param version the version to search with 474 * @param elInstanceId the el instance id to search with 475 * @param elName the el name to search with 476 * @param languageId the language id to search with 477 * @return the matching journal article image, or <code>null</code> if a matching journal article image could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portlet.journal.model.JournalArticleImage fetchByG_A_V_E_E_L( 481 long groupId, java.lang.String articleId, double version, 482 java.lang.String elInstanceId, java.lang.String elName, 483 java.lang.String languageId, boolean retrieveFromCache) 484 throws com.liferay.portal.kernel.exception.SystemException; 485 486 /** 487 * Finds all the journal article images. 488 * 489 * @return the journal article images 490 * @throws SystemException if a system exception occurred 491 */ 492 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll() 493 throws com.liferay.portal.kernel.exception.SystemException; 494 495 /** 496 * Finds a range of all the journal article images. 497 * 498 * <p> 499 * 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. 500 * </p> 501 * 502 * @param start the lower bound of the range of journal article images to return 503 * @param end the upper bound of the range of journal article images to return (not inclusive) 504 * @return the range of journal article images 505 * @throws SystemException if a system exception occurred 506 */ 507 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll( 508 int start, int end) 509 throws com.liferay.portal.kernel.exception.SystemException; 510 511 /** 512 * Finds an ordered range of all the journal article images. 513 * 514 * <p> 515 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 516 * </p> 517 * 518 * @param start the lower bound of the range of journal article images to return 519 * @param end the upper bound of the range of journal article images to return (not inclusive) 520 * @param orderByComparator the comparator to order the results by 521 * @return the ordered range of journal article images 522 * @throws SystemException if a system exception occurred 523 */ 524 public java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> findAll( 525 int start, int end, 526 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 527 throws com.liferay.portal.kernel.exception.SystemException; 528 529 /** 530 * Removes all the journal article images where groupId = ? from the database. 531 * 532 * @param groupId the group id to search with 533 * @throws SystemException if a system exception occurred 534 */ 535 public void removeByGroupId(long groupId) 536 throws com.liferay.portal.kernel.exception.SystemException; 537 538 /** 539 * Removes all the journal article images where tempImage = ? from the database. 540 * 541 * @param tempImage the temp image to search with 542 * @throws SystemException if a system exception occurred 543 */ 544 public void removeByTempImage(boolean tempImage) 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Removes all the journal article images where groupId = ? and articleId = ? and version = ? from the database. 549 * 550 * @param groupId the group id to search with 551 * @param articleId the article id to search with 552 * @param version the version to search with 553 * @throws SystemException if a system exception occurred 554 */ 555 public void removeByG_A_V(long groupId, java.lang.String articleId, 556 double version) 557 throws com.liferay.portal.kernel.exception.SystemException; 558 559 /** 560 * Removes the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? from the database. 561 * 562 * @param groupId the group id to search with 563 * @param articleId the article id to search with 564 * @param version the version to search with 565 * @param elInstanceId the el instance id to search with 566 * @param elName the el name to search with 567 * @param languageId the language id to search with 568 * @throws SystemException if a system exception occurred 569 */ 570 public void removeByG_A_V_E_E_L(long groupId, java.lang.String articleId, 571 double version, java.lang.String elInstanceId, java.lang.String elName, 572 java.lang.String languageId) 573 throws com.liferay.portal.kernel.exception.SystemException, 574 com.liferay.portlet.journal.NoSuchArticleImageException; 575 576 /** 577 * Removes all the journal article images from the database. 578 * 579 * @throws SystemException if a system exception occurred 580 */ 581 public void removeAll() 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Counts all the journal article images where groupId = ?. 586 * 587 * @param groupId the group id to search with 588 * @return the number of matching journal article images 589 * @throws SystemException if a system exception occurred 590 */ 591 public int countByGroupId(long groupId) 592 throws com.liferay.portal.kernel.exception.SystemException; 593 594 /** 595 * Counts all the journal article images where tempImage = ?. 596 * 597 * @param tempImage the temp image to search with 598 * @return the number of matching journal article images 599 * @throws SystemException if a system exception occurred 600 */ 601 public int countByTempImage(boolean tempImage) 602 throws com.liferay.portal.kernel.exception.SystemException; 603 604 /** 605 * Counts all the journal article images where groupId = ? and articleId = ? and version = ?. 606 * 607 * @param groupId the group id to search with 608 * @param articleId the article id to search with 609 * @param version the version to search with 610 * @return the number of matching journal article images 611 * @throws SystemException if a system exception occurred 612 */ 613 public int countByG_A_V(long groupId, java.lang.String articleId, 614 double version) 615 throws com.liferay.portal.kernel.exception.SystemException; 616 617 /** 618 * Counts all the journal article images where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ?. 619 * 620 * @param groupId the group id to search with 621 * @param articleId the article id to search with 622 * @param version the version to search with 623 * @param elInstanceId the el instance id to search with 624 * @param elName the el name to search with 625 * @param languageId the language id to search with 626 * @return the number of matching journal article images 627 * @throws SystemException if a system exception occurred 628 */ 629 public int countByG_A_V_E_E_L(long groupId, java.lang.String articleId, 630 double version, java.lang.String elInstanceId, java.lang.String elName, 631 java.lang.String languageId) 632 throws com.liferay.portal.kernel.exception.SystemException; 633 634 /** 635 * Counts all the journal article images. 636 * 637 * @return the number of journal article images 638 * @throws SystemException if a system exception occurred 639 */ 640 public int countAll() 641 throws com.liferay.portal.kernel.exception.SystemException; 642 }