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