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