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