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