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