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