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