001    /**
002     * Copyright (c) 2000-2013 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.documentlibrary.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.documentlibrary.model.DLFileEntry;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the document library file entry service. This utility wraps {@link DLFileEntryPersistenceImpl} 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 DLFileEntryPersistence
037     * @see DLFileEntryPersistenceImpl
038     * @generated
039     */
040    public class DLFileEntryUtil {
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(DLFileEntry dlFileEntry) {
058                    getPersistence().clearCache(dlFileEntry);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public static 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<DLFileEntry> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) 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<DLFileEntry> 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<DLFileEntry> 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#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DLFileEntry update(DLFileEntry dlFileEntry)
101                    throws SystemException {
102                    return getPersistence().update(dlFileEntry);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DLFileEntry update(DLFileEntry dlFileEntry,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(dlFileEntry, serviceContext);
111            }
112    
113            /**
114            * Returns all the document library file entries where uuid = &#63;.
115            *
116            * @param uuid the uuid
117            * @return the matching document library file entries
118            * @throws SystemException if a system exception occurred
119            */
120            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
121                    java.lang.String uuid)
122                    throws com.liferay.portal.kernel.exception.SystemException {
123                    return getPersistence().findByUuid(uuid);
124            }
125    
126            /**
127            * Returns a range of all the document library file entries where uuid = &#63;.
128            *
129            * <p>
130            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
131            * </p>
132            *
133            * @param uuid the uuid
134            * @param start the lower bound of the range of document library file entries
135            * @param end the upper bound of the range of document library file entries (not inclusive)
136            * @return the range of matching document library file entries
137            * @throws SystemException if a system exception occurred
138            */
139            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
140                    java.lang.String uuid, int start, int end)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return getPersistence().findByUuid(uuid, start, end);
143            }
144    
145            /**
146            * Returns an ordered range of all the document library file entries where uuid = &#63;.
147            *
148            * <p>
149            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
150            * </p>
151            *
152            * @param uuid the uuid
153            * @param start the lower bound of the range of document library file entries
154            * @param end the upper bound of the range of document library file entries (not inclusive)
155            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
156            * @return the ordered range of matching document library file entries
157            * @throws SystemException if a system exception occurred
158            */
159            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid(
160                    java.lang.String uuid, int start, int end,
161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
164            }
165    
166            /**
167            * Returns the first document library file entry in the ordered set where uuid = &#63;.
168            *
169            * @param uuid the uuid
170            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
171            * @return the first matching document library file entry
172            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
173            * @throws SystemException if a system exception occurred
174            */
175            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_First(
176                    java.lang.String uuid,
177                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178                    throws com.liferay.portal.kernel.exception.SystemException,
179                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
180                    return getPersistence().findByUuid_First(uuid, orderByComparator);
181            }
182    
183            /**
184            * Returns the first document library file entry in the ordered set where uuid = &#63;.
185            *
186            * @param uuid the uuid
187            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
188            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_First(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException {
195                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
196            }
197    
198            /**
199            * Returns the last document library file entry in the ordered set where uuid = &#63;.
200            *
201            * @param uuid the uuid
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the last matching document library file entry
204            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_Last(
208                    java.lang.String uuid,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
212                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
213            }
214    
215            /**
216            * Returns the last document library file entry in the ordered set where uuid = &#63;.
217            *
218            * @param uuid the uuid
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
221            * @throws SystemException if a system exception occurred
222            */
223            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_Last(
224                    java.lang.String uuid,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException {
227                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
228            }
229    
230            /**
231            * Returns the document library file entries before and after the current document library file entry in the ordered set where uuid = &#63;.
232            *
233            * @param fileEntryId the primary key of the current document library file entry
234            * @param uuid the uuid
235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
236            * @return the previous, current, and next document library file entry
237            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
238            * @throws SystemException if a system exception occurred
239            */
240            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_PrevAndNext(
241                    long fileEntryId, java.lang.String uuid,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException,
244                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
245                    return getPersistence()
246                                       .findByUuid_PrevAndNext(fileEntryId, uuid, orderByComparator);
247            }
248    
249            /**
250            * Removes all the document library file entries where uuid = &#63; from the database.
251            *
252            * @param uuid the uuid
253            * @throws SystemException if a system exception occurred
254            */
255            public static void removeByUuid(java.lang.String uuid)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    getPersistence().removeByUuid(uuid);
258            }
259    
260            /**
261            * Returns the number of document library file entries where uuid = &#63;.
262            *
263            * @param uuid the uuid
264            * @return the number of matching document library file entries
265            * @throws SystemException if a system exception occurred
266            */
267            public static int countByUuid(java.lang.String uuid)
268                    throws com.liferay.portal.kernel.exception.SystemException {
269                    return getPersistence().countByUuid(uuid);
270            }
271    
272            /**
273            * Returns the document library file entry where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found.
274            *
275            * @param uuid the uuid
276            * @param groupId the group ID
277            * @return the matching document library file entry
278            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUUID_G(
282                    java.lang.String uuid, long groupId)
283                    throws com.liferay.portal.kernel.exception.SystemException,
284                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
285                    return getPersistence().findByUUID_G(uuid, groupId);
286            }
287    
288            /**
289            * Returns the document library file entry where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
290            *
291            * @param uuid the uuid
292            * @param groupId the group ID
293            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
294            * @throws SystemException if a system exception occurred
295            */
296            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
297                    java.lang.String uuid, long groupId)
298                    throws com.liferay.portal.kernel.exception.SystemException {
299                    return getPersistence().fetchByUUID_G(uuid, groupId);
300            }
301    
302            /**
303            * Returns the document library file entry where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
304            *
305            * @param uuid the uuid
306            * @param groupId the group ID
307            * @param retrieveFromCache whether to use the finder cache
308            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUUID_G(
312                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
315            }
316    
317            /**
318            * Removes the document library file entry where uuid = &#63; and groupId = &#63; from the database.
319            *
320            * @param uuid the uuid
321            * @param groupId the group ID
322            * @return the document library file entry that was removed
323            * @throws SystemException if a system exception occurred
324            */
325            public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByUUID_G(
326                    java.lang.String uuid, long groupId)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
329                    return getPersistence().removeByUUID_G(uuid, groupId);
330            }
331    
332            /**
333            * Returns the number of document library file entries where uuid = &#63; and groupId = &#63;.
334            *
335            * @param uuid the uuid
336            * @param groupId the group ID
337            * @return the number of matching document library file entries
338            * @throws SystemException if a system exception occurred
339            */
340            public static int countByUUID_G(java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    return getPersistence().countByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns all the document library file entries where uuid = &#63; and companyId = &#63;.
347            *
348            * @param uuid the uuid
349            * @param companyId the company ID
350            * @return the matching document library file entries
351            * @throws SystemException if a system exception occurred
352            */
353            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C(
354                    java.lang.String uuid, long companyId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().findByUuid_C(uuid, companyId);
357            }
358    
359            /**
360            * Returns a range of all the document library file entries where uuid = &#63; and companyId = &#63;.
361            *
362            * <p>
363            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
364            * </p>
365            *
366            * @param uuid the uuid
367            * @param companyId the company ID
368            * @param start the lower bound of the range of document library file entries
369            * @param end the upper bound of the range of document library file entries (not inclusive)
370            * @return the range of matching document library file entries
371            * @throws SystemException if a system exception occurred
372            */
373            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C(
374                    java.lang.String uuid, long companyId, int start, int end)
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
377            }
378    
379            /**
380            * Returns an ordered range of all the document library file entries where uuid = &#63; and companyId = &#63;.
381            *
382            * <p>
383            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
384            * </p>
385            *
386            * @param uuid the uuid
387            * @param companyId the company ID
388            * @param start the lower bound of the range of document library file entries
389            * @param end the upper bound of the range of document library file entries (not inclusive)
390            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
391            * @return the ordered range of matching document library file entries
392            * @throws SystemException if a system exception occurred
393            */
394            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByUuid_C(
395                    java.lang.String uuid, long companyId, int start, int end,
396                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
397                    throws com.liferay.portal.kernel.exception.SystemException {
398                    return getPersistence()
399                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
400            }
401    
402            /**
403            * Returns the first document library file entry in the ordered set where uuid = &#63; and companyId = &#63;.
404            *
405            * @param uuid the uuid
406            * @param companyId the company ID
407            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
408            * @return the first matching document library file entry
409            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
410            * @throws SystemException if a system exception occurred
411            */
412            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_C_First(
413                    java.lang.String uuid, long companyId,
414                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
415                    throws com.liferay.portal.kernel.exception.SystemException,
416                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
417                    return getPersistence()
418                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
419            }
420    
421            /**
422            * Returns the first document library file entry in the ordered set where uuid = &#63; and companyId = &#63;.
423            *
424            * @param uuid the uuid
425            * @param companyId the company ID
426            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
427            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
428            * @throws SystemException if a system exception occurred
429            */
430            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_C_First(
431                    java.lang.String uuid, long companyId,
432                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
433                    throws com.liferay.portal.kernel.exception.SystemException {
434                    return getPersistence()
435                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
436            }
437    
438            /**
439            * Returns the last document library file entry in the ordered set where uuid = &#63; and companyId = &#63;.
440            *
441            * @param uuid the uuid
442            * @param companyId the company ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the last matching document library file entry
445            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByUuid_C_Last(
449                    java.lang.String uuid, long companyId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
453                    return getPersistence()
454                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
455            }
456    
457            /**
458            * Returns the last document library file entry in the ordered set where uuid = &#63; and companyId = &#63;.
459            *
460            * @param uuid the uuid
461            * @param companyId the company ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
464            * @throws SystemException if a system exception occurred
465            */
466            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByUuid_C_Last(
467                    java.lang.String uuid, long companyId,
468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
469                    throws com.liferay.portal.kernel.exception.SystemException {
470                    return getPersistence()
471                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
472            }
473    
474            /**
475            * Returns the document library file entries before and after the current document library file entry in the ordered set where uuid = &#63; and companyId = &#63;.
476            *
477            * @param fileEntryId the primary key of the current document library file entry
478            * @param uuid the uuid
479            * @param companyId the company ID
480            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
481            * @return the previous, current, and next document library file entry
482            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
483            * @throws SystemException if a system exception occurred
484            */
485            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByUuid_C_PrevAndNext(
486                    long fileEntryId, java.lang.String uuid, long companyId,
487                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488                    throws com.liferay.portal.kernel.exception.SystemException,
489                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
490                    return getPersistence()
491                                       .findByUuid_C_PrevAndNext(fileEntryId, uuid, companyId,
492                            orderByComparator);
493            }
494    
495            /**
496            * Removes all the document library file entries where uuid = &#63; and companyId = &#63; from the database.
497            *
498            * @param uuid the uuid
499            * @param companyId the company ID
500            * @throws SystemException if a system exception occurred
501            */
502            public static void removeByUuid_C(java.lang.String uuid, long companyId)
503                    throws com.liferay.portal.kernel.exception.SystemException {
504                    getPersistence().removeByUuid_C(uuid, companyId);
505            }
506    
507            /**
508            * Returns the number of document library file entries where uuid = &#63; and companyId = &#63;.
509            *
510            * @param uuid the uuid
511            * @param companyId the company ID
512            * @return the number of matching document library file entries
513            * @throws SystemException if a system exception occurred
514            */
515            public static int countByUuid_C(java.lang.String uuid, long companyId)
516                    throws com.liferay.portal.kernel.exception.SystemException {
517                    return getPersistence().countByUuid_C(uuid, companyId);
518            }
519    
520            /**
521            * Returns all the document library file entries where groupId = &#63;.
522            *
523            * @param groupId the group ID
524            * @return the matching document library file entries
525            * @throws SystemException if a system exception occurred
526            */
527            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
528                    long groupId)
529                    throws com.liferay.portal.kernel.exception.SystemException {
530                    return getPersistence().findByGroupId(groupId);
531            }
532    
533            /**
534            * Returns a range of all the document library file entries where groupId = &#63;.
535            *
536            * <p>
537            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
538            * </p>
539            *
540            * @param groupId the group ID
541            * @param start the lower bound of the range of document library file entries
542            * @param end the upper bound of the range of document library file entries (not inclusive)
543            * @return the range of matching document library file entries
544            * @throws SystemException if a system exception occurred
545            */
546            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
547                    long groupId, int start, int end)
548                    throws com.liferay.portal.kernel.exception.SystemException {
549                    return getPersistence().findByGroupId(groupId, start, end);
550            }
551    
552            /**
553            * Returns an ordered range of all the document library file entries where groupId = &#63;.
554            *
555            * <p>
556            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
557            * </p>
558            *
559            * @param groupId the group ID
560            * @param start the lower bound of the range of document library file entries
561            * @param end the upper bound of the range of document library file entries (not inclusive)
562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
563            * @return the ordered range of matching document library file entries
564            * @throws SystemException if a system exception occurred
565            */
566            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByGroupId(
567                    long groupId, int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence()
571                                       .findByGroupId(groupId, start, end, orderByComparator);
572            }
573    
574            /**
575            * Returns the first document library file entry in the ordered set where groupId = &#63;.
576            *
577            * @param groupId the group ID
578            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
579            * @return the first matching document library file entry
580            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
581            * @throws SystemException if a system exception occurred
582            */
583            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_First(
584                    long groupId,
585                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
586                    throws com.liferay.portal.kernel.exception.SystemException,
587                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
588                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
589            }
590    
591            /**
592            * Returns the first document library file entry in the ordered set where groupId = &#63;.
593            *
594            * @param groupId the group ID
595            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
596            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
597            * @throws SystemException if a system exception occurred
598            */
599            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByGroupId_First(
600                    long groupId,
601                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
602                    throws com.liferay.portal.kernel.exception.SystemException {
603                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
604            }
605    
606            /**
607            * Returns the last document library file entry in the ordered set where groupId = &#63;.
608            *
609            * @param groupId the group ID
610            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
611            * @return the last matching document library file entry
612            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
613            * @throws SystemException if a system exception occurred
614            */
615            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByGroupId_Last(
616                    long groupId,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException,
619                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
620                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
621            }
622    
623            /**
624            * Returns the last document library file entry in the ordered set where groupId = &#63;.
625            *
626            * @param groupId the group ID
627            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
628            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
629            * @throws SystemException if a system exception occurred
630            */
631            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByGroupId_Last(
632                    long groupId,
633                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
634                    throws com.liferay.portal.kernel.exception.SystemException {
635                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
636            }
637    
638            /**
639            * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = &#63;.
640            *
641            * @param fileEntryId the primary key of the current document library file entry
642            * @param groupId the group ID
643            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
644            * @return the previous, current, and next document library file entry
645            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
646            * @throws SystemException if a system exception occurred
647            */
648            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByGroupId_PrevAndNext(
649                    long fileEntryId, long groupId,
650                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
651                    throws com.liferay.portal.kernel.exception.SystemException,
652                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
653                    return getPersistence()
654                                       .findByGroupId_PrevAndNext(fileEntryId, groupId,
655                            orderByComparator);
656            }
657    
658            /**
659            * Returns all the document library file entries that the user has permission to view where groupId = &#63;.
660            *
661            * @param groupId the group ID
662            * @return the matching document library file entries that the user has permission to view
663            * @throws SystemException if a system exception occurred
664            */
665            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId(
666                    long groupId)
667                    throws com.liferay.portal.kernel.exception.SystemException {
668                    return getPersistence().filterFindByGroupId(groupId);
669            }
670    
671            /**
672            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63;.
673            *
674            * <p>
675            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
676            * </p>
677            *
678            * @param groupId the group ID
679            * @param start the lower bound of the range of document library file entries
680            * @param end the upper bound of the range of document library file entries (not inclusive)
681            * @return the range of matching document library file entries that the user has permission to view
682            * @throws SystemException if a system exception occurred
683            */
684            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId(
685                    long groupId, int start, int end)
686                    throws com.liferay.portal.kernel.exception.SystemException {
687                    return getPersistence().filterFindByGroupId(groupId, start, end);
688            }
689    
690            /**
691            * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = &#63;.
692            *
693            * <p>
694            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
695            * </p>
696            *
697            * @param groupId the group ID
698            * @param start the lower bound of the range of document library file entries
699            * @param end the upper bound of the range of document library file entries (not inclusive)
700            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
701            * @return the ordered range of matching document library file entries that the user has permission to view
702            * @throws SystemException if a system exception occurred
703            */
704            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByGroupId(
705                    long groupId, int start, int end,
706                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
707                    throws com.liferay.portal.kernel.exception.SystemException {
708                    return getPersistence()
709                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
710            }
711    
712            /**
713            * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = &#63;.
714            *
715            * @param fileEntryId the primary key of the current document library file entry
716            * @param groupId the group ID
717            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
718            * @return the previous, current, and next document library file entry
719            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
720            * @throws SystemException if a system exception occurred
721            */
722            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByGroupId_PrevAndNext(
723                    long fileEntryId, long groupId,
724                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
725                    throws com.liferay.portal.kernel.exception.SystemException,
726                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
727                    return getPersistence()
728                                       .filterFindByGroupId_PrevAndNext(fileEntryId, groupId,
729                            orderByComparator);
730            }
731    
732            /**
733            * Removes all the document library file entries where groupId = &#63; from the database.
734            *
735            * @param groupId the group ID
736            * @throws SystemException if a system exception occurred
737            */
738            public static void removeByGroupId(long groupId)
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    getPersistence().removeByGroupId(groupId);
741            }
742    
743            /**
744            * Returns the number of document library file entries where groupId = &#63;.
745            *
746            * @param groupId the group ID
747            * @return the number of matching document library file entries
748            * @throws SystemException if a system exception occurred
749            */
750            public static int countByGroupId(long groupId)
751                    throws com.liferay.portal.kernel.exception.SystemException {
752                    return getPersistence().countByGroupId(groupId);
753            }
754    
755            /**
756            * Returns the number of document library file entries that the user has permission to view where groupId = &#63;.
757            *
758            * @param groupId the group ID
759            * @return the number of matching document library file entries that the user has permission to view
760            * @throws SystemException if a system exception occurred
761            */
762            public static int filterCountByGroupId(long groupId)
763                    throws com.liferay.portal.kernel.exception.SystemException {
764                    return getPersistence().filterCountByGroupId(groupId);
765            }
766    
767            /**
768            * Returns all the document library file entries where companyId = &#63;.
769            *
770            * @param companyId the company ID
771            * @return the matching document library file entries
772            * @throws SystemException if a system exception occurred
773            */
774            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
775                    long companyId)
776                    throws com.liferay.portal.kernel.exception.SystemException {
777                    return getPersistence().findByCompanyId(companyId);
778            }
779    
780            /**
781            * Returns a range of all the document library file entries where companyId = &#63;.
782            *
783            * <p>
784            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
785            * </p>
786            *
787            * @param companyId the company ID
788            * @param start the lower bound of the range of document library file entries
789            * @param end the upper bound of the range of document library file entries (not inclusive)
790            * @return the range of matching document library file entries
791            * @throws SystemException if a system exception occurred
792            */
793            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
794                    long companyId, int start, int end)
795                    throws com.liferay.portal.kernel.exception.SystemException {
796                    return getPersistence().findByCompanyId(companyId, start, end);
797            }
798    
799            /**
800            * Returns an ordered range of all the document library file entries where companyId = &#63;.
801            *
802            * <p>
803            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
804            * </p>
805            *
806            * @param companyId the company ID
807            * @param start the lower bound of the range of document library file entries
808            * @param end the upper bound of the range of document library file entries (not inclusive)
809            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
810            * @return the ordered range of matching document library file entries
811            * @throws SystemException if a system exception occurred
812            */
813            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByCompanyId(
814                    long companyId, int start, int end,
815                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
816                    throws com.liferay.portal.kernel.exception.SystemException {
817                    return getPersistence()
818                                       .findByCompanyId(companyId, start, end, orderByComparator);
819            }
820    
821            /**
822            * Returns the first document library file entry in the ordered set where companyId = &#63;.
823            *
824            * @param companyId the company ID
825            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
826            * @return the first matching document library file entry
827            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
828            * @throws SystemException if a system exception occurred
829            */
830            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_First(
831                    long companyId,
832                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
833                    throws com.liferay.portal.kernel.exception.SystemException,
834                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
835                    return getPersistence()
836                                       .findByCompanyId_First(companyId, orderByComparator);
837            }
838    
839            /**
840            * Returns the first document library file entry in the ordered set where companyId = &#63;.
841            *
842            * @param companyId the company ID
843            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
844            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByCompanyId_First(
848                    long companyId,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence()
852                                       .fetchByCompanyId_First(companyId, orderByComparator);
853            }
854    
855            /**
856            * Returns the last document library file entry in the ordered set where companyId = &#63;.
857            *
858            * @param companyId the company ID
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the last matching document library file entry
861            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
862            * @throws SystemException if a system exception occurred
863            */
864            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByCompanyId_Last(
865                    long companyId,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
869                    return getPersistence()
870                                       .findByCompanyId_Last(companyId, orderByComparator);
871            }
872    
873            /**
874            * Returns the last document library file entry in the ordered set where companyId = &#63;.
875            *
876            * @param companyId the company ID
877            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
878            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
879            * @throws SystemException if a system exception occurred
880            */
881            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByCompanyId_Last(
882                    long companyId,
883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
884                    throws com.liferay.portal.kernel.exception.SystemException {
885                    return getPersistence()
886                                       .fetchByCompanyId_Last(companyId, orderByComparator);
887            }
888    
889            /**
890            * Returns the document library file entries before and after the current document library file entry in the ordered set where companyId = &#63;.
891            *
892            * @param fileEntryId the primary key of the current document library file entry
893            * @param companyId the company ID
894            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
895            * @return the previous, current, and next document library file entry
896            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
897            * @throws SystemException if a system exception occurred
898            */
899            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByCompanyId_PrevAndNext(
900                    long fileEntryId, long companyId,
901                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
902                    throws com.liferay.portal.kernel.exception.SystemException,
903                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
904                    return getPersistence()
905                                       .findByCompanyId_PrevAndNext(fileEntryId, companyId,
906                            orderByComparator);
907            }
908    
909            /**
910            * Removes all the document library file entries where companyId = &#63; from the database.
911            *
912            * @param companyId the company ID
913            * @throws SystemException if a system exception occurred
914            */
915            public static void removeByCompanyId(long companyId)
916                    throws com.liferay.portal.kernel.exception.SystemException {
917                    getPersistence().removeByCompanyId(companyId);
918            }
919    
920            /**
921            * Returns the number of document library file entries where companyId = &#63;.
922            *
923            * @param companyId the company ID
924            * @return the number of matching document library file entries
925            * @throws SystemException if a system exception occurred
926            */
927            public static int countByCompanyId(long companyId)
928                    throws com.liferay.portal.kernel.exception.SystemException {
929                    return getPersistence().countByCompanyId(companyId);
930            }
931    
932            /**
933            * Returns all the document library file entries where mimeType = &#63;.
934            *
935            * @param mimeType the mime type
936            * @return the matching document library file entries
937            * @throws SystemException if a system exception occurred
938            */
939            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType(
940                    java.lang.String mimeType)
941                    throws com.liferay.portal.kernel.exception.SystemException {
942                    return getPersistence().findByMimeType(mimeType);
943            }
944    
945            /**
946            * Returns a range of all the document library file entries where mimeType = &#63;.
947            *
948            * <p>
949            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
950            * </p>
951            *
952            * @param mimeType the mime type
953            * @param start the lower bound of the range of document library file entries
954            * @param end the upper bound of the range of document library file entries (not inclusive)
955            * @return the range of matching document library file entries
956            * @throws SystemException if a system exception occurred
957            */
958            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType(
959                    java.lang.String mimeType, int start, int end)
960                    throws com.liferay.portal.kernel.exception.SystemException {
961                    return getPersistence().findByMimeType(mimeType, start, end);
962            }
963    
964            /**
965            * Returns an ordered range of all the document library file entries where mimeType = &#63;.
966            *
967            * <p>
968            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
969            * </p>
970            *
971            * @param mimeType the mime type
972            * @param start the lower bound of the range of document library file entries
973            * @param end the upper bound of the range of document library file entries (not inclusive)
974            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
975            * @return the ordered range of matching document library file entries
976            * @throws SystemException if a system exception occurred
977            */
978            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByMimeType(
979                    java.lang.String mimeType, int start, int end,
980                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
981                    throws com.liferay.portal.kernel.exception.SystemException {
982                    return getPersistence()
983                                       .findByMimeType(mimeType, start, end, orderByComparator);
984            }
985    
986            /**
987            * Returns the first document library file entry in the ordered set where mimeType = &#63;.
988            *
989            * @param mimeType the mime type
990            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
991            * @return the first matching document library file entry
992            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
993            * @throws SystemException if a system exception occurred
994            */
995            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByMimeType_First(
996                    java.lang.String mimeType,
997                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
998                    throws com.liferay.portal.kernel.exception.SystemException,
999                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1000                    return getPersistence().findByMimeType_First(mimeType, orderByComparator);
1001            }
1002    
1003            /**
1004            * Returns the first document library file entry in the ordered set where mimeType = &#63;.
1005            *
1006            * @param mimeType the mime type
1007            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1008            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1009            * @throws SystemException if a system exception occurred
1010            */
1011            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByMimeType_First(
1012                    java.lang.String mimeType,
1013                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1014                    throws com.liferay.portal.kernel.exception.SystemException {
1015                    return getPersistence()
1016                                       .fetchByMimeType_First(mimeType, orderByComparator);
1017            }
1018    
1019            /**
1020            * Returns the last document library file entry in the ordered set where mimeType = &#63;.
1021            *
1022            * @param mimeType the mime type
1023            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1024            * @return the last matching document library file entry
1025            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1026            * @throws SystemException if a system exception occurred
1027            */
1028            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByMimeType_Last(
1029                    java.lang.String mimeType,
1030                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1031                    throws com.liferay.portal.kernel.exception.SystemException,
1032                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1033                    return getPersistence().findByMimeType_Last(mimeType, orderByComparator);
1034            }
1035    
1036            /**
1037            * Returns the last document library file entry in the ordered set where mimeType = &#63;.
1038            *
1039            * @param mimeType the mime type
1040            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1041            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1042            * @throws SystemException if a system exception occurred
1043            */
1044            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByMimeType_Last(
1045                    java.lang.String mimeType,
1046                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1047                    throws com.liferay.portal.kernel.exception.SystemException {
1048                    return getPersistence().fetchByMimeType_Last(mimeType, orderByComparator);
1049            }
1050    
1051            /**
1052            * Returns the document library file entries before and after the current document library file entry in the ordered set where mimeType = &#63;.
1053            *
1054            * @param fileEntryId the primary key of the current document library file entry
1055            * @param mimeType the mime type
1056            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1057            * @return the previous, current, and next document library file entry
1058            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1059            * @throws SystemException if a system exception occurred
1060            */
1061            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByMimeType_PrevAndNext(
1062                    long fileEntryId, java.lang.String mimeType,
1063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1064                    throws com.liferay.portal.kernel.exception.SystemException,
1065                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1066                    return getPersistence()
1067                                       .findByMimeType_PrevAndNext(fileEntryId, mimeType,
1068                            orderByComparator);
1069            }
1070    
1071            /**
1072            * Removes all the document library file entries where mimeType = &#63; from the database.
1073            *
1074            * @param mimeType the mime type
1075            * @throws SystemException if a system exception occurred
1076            */
1077            public static void removeByMimeType(java.lang.String mimeType)
1078                    throws com.liferay.portal.kernel.exception.SystemException {
1079                    getPersistence().removeByMimeType(mimeType);
1080            }
1081    
1082            /**
1083            * Returns the number of document library file entries where mimeType = &#63;.
1084            *
1085            * @param mimeType the mime type
1086            * @return the number of matching document library file entries
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public static int countByMimeType(java.lang.String mimeType)
1090                    throws com.liferay.portal.kernel.exception.SystemException {
1091                    return getPersistence().countByMimeType(mimeType);
1092            }
1093    
1094            /**
1095            * Returns all the document library file entries where fileEntryTypeId = &#63;.
1096            *
1097            * @param fileEntryTypeId the file entry type ID
1098            * @return the matching document library file entries
1099            * @throws SystemException if a system exception occurred
1100            */
1101            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId(
1102                    long fileEntryTypeId)
1103                    throws com.liferay.portal.kernel.exception.SystemException {
1104                    return getPersistence().findByFileEntryTypeId(fileEntryTypeId);
1105            }
1106    
1107            /**
1108            * Returns a range of all the document library file entries where fileEntryTypeId = &#63;.
1109            *
1110            * <p>
1111            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1112            * </p>
1113            *
1114            * @param fileEntryTypeId the file entry type ID
1115            * @param start the lower bound of the range of document library file entries
1116            * @param end the upper bound of the range of document library file entries (not inclusive)
1117            * @return the range of matching document library file entries
1118            * @throws SystemException if a system exception occurred
1119            */
1120            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId(
1121                    long fileEntryTypeId, int start, int end)
1122                    throws com.liferay.portal.kernel.exception.SystemException {
1123                    return getPersistence()
1124                                       .findByFileEntryTypeId(fileEntryTypeId, start, end);
1125            }
1126    
1127            /**
1128            * Returns an ordered range of all the document library file entries where fileEntryTypeId = &#63;.
1129            *
1130            * <p>
1131            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1132            * </p>
1133            *
1134            * @param fileEntryTypeId the file entry type ID
1135            * @param start the lower bound of the range of document library file entries
1136            * @param end the upper bound of the range of document library file entries (not inclusive)
1137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1138            * @return the ordered range of matching document library file entries
1139            * @throws SystemException if a system exception occurred
1140            */
1141            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByFileEntryTypeId(
1142                    long fileEntryTypeId, int start, int end,
1143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1144                    throws com.liferay.portal.kernel.exception.SystemException {
1145                    return getPersistence()
1146                                       .findByFileEntryTypeId(fileEntryTypeId, start, end,
1147                            orderByComparator);
1148            }
1149    
1150            /**
1151            * Returns the first document library file entry in the ordered set where fileEntryTypeId = &#63;.
1152            *
1153            * @param fileEntryTypeId the file entry type ID
1154            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1155            * @return the first matching document library file entry
1156            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1157            * @throws SystemException if a system exception occurred
1158            */
1159            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFileEntryTypeId_First(
1160                    long fileEntryTypeId,
1161                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1162                    throws com.liferay.portal.kernel.exception.SystemException,
1163                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1164                    return getPersistence()
1165                                       .findByFileEntryTypeId_First(fileEntryTypeId,
1166                            orderByComparator);
1167            }
1168    
1169            /**
1170            * Returns the first document library file entry in the ordered set where fileEntryTypeId = &#63;.
1171            *
1172            * @param fileEntryTypeId the file entry type ID
1173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1174            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByFileEntryTypeId_First(
1178                    long fileEntryTypeId,
1179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1180                    throws com.liferay.portal.kernel.exception.SystemException {
1181                    return getPersistence()
1182                                       .fetchByFileEntryTypeId_First(fileEntryTypeId,
1183                            orderByComparator);
1184            }
1185    
1186            /**
1187            * Returns the last document library file entry in the ordered set where fileEntryTypeId = &#63;.
1188            *
1189            * @param fileEntryTypeId the file entry type ID
1190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1191            * @return the last matching document library file entry
1192            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByFileEntryTypeId_Last(
1196                    long fileEntryTypeId,
1197                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1198                    throws com.liferay.portal.kernel.exception.SystemException,
1199                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1200                    return getPersistence()
1201                                       .findByFileEntryTypeId_Last(fileEntryTypeId,
1202                            orderByComparator);
1203            }
1204    
1205            /**
1206            * Returns the last document library file entry in the ordered set where fileEntryTypeId = &#63;.
1207            *
1208            * @param fileEntryTypeId the file entry type ID
1209            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1210            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1211            * @throws SystemException if a system exception occurred
1212            */
1213            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByFileEntryTypeId_Last(
1214                    long fileEntryTypeId,
1215                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1216                    throws com.liferay.portal.kernel.exception.SystemException {
1217                    return getPersistence()
1218                                       .fetchByFileEntryTypeId_Last(fileEntryTypeId,
1219                            orderByComparator);
1220            }
1221    
1222            /**
1223            * Returns the document library file entries before and after the current document library file entry in the ordered set where fileEntryTypeId = &#63;.
1224            *
1225            * @param fileEntryId the primary key of the current document library file entry
1226            * @param fileEntryTypeId the file entry type ID
1227            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1228            * @return the previous, current, and next document library file entry
1229            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1230            * @throws SystemException if a system exception occurred
1231            */
1232            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByFileEntryTypeId_PrevAndNext(
1233                    long fileEntryId, long fileEntryTypeId,
1234                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1235                    throws com.liferay.portal.kernel.exception.SystemException,
1236                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1237                    return getPersistence()
1238                                       .findByFileEntryTypeId_PrevAndNext(fileEntryId,
1239                            fileEntryTypeId, orderByComparator);
1240            }
1241    
1242            /**
1243            * Removes all the document library file entries where fileEntryTypeId = &#63; from the database.
1244            *
1245            * @param fileEntryTypeId the file entry type ID
1246            * @throws SystemException if a system exception occurred
1247            */
1248            public static void removeByFileEntryTypeId(long fileEntryTypeId)
1249                    throws com.liferay.portal.kernel.exception.SystemException {
1250                    getPersistence().removeByFileEntryTypeId(fileEntryTypeId);
1251            }
1252    
1253            /**
1254            * Returns the number of document library file entries where fileEntryTypeId = &#63;.
1255            *
1256            * @param fileEntryTypeId the file entry type ID
1257            * @return the number of matching document library file entries
1258            * @throws SystemException if a system exception occurred
1259            */
1260            public static int countByFileEntryTypeId(long fileEntryTypeId)
1261                    throws com.liferay.portal.kernel.exception.SystemException {
1262                    return getPersistence().countByFileEntryTypeId(fileEntryTypeId);
1263            }
1264    
1265            /**
1266            * Returns all the document library file entries where folderId = &#63; and name = &#63;.
1267            *
1268            * @param folderId the folder ID
1269            * @param name the name
1270            * @return the matching document library file entries
1271            * @throws SystemException if a system exception occurred
1272            */
1273            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N(
1274                    long folderId, java.lang.String name)
1275                    throws com.liferay.portal.kernel.exception.SystemException {
1276                    return getPersistence().findByF_N(folderId, name);
1277            }
1278    
1279            /**
1280            * Returns a range of all the document library file entries where folderId = &#63; and name = &#63;.
1281            *
1282            * <p>
1283            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1284            * </p>
1285            *
1286            * @param folderId the folder ID
1287            * @param name the name
1288            * @param start the lower bound of the range of document library file entries
1289            * @param end the upper bound of the range of document library file entries (not inclusive)
1290            * @return the range of matching document library file entries
1291            * @throws SystemException if a system exception occurred
1292            */
1293            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N(
1294                    long folderId, java.lang.String name, int start, int end)
1295                    throws com.liferay.portal.kernel.exception.SystemException {
1296                    return getPersistence().findByF_N(folderId, name, start, end);
1297            }
1298    
1299            /**
1300            * Returns an ordered range of all the document library file entries where folderId = &#63; and name = &#63;.
1301            *
1302            * <p>
1303            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1304            * </p>
1305            *
1306            * @param folderId the folder ID
1307            * @param name the name
1308            * @param start the lower bound of the range of document library file entries
1309            * @param end the upper bound of the range of document library file entries (not inclusive)
1310            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1311            * @return the ordered range of matching document library file entries
1312            * @throws SystemException if a system exception occurred
1313            */
1314            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByF_N(
1315                    long folderId, java.lang.String name, int start, int end,
1316                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1317                    throws com.liferay.portal.kernel.exception.SystemException {
1318                    return getPersistence()
1319                                       .findByF_N(folderId, name, start, end, orderByComparator);
1320            }
1321    
1322            /**
1323            * Returns the first document library file entry in the ordered set where folderId = &#63; and name = &#63;.
1324            *
1325            * @param folderId the folder ID
1326            * @param name the name
1327            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1328            * @return the first matching document library file entry
1329            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1330            * @throws SystemException if a system exception occurred
1331            */
1332            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N_First(
1333                    long folderId, java.lang.String name,
1334                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1335                    throws com.liferay.portal.kernel.exception.SystemException,
1336                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1337                    return getPersistence()
1338                                       .findByF_N_First(folderId, name, orderByComparator);
1339            }
1340    
1341            /**
1342            * Returns the first document library file entry in the ordered set where folderId = &#63; and name = &#63;.
1343            *
1344            * @param folderId the folder ID
1345            * @param name the name
1346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1347            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1348            * @throws SystemException if a system exception occurred
1349            */
1350            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N_First(
1351                    long folderId, java.lang.String name,
1352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1353                    throws com.liferay.portal.kernel.exception.SystemException {
1354                    return getPersistence()
1355                                       .fetchByF_N_First(folderId, name, orderByComparator);
1356            }
1357    
1358            /**
1359            * Returns the last document library file entry in the ordered set where folderId = &#63; and name = &#63;.
1360            *
1361            * @param folderId the folder ID
1362            * @param name the name
1363            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1364            * @return the last matching document library file entry
1365            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1366            * @throws SystemException if a system exception occurred
1367            */
1368            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByF_N_Last(
1369                    long folderId, java.lang.String name,
1370                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1371                    throws com.liferay.portal.kernel.exception.SystemException,
1372                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1373                    return getPersistence().findByF_N_Last(folderId, name, orderByComparator);
1374            }
1375    
1376            /**
1377            * Returns the last document library file entry in the ordered set where folderId = &#63; and name = &#63;.
1378            *
1379            * @param folderId the folder ID
1380            * @param name the name
1381            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1382            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1383            * @throws SystemException if a system exception occurred
1384            */
1385            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByF_N_Last(
1386                    long folderId, java.lang.String name,
1387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1388                    throws com.liferay.portal.kernel.exception.SystemException {
1389                    return getPersistence()
1390                                       .fetchByF_N_Last(folderId, name, orderByComparator);
1391            }
1392    
1393            /**
1394            * Returns the document library file entries before and after the current document library file entry in the ordered set where folderId = &#63; and name = &#63;.
1395            *
1396            * @param fileEntryId the primary key of the current document library file entry
1397            * @param folderId the folder ID
1398            * @param name the name
1399            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1400            * @return the previous, current, and next document library file entry
1401            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1402            * @throws SystemException if a system exception occurred
1403            */
1404            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByF_N_PrevAndNext(
1405                    long fileEntryId, long folderId, java.lang.String name,
1406                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1407                    throws com.liferay.portal.kernel.exception.SystemException,
1408                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1409                    return getPersistence()
1410                                       .findByF_N_PrevAndNext(fileEntryId, folderId, name,
1411                            orderByComparator);
1412            }
1413    
1414            /**
1415            * Removes all the document library file entries where folderId = &#63; and name = &#63; from the database.
1416            *
1417            * @param folderId the folder ID
1418            * @param name the name
1419            * @throws SystemException if a system exception occurred
1420            */
1421            public static void removeByF_N(long folderId, java.lang.String name)
1422                    throws com.liferay.portal.kernel.exception.SystemException {
1423                    getPersistence().removeByF_N(folderId, name);
1424            }
1425    
1426            /**
1427            * Returns the number of document library file entries where folderId = &#63; and name = &#63;.
1428            *
1429            * @param folderId the folder ID
1430            * @param name the name
1431            * @return the number of matching document library file entries
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public static int countByF_N(long folderId, java.lang.String name)
1435                    throws com.liferay.portal.kernel.exception.SystemException {
1436                    return getPersistence().countByF_N(folderId, name);
1437            }
1438    
1439            /**
1440            * Returns all the document library file entries where groupId = &#63; and userId = &#63;.
1441            *
1442            * @param groupId the group ID
1443            * @param userId the user ID
1444            * @return the matching document library file entries
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
1448                    long groupId, long userId)
1449                    throws com.liferay.portal.kernel.exception.SystemException {
1450                    return getPersistence().findByG_U(groupId, userId);
1451            }
1452    
1453            /**
1454            * Returns a range of all the document library file entries where groupId = &#63; and userId = &#63;.
1455            *
1456            * <p>
1457            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1458            * </p>
1459            *
1460            * @param groupId the group ID
1461            * @param userId the user ID
1462            * @param start the lower bound of the range of document library file entries
1463            * @param end the upper bound of the range of document library file entries (not inclusive)
1464            * @return the range of matching document library file entries
1465            * @throws SystemException if a system exception occurred
1466            */
1467            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
1468                    long groupId, long userId, int start, int end)
1469                    throws com.liferay.portal.kernel.exception.SystemException {
1470                    return getPersistence().findByG_U(groupId, userId, start, end);
1471            }
1472    
1473            /**
1474            * Returns an ordered range of all the document library file entries where groupId = &#63; and userId = &#63;.
1475            *
1476            * <p>
1477            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1478            * </p>
1479            *
1480            * @param groupId the group ID
1481            * @param userId the user ID
1482            * @param start the lower bound of the range of document library file entries
1483            * @param end the upper bound of the range of document library file entries (not inclusive)
1484            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1485            * @return the ordered range of matching document library file entries
1486            * @throws SystemException if a system exception occurred
1487            */
1488            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U(
1489                    long groupId, long userId, int start, int end,
1490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1491                    throws com.liferay.portal.kernel.exception.SystemException {
1492                    return getPersistence()
1493                                       .findByG_U(groupId, userId, start, end, orderByComparator);
1494            }
1495    
1496            /**
1497            * Returns the first document library file entry in the ordered set where groupId = &#63; and userId = &#63;.
1498            *
1499            * @param groupId the group ID
1500            * @param userId the user ID
1501            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1502            * @return the first matching document library file entry
1503            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1504            * @throws SystemException if a system exception occurred
1505            */
1506            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_First(
1507                    long groupId, long userId,
1508                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1509                    throws com.liferay.portal.kernel.exception.SystemException,
1510                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1511                    return getPersistence()
1512                                       .findByG_U_First(groupId, userId, orderByComparator);
1513            }
1514    
1515            /**
1516            * Returns the first document library file entry in the ordered set where groupId = &#63; and userId = &#63;.
1517            *
1518            * @param groupId the group ID
1519            * @param userId the user ID
1520            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1521            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1522            * @throws SystemException if a system exception occurred
1523            */
1524            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_First(
1525                    long groupId, long userId,
1526                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1527                    throws com.liferay.portal.kernel.exception.SystemException {
1528                    return getPersistence()
1529                                       .fetchByG_U_First(groupId, userId, orderByComparator);
1530            }
1531    
1532            /**
1533            * Returns the last document library file entry in the ordered set where groupId = &#63; and userId = &#63;.
1534            *
1535            * @param groupId the group ID
1536            * @param userId the user ID
1537            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1538            * @return the last matching document library file entry
1539            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1540            * @throws SystemException if a system exception occurred
1541            */
1542            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_Last(
1543                    long groupId, long userId,
1544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1545                    throws com.liferay.portal.kernel.exception.SystemException,
1546                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1547                    return getPersistence()
1548                                       .findByG_U_Last(groupId, userId, orderByComparator);
1549            }
1550    
1551            /**
1552            * Returns the last document library file entry in the ordered set where groupId = &#63; and userId = &#63;.
1553            *
1554            * @param groupId the group ID
1555            * @param userId the user ID
1556            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1557            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1558            * @throws SystemException if a system exception occurred
1559            */
1560            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_Last(
1561                    long groupId, long userId,
1562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1563                    throws com.liferay.portal.kernel.exception.SystemException {
1564                    return getPersistence()
1565                                       .fetchByG_U_Last(groupId, userId, orderByComparator);
1566            }
1567    
1568            /**
1569            * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = &#63; and userId = &#63;.
1570            *
1571            * @param fileEntryId the primary key of the current document library file entry
1572            * @param groupId the group ID
1573            * @param userId the user ID
1574            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1575            * @return the previous, current, and next document library file entry
1576            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1577            * @throws SystemException if a system exception occurred
1578            */
1579            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_PrevAndNext(
1580                    long fileEntryId, long groupId, long userId,
1581                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1582                    throws com.liferay.portal.kernel.exception.SystemException,
1583                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1584                    return getPersistence()
1585                                       .findByG_U_PrevAndNext(fileEntryId, groupId, userId,
1586                            orderByComparator);
1587            }
1588    
1589            /**
1590            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63;.
1591            *
1592            * @param groupId the group ID
1593            * @param userId the user ID
1594            * @return the matching document library file entries that the user has permission to view
1595            * @throws SystemException if a system exception occurred
1596            */
1597            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U(
1598                    long groupId, long userId)
1599                    throws com.liferay.portal.kernel.exception.SystemException {
1600                    return getPersistence().filterFindByG_U(groupId, userId);
1601            }
1602    
1603            /**
1604            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63;.
1605            *
1606            * <p>
1607            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1608            * </p>
1609            *
1610            * @param groupId the group ID
1611            * @param userId the user ID
1612            * @param start the lower bound of the range of document library file entries
1613            * @param end the upper bound of the range of document library file entries (not inclusive)
1614            * @return the range of matching document library file entries that the user has permission to view
1615            * @throws SystemException if a system exception occurred
1616            */
1617            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U(
1618                    long groupId, long userId, int start, int end)
1619                    throws com.liferay.portal.kernel.exception.SystemException {
1620                    return getPersistence().filterFindByG_U(groupId, userId, start, end);
1621            }
1622    
1623            /**
1624            * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = &#63; and userId = &#63;.
1625            *
1626            * <p>
1627            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1628            * </p>
1629            *
1630            * @param groupId the group ID
1631            * @param userId the user ID
1632            * @param start the lower bound of the range of document library file entries
1633            * @param end the upper bound of the range of document library file entries (not inclusive)
1634            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1635            * @return the ordered range of matching document library file entries that the user has permission to view
1636            * @throws SystemException if a system exception occurred
1637            */
1638            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U(
1639                    long groupId, long userId, int start, int end,
1640                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1641                    throws com.liferay.portal.kernel.exception.SystemException {
1642                    return getPersistence()
1643                                       .filterFindByG_U(groupId, userId, start, end,
1644                            orderByComparator);
1645            }
1646    
1647            /**
1648            * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = &#63; and userId = &#63;.
1649            *
1650            * @param fileEntryId the primary key of the current document library file entry
1651            * @param groupId the group ID
1652            * @param userId the user ID
1653            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1654            * @return the previous, current, and next document library file entry
1655            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1656            * @throws SystemException if a system exception occurred
1657            */
1658            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_U_PrevAndNext(
1659                    long fileEntryId, long groupId, long userId,
1660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1661                    throws com.liferay.portal.kernel.exception.SystemException,
1662                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1663                    return getPersistence()
1664                                       .filterFindByG_U_PrevAndNext(fileEntryId, groupId, userId,
1665                            orderByComparator);
1666            }
1667    
1668            /**
1669            * Removes all the document library file entries where groupId = &#63; and userId = &#63; from the database.
1670            *
1671            * @param groupId the group ID
1672            * @param userId the user ID
1673            * @throws SystemException if a system exception occurred
1674            */
1675            public static void removeByG_U(long groupId, long userId)
1676                    throws com.liferay.portal.kernel.exception.SystemException {
1677                    getPersistence().removeByG_U(groupId, userId);
1678            }
1679    
1680            /**
1681            * Returns the number of document library file entries where groupId = &#63; and userId = &#63;.
1682            *
1683            * @param groupId the group ID
1684            * @param userId the user ID
1685            * @return the number of matching document library file entries
1686            * @throws SystemException if a system exception occurred
1687            */
1688            public static int countByG_U(long groupId, long userId)
1689                    throws com.liferay.portal.kernel.exception.SystemException {
1690                    return getPersistence().countByG_U(groupId, userId);
1691            }
1692    
1693            /**
1694            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and userId = &#63;.
1695            *
1696            * @param groupId the group ID
1697            * @param userId the user ID
1698            * @return the number of matching document library file entries that the user has permission to view
1699            * @throws SystemException if a system exception occurred
1700            */
1701            public static int filterCountByG_U(long groupId, long userId)
1702                    throws com.liferay.portal.kernel.exception.SystemException {
1703                    return getPersistence().filterCountByG_U(groupId, userId);
1704            }
1705    
1706            /**
1707            * Returns all the document library file entries where groupId = &#63; and folderId = &#63;.
1708            *
1709            * @param groupId the group ID
1710            * @param folderId the folder ID
1711            * @return the matching document library file entries
1712            * @throws SystemException if a system exception occurred
1713            */
1714            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
1715                    long groupId, long folderId)
1716                    throws com.liferay.portal.kernel.exception.SystemException {
1717                    return getPersistence().findByG_F(groupId, folderId);
1718            }
1719    
1720            /**
1721            * Returns a range of all the document library file entries where groupId = &#63; and folderId = &#63;.
1722            *
1723            * <p>
1724            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1725            * </p>
1726            *
1727            * @param groupId the group ID
1728            * @param folderId the folder ID
1729            * @param start the lower bound of the range of document library file entries
1730            * @param end the upper bound of the range of document library file entries (not inclusive)
1731            * @return the range of matching document library file entries
1732            * @throws SystemException if a system exception occurred
1733            */
1734            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
1735                    long groupId, long folderId, int start, int end)
1736                    throws com.liferay.portal.kernel.exception.SystemException {
1737                    return getPersistence().findByG_F(groupId, folderId, start, end);
1738            }
1739    
1740            /**
1741            * Returns an ordered range of all the document library file entries where groupId = &#63; and folderId = &#63;.
1742            *
1743            * <p>
1744            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1745            * </p>
1746            *
1747            * @param groupId the group ID
1748            * @param folderId the folder ID
1749            * @param start the lower bound of the range of document library file entries
1750            * @param end the upper bound of the range of document library file entries (not inclusive)
1751            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1752            * @return the ordered range of matching document library file entries
1753            * @throws SystemException if a system exception occurred
1754            */
1755            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
1756                    long groupId, long folderId, int start, int end,
1757                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1758                    throws com.liferay.portal.kernel.exception.SystemException {
1759                    return getPersistence()
1760                                       .findByG_F(groupId, folderId, start, end, orderByComparator);
1761            }
1762    
1763            /**
1764            * Returns the first document library file entry in the ordered set where groupId = &#63; and folderId = &#63;.
1765            *
1766            * @param groupId the group ID
1767            * @param folderId the folder ID
1768            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1769            * @return the first matching document library file entry
1770            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1771            * @throws SystemException if a system exception occurred
1772            */
1773            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_First(
1774                    long groupId, long folderId,
1775                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1776                    throws com.liferay.portal.kernel.exception.SystemException,
1777                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1778                    return getPersistence()
1779                                       .findByG_F_First(groupId, folderId, orderByComparator);
1780            }
1781    
1782            /**
1783            * Returns the first document library file entry in the ordered set where groupId = &#63; and folderId = &#63;.
1784            *
1785            * @param groupId the group ID
1786            * @param folderId the folder ID
1787            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1788            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1789            * @throws SystemException if a system exception occurred
1790            */
1791            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_First(
1792                    long groupId, long folderId,
1793                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1794                    throws com.liferay.portal.kernel.exception.SystemException {
1795                    return getPersistence()
1796                                       .fetchByG_F_First(groupId, folderId, orderByComparator);
1797            }
1798    
1799            /**
1800            * Returns the last document library file entry in the ordered set where groupId = &#63; and folderId = &#63;.
1801            *
1802            * @param groupId the group ID
1803            * @param folderId the folder ID
1804            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1805            * @return the last matching document library file entry
1806            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
1807            * @throws SystemException if a system exception occurred
1808            */
1809            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_Last(
1810                    long groupId, long folderId,
1811                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1812                    throws com.liferay.portal.kernel.exception.SystemException,
1813                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1814                    return getPersistence()
1815                                       .findByG_F_Last(groupId, folderId, orderByComparator);
1816            }
1817    
1818            /**
1819            * Returns the last document library file entry in the ordered set where groupId = &#63; and folderId = &#63;.
1820            *
1821            * @param groupId the group ID
1822            * @param folderId the folder ID
1823            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1824            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
1825            * @throws SystemException if a system exception occurred
1826            */
1827            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_Last(
1828                    long groupId, long folderId,
1829                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1830                    throws com.liferay.portal.kernel.exception.SystemException {
1831                    return getPersistence()
1832                                       .fetchByG_F_Last(groupId, folderId, orderByComparator);
1833            }
1834    
1835            /**
1836            * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = &#63; and folderId = &#63;.
1837            *
1838            * @param fileEntryId the primary key of the current document library file entry
1839            * @param groupId the group ID
1840            * @param folderId the folder ID
1841            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1842            * @return the previous, current, and next document library file entry
1843            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1844            * @throws SystemException if a system exception occurred
1845            */
1846            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_PrevAndNext(
1847                    long fileEntryId, long groupId, long folderId,
1848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1849                    throws com.liferay.portal.kernel.exception.SystemException,
1850                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1851                    return getPersistence()
1852                                       .findByG_F_PrevAndNext(fileEntryId, groupId, folderId,
1853                            orderByComparator);
1854            }
1855    
1856            /**
1857            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63;.
1858            *
1859            * @param groupId the group ID
1860            * @param folderId the folder ID
1861            * @return the matching document library file entries that the user has permission to view
1862            * @throws SystemException if a system exception occurred
1863            */
1864            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1865                    long groupId, long folderId)
1866                    throws com.liferay.portal.kernel.exception.SystemException {
1867                    return getPersistence().filterFindByG_F(groupId, folderId);
1868            }
1869    
1870            /**
1871            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63;.
1872            *
1873            * <p>
1874            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1875            * </p>
1876            *
1877            * @param groupId the group ID
1878            * @param folderId the folder ID
1879            * @param start the lower bound of the range of document library file entries
1880            * @param end the upper bound of the range of document library file entries (not inclusive)
1881            * @return the range of matching document library file entries that the user has permission to view
1882            * @throws SystemException if a system exception occurred
1883            */
1884            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1885                    long groupId, long folderId, int start, int end)
1886                    throws com.liferay.portal.kernel.exception.SystemException {
1887                    return getPersistence().filterFindByG_F(groupId, folderId, start, end);
1888            }
1889    
1890            /**
1891            * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = &#63; and folderId = &#63;.
1892            *
1893            * <p>
1894            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1895            * </p>
1896            *
1897            * @param groupId the group ID
1898            * @param folderId the folder ID
1899            * @param start the lower bound of the range of document library file entries
1900            * @param end the upper bound of the range of document library file entries (not inclusive)
1901            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1902            * @return the ordered range of matching document library file entries that the user has permission to view
1903            * @throws SystemException if a system exception occurred
1904            */
1905            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1906                    long groupId, long folderId, int start, int end,
1907                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1908                    throws com.liferay.portal.kernel.exception.SystemException {
1909                    return getPersistence()
1910                                       .filterFindByG_F(groupId, folderId, start, end,
1911                            orderByComparator);
1912            }
1913    
1914            /**
1915            * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63;.
1916            *
1917            * @param fileEntryId the primary key of the current document library file entry
1918            * @param groupId the group ID
1919            * @param folderId the folder ID
1920            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1921            * @return the previous, current, and next document library file entry
1922            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
1923            * @throws SystemException if a system exception occurred
1924            */
1925            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_F_PrevAndNext(
1926                    long fileEntryId, long groupId, long folderId,
1927                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1928                    throws com.liferay.portal.kernel.exception.SystemException,
1929                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
1930                    return getPersistence()
1931                                       .filterFindByG_F_PrevAndNext(fileEntryId, groupId, folderId,
1932                            orderByComparator);
1933            }
1934    
1935            /**
1936            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63;.
1937            *
1938            * @param groupId the group ID
1939            * @param folderIds the folder IDs
1940            * @return the matching document library file entries that the user has permission to view
1941            * @throws SystemException if a system exception occurred
1942            */
1943            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1944                    long groupId, long[] folderIds)
1945                    throws com.liferay.portal.kernel.exception.SystemException {
1946                    return getPersistence().filterFindByG_F(groupId, folderIds);
1947            }
1948    
1949            /**
1950            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63;.
1951            *
1952            * <p>
1953            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1954            * </p>
1955            *
1956            * @param groupId the group ID
1957            * @param folderIds the folder IDs
1958            * @param start the lower bound of the range of document library file entries
1959            * @param end the upper bound of the range of document library file entries (not inclusive)
1960            * @return the range of matching document library file entries that the user has permission to view
1961            * @throws SystemException if a system exception occurred
1962            */
1963            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1964                    long groupId, long[] folderIds, int start, int end)
1965                    throws com.liferay.portal.kernel.exception.SystemException {
1966                    return getPersistence().filterFindByG_F(groupId, folderIds, start, end);
1967            }
1968    
1969            /**
1970            * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63;.
1971            *
1972            * <p>
1973            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1974            * </p>
1975            *
1976            * @param groupId the group ID
1977            * @param folderIds the folder IDs
1978            * @param start the lower bound of the range of document library file entries
1979            * @param end the upper bound of the range of document library file entries (not inclusive)
1980            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1981            * @return the ordered range of matching document library file entries that the user has permission to view
1982            * @throws SystemException if a system exception occurred
1983            */
1984            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F(
1985                    long groupId, long[] folderIds, int start, int end,
1986                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1987                    throws com.liferay.portal.kernel.exception.SystemException {
1988                    return getPersistence()
1989                                       .filterFindByG_F(groupId, folderIds, start, end,
1990                            orderByComparator);
1991            }
1992    
1993            /**
1994            * Returns all the document library file entries where groupId = &#63; and folderId = any &#63;.
1995            *
1996            * <p>
1997            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1998            * </p>
1999            *
2000            * @param groupId the group ID
2001            * @param folderIds the folder IDs
2002            * @return the matching document library file entries
2003            * @throws SystemException if a system exception occurred
2004            */
2005            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
2006                    long groupId, long[] folderIds)
2007                    throws com.liferay.portal.kernel.exception.SystemException {
2008                    return getPersistence().findByG_F(groupId, folderIds);
2009            }
2010    
2011            /**
2012            * Returns a range of all the document library file entries where groupId = &#63; and folderId = any &#63;.
2013            *
2014            * <p>
2015            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2016            * </p>
2017            *
2018            * @param groupId the group ID
2019            * @param folderIds the folder IDs
2020            * @param start the lower bound of the range of document library file entries
2021            * @param end the upper bound of the range of document library file entries (not inclusive)
2022            * @return the range of matching document library file entries
2023            * @throws SystemException if a system exception occurred
2024            */
2025            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
2026                    long groupId, long[] folderIds, int start, int end)
2027                    throws com.liferay.portal.kernel.exception.SystemException {
2028                    return getPersistence().findByG_F(groupId, folderIds, start, end);
2029            }
2030    
2031            /**
2032            * Returns an ordered range of all the document library file entries where groupId = &#63; and folderId = any &#63;.
2033            *
2034            * <p>
2035            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2036            * </p>
2037            *
2038            * @param groupId the group ID
2039            * @param folderIds the folder IDs
2040            * @param start the lower bound of the range of document library file entries
2041            * @param end the upper bound of the range of document library file entries (not inclusive)
2042            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2043            * @return the ordered range of matching document library file entries
2044            * @throws SystemException if a system exception occurred
2045            */
2046            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F(
2047                    long groupId, long[] folderIds, int start, int end,
2048                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2049                    throws com.liferay.portal.kernel.exception.SystemException {
2050                    return getPersistence()
2051                                       .findByG_F(groupId, folderIds, start, end, orderByComparator);
2052            }
2053    
2054            /**
2055            * Removes all the document library file entries where groupId = &#63; and folderId = &#63; from the database.
2056            *
2057            * @param groupId the group ID
2058            * @param folderId the folder ID
2059            * @throws SystemException if a system exception occurred
2060            */
2061            public static void removeByG_F(long groupId, long folderId)
2062                    throws com.liferay.portal.kernel.exception.SystemException {
2063                    getPersistence().removeByG_F(groupId, folderId);
2064            }
2065    
2066            /**
2067            * Returns the number of document library file entries where groupId = &#63; and folderId = &#63;.
2068            *
2069            * @param groupId the group ID
2070            * @param folderId the folder ID
2071            * @return the number of matching document library file entries
2072            * @throws SystemException if a system exception occurred
2073            */
2074            public static int countByG_F(long groupId, long folderId)
2075                    throws com.liferay.portal.kernel.exception.SystemException {
2076                    return getPersistence().countByG_F(groupId, folderId);
2077            }
2078    
2079            /**
2080            * Returns the number of document library file entries where groupId = &#63; and folderId = any &#63;.
2081            *
2082            * @param groupId the group ID
2083            * @param folderIds the folder IDs
2084            * @return the number of matching document library file entries
2085            * @throws SystemException if a system exception occurred
2086            */
2087            public static int countByG_F(long groupId, long[] folderIds)
2088                    throws com.liferay.portal.kernel.exception.SystemException {
2089                    return getPersistence().countByG_F(groupId, folderIds);
2090            }
2091    
2092            /**
2093            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63;.
2094            *
2095            * @param groupId the group ID
2096            * @param folderId the folder ID
2097            * @return the number of matching document library file entries that the user has permission to view
2098            * @throws SystemException if a system exception occurred
2099            */
2100            public static int filterCountByG_F(long groupId, long folderId)
2101                    throws com.liferay.portal.kernel.exception.SystemException {
2102                    return getPersistence().filterCountByG_F(groupId, folderId);
2103            }
2104    
2105            /**
2106            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63;.
2107            *
2108            * @param groupId the group ID
2109            * @param folderIds the folder IDs
2110            * @return the number of matching document library file entries that the user has permission to view
2111            * @throws SystemException if a system exception occurred
2112            */
2113            public static int filterCountByG_F(long groupId, long[] folderIds)
2114                    throws com.liferay.portal.kernel.exception.SystemException {
2115                    return getPersistence().filterCountByG_F(groupId, folderIds);
2116            }
2117    
2118            /**
2119            * Returns all the document library file entries where groupId = &#63; and userId = &#63; and folderId = &#63;.
2120            *
2121            * @param groupId the group ID
2122            * @param userId the user ID
2123            * @param folderId the folder ID
2124            * @return the matching document library file entries
2125            * @throws SystemException if a system exception occurred
2126            */
2127            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2128                    long groupId, long userId, long folderId)
2129                    throws com.liferay.portal.kernel.exception.SystemException {
2130                    return getPersistence().findByG_U_F(groupId, userId, folderId);
2131            }
2132    
2133            /**
2134            * Returns a range of all the document library file entries where groupId = &#63; and userId = &#63; and folderId = &#63;.
2135            *
2136            * <p>
2137            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2138            * </p>
2139            *
2140            * @param groupId the group ID
2141            * @param userId the user ID
2142            * @param folderId the folder ID
2143            * @param start the lower bound of the range of document library file entries
2144            * @param end the upper bound of the range of document library file entries (not inclusive)
2145            * @return the range of matching document library file entries
2146            * @throws SystemException if a system exception occurred
2147            */
2148            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2149                    long groupId, long userId, long folderId, int start, int end)
2150                    throws com.liferay.portal.kernel.exception.SystemException {
2151                    return getPersistence()
2152                                       .findByG_U_F(groupId, userId, folderId, start, end);
2153            }
2154    
2155            /**
2156            * Returns an ordered range of all the document library file entries where groupId = &#63; and userId = &#63; and folderId = &#63;.
2157            *
2158            * <p>
2159            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2160            * </p>
2161            *
2162            * @param groupId the group ID
2163            * @param userId the user ID
2164            * @param folderId the folder ID
2165            * @param start the lower bound of the range of document library file entries
2166            * @param end the upper bound of the range of document library file entries (not inclusive)
2167            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2168            * @return the ordered range of matching document library file entries
2169            * @throws SystemException if a system exception occurred
2170            */
2171            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2172                    long groupId, long userId, long folderId, int start, int end,
2173                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2174                    throws com.liferay.portal.kernel.exception.SystemException {
2175                    return getPersistence()
2176                                       .findByG_U_F(groupId, userId, folderId, start, end,
2177                            orderByComparator);
2178            }
2179    
2180            /**
2181            * Returns the first document library file entry in the ordered set where groupId = &#63; and userId = &#63; and folderId = &#63;.
2182            *
2183            * @param groupId the group ID
2184            * @param userId the user ID
2185            * @param folderId the folder ID
2186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2187            * @return the first matching document library file entry
2188            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2189            * @throws SystemException if a system exception occurred
2190            */
2191            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_F_First(
2192                    long groupId, long userId, long folderId,
2193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2194                    throws com.liferay.portal.kernel.exception.SystemException,
2195                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2196                    return getPersistence()
2197                                       .findByG_U_F_First(groupId, userId, folderId,
2198                            orderByComparator);
2199            }
2200    
2201            /**
2202            * Returns the first document library file entry in the ordered set where groupId = &#63; and userId = &#63; and folderId = &#63;.
2203            *
2204            * @param groupId the group ID
2205            * @param userId the user ID
2206            * @param folderId the folder ID
2207            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2208            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2209            * @throws SystemException if a system exception occurred
2210            */
2211            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_F_First(
2212                    long groupId, long userId, long folderId,
2213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2214                    throws com.liferay.portal.kernel.exception.SystemException {
2215                    return getPersistence()
2216                                       .fetchByG_U_F_First(groupId, userId, folderId,
2217                            orderByComparator);
2218            }
2219    
2220            /**
2221            * Returns the last document library file entry in the ordered set where groupId = &#63; and userId = &#63; and folderId = &#63;.
2222            *
2223            * @param groupId the group ID
2224            * @param userId the user ID
2225            * @param folderId the folder ID
2226            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2227            * @return the last matching document library file entry
2228            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2229            * @throws SystemException if a system exception occurred
2230            */
2231            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_U_F_Last(
2232                    long groupId, long userId, long folderId,
2233                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2234                    throws com.liferay.portal.kernel.exception.SystemException,
2235                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2236                    return getPersistence()
2237                                       .findByG_U_F_Last(groupId, userId, folderId,
2238                            orderByComparator);
2239            }
2240    
2241            /**
2242            * Returns the last document library file entry in the ordered set where groupId = &#63; and userId = &#63; and folderId = &#63;.
2243            *
2244            * @param groupId the group ID
2245            * @param userId the user ID
2246            * @param folderId the folder ID
2247            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2248            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2249            * @throws SystemException if a system exception occurred
2250            */
2251            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_U_F_Last(
2252                    long groupId, long userId, long folderId,
2253                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2254                    throws com.liferay.portal.kernel.exception.SystemException {
2255                    return getPersistence()
2256                                       .fetchByG_U_F_Last(groupId, userId, folderId,
2257                            orderByComparator);
2258            }
2259    
2260            /**
2261            * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = &#63; and userId = &#63; and folderId = &#63;.
2262            *
2263            * @param fileEntryId the primary key of the current document library file entry
2264            * @param groupId the group ID
2265            * @param userId the user ID
2266            * @param folderId the folder ID
2267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2268            * @return the previous, current, and next document library file entry
2269            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
2270            * @throws SystemException if a system exception occurred
2271            */
2272            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_U_F_PrevAndNext(
2273                    long fileEntryId, long groupId, long userId, long folderId,
2274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2275                    throws com.liferay.portal.kernel.exception.SystemException,
2276                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2277                    return getPersistence()
2278                                       .findByG_U_F_PrevAndNext(fileEntryId, groupId, userId,
2279                            folderId, orderByComparator);
2280            }
2281    
2282            /**
2283            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = &#63;.
2284            *
2285            * @param groupId the group ID
2286            * @param userId the user ID
2287            * @param folderId the folder ID
2288            * @return the matching document library file entries that the user has permission to view
2289            * @throws SystemException if a system exception occurred
2290            */
2291            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2292                    long groupId, long userId, long folderId)
2293                    throws com.liferay.portal.kernel.exception.SystemException {
2294                    return getPersistence().filterFindByG_U_F(groupId, userId, folderId);
2295            }
2296    
2297            /**
2298            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = &#63;.
2299            *
2300            * <p>
2301            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2302            * </p>
2303            *
2304            * @param groupId the group ID
2305            * @param userId the user ID
2306            * @param folderId the folder ID
2307            * @param start the lower bound of the range of document library file entries
2308            * @param end the upper bound of the range of document library file entries (not inclusive)
2309            * @return the range of matching document library file entries that the user has permission to view
2310            * @throws SystemException if a system exception occurred
2311            */
2312            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2313                    long groupId, long userId, long folderId, int start, int end)
2314                    throws com.liferay.portal.kernel.exception.SystemException {
2315                    return getPersistence()
2316                                       .filterFindByG_U_F(groupId, userId, folderId, start, end);
2317            }
2318    
2319            /**
2320            * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = &#63; and userId = &#63; and folderId = &#63;.
2321            *
2322            * <p>
2323            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2324            * </p>
2325            *
2326            * @param groupId the group ID
2327            * @param userId the user ID
2328            * @param folderId the folder ID
2329            * @param start the lower bound of the range of document library file entries
2330            * @param end the upper bound of the range of document library file entries (not inclusive)
2331            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2332            * @return the ordered range of matching document library file entries that the user has permission to view
2333            * @throws SystemException if a system exception occurred
2334            */
2335            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2336                    long groupId, long userId, long folderId, int start, int end,
2337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2338                    throws com.liferay.portal.kernel.exception.SystemException {
2339                    return getPersistence()
2340                                       .filterFindByG_U_F(groupId, userId, folderId, start, end,
2341                            orderByComparator);
2342            }
2343    
2344            /**
2345            * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = &#63;.
2346            *
2347            * @param fileEntryId the primary key of the current document library file entry
2348            * @param groupId the group ID
2349            * @param userId the user ID
2350            * @param folderId the folder ID
2351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2352            * @return the previous, current, and next document library file entry
2353            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
2354            * @throws SystemException if a system exception occurred
2355            */
2356            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_U_F_PrevAndNext(
2357                    long fileEntryId, long groupId, long userId, long folderId,
2358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2359                    throws com.liferay.portal.kernel.exception.SystemException,
2360                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2361                    return getPersistence()
2362                                       .filterFindByG_U_F_PrevAndNext(fileEntryId, groupId, userId,
2363                            folderId, orderByComparator);
2364            }
2365    
2366            /**
2367            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2368            *
2369            * @param groupId the group ID
2370            * @param userId the user ID
2371            * @param folderIds the folder IDs
2372            * @return the matching document library file entries that the user has permission to view
2373            * @throws SystemException if a system exception occurred
2374            */
2375            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2376                    long groupId, long userId, long[] folderIds)
2377                    throws com.liferay.portal.kernel.exception.SystemException {
2378                    return getPersistence().filterFindByG_U_F(groupId, userId, folderIds);
2379            }
2380    
2381            /**
2382            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2383            *
2384            * <p>
2385            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2386            * </p>
2387            *
2388            * @param groupId the group ID
2389            * @param userId the user ID
2390            * @param folderIds the folder IDs
2391            * @param start the lower bound of the range of document library file entries
2392            * @param end the upper bound of the range of document library file entries (not inclusive)
2393            * @return the range of matching document library file entries that the user has permission to view
2394            * @throws SystemException if a system exception occurred
2395            */
2396            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2397                    long groupId, long userId, long[] folderIds, int start, int end)
2398                    throws com.liferay.portal.kernel.exception.SystemException {
2399                    return getPersistence()
2400                                       .filterFindByG_U_F(groupId, userId, folderIds, start, end);
2401            }
2402    
2403            /**
2404            * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2405            *
2406            * <p>
2407            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2408            * </p>
2409            *
2410            * @param groupId the group ID
2411            * @param userId the user ID
2412            * @param folderIds the folder IDs
2413            * @param start the lower bound of the range of document library file entries
2414            * @param end the upper bound of the range of document library file entries (not inclusive)
2415            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2416            * @return the ordered range of matching document library file entries that the user has permission to view
2417            * @throws SystemException if a system exception occurred
2418            */
2419            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_U_F(
2420                    long groupId, long userId, long[] folderIds, int start, int end,
2421                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2422                    throws com.liferay.portal.kernel.exception.SystemException {
2423                    return getPersistence()
2424                                       .filterFindByG_U_F(groupId, userId, folderIds, start, end,
2425                            orderByComparator);
2426            }
2427    
2428            /**
2429            * Returns all the document library file entries where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2430            *
2431            * <p>
2432            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2433            * </p>
2434            *
2435            * @param groupId the group ID
2436            * @param userId the user ID
2437            * @param folderIds the folder IDs
2438            * @return the matching document library file entries
2439            * @throws SystemException if a system exception occurred
2440            */
2441            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2442                    long groupId, long userId, long[] folderIds)
2443                    throws com.liferay.portal.kernel.exception.SystemException {
2444                    return getPersistence().findByG_U_F(groupId, userId, folderIds);
2445            }
2446    
2447            /**
2448            * Returns a range of all the document library file entries where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2449            *
2450            * <p>
2451            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2452            * </p>
2453            *
2454            * @param groupId the group ID
2455            * @param userId the user ID
2456            * @param folderIds the folder IDs
2457            * @param start the lower bound of the range of document library file entries
2458            * @param end the upper bound of the range of document library file entries (not inclusive)
2459            * @return the range of matching document library file entries
2460            * @throws SystemException if a system exception occurred
2461            */
2462            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2463                    long groupId, long userId, long[] folderIds, int start, int end)
2464                    throws com.liferay.portal.kernel.exception.SystemException {
2465                    return getPersistence()
2466                                       .findByG_U_F(groupId, userId, folderIds, start, end);
2467            }
2468    
2469            /**
2470            * Returns an ordered range of all the document library file entries where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2471            *
2472            * <p>
2473            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2474            * </p>
2475            *
2476            * @param groupId the group ID
2477            * @param userId the user ID
2478            * @param folderIds the folder IDs
2479            * @param start the lower bound of the range of document library file entries
2480            * @param end the upper bound of the range of document library file entries (not inclusive)
2481            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2482            * @return the ordered range of matching document library file entries
2483            * @throws SystemException if a system exception occurred
2484            */
2485            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_U_F(
2486                    long groupId, long userId, long[] folderIds, int start, int end,
2487                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2488                    throws com.liferay.portal.kernel.exception.SystemException {
2489                    return getPersistence()
2490                                       .findByG_U_F(groupId, userId, folderIds, start, end,
2491                            orderByComparator);
2492            }
2493    
2494            /**
2495            * Removes all the document library file entries where groupId = &#63; and userId = &#63; and folderId = &#63; from the database.
2496            *
2497            * @param groupId the group ID
2498            * @param userId the user ID
2499            * @param folderId the folder ID
2500            * @throws SystemException if a system exception occurred
2501            */
2502            public static void removeByG_U_F(long groupId, long userId, long folderId)
2503                    throws com.liferay.portal.kernel.exception.SystemException {
2504                    getPersistence().removeByG_U_F(groupId, userId, folderId);
2505            }
2506    
2507            /**
2508            * Returns the number of document library file entries where groupId = &#63; and userId = &#63; and folderId = &#63;.
2509            *
2510            * @param groupId the group ID
2511            * @param userId the user ID
2512            * @param folderId the folder ID
2513            * @return the number of matching document library file entries
2514            * @throws SystemException if a system exception occurred
2515            */
2516            public static int countByG_U_F(long groupId, long userId, long folderId)
2517                    throws com.liferay.portal.kernel.exception.SystemException {
2518                    return getPersistence().countByG_U_F(groupId, userId, folderId);
2519            }
2520    
2521            /**
2522            * Returns the number of document library file entries where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2523            *
2524            * @param groupId the group ID
2525            * @param userId the user ID
2526            * @param folderIds the folder IDs
2527            * @return the number of matching document library file entries
2528            * @throws SystemException if a system exception occurred
2529            */
2530            public static int countByG_U_F(long groupId, long userId, long[] folderIds)
2531                    throws com.liferay.portal.kernel.exception.SystemException {
2532                    return getPersistence().countByG_U_F(groupId, userId, folderIds);
2533            }
2534    
2535            /**
2536            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = &#63;.
2537            *
2538            * @param groupId the group ID
2539            * @param userId the user ID
2540            * @param folderId the folder ID
2541            * @return the number of matching document library file entries that the user has permission to view
2542            * @throws SystemException if a system exception occurred
2543            */
2544            public static int filterCountByG_U_F(long groupId, long userId,
2545                    long folderId)
2546                    throws com.liferay.portal.kernel.exception.SystemException {
2547                    return getPersistence().filterCountByG_U_F(groupId, userId, folderId);
2548            }
2549    
2550            /**
2551            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and userId = &#63; and folderId = any &#63;.
2552            *
2553            * @param groupId the group ID
2554            * @param userId the user ID
2555            * @param folderIds the folder IDs
2556            * @return the number of matching document library file entries that the user has permission to view
2557            * @throws SystemException if a system exception occurred
2558            */
2559            public static int filterCountByG_U_F(long groupId, long userId,
2560                    long[] folderIds)
2561                    throws com.liferay.portal.kernel.exception.SystemException {
2562                    return getPersistence().filterCountByG_U_F(groupId, userId, folderIds);
2563            }
2564    
2565            /**
2566            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and name = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found.
2567            *
2568            * @param groupId the group ID
2569            * @param folderId the folder ID
2570            * @param name the name
2571            * @return the matching document library file entry
2572            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2573            * @throws SystemException if a system exception occurred
2574            */
2575            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_N(
2576                    long groupId, long folderId, java.lang.String name)
2577                    throws com.liferay.portal.kernel.exception.SystemException,
2578                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2579                    return getPersistence().findByG_F_N(groupId, folderId, name);
2580            }
2581    
2582            /**
2583            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
2584            *
2585            * @param groupId the group ID
2586            * @param folderId the folder ID
2587            * @param name the name
2588            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2589            * @throws SystemException if a system exception occurred
2590            */
2591            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
2592                    long groupId, long folderId, java.lang.String name)
2593                    throws com.liferay.portal.kernel.exception.SystemException {
2594                    return getPersistence().fetchByG_F_N(groupId, folderId, name);
2595            }
2596    
2597            /**
2598            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and name = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
2599            *
2600            * @param groupId the group ID
2601            * @param folderId the folder ID
2602            * @param name the name
2603            * @param retrieveFromCache whether to use the finder cache
2604            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2605            * @throws SystemException if a system exception occurred
2606            */
2607            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_N(
2608                    long groupId, long folderId, java.lang.String name,
2609                    boolean retrieveFromCache)
2610                    throws com.liferay.portal.kernel.exception.SystemException {
2611                    return getPersistence()
2612                                       .fetchByG_F_N(groupId, folderId, name, retrieveFromCache);
2613            }
2614    
2615            /**
2616            * Removes the document library file entry where groupId = &#63; and folderId = &#63; and name = &#63; from the database.
2617            *
2618            * @param groupId the group ID
2619            * @param folderId the folder ID
2620            * @param name the name
2621            * @return the document library file entry that was removed
2622            * @throws SystemException if a system exception occurred
2623            */
2624            public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByG_F_N(
2625                    long groupId, long folderId, java.lang.String name)
2626                    throws com.liferay.portal.kernel.exception.SystemException,
2627                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2628                    return getPersistence().removeByG_F_N(groupId, folderId, name);
2629            }
2630    
2631            /**
2632            * Returns the number of document library file entries where groupId = &#63; and folderId = &#63; and name = &#63;.
2633            *
2634            * @param groupId the group ID
2635            * @param folderId the folder ID
2636            * @param name the name
2637            * @return the number of matching document library file entries
2638            * @throws SystemException if a system exception occurred
2639            */
2640            public static int countByG_F_N(long groupId, long folderId,
2641                    java.lang.String name)
2642                    throws com.liferay.portal.kernel.exception.SystemException {
2643                    return getPersistence().countByG_F_N(groupId, folderId, name);
2644            }
2645    
2646            /**
2647            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and title = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found.
2648            *
2649            * @param groupId the group ID
2650            * @param folderId the folder ID
2651            * @param title the title
2652            * @return the matching document library file entry
2653            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2654            * @throws SystemException if a system exception occurred
2655            */
2656            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_T(
2657                    long groupId, long folderId, java.lang.String title)
2658                    throws com.liferay.portal.kernel.exception.SystemException,
2659                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2660                    return getPersistence().findByG_F_T(groupId, folderId, title);
2661            }
2662    
2663            /**
2664            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and title = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
2665            *
2666            * @param groupId the group ID
2667            * @param folderId the folder ID
2668            * @param title the title
2669            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2670            * @throws SystemException if a system exception occurred
2671            */
2672            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
2673                    long groupId, long folderId, java.lang.String title)
2674                    throws com.liferay.portal.kernel.exception.SystemException {
2675                    return getPersistence().fetchByG_F_T(groupId, folderId, title);
2676            }
2677    
2678            /**
2679            * Returns the document library file entry where groupId = &#63; and folderId = &#63; and title = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
2680            *
2681            * @param groupId the group ID
2682            * @param folderId the folder ID
2683            * @param title the title
2684            * @param retrieveFromCache whether to use the finder cache
2685            * @return the matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2686            * @throws SystemException if a system exception occurred
2687            */
2688            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_T(
2689                    long groupId, long folderId, java.lang.String title,
2690                    boolean retrieveFromCache)
2691                    throws com.liferay.portal.kernel.exception.SystemException {
2692                    return getPersistence()
2693                                       .fetchByG_F_T(groupId, folderId, title, retrieveFromCache);
2694            }
2695    
2696            /**
2697            * Removes the document library file entry where groupId = &#63; and folderId = &#63; and title = &#63; from the database.
2698            *
2699            * @param groupId the group ID
2700            * @param folderId the folder ID
2701            * @param title the title
2702            * @return the document library file entry that was removed
2703            * @throws SystemException if a system exception occurred
2704            */
2705            public static com.liferay.portlet.documentlibrary.model.DLFileEntry removeByG_F_T(
2706                    long groupId, long folderId, java.lang.String title)
2707                    throws com.liferay.portal.kernel.exception.SystemException,
2708                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2709                    return getPersistence().removeByG_F_T(groupId, folderId, title);
2710            }
2711    
2712            /**
2713            * Returns the number of document library file entries where groupId = &#63; and folderId = &#63; and title = &#63;.
2714            *
2715            * @param groupId the group ID
2716            * @param folderId the folder ID
2717            * @param title the title
2718            * @return the number of matching document library file entries
2719            * @throws SystemException if a system exception occurred
2720            */
2721            public static int countByG_F_T(long groupId, long folderId,
2722                    java.lang.String title)
2723                    throws com.liferay.portal.kernel.exception.SystemException {
2724                    return getPersistence().countByG_F_T(groupId, folderId, title);
2725            }
2726    
2727            /**
2728            * Returns all the document library file entries where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2729            *
2730            * @param groupId the group ID
2731            * @param folderId the folder ID
2732            * @param fileEntryTypeId the file entry type ID
2733            * @return the matching document library file entries
2734            * @throws SystemException if a system exception occurred
2735            */
2736            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
2737                    long groupId, long folderId, long fileEntryTypeId)
2738                    throws com.liferay.portal.kernel.exception.SystemException {
2739                    return getPersistence().findByG_F_F(groupId, folderId, fileEntryTypeId);
2740            }
2741    
2742            /**
2743            * Returns a range of all the document library file entries where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2744            *
2745            * <p>
2746            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2747            * </p>
2748            *
2749            * @param groupId the group ID
2750            * @param folderId the folder ID
2751            * @param fileEntryTypeId the file entry type ID
2752            * @param start the lower bound of the range of document library file entries
2753            * @param end the upper bound of the range of document library file entries (not inclusive)
2754            * @return the range of matching document library file entries
2755            * @throws SystemException if a system exception occurred
2756            */
2757            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
2758                    long groupId, long folderId, long fileEntryTypeId, int start, int end)
2759                    throws com.liferay.portal.kernel.exception.SystemException {
2760                    return getPersistence()
2761                                       .findByG_F_F(groupId, folderId, fileEntryTypeId, start, end);
2762            }
2763    
2764            /**
2765            * Returns an ordered range of all the document library file entries where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2766            *
2767            * <p>
2768            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2769            * </p>
2770            *
2771            * @param groupId the group ID
2772            * @param folderId the folder ID
2773            * @param fileEntryTypeId the file entry type ID
2774            * @param start the lower bound of the range of document library file entries
2775            * @param end the upper bound of the range of document library file entries (not inclusive)
2776            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2777            * @return the ordered range of matching document library file entries
2778            * @throws SystemException if a system exception occurred
2779            */
2780            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
2781                    long groupId, long folderId, long fileEntryTypeId, int start, int end,
2782                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2783                    throws com.liferay.portal.kernel.exception.SystemException {
2784                    return getPersistence()
2785                                       .findByG_F_F(groupId, folderId, fileEntryTypeId, start, end,
2786                            orderByComparator);
2787            }
2788    
2789            /**
2790            * Returns the first document library file entry in the ordered set where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2791            *
2792            * @param groupId the group ID
2793            * @param folderId the folder ID
2794            * @param fileEntryTypeId the file entry type ID
2795            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2796            * @return the first matching document library file entry
2797            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2798            * @throws SystemException if a system exception occurred
2799            */
2800            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_F_First(
2801                    long groupId, long folderId, long fileEntryTypeId,
2802                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2803                    throws com.liferay.portal.kernel.exception.SystemException,
2804                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2805                    return getPersistence()
2806                                       .findByG_F_F_First(groupId, folderId, fileEntryTypeId,
2807                            orderByComparator);
2808            }
2809    
2810            /**
2811            * Returns the first document library file entry in the ordered set where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2812            *
2813            * @param groupId the group ID
2814            * @param folderId the folder ID
2815            * @param fileEntryTypeId the file entry type ID
2816            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2817            * @return the first matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2818            * @throws SystemException if a system exception occurred
2819            */
2820            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_F_First(
2821                    long groupId, long folderId, long fileEntryTypeId,
2822                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2823                    throws com.liferay.portal.kernel.exception.SystemException {
2824                    return getPersistence()
2825                                       .fetchByG_F_F_First(groupId, folderId, fileEntryTypeId,
2826                            orderByComparator);
2827            }
2828    
2829            /**
2830            * Returns the last document library file entry in the ordered set where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2831            *
2832            * @param groupId the group ID
2833            * @param folderId the folder ID
2834            * @param fileEntryTypeId the file entry type ID
2835            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2836            * @return the last matching document library file entry
2837            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a matching document library file entry could not be found
2838            * @throws SystemException if a system exception occurred
2839            */
2840            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByG_F_F_Last(
2841                    long groupId, long folderId, long fileEntryTypeId,
2842                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2843                    throws com.liferay.portal.kernel.exception.SystemException,
2844                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2845                    return getPersistence()
2846                                       .findByG_F_F_Last(groupId, folderId, fileEntryTypeId,
2847                            orderByComparator);
2848            }
2849    
2850            /**
2851            * Returns the last document library file entry in the ordered set where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2852            *
2853            * @param groupId the group ID
2854            * @param folderId the folder ID
2855            * @param fileEntryTypeId the file entry type ID
2856            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2857            * @return the last matching document library file entry, or <code>null</code> if a matching document library file entry could not be found
2858            * @throws SystemException if a system exception occurred
2859            */
2860            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByG_F_F_Last(
2861                    long groupId, long folderId, long fileEntryTypeId,
2862                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2863                    throws com.liferay.portal.kernel.exception.SystemException {
2864                    return getPersistence()
2865                                       .fetchByG_F_F_Last(groupId, folderId, fileEntryTypeId,
2866                            orderByComparator);
2867            }
2868    
2869            /**
2870            * Returns the document library file entries before and after the current document library file entry in the ordered set where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2871            *
2872            * @param fileEntryId the primary key of the current document library file entry
2873            * @param groupId the group ID
2874            * @param folderId the folder ID
2875            * @param fileEntryTypeId the file entry type ID
2876            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2877            * @return the previous, current, and next document library file entry
2878            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
2879            * @throws SystemException if a system exception occurred
2880            */
2881            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] findByG_F_F_PrevAndNext(
2882                    long fileEntryId, long groupId, long folderId, long fileEntryTypeId,
2883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2884                    throws com.liferay.portal.kernel.exception.SystemException,
2885                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2886                    return getPersistence()
2887                                       .findByG_F_F_PrevAndNext(fileEntryId, groupId, folderId,
2888                            fileEntryTypeId, orderByComparator);
2889            }
2890    
2891            /**
2892            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2893            *
2894            * @param groupId the group ID
2895            * @param folderId the folder ID
2896            * @param fileEntryTypeId the file entry type ID
2897            * @return the matching document library file entries that the user has permission to view
2898            * @throws SystemException if a system exception occurred
2899            */
2900            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
2901                    long groupId, long folderId, long fileEntryTypeId)
2902                    throws com.liferay.portal.kernel.exception.SystemException {
2903                    return getPersistence()
2904                                       .filterFindByG_F_F(groupId, folderId, fileEntryTypeId);
2905            }
2906    
2907            /**
2908            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2909            *
2910            * <p>
2911            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2912            * </p>
2913            *
2914            * @param groupId the group ID
2915            * @param folderId the folder ID
2916            * @param fileEntryTypeId the file entry type ID
2917            * @param start the lower bound of the range of document library file entries
2918            * @param end the upper bound of the range of document library file entries (not inclusive)
2919            * @return the range of matching document library file entries that the user has permission to view
2920            * @throws SystemException if a system exception occurred
2921            */
2922            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
2923                    long groupId, long folderId, long fileEntryTypeId, int start, int end)
2924                    throws com.liferay.portal.kernel.exception.SystemException {
2925                    return getPersistence()
2926                                       .filterFindByG_F_F(groupId, folderId, fileEntryTypeId,
2927                            start, end);
2928            }
2929    
2930            /**
2931            * Returns an ordered range of all the document library file entries that the user has permissions to view where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2932            *
2933            * <p>
2934            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2935            * </p>
2936            *
2937            * @param groupId the group ID
2938            * @param folderId the folder ID
2939            * @param fileEntryTypeId the file entry type ID
2940            * @param start the lower bound of the range of document library file entries
2941            * @param end the upper bound of the range of document library file entries (not inclusive)
2942            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2943            * @return the ordered range of matching document library file entries that the user has permission to view
2944            * @throws SystemException if a system exception occurred
2945            */
2946            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
2947                    long groupId, long folderId, long fileEntryTypeId, int start, int end,
2948                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2949                    throws com.liferay.portal.kernel.exception.SystemException {
2950                    return getPersistence()
2951                                       .filterFindByG_F_F(groupId, folderId, fileEntryTypeId,
2952                            start, end, orderByComparator);
2953            }
2954    
2955            /**
2956            * Returns the document library file entries before and after the current document library file entry in the ordered set of document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
2957            *
2958            * @param fileEntryId the primary key of the current document library file entry
2959            * @param groupId the group ID
2960            * @param folderId the folder ID
2961            * @param fileEntryTypeId the file entry type ID
2962            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2963            * @return the previous, current, and next document library file entry
2964            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
2965            * @throws SystemException if a system exception occurred
2966            */
2967            public static com.liferay.portlet.documentlibrary.model.DLFileEntry[] filterFindByG_F_F_PrevAndNext(
2968                    long fileEntryId, long groupId, long folderId, long fileEntryTypeId,
2969                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2970                    throws com.liferay.portal.kernel.exception.SystemException,
2971                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
2972                    return getPersistence()
2973                                       .filterFindByG_F_F_PrevAndNext(fileEntryId, groupId,
2974                            folderId, fileEntryTypeId, orderByComparator);
2975            }
2976    
2977            /**
2978            * Returns all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
2979            *
2980            * @param groupId the group ID
2981            * @param folderIds the folder IDs
2982            * @param fileEntryTypeId the file entry type ID
2983            * @return the matching document library file entries that the user has permission to view
2984            * @throws SystemException if a system exception occurred
2985            */
2986            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
2987                    long groupId, long[] folderIds, long fileEntryTypeId)
2988                    throws com.liferay.portal.kernel.exception.SystemException {
2989                    return getPersistence()
2990                                       .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId);
2991            }
2992    
2993            /**
2994            * Returns a range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
2995            *
2996            * <p>
2997            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2998            * </p>
2999            *
3000            * @param groupId the group ID
3001            * @param folderIds the folder IDs
3002            * @param fileEntryTypeId the file entry type ID
3003            * @param start the lower bound of the range of document library file entries
3004            * @param end the upper bound of the range of document library file entries (not inclusive)
3005            * @return the range of matching document library file entries that the user has permission to view
3006            * @throws SystemException if a system exception occurred
3007            */
3008            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
3009                    long groupId, long[] folderIds, long fileEntryTypeId, int start, int end)
3010                    throws com.liferay.portal.kernel.exception.SystemException {
3011                    return getPersistence()
3012                                       .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId,
3013                            start, end);
3014            }
3015    
3016            /**
3017            * Returns an ordered range of all the document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3018            *
3019            * <p>
3020            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3021            * </p>
3022            *
3023            * @param groupId the group ID
3024            * @param folderIds the folder IDs
3025            * @param fileEntryTypeId the file entry type ID
3026            * @param start the lower bound of the range of document library file entries
3027            * @param end the upper bound of the range of document library file entries (not inclusive)
3028            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3029            * @return the ordered range of matching document library file entries that the user has permission to view
3030            * @throws SystemException if a system exception occurred
3031            */
3032            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> filterFindByG_F_F(
3033                    long groupId, long[] folderIds, long fileEntryTypeId, int start,
3034                    int end,
3035                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3036                    throws com.liferay.portal.kernel.exception.SystemException {
3037                    return getPersistence()
3038                                       .filterFindByG_F_F(groupId, folderIds, fileEntryTypeId,
3039                            start, end, orderByComparator);
3040            }
3041    
3042            /**
3043            * Returns all the document library file entries where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3044            *
3045            * <p>
3046            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3047            * </p>
3048            *
3049            * @param groupId the group ID
3050            * @param folderIds the folder IDs
3051            * @param fileEntryTypeId the file entry type ID
3052            * @return the matching document library file entries
3053            * @throws SystemException if a system exception occurred
3054            */
3055            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
3056                    long groupId, long[] folderIds, long fileEntryTypeId)
3057                    throws com.liferay.portal.kernel.exception.SystemException {
3058                    return getPersistence().findByG_F_F(groupId, folderIds, fileEntryTypeId);
3059            }
3060    
3061            /**
3062            * Returns a range of all the document library file entries where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3063            *
3064            * <p>
3065            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3066            * </p>
3067            *
3068            * @param groupId the group ID
3069            * @param folderIds the folder IDs
3070            * @param fileEntryTypeId the file entry type ID
3071            * @param start the lower bound of the range of document library file entries
3072            * @param end the upper bound of the range of document library file entries (not inclusive)
3073            * @return the range of matching document library file entries
3074            * @throws SystemException if a system exception occurred
3075            */
3076            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
3077                    long groupId, long[] folderIds, long fileEntryTypeId, int start, int end)
3078                    throws com.liferay.portal.kernel.exception.SystemException {
3079                    return getPersistence()
3080                                       .findByG_F_F(groupId, folderIds, fileEntryTypeId, start, end);
3081            }
3082    
3083            /**
3084            * Returns an ordered range of all the document library file entries where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3085            *
3086            * <p>
3087            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3088            * </p>
3089            *
3090            * @param groupId the group ID
3091            * @param folderIds the folder IDs
3092            * @param fileEntryTypeId the file entry type ID
3093            * @param start the lower bound of the range of document library file entries
3094            * @param end the upper bound of the range of document library file entries (not inclusive)
3095            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3096            * @return the ordered range of matching document library file entries
3097            * @throws SystemException if a system exception occurred
3098            */
3099            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findByG_F_F(
3100                    long groupId, long[] folderIds, long fileEntryTypeId, int start,
3101                    int end,
3102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3103                    throws com.liferay.portal.kernel.exception.SystemException {
3104                    return getPersistence()
3105                                       .findByG_F_F(groupId, folderIds, fileEntryTypeId, start,
3106                            end, orderByComparator);
3107            }
3108    
3109            /**
3110            * Removes all the document library file entries where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63; from the database.
3111            *
3112            * @param groupId the group ID
3113            * @param folderId the folder ID
3114            * @param fileEntryTypeId the file entry type ID
3115            * @throws SystemException if a system exception occurred
3116            */
3117            public static void removeByG_F_F(long groupId, long folderId,
3118                    long fileEntryTypeId)
3119                    throws com.liferay.portal.kernel.exception.SystemException {
3120                    getPersistence().removeByG_F_F(groupId, folderId, fileEntryTypeId);
3121            }
3122    
3123            /**
3124            * Returns the number of document library file entries where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
3125            *
3126            * @param groupId the group ID
3127            * @param folderId the folder ID
3128            * @param fileEntryTypeId the file entry type ID
3129            * @return the number of matching document library file entries
3130            * @throws SystemException if a system exception occurred
3131            */
3132            public static int countByG_F_F(long groupId, long folderId,
3133                    long fileEntryTypeId)
3134                    throws com.liferay.portal.kernel.exception.SystemException {
3135                    return getPersistence().countByG_F_F(groupId, folderId, fileEntryTypeId);
3136            }
3137    
3138            /**
3139            * Returns the number of document library file entries where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3140            *
3141            * @param groupId the group ID
3142            * @param folderIds the folder IDs
3143            * @param fileEntryTypeId the file entry type ID
3144            * @return the number of matching document library file entries
3145            * @throws SystemException if a system exception occurred
3146            */
3147            public static int countByG_F_F(long groupId, long[] folderIds,
3148                    long fileEntryTypeId)
3149                    throws com.liferay.portal.kernel.exception.SystemException {
3150                    return getPersistence().countByG_F_F(groupId, folderIds, fileEntryTypeId);
3151            }
3152    
3153            /**
3154            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and folderId = &#63; and fileEntryTypeId = &#63;.
3155            *
3156            * @param groupId the group ID
3157            * @param folderId the folder ID
3158            * @param fileEntryTypeId the file entry type ID
3159            * @return the number of matching document library file entries that the user has permission to view
3160            * @throws SystemException if a system exception occurred
3161            */
3162            public static int filterCountByG_F_F(long groupId, long folderId,
3163                    long fileEntryTypeId)
3164                    throws com.liferay.portal.kernel.exception.SystemException {
3165                    return getPersistence()
3166                                       .filterCountByG_F_F(groupId, folderId, fileEntryTypeId);
3167            }
3168    
3169            /**
3170            * Returns the number of document library file entries that the user has permission to view where groupId = &#63; and folderId = any &#63; and fileEntryTypeId = &#63;.
3171            *
3172            * @param groupId the group ID
3173            * @param folderIds the folder IDs
3174            * @param fileEntryTypeId the file entry type ID
3175            * @return the number of matching document library file entries that the user has permission to view
3176            * @throws SystemException if a system exception occurred
3177            */
3178            public static int filterCountByG_F_F(long groupId, long[] folderIds,
3179                    long fileEntryTypeId)
3180                    throws com.liferay.portal.kernel.exception.SystemException {
3181                    return getPersistence()
3182                                       .filterCountByG_F_F(groupId, folderIds, fileEntryTypeId);
3183            }
3184    
3185            /**
3186            * Caches the document library file entry in the entity cache if it is enabled.
3187            *
3188            * @param dlFileEntry the document library file entry
3189            */
3190            public static void cacheResult(
3191                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry) {
3192                    getPersistence().cacheResult(dlFileEntry);
3193            }
3194    
3195            /**
3196            * Caches the document library file entries in the entity cache if it is enabled.
3197            *
3198            * @param dlFileEntries the document library file entries
3199            */
3200            public static void cacheResult(
3201                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> dlFileEntries) {
3202                    getPersistence().cacheResult(dlFileEntries);
3203            }
3204    
3205            /**
3206            * Creates a new document library file entry with the primary key. Does not add the document library file entry to the database.
3207            *
3208            * @param fileEntryId the primary key for the new document library file entry
3209            * @return the new document library file entry
3210            */
3211            public static com.liferay.portlet.documentlibrary.model.DLFileEntry create(
3212                    long fileEntryId) {
3213                    return getPersistence().create(fileEntryId);
3214            }
3215    
3216            /**
3217            * Removes the document library file entry with the primary key from the database. Also notifies the appropriate model listeners.
3218            *
3219            * @param fileEntryId the primary key of the document library file entry
3220            * @return the document library file entry that was removed
3221            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
3222            * @throws SystemException if a system exception occurred
3223            */
3224            public static com.liferay.portlet.documentlibrary.model.DLFileEntry remove(
3225                    long fileEntryId)
3226                    throws com.liferay.portal.kernel.exception.SystemException,
3227                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
3228                    return getPersistence().remove(fileEntryId);
3229            }
3230    
3231            public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateImpl(
3232                    com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
3233                    throws com.liferay.portal.kernel.exception.SystemException {
3234                    return getPersistence().updateImpl(dlFileEntry);
3235            }
3236    
3237            /**
3238            * Returns the document library file entry with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryException} if it could not be found.
3239            *
3240            * @param fileEntryId the primary key of the document library file entry
3241            * @return the document library file entry
3242            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryException if a document library file entry with the primary key could not be found
3243            * @throws SystemException if a system exception occurred
3244            */
3245            public static com.liferay.portlet.documentlibrary.model.DLFileEntry findByPrimaryKey(
3246                    long fileEntryId)
3247                    throws com.liferay.portal.kernel.exception.SystemException,
3248                            com.liferay.portlet.documentlibrary.NoSuchFileEntryException {
3249                    return getPersistence().findByPrimaryKey(fileEntryId);
3250            }
3251    
3252            /**
3253            * Returns the document library file entry with the primary key or returns <code>null</code> if it could not be found.
3254            *
3255            * @param fileEntryId the primary key of the document library file entry
3256            * @return the document library file entry, or <code>null</code> if a document library file entry with the primary key could not be found
3257            * @throws SystemException if a system exception occurred
3258            */
3259            public static com.liferay.portlet.documentlibrary.model.DLFileEntry fetchByPrimaryKey(
3260                    long fileEntryId)
3261                    throws com.liferay.portal.kernel.exception.SystemException {
3262                    return getPersistence().fetchByPrimaryKey(fileEntryId);
3263            }
3264    
3265            /**
3266            * Returns all the document library file entries.
3267            *
3268            * @return the document library file entries
3269            * @throws SystemException if a system exception occurred
3270            */
3271            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll()
3272                    throws com.liferay.portal.kernel.exception.SystemException {
3273                    return getPersistence().findAll();
3274            }
3275    
3276            /**
3277            * Returns a range of all the document library file entries.
3278            *
3279            * <p>
3280            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3281            * </p>
3282            *
3283            * @param start the lower bound of the range of document library file entries
3284            * @param end the upper bound of the range of document library file entries (not inclusive)
3285            * @return the range of document library file entries
3286            * @throws SystemException if a system exception occurred
3287            */
3288            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
3289                    int start, int end)
3290                    throws com.liferay.portal.kernel.exception.SystemException {
3291                    return getPersistence().findAll(start, end);
3292            }
3293    
3294            /**
3295            * Returns an ordered range of all the document library file entries.
3296            *
3297            * <p>
3298            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
3299            * </p>
3300            *
3301            * @param start the lower bound of the range of document library file entries
3302            * @param end the upper bound of the range of document library file entries (not inclusive)
3303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
3304            * @return the ordered range of document library file entries
3305            * @throws SystemException if a system exception occurred
3306            */
3307            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> findAll(
3308                    int start, int end,
3309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
3310                    throws com.liferay.portal.kernel.exception.SystemException {
3311                    return getPersistence().findAll(start, end, orderByComparator);
3312            }
3313    
3314            /**
3315            * Removes all the document library file entries from the database.
3316            *
3317            * @throws SystemException if a system exception occurred
3318            */
3319            public static void removeAll()
3320                    throws com.liferay.portal.kernel.exception.SystemException {
3321                    getPersistence().removeAll();
3322            }
3323    
3324            /**
3325            * Returns the number of document library file entries.
3326            *
3327            * @return the number of document library file entries
3328            * @throws SystemException if a system exception occurred
3329            */
3330            public static int countAll()
3331                    throws com.liferay.portal.kernel.exception.SystemException {
3332                    return getPersistence().countAll();
3333            }
3334    
3335            public static DLFileEntryPersistence getPersistence() {
3336                    if (_persistence == null) {
3337                            _persistence = (DLFileEntryPersistence)PortalBeanLocatorUtil.locate(DLFileEntryPersistence.class.getName());
3338    
3339                            ReferenceRegistry.registerReference(DLFileEntryUtil.class,
3340                                    "_persistence");
3341                    }
3342    
3343                    return _persistence;
3344            }
3345    
3346            /**
3347             * @deprecated As of 6.2.0
3348             */
3349            public void setPersistence(DLFileEntryPersistence persistence) {
3350            }
3351    
3352            private static DLFileEntryPersistence _persistence;
3353    }