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