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