001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.imagegallery.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.imagegallery.model.IGFolder;
024    
025    import java.util.List;
026    
027    /**
028     * The persistence utility for the i g folder service.
029     *
030     * <p>
031     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see IGFolderPersistence
036     * @see IGFolderPersistenceImpl
037     * @generated
038     */
039    public class IGFolderUtil {
040            /**
041             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
042             */
043            public static void clearCache() {
044                    getPersistence().clearCache();
045            }
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
049             */
050            public static void clearCache(IGFolder igFolder) {
051                    getPersistence().clearCache(igFolder);
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
056             */
057            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
058                    throws SystemException {
059                    return getPersistence().countWithDynamicQuery(dynamicQuery);
060            }
061    
062            /**
063             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
064             */
065            public static List<IGFolder> findWithDynamicQuery(DynamicQuery dynamicQuery)
066                    throws SystemException {
067                    return getPersistence().findWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
072             */
073            public static List<IGFolder> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery, int start, int end)
075                    throws SystemException {
076                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
077            }
078    
079            /**
080             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
081             */
082            public static List<IGFolder> findWithDynamicQuery(
083                    DynamicQuery dynamicQuery, int start, int end,
084                    OrderByComparator orderByComparator) throws SystemException {
085                    return getPersistence()
086                                       .findWithDynamicQuery(dynamicQuery, start, end,
087                            orderByComparator);
088            }
089    
090            /**
091             * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
092             */
093            public static IGFolder remove(IGFolder igFolder) throws SystemException {
094                    return getPersistence().remove(igFolder);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static IGFolder update(IGFolder igFolder, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(igFolder, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static IGFolder update(IGFolder igFolder, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(igFolder, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the i g folder in the entity cache if it is enabled.
115            *
116            * @param igFolder the i g folder to cache
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
120                    getPersistence().cacheResult(igFolder);
121            }
122    
123            /**
124            * Caches the i g folders in the entity cache if it is enabled.
125            *
126            * @param igFolders the i g folders to cache
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
130                    getPersistence().cacheResult(igFolders);
131            }
132    
133            /**
134            * Creates a new i g folder with the primary key.
135            *
136            * @param folderId the primary key for the new i g folder
137            * @return the new i g folder
138            */
139            public static com.liferay.portlet.imagegallery.model.IGFolder create(
140                    long folderId) {
141                    return getPersistence().create(folderId);
142            }
143    
144            /**
145            * Removes the i g folder with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param folderId the primary key of the i g folder to remove
148            * @return the i g folder that was removed
149            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.imagegallery.model.IGFolder remove(
153                    long folderId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.imagegallery.NoSuchFolderException {
156                    return getPersistence().remove(folderId);
157            }
158    
159            public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
160                    com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(igFolder, merge);
163            }
164    
165            /**
166            * Finds the i g folder with the primary key or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found.
167            *
168            * @param folderId the primary key of the i g folder to find
169            * @return the i g folder
170            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
174                    long folderId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.imagegallery.NoSuchFolderException {
177                    return getPersistence().findByPrimaryKey(folderId);
178            }
179    
180            /**
181            * Finds the i g folder with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param folderId the primary key of the i g folder to find
184            * @return the i g folder, or <code>null</code> if a i g folder with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
188                    long folderId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(folderId);
191            }
192    
193            /**
194            * Finds all the i g folders where uuid = &#63;.
195            *
196            * @param uuid the uuid to search with
197            * @return the matching i g folders
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
201                    java.lang.String uuid)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByUuid(uuid);
204            }
205    
206            /**
207            * Finds a range of all the i g folders where uuid = &#63;.
208            *
209            * <p>
210            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
211            * </p>
212            *
213            * @param uuid the uuid to search with
214            * @param start the lower bound of the range of i g folders to return
215            * @param end the upper bound of the range of i g folders to return (not inclusive)
216            * @return the range of matching i g folders
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
220                    java.lang.String uuid, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByUuid(uuid, start, end);
223            }
224    
225            /**
226            * Finds an ordered range of all the i g folders where uuid = &#63;.
227            *
228            * <p>
229            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
230            * </p>
231            *
232            * @param uuid the uuid to search with
233            * @param start the lower bound of the range of i g folders to return
234            * @param end the upper bound of the range of i g folders to return (not inclusive)
235            * @param orderByComparator the comparator to order the results by
236            * @return the ordered range of matching i g folders
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
240                    java.lang.String uuid, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
244            }
245    
246            /**
247            * Finds the first i g folder in the ordered set where uuid = &#63;.
248            *
249            * <p>
250            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
251            * </p>
252            *
253            * @param uuid the uuid to search with
254            * @param orderByComparator the comparator to order the set by
255            * @return the first matching i g folder
256            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
260                    java.lang.String uuid,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.kernel.exception.SystemException,
263                            com.liferay.portlet.imagegallery.NoSuchFolderException {
264                    return getPersistence().findByUuid_First(uuid, orderByComparator);
265            }
266    
267            /**
268            * Finds the last i g folder in the ordered set where uuid = &#63;.
269            *
270            * <p>
271            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
272            * </p>
273            *
274            * @param uuid the uuid to search with
275            * @param orderByComparator the comparator to order the set by
276            * @return the last matching i g folder
277            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
278            * @throws SystemException if a system exception occurred
279            */
280            public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
281                    java.lang.String uuid,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.imagegallery.NoSuchFolderException {
285                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
286            }
287    
288            /**
289            * Finds the i g folders before and after the current i g folder in the ordered set where uuid = &#63;.
290            *
291            * <p>
292            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
293            * </p>
294            *
295            * @param folderId the primary key of the current i g folder
296            * @param uuid the uuid to search with
297            * @param orderByComparator the comparator to order the set by
298            * @return the previous, current, and next i g folder
299            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
300            * @throws SystemException if a system exception occurred
301            */
302            public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
303                    long folderId, java.lang.String uuid,
304                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.imagegallery.NoSuchFolderException {
307                    return getPersistence()
308                                       .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
309            }
310    
311            /**
312            * Finds the i g folder where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found.
313            *
314            * @param uuid the uuid to search with
315            * @param groupId the group id to search with
316            * @return the matching i g folder
317            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
321                    java.lang.String uuid, long groupId)
322                    throws com.liferay.portal.kernel.exception.SystemException,
323                            com.liferay.portlet.imagegallery.NoSuchFolderException {
324                    return getPersistence().findByUUID_G(uuid, groupId);
325            }
326    
327            /**
328            * Finds the i g folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
329            *
330            * @param uuid the uuid to search with
331            * @param groupId the group id to search with
332            * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
336                    java.lang.String uuid, long groupId)
337                    throws com.liferay.portal.kernel.exception.SystemException {
338                    return getPersistence().fetchByUUID_G(uuid, groupId);
339            }
340    
341            /**
342            * Finds the i g folder where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
343            *
344            * @param uuid the uuid to search with
345            * @param groupId the group id to search with
346            * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
350                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
353            }
354    
355            /**
356            * Finds all the i g folders where groupId = &#63;.
357            *
358            * @param groupId the group id to search with
359            * @return the matching i g folders
360            * @throws SystemException if a system exception occurred
361            */
362            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
363                    long groupId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getPersistence().findByGroupId(groupId);
366            }
367    
368            /**
369            * Finds a range of all the i g folders where groupId = &#63;.
370            *
371            * <p>
372            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
373            * </p>
374            *
375            * @param groupId the group id to search with
376            * @param start the lower bound of the range of i g folders to return
377            * @param end the upper bound of the range of i g folders to return (not inclusive)
378            * @return the range of matching i g folders
379            * @throws SystemException if a system exception occurred
380            */
381            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
382                    long groupId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException {
384                    return getPersistence().findByGroupId(groupId, start, end);
385            }
386    
387            /**
388            * Finds an ordered range of all the i g folders where groupId = &#63;.
389            *
390            * <p>
391            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
392            * </p>
393            *
394            * @param groupId the group id to search with
395            * @param start the lower bound of the range of i g folders to return
396            * @param end the upper bound of the range of i g folders to return (not inclusive)
397            * @param orderByComparator the comparator to order the results by
398            * @return the ordered range of matching i g folders
399            * @throws SystemException if a system exception occurred
400            */
401            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
402                    long groupId, int start, int end,
403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getPersistence()
406                                       .findByGroupId(groupId, start, end, orderByComparator);
407            }
408    
409            /**
410            * Finds the first i g folder in the ordered set where groupId = &#63;.
411            *
412            * <p>
413            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
414            * </p>
415            *
416            * @param groupId the group id to search with
417            * @param orderByComparator the comparator to order the set by
418            * @return the first matching i g folder
419            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
420            * @throws SystemException if a system exception occurred
421            */
422            public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
423                    long groupId,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException,
426                            com.liferay.portlet.imagegallery.NoSuchFolderException {
427                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
428            }
429    
430            /**
431            * Finds the last i g folder in the ordered set where groupId = &#63;.
432            *
433            * <p>
434            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
435            * </p>
436            *
437            * @param groupId the group id to search with
438            * @param orderByComparator the comparator to order the set by
439            * @return the last matching i g folder
440            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
441            * @throws SystemException if a system exception occurred
442            */
443            public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
444                    long groupId,
445                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
446                    throws com.liferay.portal.kernel.exception.SystemException,
447                            com.liferay.portlet.imagegallery.NoSuchFolderException {
448                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
449            }
450    
451            /**
452            * Finds the i g folders before and after the current i g folder in the ordered set where groupId = &#63;.
453            *
454            * <p>
455            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
456            * </p>
457            *
458            * @param folderId the primary key of the current i g folder
459            * @param groupId the group id to search with
460            * @param orderByComparator the comparator to order the set by
461            * @return the previous, current, and next i g folder
462            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
463            * @throws SystemException if a system exception occurred
464            */
465            public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
466                    long folderId, long groupId,
467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
468                    throws com.liferay.portal.kernel.exception.SystemException,
469                            com.liferay.portlet.imagegallery.NoSuchFolderException {
470                    return getPersistence()
471                                       .findByGroupId_PrevAndNext(folderId, groupId,
472                            orderByComparator);
473            }
474    
475            /**
476            * Filters by the user's permissions and finds all the i g folders where groupId = &#63;.
477            *
478            * @param groupId the group id to search with
479            * @return the matching i g folders that the user has permission to view
480            * @throws SystemException if a system exception occurred
481            */
482            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
483                    long groupId)
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return getPersistence().filterFindByGroupId(groupId);
486            }
487    
488            /**
489            * Filters by the user's permissions and finds a range of all the i g folders where groupId = &#63;.
490            *
491            * <p>
492            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
493            * </p>
494            *
495            * @param groupId the group id to search with
496            * @param start the lower bound of the range of i g folders to return
497            * @param end the upper bound of the range of i g folders to return (not inclusive)
498            * @return the range of matching i g folders that the user has permission to view
499            * @throws SystemException if a system exception occurred
500            */
501            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
502                    long groupId, int start, int end)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    return getPersistence().filterFindByGroupId(groupId, start, end);
505            }
506    
507            /**
508            * Filters by the user's permissions and finds an ordered range of all the i g folders where groupId = &#63;.
509            *
510            * <p>
511            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
512            * </p>
513            *
514            * @param groupId the group id to search with
515            * @param start the lower bound of the range of i g folders to return
516            * @param end the upper bound of the range of i g folders to return (not inclusive)
517            * @param orderByComparator the comparator to order the results by
518            * @return the ordered range of matching i g folders that the user has permission to view
519            * @throws SystemException if a system exception occurred
520            */
521            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByGroupId(
522                    long groupId, int start, int end,
523                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
524                    throws com.liferay.portal.kernel.exception.SystemException {
525                    return getPersistence()
526                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
527            }
528    
529            /**
530            * Finds all the i g folders where companyId = &#63;.
531            *
532            * @param companyId the company id to search with
533            * @return the matching i g folders
534            * @throws SystemException if a system exception occurred
535            */
536            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
537                    long companyId)
538                    throws com.liferay.portal.kernel.exception.SystemException {
539                    return getPersistence().findByCompanyId(companyId);
540            }
541    
542            /**
543            * Finds a range of all the i g folders where companyId = &#63;.
544            *
545            * <p>
546            * 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.
547            * </p>
548            *
549            * @param companyId the company id to search with
550            * @param start the lower bound of the range of i g folders to return
551            * @param end the upper bound of the range of i g folders to return (not inclusive)
552            * @return the range of matching i g folders
553            * @throws SystemException if a system exception occurred
554            */
555            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
556                    long companyId, int start, int end)
557                    throws com.liferay.portal.kernel.exception.SystemException {
558                    return getPersistence().findByCompanyId(companyId, start, end);
559            }
560    
561            /**
562            * Finds an ordered range of all the i g folders where companyId = &#63;.
563            *
564            * <p>
565            * 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.
566            * </p>
567            *
568            * @param companyId the company id to search with
569            * @param start the lower bound of the range of i g folders to return
570            * @param end the upper bound of the range of i g folders to return (not inclusive)
571            * @param orderByComparator the comparator to order the results by
572            * @return the ordered range of matching i g folders
573            * @throws SystemException if a system exception occurred
574            */
575            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
576                    long companyId, int start, int end,
577                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
578                    throws com.liferay.portal.kernel.exception.SystemException {
579                    return getPersistence()
580                                       .findByCompanyId(companyId, start, end, orderByComparator);
581            }
582    
583            /**
584            * Finds the first i g folder in the ordered set where companyId = &#63;.
585            *
586            * <p>
587            * 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.
588            * </p>
589            *
590            * @param companyId the company id to search with
591            * @param orderByComparator the comparator to order the set by
592            * @return the first matching i g folder
593            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
594            * @throws SystemException if a system exception occurred
595            */
596            public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
597                    long companyId,
598                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
599                    throws com.liferay.portal.kernel.exception.SystemException,
600                            com.liferay.portlet.imagegallery.NoSuchFolderException {
601                    return getPersistence()
602                                       .findByCompanyId_First(companyId, orderByComparator);
603            }
604    
605            /**
606            * Finds the last i g folder in the ordered set where companyId = &#63;.
607            *
608            * <p>
609            * 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.
610            * </p>
611            *
612            * @param companyId the company id to search with
613            * @param orderByComparator the comparator to order the set by
614            * @return the last matching i g folder
615            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
616            * @throws SystemException if a system exception occurred
617            */
618            public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
619                    long companyId,
620                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
621                    throws com.liferay.portal.kernel.exception.SystemException,
622                            com.liferay.portlet.imagegallery.NoSuchFolderException {
623                    return getPersistence()
624                                       .findByCompanyId_Last(companyId, orderByComparator);
625            }
626    
627            /**
628            * Finds the i g folders before and after the current i g folder in the ordered set where companyId = &#63;.
629            *
630            * <p>
631            * 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.
632            * </p>
633            *
634            * @param folderId the primary key of the current i g folder
635            * @param companyId the company id to search with
636            * @param orderByComparator the comparator to order the set by
637            * @return the previous, current, and next i g folder
638            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
639            * @throws SystemException if a system exception occurred
640            */
641            public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
642                    long folderId, long companyId,
643                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
644                    throws com.liferay.portal.kernel.exception.SystemException,
645                            com.liferay.portlet.imagegallery.NoSuchFolderException {
646                    return getPersistence()
647                                       .findByCompanyId_PrevAndNext(folderId, companyId,
648                            orderByComparator);
649            }
650    
651            /**
652            * Finds all the i g folders where groupId = &#63; and parentFolderId = &#63;.
653            *
654            * @param groupId the group id to search with
655            * @param parentFolderId the parent folder id to search with
656            * @return the matching i g folders
657            * @throws SystemException if a system exception occurred
658            */
659            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
660                    long groupId, long parentFolderId)
661                    throws com.liferay.portal.kernel.exception.SystemException {
662                    return getPersistence().findByG_P(groupId, parentFolderId);
663            }
664    
665            /**
666            * Finds a range of all the i g folders where groupId = &#63; and parentFolderId = &#63;.
667            *
668            * <p>
669            * 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.
670            * </p>
671            *
672            * @param groupId the group id to search with
673            * @param parentFolderId the parent folder id to search with
674            * @param start the lower bound of the range of i g folders to return
675            * @param end the upper bound of the range of i g folders to return (not inclusive)
676            * @return the range of matching i g folders
677            * @throws SystemException if a system exception occurred
678            */
679            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
680                    long groupId, long parentFolderId, int start, int end)
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return getPersistence().findByG_P(groupId, parentFolderId, start, end);
683            }
684    
685            /**
686            * Finds an ordered range of all the i g folders where groupId = &#63; and parentFolderId = &#63;.
687            *
688            * <p>
689            * 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.
690            * </p>
691            *
692            * @param groupId the group id to search with
693            * @param parentFolderId the parent folder id to search with
694            * @param start the lower bound of the range of i g folders to return
695            * @param end the upper bound of the range of i g folders to return (not inclusive)
696            * @param orderByComparator the comparator to order the results by
697            * @return the ordered range of matching i g folders
698            * @throws SystemException if a system exception occurred
699            */
700            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
701                    long groupId, long parentFolderId, int start, int end,
702                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
703                    throws com.liferay.portal.kernel.exception.SystemException {
704                    return getPersistence()
705                                       .findByG_P(groupId, parentFolderId, start, end,
706                            orderByComparator);
707            }
708    
709            /**
710            * Finds the first i g folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
711            *
712            * <p>
713            * 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.
714            * </p>
715            *
716            * @param groupId the group id to search with
717            * @param parentFolderId the parent folder id to search with
718            * @param orderByComparator the comparator to order the set by
719            * @return the first matching i g folder
720            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
721            * @throws SystemException if a system exception occurred
722            */
723            public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
724                    long groupId, long parentFolderId,
725                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
726                    throws com.liferay.portal.kernel.exception.SystemException,
727                            com.liferay.portlet.imagegallery.NoSuchFolderException {
728                    return getPersistence()
729                                       .findByG_P_First(groupId, parentFolderId, orderByComparator);
730            }
731    
732            /**
733            * Finds the last i g folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
734            *
735            * <p>
736            * 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.
737            * </p>
738            *
739            * @param groupId the group id to search with
740            * @param parentFolderId the parent folder id to search with
741            * @param orderByComparator the comparator to order the set by
742            * @return the last matching i g folder
743            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
744            * @throws SystemException if a system exception occurred
745            */
746            public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
747                    long groupId, long parentFolderId,
748                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
749                    throws com.liferay.portal.kernel.exception.SystemException,
750                            com.liferay.portlet.imagegallery.NoSuchFolderException {
751                    return getPersistence()
752                                       .findByG_P_Last(groupId, parentFolderId, orderByComparator);
753            }
754    
755            /**
756            * Finds the i g folders before and after the current i g folder in the ordered set where groupId = &#63; and parentFolderId = &#63;.
757            *
758            * <p>
759            * 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.
760            * </p>
761            *
762            * @param folderId the primary key of the current i g folder
763            * @param groupId the group id to search with
764            * @param parentFolderId the parent folder id to search with
765            * @param orderByComparator the comparator to order the set by
766            * @return the previous, current, and next i g folder
767            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a i g folder with the primary key could not be found
768            * @throws SystemException if a system exception occurred
769            */
770            public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
771                    long folderId, long groupId, long parentFolderId,
772                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
773                    throws com.liferay.portal.kernel.exception.SystemException,
774                            com.liferay.portlet.imagegallery.NoSuchFolderException {
775                    return getPersistence()
776                                       .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
777                            orderByComparator);
778            }
779    
780            /**
781            * Filters by the user's permissions and finds all the i g folders where groupId = &#63; and parentFolderId = &#63;.
782            *
783            * @param groupId the group id to search with
784            * @param parentFolderId the parent folder id to search with
785            * @return the matching i g folders that the user has permission to view
786            * @throws SystemException if a system exception occurred
787            */
788            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
789                    long groupId, long parentFolderId)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return getPersistence().filterFindByG_P(groupId, parentFolderId);
792            }
793    
794            /**
795            * Filters by the user's permissions and finds a range of all the i g folders where groupId = &#63; and parentFolderId = &#63;.
796            *
797            * <p>
798            * 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.
799            * </p>
800            *
801            * @param groupId the group id to search with
802            * @param parentFolderId the parent folder id to search with
803            * @param start the lower bound of the range of i g folders to return
804            * @param end the upper bound of the range of i g folders to return (not inclusive)
805            * @return the range of matching i g folders that the user has permission to view
806            * @throws SystemException if a system exception occurred
807            */
808            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
809                    long groupId, long parentFolderId, int start, int end)
810                    throws com.liferay.portal.kernel.exception.SystemException {
811                    return getPersistence()
812                                       .filterFindByG_P(groupId, parentFolderId, start, end);
813            }
814    
815            /**
816            * Filters by the user's permissions and finds an ordered range of all the i g folders where groupId = &#63; and parentFolderId = &#63;.
817            *
818            * <p>
819            * 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.
820            * </p>
821            *
822            * @param groupId the group id to search with
823            * @param parentFolderId the parent folder id to search with
824            * @param start the lower bound of the range of i g folders to return
825            * @param end the upper bound of the range of i g folders to return (not inclusive)
826            * @param orderByComparator the comparator to order the results by
827            * @return the ordered range of matching i g folders that the user has permission to view
828            * @throws SystemException if a system exception occurred
829            */
830            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> filterFindByG_P(
831                    long groupId, long parentFolderId, int start, int end,
832                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
833                    throws com.liferay.portal.kernel.exception.SystemException {
834                    return getPersistence()
835                                       .filterFindByG_P(groupId, parentFolderId, start, end,
836                            orderByComparator);
837            }
838    
839            /**
840            * Finds the i g folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.imagegallery.NoSuchFolderException} if it could not be found.
841            *
842            * @param groupId the group id to search with
843            * @param parentFolderId the parent folder id to search with
844            * @param name the name to search with
845            * @return the matching i g folder
846            * @throws com.liferay.portlet.imagegallery.NoSuchFolderException if a matching i g folder could not be found
847            * @throws SystemException if a system exception occurred
848            */
849            public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
850                    long groupId, long parentFolderId, java.lang.String name)
851                    throws com.liferay.portal.kernel.exception.SystemException,
852                            com.liferay.portlet.imagegallery.NoSuchFolderException {
853                    return getPersistence().findByG_P_N(groupId, parentFolderId, name);
854            }
855    
856            /**
857            * Finds the i g folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
858            *
859            * @param groupId the group id to search with
860            * @param parentFolderId the parent folder id to search with
861            * @param name the name to search with
862            * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found
863            * @throws SystemException if a system exception occurred
864            */
865            public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
866                    long groupId, long parentFolderId, java.lang.String name)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
869            }
870    
871            /**
872            * Finds the i g folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
873            *
874            * @param groupId the group id to search with
875            * @param parentFolderId the parent folder id to search with
876            * @param name the name to search with
877            * @return the matching i g folder, or <code>null</code> if a matching i g folder could not be found
878            * @throws SystemException if a system exception occurred
879            */
880            public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
881                    long groupId, long parentFolderId, java.lang.String name,
882                    boolean retrieveFromCache)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence()
885                                       .fetchByG_P_N(groupId, parentFolderId, name,
886                            retrieveFromCache);
887            }
888    
889            /**
890            * Finds all the i g folders.
891            *
892            * @return the i g folders
893            * @throws SystemException if a system exception occurred
894            */
895            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
896                    throws com.liferay.portal.kernel.exception.SystemException {
897                    return getPersistence().findAll();
898            }
899    
900            /**
901            * Finds a range of all the i g folders.
902            *
903            * <p>
904            * 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.
905            * </p>
906            *
907            * @param start the lower bound of the range of i g folders to return
908            * @param end the upper bound of the range of i g folders to return (not inclusive)
909            * @return the range of i g folders
910            * @throws SystemException if a system exception occurred
911            */
912            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
913                    int start, int end)
914                    throws com.liferay.portal.kernel.exception.SystemException {
915                    return getPersistence().findAll(start, end);
916            }
917    
918            /**
919            * Finds an ordered range of all the i g folders.
920            *
921            * <p>
922            * 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.
923            * </p>
924            *
925            * @param start the lower bound of the range of i g folders to return
926            * @param end the upper bound of the range of i g folders to return (not inclusive)
927            * @param orderByComparator the comparator to order the results by
928            * @return the ordered range of i g folders
929            * @throws SystemException if a system exception occurred
930            */
931            public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
932                    int start, int end,
933                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
934                    throws com.liferay.portal.kernel.exception.SystemException {
935                    return getPersistence().findAll(start, end, orderByComparator);
936            }
937    
938            /**
939            * Removes all the i g folders where uuid = &#63; from the database.
940            *
941            * @param uuid the uuid to search with
942            * @throws SystemException if a system exception occurred
943            */
944            public static void removeByUuid(java.lang.String uuid)
945                    throws com.liferay.portal.kernel.exception.SystemException {
946                    getPersistence().removeByUuid(uuid);
947            }
948    
949            /**
950            * Removes the i g folder where uuid = &#63; and groupId = &#63; from the database.
951            *
952            * @param uuid the uuid to search with
953            * @param groupId the group id to search with
954            * @throws SystemException if a system exception occurred
955            */
956            public static void removeByUUID_G(java.lang.String uuid, long groupId)
957                    throws com.liferay.portal.kernel.exception.SystemException,
958                            com.liferay.portlet.imagegallery.NoSuchFolderException {
959                    getPersistence().removeByUUID_G(uuid, groupId);
960            }
961    
962            /**
963            * Removes all the i g folders where groupId = &#63; from the database.
964            *
965            * @param groupId the group id to search with
966            * @throws SystemException if a system exception occurred
967            */
968            public static void removeByGroupId(long groupId)
969                    throws com.liferay.portal.kernel.exception.SystemException {
970                    getPersistence().removeByGroupId(groupId);
971            }
972    
973            /**
974            * Removes all the i g folders where companyId = &#63; from the database.
975            *
976            * @param companyId the company id to search with
977            * @throws SystemException if a system exception occurred
978            */
979            public static void removeByCompanyId(long companyId)
980                    throws com.liferay.portal.kernel.exception.SystemException {
981                    getPersistence().removeByCompanyId(companyId);
982            }
983    
984            /**
985            * Removes all the i g folders where groupId = &#63; and parentFolderId = &#63; from the database.
986            *
987            * @param groupId the group id to search with
988            * @param parentFolderId the parent folder id to search with
989            * @throws SystemException if a system exception occurred
990            */
991            public static void removeByG_P(long groupId, long parentFolderId)
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    getPersistence().removeByG_P(groupId, parentFolderId);
994            }
995    
996            /**
997            * Removes the i g folder where groupId = &#63; and parentFolderId = &#63; and name = &#63; from the database.
998            *
999            * @param groupId the group id to search with
1000            * @param parentFolderId the parent folder id to search with
1001            * @param name the name to search with
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public static void removeByG_P_N(long groupId, long parentFolderId,
1005                    java.lang.String name)
1006                    throws com.liferay.portal.kernel.exception.SystemException,
1007                            com.liferay.portlet.imagegallery.NoSuchFolderException {
1008                    getPersistence().removeByG_P_N(groupId, parentFolderId, name);
1009            }
1010    
1011            /**
1012            * Removes all the i g folders from the database.
1013            *
1014            * @throws SystemException if a system exception occurred
1015            */
1016            public static void removeAll()
1017                    throws com.liferay.portal.kernel.exception.SystemException {
1018                    getPersistence().removeAll();
1019            }
1020    
1021            /**
1022            * Counts all the i g folders where uuid = &#63;.
1023            *
1024            * @param uuid the uuid to search with
1025            * @return the number of matching i g folders
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public static int countByUuid(java.lang.String uuid)
1029                    throws com.liferay.portal.kernel.exception.SystemException {
1030                    return getPersistence().countByUuid(uuid);
1031            }
1032    
1033            /**
1034            * Counts all the i g folders where uuid = &#63; and groupId = &#63;.
1035            *
1036            * @param uuid the uuid to search with
1037            * @param groupId the group id to search with
1038            * @return the number of matching i g folders
1039            * @throws SystemException if a system exception occurred
1040            */
1041            public static int countByUUID_G(java.lang.String uuid, long groupId)
1042                    throws com.liferay.portal.kernel.exception.SystemException {
1043                    return getPersistence().countByUUID_G(uuid, groupId);
1044            }
1045    
1046            /**
1047            * Counts all the i g folders where groupId = &#63;.
1048            *
1049            * @param groupId the group id to search with
1050            * @return the number of matching i g folders
1051            * @throws SystemException if a system exception occurred
1052            */
1053            public static int countByGroupId(long groupId)
1054                    throws com.liferay.portal.kernel.exception.SystemException {
1055                    return getPersistence().countByGroupId(groupId);
1056            }
1057    
1058            /**
1059            * Filters by the user's permissions and counts all the i g folders where groupId = &#63;.
1060            *
1061            * @param groupId the group id to search with
1062            * @return the number of matching i g folders that the user has permission to view
1063            * @throws SystemException if a system exception occurred
1064            */
1065            public static int filterCountByGroupId(long groupId)
1066                    throws com.liferay.portal.kernel.exception.SystemException {
1067                    return getPersistence().filterCountByGroupId(groupId);
1068            }
1069    
1070            /**
1071            * Counts all the i g folders where companyId = &#63;.
1072            *
1073            * @param companyId the company id to search with
1074            * @return the number of matching i g folders
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public static int countByCompanyId(long companyId)
1078                    throws com.liferay.portal.kernel.exception.SystemException {
1079                    return getPersistence().countByCompanyId(companyId);
1080            }
1081    
1082            /**
1083            * Counts all the i g folders where groupId = &#63; and parentFolderId = &#63;.
1084            *
1085            * @param groupId the group id to search with
1086            * @param parentFolderId the parent folder id to search with
1087            * @return the number of matching i g folders
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public static int countByG_P(long groupId, long parentFolderId)
1091                    throws com.liferay.portal.kernel.exception.SystemException {
1092                    return getPersistence().countByG_P(groupId, parentFolderId);
1093            }
1094    
1095            /**
1096            * Filters by the user's permissions and counts all the i g folders where groupId = &#63; and parentFolderId = &#63;.
1097            *
1098            * @param groupId the group id to search with
1099            * @param parentFolderId the parent folder id to search with
1100            * @return the number of matching i g folders that the user has permission to view
1101            * @throws SystemException if a system exception occurred
1102            */
1103            public static int filterCountByG_P(long groupId, long parentFolderId)
1104                    throws com.liferay.portal.kernel.exception.SystemException {
1105                    return getPersistence().filterCountByG_P(groupId, parentFolderId);
1106            }
1107    
1108            /**
1109            * Counts all the i g folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1110            *
1111            * @param groupId the group id to search with
1112            * @param parentFolderId the parent folder id to search with
1113            * @param name the name to search with
1114            * @return the number of matching i g folders
1115            * @throws SystemException if a system exception occurred
1116            */
1117            public static int countByG_P_N(long groupId, long parentFolderId,
1118                    java.lang.String name)
1119                    throws com.liferay.portal.kernel.exception.SystemException {
1120                    return getPersistence().countByG_P_N(groupId, parentFolderId, name);
1121            }
1122    
1123            /**
1124            * Filters by the user's permissions and counts all the i g folders where groupId = &#63; and parentFolderId = &#63; and name = &#63;.
1125            *
1126            * @param groupId the group id to search with
1127            * @param parentFolderId the parent folder id to search with
1128            * @param name the name to search with
1129            * @return the number of matching i g folders that the user has permission to view
1130            * @throws SystemException if a system exception occurred
1131            */
1132            public static int filterCountByG_P_N(long groupId, long parentFolderId,
1133                    java.lang.String name)
1134                    throws com.liferay.portal.kernel.exception.SystemException {
1135                    return getPersistence().filterCountByG_P_N(groupId, parentFolderId, name);
1136            }
1137    
1138            /**
1139            * Counts all the i g folders.
1140            *
1141            * @return the number of i g folders
1142            * @throws SystemException if a system exception occurred
1143            */
1144            public static int countAll()
1145                    throws com.liferay.portal.kernel.exception.SystemException {
1146                    return getPersistence().countAll();
1147            }
1148    
1149            public static IGFolderPersistence getPersistence() {
1150                    if (_persistence == null) {
1151                            _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
1152                    }
1153    
1154                    return _persistence;
1155            }
1156    
1157            public void setPersistence(IGFolderPersistence persistence) {
1158                    _persistence = persistence;
1159            }
1160    
1161            private static IGFolderPersistence _persistence;
1162    }