001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.imagegallery.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.service.ServiceContext; 022 023 import com.liferay.portlet.imagegallery.model.IGImage; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the i g image service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see IGImagePersistence 036 * @see IGImagePersistenceImpl 037 * @generated 038 */ 039 public class IGImageUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(IGImage igImage) { 051 getPersistence().clearCache(igImage); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<IGImage> findWithDynamicQuery(DynamicQuery dynamicQuery) 066 throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<IGImage> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<IGImage> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static IGImage remove(IGImage igImage) throws SystemException { 094 return getPersistence().remove(igImage); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static IGImage update(IGImage igImage, boolean merge) 101 throws SystemException { 102 return getPersistence().update(igImage, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static IGImage update(IGImage igImage, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(igImage, merge, serviceContext); 111 } 112 113 /** 114 * Caches the i g image in the entity cache if it is enabled. 115 * 116 * @param igImage the i g image to cache 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.imagegallery.model.IGImage igImage) { 120 getPersistence().cacheResult(igImage); 121 } 122 123 /** 124 * Caches the i g images in the entity cache if it is enabled. 125 * 126 * @param igImages the i g images to cache 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.imagegallery.model.IGImage> igImages) { 130 getPersistence().cacheResult(igImages); 131 } 132 133 /** 134 * Creates a new i g image with the primary key. 135 * 136 * @param imageId the primary key for the new i g image 137 * @return the new i g image 138 */ 139 public static com.liferay.portlet.imagegallery.model.IGImage create( 140 long imageId) { 141 return getPersistence().create(imageId); 142 } 143 144 /** 145 * Removes the i g image with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param imageId the primary key of the i g image to remove 148 * @return the i g image that was removed 149 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.imagegallery.model.IGImage remove( 153 long imageId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.imagegallery.NoSuchImageException { 156 return getPersistence().remove(imageId); 157 } 158 159 public static com.liferay.portlet.imagegallery.model.IGImage updateImpl( 160 com.liferay.portlet.imagegallery.model.IGImage igImage, boolean merge) 161 throws com.liferay.portal.kernel.exception.SystemException { 162 return getPersistence().updateImpl(igImage, merge); 163 } 164 165 /** 166 * Finds the i g image with the primary key or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 167 * 168 * @param imageId the primary key of the i g image to find 169 * @return the i g image 170 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public static com.liferay.portlet.imagegallery.model.IGImage findByPrimaryKey( 174 long imageId) 175 throws com.liferay.portal.kernel.exception.SystemException, 176 com.liferay.portlet.imagegallery.NoSuchImageException { 177 return getPersistence().findByPrimaryKey(imageId); 178 } 179 180 /** 181 * Finds the i g image with the primary key or returns <code>null</code> if it could not be found. 182 * 183 * @param imageId the primary key of the i g image to find 184 * @return the i g image, or <code>null</code> if a i g image with the primary key could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public static com.liferay.portlet.imagegallery.model.IGImage fetchByPrimaryKey( 188 long imageId) 189 throws com.liferay.portal.kernel.exception.SystemException { 190 return getPersistence().fetchByPrimaryKey(imageId); 191 } 192 193 /** 194 * Finds all the i g images where uuid = ?. 195 * 196 * @param uuid the uuid to search with 197 * @return the matching i g images 198 * @throws SystemException if a system exception occurred 199 */ 200 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid( 201 java.lang.String uuid) 202 throws com.liferay.portal.kernel.exception.SystemException { 203 return getPersistence().findByUuid(uuid); 204 } 205 206 /** 207 * Finds a range of all the i g images where uuid = ?. 208 * 209 * <p> 210 * 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. 211 * </p> 212 * 213 * @param uuid the uuid to search with 214 * @param start the lower bound of the range of i g images to return 215 * @param end the upper bound of the range of i g images to return (not inclusive) 216 * @return the range of matching i g images 217 * @throws SystemException if a system exception occurred 218 */ 219 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid( 220 java.lang.String uuid, int start, int end) 221 throws com.liferay.portal.kernel.exception.SystemException { 222 return getPersistence().findByUuid(uuid, start, end); 223 } 224 225 /** 226 * Finds an ordered range of all the i g images where uuid = ?. 227 * 228 * <p> 229 * 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. 230 * </p> 231 * 232 * @param uuid the uuid to search with 233 * @param start the lower bound of the range of i g images to return 234 * @param end the upper bound of the range of i g images to return (not inclusive) 235 * @param orderByComparator the comparator to order the results by 236 * @return the ordered range of matching i g images 237 * @throws SystemException if a system exception occurred 238 */ 239 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByUuid( 240 java.lang.String uuid, int start, int end, 241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 242 throws com.liferay.portal.kernel.exception.SystemException { 243 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 244 } 245 246 /** 247 * Finds the first i g image in the ordered set where uuid = ?. 248 * 249 * <p> 250 * 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. 251 * </p> 252 * 253 * @param uuid the uuid to search with 254 * @param orderByComparator the comparator to order the set by 255 * @return the first matching i g image 256 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_First( 260 java.lang.String uuid, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException, 263 com.liferay.portlet.imagegallery.NoSuchImageException { 264 return getPersistence().findByUuid_First(uuid, orderByComparator); 265 } 266 267 /** 268 * Finds the last i g image in the ordered set where uuid = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param uuid the uuid to search with 275 * @param orderByComparator the comparator to order the set by 276 * @return the last matching i g image 277 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portlet.imagegallery.model.IGImage findByUuid_Last( 281 java.lang.String uuid, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.kernel.exception.SystemException, 284 com.liferay.portlet.imagegallery.NoSuchImageException { 285 return getPersistence().findByUuid_Last(uuid, orderByComparator); 286 } 287 288 /** 289 * Finds the i g images before and after the current i g image in the ordered set where uuid = ?. 290 * 291 * <p> 292 * 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. 293 * </p> 294 * 295 * @param imageId the primary key of the current i g image 296 * @param uuid the uuid to search with 297 * @param orderByComparator the comparator to order the set by 298 * @return the previous, current, and next i g image 299 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public static com.liferay.portlet.imagegallery.model.IGImage[] findByUuid_PrevAndNext( 303 long imageId, java.lang.String uuid, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.kernel.exception.SystemException, 306 com.liferay.portlet.imagegallery.NoSuchImageException { 307 return getPersistence() 308 .findByUuid_PrevAndNext(imageId, uuid, orderByComparator); 309 } 310 311 /** 312 * Finds the i g image where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 313 * 314 * @param uuid the uuid to search with 315 * @param groupId the group id to search with 316 * @return the matching i g image 317 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.imagegallery.model.IGImage findByUUID_G( 321 java.lang.String uuid, long groupId) 322 throws com.liferay.portal.kernel.exception.SystemException, 323 com.liferay.portlet.imagegallery.NoSuchImageException { 324 return getPersistence().findByUUID_G(uuid, groupId); 325 } 326 327 /** 328 * Finds the i g image where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 329 * 330 * @param uuid the uuid to search with 331 * @param groupId the group id to search with 332 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G( 336 java.lang.String uuid, long groupId) 337 throws com.liferay.portal.kernel.exception.SystemException { 338 return getPersistence().fetchByUUID_G(uuid, groupId); 339 } 340 341 /** 342 * Finds the i g image where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 343 * 344 * @param uuid the uuid to search with 345 * @param groupId the group id to search with 346 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 347 * @throws SystemException if a system exception occurred 348 */ 349 public static com.liferay.portlet.imagegallery.model.IGImage fetchByUUID_G( 350 java.lang.String uuid, long groupId, boolean retrieveFromCache) 351 throws com.liferay.portal.kernel.exception.SystemException { 352 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 353 } 354 355 /** 356 * Finds all the i g images where groupId = ?. 357 * 358 * @param groupId the group id to search with 359 * @return the matching i g images 360 * @throws SystemException if a system exception occurred 361 */ 362 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId( 363 long groupId) 364 throws com.liferay.portal.kernel.exception.SystemException { 365 return getPersistence().findByGroupId(groupId); 366 } 367 368 /** 369 * Finds a range of all the i g images where groupId = ?. 370 * 371 * <p> 372 * 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. 373 * </p> 374 * 375 * @param groupId the group id to search with 376 * @param start the lower bound of the range of i g images to return 377 * @param end the upper bound of the range of i g images to return (not inclusive) 378 * @return the range of matching i g images 379 * @throws SystemException if a system exception occurred 380 */ 381 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId( 382 long groupId, int start, int end) 383 throws com.liferay.portal.kernel.exception.SystemException { 384 return getPersistence().findByGroupId(groupId, start, end); 385 } 386 387 /** 388 * Finds an ordered range of all the i g images where groupId = ?. 389 * 390 * <p> 391 * 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. 392 * </p> 393 * 394 * @param groupId the group id to search with 395 * @param start the lower bound of the range of i g images to return 396 * @param end the upper bound of the range of i g images to return (not inclusive) 397 * @param orderByComparator the comparator to order the results by 398 * @return the ordered range of matching i g images 399 * @throws SystemException if a system exception occurred 400 */ 401 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByGroupId( 402 long groupId, int start, int end, 403 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 404 throws com.liferay.portal.kernel.exception.SystemException { 405 return getPersistence() 406 .findByGroupId(groupId, start, end, orderByComparator); 407 } 408 409 /** 410 * Finds the first i g image in the ordered set where groupId = ?. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param groupId the group id to search with 417 * @param orderByComparator the comparator to order the set by 418 * @return the first matching i g image 419 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 420 * @throws SystemException if a system exception occurred 421 */ 422 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_First( 423 long groupId, 424 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 425 throws com.liferay.portal.kernel.exception.SystemException, 426 com.liferay.portlet.imagegallery.NoSuchImageException { 427 return getPersistence().findByGroupId_First(groupId, orderByComparator); 428 } 429 430 /** 431 * Finds the last i g image in the ordered set where groupId = ?. 432 * 433 * <p> 434 * 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. 435 * </p> 436 * 437 * @param groupId the group id to search with 438 * @param orderByComparator the comparator to order the set by 439 * @return the last matching i g image 440 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 441 * @throws SystemException if a system exception occurred 442 */ 443 public static com.liferay.portlet.imagegallery.model.IGImage findByGroupId_Last( 444 long groupId, 445 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 446 throws com.liferay.portal.kernel.exception.SystemException, 447 com.liferay.portlet.imagegallery.NoSuchImageException { 448 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 449 } 450 451 /** 452 * Finds the i g images before and after the current i g image in the ordered set where groupId = ?. 453 * 454 * <p> 455 * 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. 456 * </p> 457 * 458 * @param imageId the primary key of the current i g image 459 * @param groupId the group id to search with 460 * @param orderByComparator the comparator to order the set by 461 * @return the previous, current, and next i g image 462 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 463 * @throws SystemException if a system exception occurred 464 */ 465 public static com.liferay.portlet.imagegallery.model.IGImage[] findByGroupId_PrevAndNext( 466 long imageId, long groupId, 467 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 468 throws com.liferay.portal.kernel.exception.SystemException, 469 com.liferay.portlet.imagegallery.NoSuchImageException { 470 return getPersistence() 471 .findByGroupId_PrevAndNext(imageId, groupId, 472 orderByComparator); 473 } 474 475 /** 476 * Filters by the user's permissions and finds all the i g images where groupId = ?. 477 * 478 * @param groupId the group id to search with 479 * @return the matching i g images that the user has permission to view 480 * @throws SystemException if a system exception occurred 481 */ 482 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId( 483 long groupId) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence().filterFindByGroupId(groupId); 486 } 487 488 /** 489 * Filters by the user's permissions and finds a range of all the i g images where groupId = ?. 490 * 491 * <p> 492 * 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. 493 * </p> 494 * 495 * @param groupId the group id to search with 496 * @param start the lower bound of the range of i g images to return 497 * @param end the upper bound of the range of i g images to return (not inclusive) 498 * @return the range of matching i g images that the user has permission to view 499 * @throws SystemException if a system exception occurred 500 */ 501 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId( 502 long groupId, int start, int end) 503 throws com.liferay.portal.kernel.exception.SystemException { 504 return getPersistence().filterFindByGroupId(groupId, start, end); 505 } 506 507 /** 508 * Filters by the user's permissions and finds an ordered range of all the i g images where groupId = ?. 509 * 510 * <p> 511 * 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. 512 * </p> 513 * 514 * @param groupId the group id to search with 515 * @param start the lower bound of the range of i g images to return 516 * @param end the upper bound of the range of i g images to return (not inclusive) 517 * @param orderByComparator the comparator to order the results by 518 * @return the ordered range of matching i g images that the user has permission to view 519 * @throws SystemException if a system exception occurred 520 */ 521 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByGroupId( 522 long groupId, int start, int end, 523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 524 throws com.liferay.portal.kernel.exception.SystemException { 525 return getPersistence() 526 .filterFindByGroupId(groupId, start, end, orderByComparator); 527 } 528 529 /** 530 * Finds the i g image where smallImageId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 531 * 532 * @param smallImageId the small image id to search with 533 * @return the matching i g image 534 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 535 * @throws SystemException if a system exception occurred 536 */ 537 public static com.liferay.portlet.imagegallery.model.IGImage findBySmallImageId( 538 long smallImageId) 539 throws com.liferay.portal.kernel.exception.SystemException, 540 com.liferay.portlet.imagegallery.NoSuchImageException { 541 return getPersistence().findBySmallImageId(smallImageId); 542 } 543 544 /** 545 * Finds the i g image where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 546 * 547 * @param smallImageId the small image id to search with 548 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId( 552 long smallImageId) 553 throws com.liferay.portal.kernel.exception.SystemException { 554 return getPersistence().fetchBySmallImageId(smallImageId); 555 } 556 557 /** 558 * Finds the i g image where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 559 * 560 * @param smallImageId the small image id to search with 561 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public static com.liferay.portlet.imagegallery.model.IGImage fetchBySmallImageId( 565 long smallImageId, boolean retrieveFromCache) 566 throws com.liferay.portal.kernel.exception.SystemException { 567 return getPersistence() 568 .fetchBySmallImageId(smallImageId, retrieveFromCache); 569 } 570 571 /** 572 * Finds the i g image where largeImageId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 573 * 574 * @param largeImageId the large image id to search with 575 * @return the matching i g image 576 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 577 * @throws SystemException if a system exception occurred 578 */ 579 public static com.liferay.portlet.imagegallery.model.IGImage findByLargeImageId( 580 long largeImageId) 581 throws com.liferay.portal.kernel.exception.SystemException, 582 com.liferay.portlet.imagegallery.NoSuchImageException { 583 return getPersistence().findByLargeImageId(largeImageId); 584 } 585 586 /** 587 * Finds the i g image where largeImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 588 * 589 * @param largeImageId the large image id to search with 590 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 591 * @throws SystemException if a system exception occurred 592 */ 593 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId( 594 long largeImageId) 595 throws com.liferay.portal.kernel.exception.SystemException { 596 return getPersistence().fetchByLargeImageId(largeImageId); 597 } 598 599 /** 600 * Finds the i g image where largeImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 601 * 602 * @param largeImageId the large image id to search with 603 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 604 * @throws SystemException if a system exception occurred 605 */ 606 public static com.liferay.portlet.imagegallery.model.IGImage fetchByLargeImageId( 607 long largeImageId, boolean retrieveFromCache) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence() 610 .fetchByLargeImageId(largeImageId, retrieveFromCache); 611 } 612 613 /** 614 * Finds the i g image where custom1ImageId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 615 * 616 * @param custom1ImageId the custom1 image id to search with 617 * @return the matching i g image 618 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 619 * @throws SystemException if a system exception occurred 620 */ 621 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom1ImageId( 622 long custom1ImageId) 623 throws com.liferay.portal.kernel.exception.SystemException, 624 com.liferay.portlet.imagegallery.NoSuchImageException { 625 return getPersistence().findByCustom1ImageId(custom1ImageId); 626 } 627 628 /** 629 * Finds the i g image where custom1ImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 630 * 631 * @param custom1ImageId the custom1 image id to search with 632 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId( 636 long custom1ImageId) 637 throws com.liferay.portal.kernel.exception.SystemException { 638 return getPersistence().fetchByCustom1ImageId(custom1ImageId); 639 } 640 641 /** 642 * Finds the i g image where custom1ImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 643 * 644 * @param custom1ImageId the custom1 image id to search with 645 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 646 * @throws SystemException if a system exception occurred 647 */ 648 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom1ImageId( 649 long custom1ImageId, boolean retrieveFromCache) 650 throws com.liferay.portal.kernel.exception.SystemException { 651 return getPersistence() 652 .fetchByCustom1ImageId(custom1ImageId, retrieveFromCache); 653 } 654 655 /** 656 * Finds the i g image where custom2ImageId = ? or throws a {@link com.liferay.portlet.imagegallery.NoSuchImageException} if it could not be found. 657 * 658 * @param custom2ImageId the custom2 image id to search with 659 * @return the matching i g image 660 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 661 * @throws SystemException if a system exception occurred 662 */ 663 public static com.liferay.portlet.imagegallery.model.IGImage findByCustom2ImageId( 664 long custom2ImageId) 665 throws com.liferay.portal.kernel.exception.SystemException, 666 com.liferay.portlet.imagegallery.NoSuchImageException { 667 return getPersistence().findByCustom2ImageId(custom2ImageId); 668 } 669 670 /** 671 * Finds the i g image where custom2ImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 672 * 673 * @param custom2ImageId the custom2 image id to search with 674 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 675 * @throws SystemException if a system exception occurred 676 */ 677 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId( 678 long custom2ImageId) 679 throws com.liferay.portal.kernel.exception.SystemException { 680 return getPersistence().fetchByCustom2ImageId(custom2ImageId); 681 } 682 683 /** 684 * Finds the i g image where custom2ImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 685 * 686 * @param custom2ImageId the custom2 image id to search with 687 * @return the matching i g image, or <code>null</code> if a matching i g image could not be found 688 * @throws SystemException if a system exception occurred 689 */ 690 public static com.liferay.portlet.imagegallery.model.IGImage fetchByCustom2ImageId( 691 long custom2ImageId, boolean retrieveFromCache) 692 throws com.liferay.portal.kernel.exception.SystemException { 693 return getPersistence() 694 .fetchByCustom2ImageId(custom2ImageId, retrieveFromCache); 695 } 696 697 /** 698 * Finds all the i g images where groupId = ? and userId = ?. 699 * 700 * @param groupId the group id to search with 701 * @param userId the user id to search with 702 * @return the matching i g images 703 * @throws SystemException if a system exception occurred 704 */ 705 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U( 706 long groupId, long userId) 707 throws com.liferay.portal.kernel.exception.SystemException { 708 return getPersistence().findByG_U(groupId, userId); 709 } 710 711 /** 712 * Finds a range of all the i g images where groupId = ? and userId = ?. 713 * 714 * <p> 715 * 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. 716 * </p> 717 * 718 * @param groupId the group id to search with 719 * @param userId the user id to search with 720 * @param start the lower bound of the range of i g images to return 721 * @param end the upper bound of the range of i g images to return (not inclusive) 722 * @return the range of matching i g images 723 * @throws SystemException if a system exception occurred 724 */ 725 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U( 726 long groupId, long userId, int start, int end) 727 throws com.liferay.portal.kernel.exception.SystemException { 728 return getPersistence().findByG_U(groupId, userId, start, end); 729 } 730 731 /** 732 * Finds an ordered range of all the i g images where groupId = ? and userId = ?. 733 * 734 * <p> 735 * 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. 736 * </p> 737 * 738 * @param groupId the group id to search with 739 * @param userId the user id to search with 740 * @param start the lower bound of the range of i g images to return 741 * @param end the upper bound of the range of i g images to return (not inclusive) 742 * @param orderByComparator the comparator to order the results by 743 * @return the ordered range of matching i g images 744 * @throws SystemException if a system exception occurred 745 */ 746 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_U( 747 long groupId, long userId, int start, int end, 748 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 749 throws com.liferay.portal.kernel.exception.SystemException { 750 return getPersistence() 751 .findByG_U(groupId, userId, start, end, orderByComparator); 752 } 753 754 /** 755 * Finds the first i g image in the ordered set where groupId = ? and userId = ?. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param groupId the group id to search with 762 * @param userId the user id to search with 763 * @param orderByComparator the comparator to order the set by 764 * @return the first matching i g image 765 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 766 * @throws SystemException if a system exception occurred 767 */ 768 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_First( 769 long groupId, long userId, 770 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 771 throws com.liferay.portal.kernel.exception.SystemException, 772 com.liferay.portlet.imagegallery.NoSuchImageException { 773 return getPersistence() 774 .findByG_U_First(groupId, userId, orderByComparator); 775 } 776 777 /** 778 * Finds the last i g image in the ordered set where groupId = ? and userId = ?. 779 * 780 * <p> 781 * 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. 782 * </p> 783 * 784 * @param groupId the group id to search with 785 * @param userId the user id to search with 786 * @param orderByComparator the comparator to order the set by 787 * @return the last matching i g image 788 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 789 * @throws SystemException if a system exception occurred 790 */ 791 public static com.liferay.portlet.imagegallery.model.IGImage findByG_U_Last( 792 long groupId, long userId, 793 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 794 throws com.liferay.portal.kernel.exception.SystemException, 795 com.liferay.portlet.imagegallery.NoSuchImageException { 796 return getPersistence() 797 .findByG_U_Last(groupId, userId, orderByComparator); 798 } 799 800 /** 801 * Finds the i g images before and after the current i g image in the ordered set where groupId = ? and userId = ?. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param imageId the primary key of the current i g image 808 * @param groupId the group id to search with 809 * @param userId the user id to search with 810 * @param orderByComparator the comparator to order the set by 811 * @return the previous, current, and next i g image 812 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 813 * @throws SystemException if a system exception occurred 814 */ 815 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_U_PrevAndNext( 816 long imageId, long groupId, long userId, 817 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 818 throws com.liferay.portal.kernel.exception.SystemException, 819 com.liferay.portlet.imagegallery.NoSuchImageException { 820 return getPersistence() 821 .findByG_U_PrevAndNext(imageId, groupId, userId, 822 orderByComparator); 823 } 824 825 /** 826 * Filters by the user's permissions and finds all the i g images where groupId = ? and userId = ?. 827 * 828 * @param groupId the group id to search with 829 * @param userId the user id to search with 830 * @return the matching i g images that the user has permission to view 831 * @throws SystemException if a system exception occurred 832 */ 833 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U( 834 long groupId, long userId) 835 throws com.liferay.portal.kernel.exception.SystemException { 836 return getPersistence().filterFindByG_U(groupId, userId); 837 } 838 839 /** 840 * Filters by the user's permissions and finds a range of all the i g images where groupId = ? and userId = ?. 841 * 842 * <p> 843 * 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. 844 * </p> 845 * 846 * @param groupId the group id to search with 847 * @param userId the user id to search with 848 * @param start the lower bound of the range of i g images to return 849 * @param end the upper bound of the range of i g images to return (not inclusive) 850 * @return the range of matching i g images that the user has permission to view 851 * @throws SystemException if a system exception occurred 852 */ 853 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U( 854 long groupId, long userId, int start, int end) 855 throws com.liferay.portal.kernel.exception.SystemException { 856 return getPersistence().filterFindByG_U(groupId, userId, start, end); 857 } 858 859 /** 860 * Filters by the user's permissions and finds an ordered range of all the i g images where groupId = ? and userId = ?. 861 * 862 * <p> 863 * 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. 864 * </p> 865 * 866 * @param groupId the group id to search with 867 * @param userId the user id to search with 868 * @param start the lower bound of the range of i g images to return 869 * @param end the upper bound of the range of i g images to return (not inclusive) 870 * @param orderByComparator the comparator to order the results by 871 * @return the ordered range of matching i g images that the user has permission to view 872 * @throws SystemException if a system exception occurred 873 */ 874 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_U( 875 long groupId, long userId, int start, int end, 876 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 877 throws com.liferay.portal.kernel.exception.SystemException { 878 return getPersistence() 879 .filterFindByG_U(groupId, userId, start, end, 880 orderByComparator); 881 } 882 883 /** 884 * Finds all the i g images where groupId = ? and folderId = ?. 885 * 886 * @param groupId the group id to search with 887 * @param folderId the folder id to search with 888 * @return the matching i g images 889 * @throws SystemException if a system exception occurred 890 */ 891 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 892 long groupId, long folderId) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence().findByG_F(groupId, folderId); 895 } 896 897 /** 898 * Finds a range of all the i g images where groupId = ? and folderId = ?. 899 * 900 * <p> 901 * 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. 902 * </p> 903 * 904 * @param groupId the group id to search with 905 * @param folderId the folder id to search with 906 * @param start the lower bound of the range of i g images to return 907 * @param end the upper bound of the range of i g images to return (not inclusive) 908 * @return the range of matching i g images 909 * @throws SystemException if a system exception occurred 910 */ 911 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 912 long groupId, long folderId, int start, int end) 913 throws com.liferay.portal.kernel.exception.SystemException { 914 return getPersistence().findByG_F(groupId, folderId, start, end); 915 } 916 917 /** 918 * Finds an ordered range of all the i g images where groupId = ? and folderId = ?. 919 * 920 * <p> 921 * 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. 922 * </p> 923 * 924 * @param groupId the group id to search with 925 * @param folderId the folder id to search with 926 * @param start the lower bound of the range of i g images to return 927 * @param end the upper bound of the range of i g images to return (not inclusive) 928 * @param orderByComparator the comparator to order the results by 929 * @return the ordered range of matching i g images 930 * @throws SystemException if a system exception occurred 931 */ 932 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 933 long groupId, long folderId, int start, int end, 934 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 935 throws com.liferay.portal.kernel.exception.SystemException { 936 return getPersistence() 937 .findByG_F(groupId, folderId, start, end, orderByComparator); 938 } 939 940 /** 941 * Finds the first i g image in the ordered set where groupId = ? and folderId = ?. 942 * 943 * <p> 944 * 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. 945 * </p> 946 * 947 * @param groupId the group id to search with 948 * @param folderId the folder id to search with 949 * @param orderByComparator the comparator to order the set by 950 * @return the first matching i g image 951 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 952 * @throws SystemException if a system exception occurred 953 */ 954 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_First( 955 long groupId, long folderId, 956 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 957 throws com.liferay.portal.kernel.exception.SystemException, 958 com.liferay.portlet.imagegallery.NoSuchImageException { 959 return getPersistence() 960 .findByG_F_First(groupId, folderId, orderByComparator); 961 } 962 963 /** 964 * Finds the last i g image in the ordered set where groupId = ? and folderId = ?. 965 * 966 * <p> 967 * 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. 968 * </p> 969 * 970 * @param groupId the group id to search with 971 * @param folderId the folder id to search with 972 * @param orderByComparator the comparator to order the set by 973 * @return the last matching i g image 974 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 975 * @throws SystemException if a system exception occurred 976 */ 977 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_Last( 978 long groupId, long folderId, 979 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 980 throws com.liferay.portal.kernel.exception.SystemException, 981 com.liferay.portlet.imagegallery.NoSuchImageException { 982 return getPersistence() 983 .findByG_F_Last(groupId, folderId, orderByComparator); 984 } 985 986 /** 987 * Finds the i g images before and after the current i g image in the ordered set where groupId = ? and folderId = ?. 988 * 989 * <p> 990 * 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. 991 * </p> 992 * 993 * @param imageId the primary key of the current i g image 994 * @param groupId the group id to search with 995 * @param folderId the folder id to search with 996 * @param orderByComparator the comparator to order the set by 997 * @return the previous, current, and next i g image 998 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_PrevAndNext( 1002 long imageId, long groupId, long folderId, 1003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1004 throws com.liferay.portal.kernel.exception.SystemException, 1005 com.liferay.portlet.imagegallery.NoSuchImageException { 1006 return getPersistence() 1007 .findByG_F_PrevAndNext(imageId, groupId, folderId, 1008 orderByComparator); 1009 } 1010 1011 /** 1012 * Finds all the i g images where groupId = ? and folderId = any ?. 1013 * 1014 * <p> 1015 * 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. 1016 * </p> 1017 * 1018 * @param groupId the group id to search with 1019 * @param folderIds the folder ids to search with 1020 * @return the matching i g images 1021 * @throws SystemException if a system exception occurred 1022 */ 1023 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 1024 long groupId, long[] folderIds) 1025 throws com.liferay.portal.kernel.exception.SystemException { 1026 return getPersistence().findByG_F(groupId, folderIds); 1027 } 1028 1029 /** 1030 * Finds a range of all the i g images where groupId = ? and folderId = any ?. 1031 * 1032 * <p> 1033 * 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. 1034 * </p> 1035 * 1036 * @param groupId the group id to search with 1037 * @param folderIds the folder ids to search with 1038 * @param start the lower bound of the range of i g images to return 1039 * @param end the upper bound of the range of i g images to return (not inclusive) 1040 * @return the range of matching i g images 1041 * @throws SystemException if a system exception occurred 1042 */ 1043 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 1044 long groupId, long[] folderIds, int start, int end) 1045 throws com.liferay.portal.kernel.exception.SystemException { 1046 return getPersistence().findByG_F(groupId, folderIds, start, end); 1047 } 1048 1049 /** 1050 * Finds an ordered range of all the i g images where groupId = ? and folderId = any ?. 1051 * 1052 * <p> 1053 * 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. 1054 * </p> 1055 * 1056 * @param groupId the group id to search with 1057 * @param folderIds the folder ids to search with 1058 * @param start the lower bound of the range of i g images to return 1059 * @param end the upper bound of the range of i g images to return (not inclusive) 1060 * @param orderByComparator the comparator to order the results by 1061 * @return the ordered range of matching i g images 1062 * @throws SystemException if a system exception occurred 1063 */ 1064 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F( 1065 long groupId, long[] folderIds, int start, int end, 1066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1067 throws com.liferay.portal.kernel.exception.SystemException { 1068 return getPersistence() 1069 .findByG_F(groupId, folderIds, start, end, orderByComparator); 1070 } 1071 1072 /** 1073 * Filters by the user's permissions and finds all the i g images where groupId = ? and folderId = ?. 1074 * 1075 * @param groupId the group id to search with 1076 * @param folderId the folder id to search with 1077 * @return the matching i g images that the user has permission to view 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1081 long groupId, long folderId) 1082 throws com.liferay.portal.kernel.exception.SystemException { 1083 return getPersistence().filterFindByG_F(groupId, folderId); 1084 } 1085 1086 /** 1087 * Filters by the user's permissions and finds a range of all the i g images where groupId = ? and folderId = ?. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param groupId the group id to search with 1094 * @param folderId the folder id to search with 1095 * @param start the lower bound of the range of i g images to return 1096 * @param end the upper bound of the range of i g images to return (not inclusive) 1097 * @return the range of matching i g images that the user has permission to view 1098 * @throws SystemException if a system exception occurred 1099 */ 1100 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1101 long groupId, long folderId, int start, int end) 1102 throws com.liferay.portal.kernel.exception.SystemException { 1103 return getPersistence().filterFindByG_F(groupId, folderId, start, end); 1104 } 1105 1106 /** 1107 * Filters by the user's permissions and finds an ordered range of all the i g images where groupId = ? and folderId = ?. 1108 * 1109 * <p> 1110 * 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. 1111 * </p> 1112 * 1113 * @param groupId the group id to search with 1114 * @param folderId the folder id to search with 1115 * @param start the lower bound of the range of i g images to return 1116 * @param end the upper bound of the range of i g images to return (not inclusive) 1117 * @param orderByComparator the comparator to order the results by 1118 * @return the ordered range of matching i g images that the user has permission to view 1119 * @throws SystemException if a system exception occurred 1120 */ 1121 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1122 long groupId, long folderId, int start, int end, 1123 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1124 throws com.liferay.portal.kernel.exception.SystemException { 1125 return getPersistence() 1126 .filterFindByG_F(groupId, folderId, start, end, 1127 orderByComparator); 1128 } 1129 1130 /** 1131 * Filters by the user's permissions and finds all the i g images where groupId = ? and folderId = any ?. 1132 * 1133 * <p> 1134 * 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. 1135 * </p> 1136 * 1137 * @param groupId the group id to search with 1138 * @param folderIds the folder ids to search with 1139 * @return the matching i g images that the user has permission to view 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1143 long groupId, long[] folderIds) 1144 throws com.liferay.portal.kernel.exception.SystemException { 1145 return getPersistence().filterFindByG_F(groupId, folderIds); 1146 } 1147 1148 /** 1149 * Filters by the user's permissions and finds a range of all the i g images where groupId = ? and folderId = any ?. 1150 * 1151 * <p> 1152 * 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. 1153 * </p> 1154 * 1155 * @param groupId the group id to search with 1156 * @param folderIds the folder ids to search with 1157 * @param start the lower bound of the range of i g images to return 1158 * @param end the upper bound of the range of i g images to return (not inclusive) 1159 * @return the range of matching i g images that the user has permission to view 1160 * @throws SystemException if a system exception occurred 1161 */ 1162 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1163 long groupId, long[] folderIds, int start, int end) 1164 throws com.liferay.portal.kernel.exception.SystemException { 1165 return getPersistence().filterFindByG_F(groupId, folderIds, start, end); 1166 } 1167 1168 /** 1169 * Filters by the user's permissions and finds an ordered range of all the i g images where groupId = ? and folderId = any ?. 1170 * 1171 * <p> 1172 * 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. 1173 * </p> 1174 * 1175 * @param groupId the group id to search with 1176 * @param folderIds the folder ids to search with 1177 * @param start the lower bound of the range of i g images to return 1178 * @param end the upper bound of the range of i g images to return (not inclusive) 1179 * @param orderByComparator the comparator to order the results by 1180 * @return the ordered range of matching i g images that the user has permission to view 1181 * @throws SystemException if a system exception occurred 1182 */ 1183 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F( 1184 long groupId, long[] folderIds, int start, int end, 1185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1186 throws com.liferay.portal.kernel.exception.SystemException { 1187 return getPersistence() 1188 .filterFindByG_F(groupId, folderIds, start, end, 1189 orderByComparator); 1190 } 1191 1192 /** 1193 * Finds all the i g images where groupId = ? and folderId = ? and name = ?. 1194 * 1195 * @param groupId the group id to search with 1196 * @param folderId the folder id to search with 1197 * @param name the name to search with 1198 * @return the matching i g images 1199 * @throws SystemException if a system exception occurred 1200 */ 1201 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N( 1202 long groupId, long folderId, java.lang.String name) 1203 throws com.liferay.portal.kernel.exception.SystemException { 1204 return getPersistence().findByG_F_N(groupId, folderId, name); 1205 } 1206 1207 /** 1208 * Finds a range of all the i g images where groupId = ? and folderId = ? and name = ?. 1209 * 1210 * <p> 1211 * 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. 1212 * </p> 1213 * 1214 * @param groupId the group id to search with 1215 * @param folderId the folder id to search with 1216 * @param name the name to search with 1217 * @param start the lower bound of the range of i g images to return 1218 * @param end the upper bound of the range of i g images to return (not inclusive) 1219 * @return the range of matching i g images 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N( 1223 long groupId, long folderId, java.lang.String name, int start, int end) 1224 throws com.liferay.portal.kernel.exception.SystemException { 1225 return getPersistence().findByG_F_N(groupId, folderId, name, start, end); 1226 } 1227 1228 /** 1229 * Finds an ordered range of all the i g images where groupId = ? and folderId = ? and name = ?. 1230 * 1231 * <p> 1232 * 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. 1233 * </p> 1234 * 1235 * @param groupId the group id to search with 1236 * @param folderId the folder id to search with 1237 * @param name the name to search with 1238 * @param start the lower bound of the range of i g images to return 1239 * @param end the upper bound of the range of i g images to return (not inclusive) 1240 * @param orderByComparator the comparator to order the results by 1241 * @return the ordered range of matching i g images 1242 * @throws SystemException if a system exception occurred 1243 */ 1244 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findByG_F_N( 1245 long groupId, long folderId, java.lang.String name, int start, int end, 1246 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1247 throws com.liferay.portal.kernel.exception.SystemException { 1248 return getPersistence() 1249 .findByG_F_N(groupId, folderId, name, start, end, 1250 orderByComparator); 1251 } 1252 1253 /** 1254 * Finds the first i g image in the ordered set where groupId = ? and folderId = ? and name = ?. 1255 * 1256 * <p> 1257 * 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. 1258 * </p> 1259 * 1260 * @param groupId the group id to search with 1261 * @param folderId the folder id to search with 1262 * @param name the name to search with 1263 * @param orderByComparator the comparator to order the set by 1264 * @return the first matching i g image 1265 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 1266 * @throws SystemException if a system exception occurred 1267 */ 1268 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_First( 1269 long groupId, long folderId, java.lang.String name, 1270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1271 throws com.liferay.portal.kernel.exception.SystemException, 1272 com.liferay.portlet.imagegallery.NoSuchImageException { 1273 return getPersistence() 1274 .findByG_F_N_First(groupId, folderId, name, orderByComparator); 1275 } 1276 1277 /** 1278 * Finds the last i g image in the ordered set where groupId = ? and folderId = ? and name = ?. 1279 * 1280 * <p> 1281 * 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. 1282 * </p> 1283 * 1284 * @param groupId the group id to search with 1285 * @param folderId the folder id to search with 1286 * @param name the name to search with 1287 * @param orderByComparator the comparator to order the set by 1288 * @return the last matching i g image 1289 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a matching i g image could not be found 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public static com.liferay.portlet.imagegallery.model.IGImage findByG_F_N_Last( 1293 long groupId, long folderId, java.lang.String name, 1294 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1295 throws com.liferay.portal.kernel.exception.SystemException, 1296 com.liferay.portlet.imagegallery.NoSuchImageException { 1297 return getPersistence() 1298 .findByG_F_N_Last(groupId, folderId, name, orderByComparator); 1299 } 1300 1301 /** 1302 * Finds the i g images before and after the current i g image in the ordered set where groupId = ? and folderId = ? and name = ?. 1303 * 1304 * <p> 1305 * 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. 1306 * </p> 1307 * 1308 * @param imageId the primary key of the current i g image 1309 * @param groupId the group id to search with 1310 * @param folderId the folder id to search with 1311 * @param name the name to search with 1312 * @param orderByComparator the comparator to order the set by 1313 * @return the previous, current, and next i g image 1314 * @throws com.liferay.portlet.imagegallery.NoSuchImageException if a i g image with the primary key could not be found 1315 * @throws SystemException if a system exception occurred 1316 */ 1317 public static com.liferay.portlet.imagegallery.model.IGImage[] findByG_F_N_PrevAndNext( 1318 long imageId, long groupId, long folderId, java.lang.String name, 1319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1320 throws com.liferay.portal.kernel.exception.SystemException, 1321 com.liferay.portlet.imagegallery.NoSuchImageException { 1322 return getPersistence() 1323 .findByG_F_N_PrevAndNext(imageId, groupId, folderId, name, 1324 orderByComparator); 1325 } 1326 1327 /** 1328 * Filters by the user's permissions and finds all the i g images where groupId = ? and folderId = ? and name = ?. 1329 * 1330 * @param groupId the group id to search with 1331 * @param folderId the folder id to search with 1332 * @param name the name to search with 1333 * @return the matching i g images that the user has permission to view 1334 * @throws SystemException if a system exception occurred 1335 */ 1336 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N( 1337 long groupId, long folderId, java.lang.String name) 1338 throws com.liferay.portal.kernel.exception.SystemException { 1339 return getPersistence().filterFindByG_F_N(groupId, folderId, name); 1340 } 1341 1342 /** 1343 * Filters by the user's permissions and finds a range of all the i g images where groupId = ? and folderId = ? and name = ?. 1344 * 1345 * <p> 1346 * 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. 1347 * </p> 1348 * 1349 * @param groupId the group id to search with 1350 * @param folderId the folder id to search with 1351 * @param name the name to search with 1352 * @param start the lower bound of the range of i g images to return 1353 * @param end the upper bound of the range of i g images to return (not inclusive) 1354 * @return the range of matching i g images that the user has permission to view 1355 * @throws SystemException if a system exception occurred 1356 */ 1357 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N( 1358 long groupId, long folderId, java.lang.String name, int start, int end) 1359 throws com.liferay.portal.kernel.exception.SystemException { 1360 return getPersistence() 1361 .filterFindByG_F_N(groupId, folderId, name, start, end); 1362 } 1363 1364 /** 1365 * Filters by the user's permissions and finds an ordered range of all the i g images where groupId = ? and folderId = ? and name = ?. 1366 * 1367 * <p> 1368 * 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. 1369 * </p> 1370 * 1371 * @param groupId the group id to search with 1372 * @param folderId the folder id to search with 1373 * @param name the name to search with 1374 * @param start the lower bound of the range of i g images to return 1375 * @param end the upper bound of the range of i g images to return (not inclusive) 1376 * @param orderByComparator the comparator to order the results by 1377 * @return the ordered range of matching i g images that the user has permission to view 1378 * @throws SystemException if a system exception occurred 1379 */ 1380 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> filterFindByG_F_N( 1381 long groupId, long folderId, java.lang.String name, int start, int end, 1382 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1383 throws com.liferay.portal.kernel.exception.SystemException { 1384 return getPersistence() 1385 .filterFindByG_F_N(groupId, folderId, name, start, end, 1386 orderByComparator); 1387 } 1388 1389 /** 1390 * Finds all the i g images. 1391 * 1392 * @return the i g images 1393 * @throws SystemException if a system exception occurred 1394 */ 1395 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll() 1396 throws com.liferay.portal.kernel.exception.SystemException { 1397 return getPersistence().findAll(); 1398 } 1399 1400 /** 1401 * Finds a range of all the i g images. 1402 * 1403 * <p> 1404 * 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. 1405 * </p> 1406 * 1407 * @param start the lower bound of the range of i g images to return 1408 * @param end the upper bound of the range of i g images to return (not inclusive) 1409 * @return the range of i g images 1410 * @throws SystemException if a system exception occurred 1411 */ 1412 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll( 1413 int start, int end) 1414 throws com.liferay.portal.kernel.exception.SystemException { 1415 return getPersistence().findAll(start, end); 1416 } 1417 1418 /** 1419 * Finds an ordered range of all the i g images. 1420 * 1421 * <p> 1422 * 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. 1423 * </p> 1424 * 1425 * @param start the lower bound of the range of i g images to return 1426 * @param end the upper bound of the range of i g images to return (not inclusive) 1427 * @param orderByComparator the comparator to order the results by 1428 * @return the ordered range of i g images 1429 * @throws SystemException if a system exception occurred 1430 */ 1431 public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> findAll( 1432 int start, int end, 1433 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1434 throws com.liferay.portal.kernel.exception.SystemException { 1435 return getPersistence().findAll(start, end, orderByComparator); 1436 } 1437 1438 /** 1439 * Removes all the i g images where uuid = ? from the database. 1440 * 1441 * @param uuid the uuid to search with 1442 * @throws SystemException if a system exception occurred 1443 */ 1444 public static void removeByUuid(java.lang.String uuid) 1445 throws com.liferay.portal.kernel.exception.SystemException { 1446 getPersistence().removeByUuid(uuid); 1447 } 1448 1449 /** 1450 * Removes the i g image where uuid = ? and groupId = ? from the database. 1451 * 1452 * @param uuid the uuid to search with 1453 * @param groupId the group id to search with 1454 * @throws SystemException if a system exception occurred 1455 */ 1456 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1457 throws com.liferay.portal.kernel.exception.SystemException, 1458 com.liferay.portlet.imagegallery.NoSuchImageException { 1459 getPersistence().removeByUUID_G(uuid, groupId); 1460 } 1461 1462 /** 1463 * Removes all the i g images where groupId = ? from the database. 1464 * 1465 * @param groupId the group id to search with 1466 * @throws SystemException if a system exception occurred 1467 */ 1468 public static void removeByGroupId(long groupId) 1469 throws com.liferay.portal.kernel.exception.SystemException { 1470 getPersistence().removeByGroupId(groupId); 1471 } 1472 1473 /** 1474 * Removes the i g image where smallImageId = ? from the database. 1475 * 1476 * @param smallImageId the small image id to search with 1477 * @throws SystemException if a system exception occurred 1478 */ 1479 public static void removeBySmallImageId(long smallImageId) 1480 throws com.liferay.portal.kernel.exception.SystemException, 1481 com.liferay.portlet.imagegallery.NoSuchImageException { 1482 getPersistence().removeBySmallImageId(smallImageId); 1483 } 1484 1485 /** 1486 * Removes the i g image where largeImageId = ? from the database. 1487 * 1488 * @param largeImageId the large image id to search with 1489 * @throws SystemException if a system exception occurred 1490 */ 1491 public static void removeByLargeImageId(long largeImageId) 1492 throws com.liferay.portal.kernel.exception.SystemException, 1493 com.liferay.portlet.imagegallery.NoSuchImageException { 1494 getPersistence().removeByLargeImageId(largeImageId); 1495 } 1496 1497 /** 1498 * Removes the i g image where custom1ImageId = ? from the database. 1499 * 1500 * @param custom1ImageId the custom1 image id to search with 1501 * @throws SystemException if a system exception occurred 1502 */ 1503 public static void removeByCustom1ImageId(long custom1ImageId) 1504 throws com.liferay.portal.kernel.exception.SystemException, 1505 com.liferay.portlet.imagegallery.NoSuchImageException { 1506 getPersistence().removeByCustom1ImageId(custom1ImageId); 1507 } 1508 1509 /** 1510 * Removes the i g image where custom2ImageId = ? from the database. 1511 * 1512 * @param custom2ImageId the custom2 image id to search with 1513 * @throws SystemException if a system exception occurred 1514 */ 1515 public static void removeByCustom2ImageId(long custom2ImageId) 1516 throws com.liferay.portal.kernel.exception.SystemException, 1517 com.liferay.portlet.imagegallery.NoSuchImageException { 1518 getPersistence().removeByCustom2ImageId(custom2ImageId); 1519 } 1520 1521 /** 1522 * Removes all the i g images where groupId = ? and userId = ? from the database. 1523 * 1524 * @param groupId the group id to search with 1525 * @param userId the user id to search with 1526 * @throws SystemException if a system exception occurred 1527 */ 1528 public static void removeByG_U(long groupId, long userId) 1529 throws com.liferay.portal.kernel.exception.SystemException { 1530 getPersistence().removeByG_U(groupId, userId); 1531 } 1532 1533 /** 1534 * Removes all the i g images where groupId = ? and folderId = ? from the database. 1535 * 1536 * @param groupId the group id to search with 1537 * @param folderId the folder id to search with 1538 * @throws SystemException if a system exception occurred 1539 */ 1540 public static void removeByG_F(long groupId, long folderId) 1541 throws com.liferay.portal.kernel.exception.SystemException { 1542 getPersistence().removeByG_F(groupId, folderId); 1543 } 1544 1545 /** 1546 * Removes all the i g images where groupId = ? and folderId = ? and name = ? from the database. 1547 * 1548 * @param groupId the group id to search with 1549 * @param folderId the folder id to search with 1550 * @param name the name to search with 1551 * @throws SystemException if a system exception occurred 1552 */ 1553 public static void removeByG_F_N(long groupId, long folderId, 1554 java.lang.String name) 1555 throws com.liferay.portal.kernel.exception.SystemException { 1556 getPersistence().removeByG_F_N(groupId, folderId, name); 1557 } 1558 1559 /** 1560 * Removes all the i g images from the database. 1561 * 1562 * @throws SystemException if a system exception occurred 1563 */ 1564 public static void removeAll() 1565 throws com.liferay.portal.kernel.exception.SystemException { 1566 getPersistence().removeAll(); 1567 } 1568 1569 /** 1570 * Counts all the i g images where uuid = ?. 1571 * 1572 * @param uuid the uuid to search with 1573 * @return the number of matching i g images 1574 * @throws SystemException if a system exception occurred 1575 */ 1576 public static int countByUuid(java.lang.String uuid) 1577 throws com.liferay.portal.kernel.exception.SystemException { 1578 return getPersistence().countByUuid(uuid); 1579 } 1580 1581 /** 1582 * Counts all the i g images where uuid = ? and groupId = ?. 1583 * 1584 * @param uuid the uuid to search with 1585 * @param groupId the group id to search with 1586 * @return the number of matching i g images 1587 * @throws SystemException if a system exception occurred 1588 */ 1589 public static int countByUUID_G(java.lang.String uuid, long groupId) 1590 throws com.liferay.portal.kernel.exception.SystemException { 1591 return getPersistence().countByUUID_G(uuid, groupId); 1592 } 1593 1594 /** 1595 * Counts all the i g images where groupId = ?. 1596 * 1597 * @param groupId the group id to search with 1598 * @return the number of matching i g images 1599 * @throws SystemException if a system exception occurred 1600 */ 1601 public static int countByGroupId(long groupId) 1602 throws com.liferay.portal.kernel.exception.SystemException { 1603 return getPersistence().countByGroupId(groupId); 1604 } 1605 1606 /** 1607 * Filters by the user's permissions and counts all the i g images where groupId = ?. 1608 * 1609 * @param groupId the group id to search with 1610 * @return the number of matching i g images that the user has permission to view 1611 * @throws SystemException if a system exception occurred 1612 */ 1613 public static int filterCountByGroupId(long groupId) 1614 throws com.liferay.portal.kernel.exception.SystemException { 1615 return getPersistence().filterCountByGroupId(groupId); 1616 } 1617 1618 /** 1619 * Counts all the i g images where smallImageId = ?. 1620 * 1621 * @param smallImageId the small image id to search with 1622 * @return the number of matching i g images 1623 * @throws SystemException if a system exception occurred 1624 */ 1625 public static int countBySmallImageId(long smallImageId) 1626 throws com.liferay.portal.kernel.exception.SystemException { 1627 return getPersistence().countBySmallImageId(smallImageId); 1628 } 1629 1630 /** 1631 * Counts all the i g images where largeImageId = ?. 1632 * 1633 * @param largeImageId the large image id to search with 1634 * @return the number of matching i g images 1635 * @throws SystemException if a system exception occurred 1636 */ 1637 public static int countByLargeImageId(long largeImageId) 1638 throws com.liferay.portal.kernel.exception.SystemException { 1639 return getPersistence().countByLargeImageId(largeImageId); 1640 } 1641 1642 /** 1643 * Counts all the i g images where custom1ImageId = ?. 1644 * 1645 * @param custom1ImageId the custom1 image id to search with 1646 * @return the number of matching i g images 1647 * @throws SystemException if a system exception occurred 1648 */ 1649 public static int countByCustom1ImageId(long custom1ImageId) 1650 throws com.liferay.portal.kernel.exception.SystemException { 1651 return getPersistence().countByCustom1ImageId(custom1ImageId); 1652 } 1653 1654 /** 1655 * Counts all the i g images where custom2ImageId = ?. 1656 * 1657 * @param custom2ImageId the custom2 image id to search with 1658 * @return the number of matching i g images 1659 * @throws SystemException if a system exception occurred 1660 */ 1661 public static int countByCustom2ImageId(long custom2ImageId) 1662 throws com.liferay.portal.kernel.exception.SystemException { 1663 return getPersistence().countByCustom2ImageId(custom2ImageId); 1664 } 1665 1666 /** 1667 * Counts all the i g images where groupId = ? and userId = ?. 1668 * 1669 * @param groupId the group id to search with 1670 * @param userId the user id to search with 1671 * @return the number of matching i g images 1672 * @throws SystemException if a system exception occurred 1673 */ 1674 public static int countByG_U(long groupId, long userId) 1675 throws com.liferay.portal.kernel.exception.SystemException { 1676 return getPersistence().countByG_U(groupId, userId); 1677 } 1678 1679 /** 1680 * Filters by the user's permissions and counts all the i g images where groupId = ? and userId = ?. 1681 * 1682 * @param groupId the group id to search with 1683 * @param userId the user id to search with 1684 * @return the number of matching i g images that the user has permission to view 1685 * @throws SystemException if a system exception occurred 1686 */ 1687 public static int filterCountByG_U(long groupId, long userId) 1688 throws com.liferay.portal.kernel.exception.SystemException { 1689 return getPersistence().filterCountByG_U(groupId, userId); 1690 } 1691 1692 /** 1693 * Counts all the i g images where groupId = ? and folderId = ?. 1694 * 1695 * @param groupId the group id to search with 1696 * @param folderId the folder id to search with 1697 * @return the number of matching i g images 1698 * @throws SystemException if a system exception occurred 1699 */ 1700 public static int countByG_F(long groupId, long folderId) 1701 throws com.liferay.portal.kernel.exception.SystemException { 1702 return getPersistence().countByG_F(groupId, folderId); 1703 } 1704 1705 /** 1706 * Counts all the i g images where groupId = ? and folderId = any ?. 1707 * 1708 * @param groupId the group id to search with 1709 * @param folderIds the folder ids to search with 1710 * @return the number of matching i g images 1711 * @throws SystemException if a system exception occurred 1712 */ 1713 public static int countByG_F(long groupId, long[] folderIds) 1714 throws com.liferay.portal.kernel.exception.SystemException { 1715 return getPersistence().countByG_F(groupId, folderIds); 1716 } 1717 1718 /** 1719 * Filters by the user's permissions and counts all the i g images where groupId = ? and folderId = ?. 1720 * 1721 * @param groupId the group id to search with 1722 * @param folderId the folder id to search with 1723 * @return the number of matching i g images that the user has permission to view 1724 * @throws SystemException if a system exception occurred 1725 */ 1726 public static int filterCountByG_F(long groupId, long folderId) 1727 throws com.liferay.portal.kernel.exception.SystemException { 1728 return getPersistence().filterCountByG_F(groupId, folderId); 1729 } 1730 1731 /** 1732 * Filters by the user's permissions and counts all the i g images where groupId = ? and folderId = any ?. 1733 * 1734 * @param groupId the group id to search with 1735 * @param folderIds the folder ids to search with 1736 * @return the number of matching i g images that the user has permission to view 1737 * @throws SystemException if a system exception occurred 1738 */ 1739 public static int filterCountByG_F(long groupId, long[] folderIds) 1740 throws com.liferay.portal.kernel.exception.SystemException { 1741 return getPersistence().filterCountByG_F(groupId, folderIds); 1742 } 1743 1744 /** 1745 * Counts all the i g images where groupId = ? and folderId = ? and name = ?. 1746 * 1747 * @param groupId the group id to search with 1748 * @param folderId the folder id to search with 1749 * @param name the name to search with 1750 * @return the number of matching i g images 1751 * @throws SystemException if a system exception occurred 1752 */ 1753 public static int countByG_F_N(long groupId, long folderId, 1754 java.lang.String name) 1755 throws com.liferay.portal.kernel.exception.SystemException { 1756 return getPersistence().countByG_F_N(groupId, folderId, name); 1757 } 1758 1759 /** 1760 * Filters by the user's permissions and counts all the i g images where groupId = ? and folderId = ? and name = ?. 1761 * 1762 * @param groupId the group id to search with 1763 * @param folderId the folder id to search with 1764 * @param name the name to search with 1765 * @return the number of matching i g images that the user has permission to view 1766 * @throws SystemException if a system exception occurred 1767 */ 1768 public static int filterCountByG_F_N(long groupId, long folderId, 1769 java.lang.String name) 1770 throws com.liferay.portal.kernel.exception.SystemException { 1771 return getPersistence().filterCountByG_F_N(groupId, folderId, name); 1772 } 1773 1774 /** 1775 * Counts all the i g images. 1776 * 1777 * @return the number of i g images 1778 * @throws SystemException if a system exception occurred 1779 */ 1780 public static int countAll() 1781 throws com.liferay.portal.kernel.exception.SystemException { 1782 return getPersistence().countAll(); 1783 } 1784 1785 public static IGImagePersistence getPersistence() { 1786 if (_persistence == null) { 1787 _persistence = (IGImagePersistence)PortalBeanLocatorUtil.locate(IGImagePersistence.class.getName()); 1788 } 1789 1790 return _persistence; 1791 } 1792 1793 public void setPersistence(IGImagePersistence persistence) { 1794 _persistence = persistence; 1795 } 1796 1797 private static IGImagePersistence _persistence; 1798 }