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.DLFileEntryType;
027    
028    import java.util.List;
029    
030    /**
031     * The persistence utility for the document library file entry type service. This utility wraps {@link DLFileEntryTypePersistenceImpl} 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 DLFileEntryTypePersistence
039     * @see DLFileEntryTypePersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class DLFileEntryTypeUtil {
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(DLFileEntryType dlFileEntryType) {
061                    getPersistence().clearCache(dlFileEntryType);
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<DLFileEntryType> 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<DLFileEntryType> 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<DLFileEntryType> 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 DLFileEntryType update(DLFileEntryType dlFileEntryType)
104                    throws SystemException {
105                    return getPersistence().update(dlFileEntryType);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static DLFileEntryType update(DLFileEntryType dlFileEntryType,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(dlFileEntryType, serviceContext);
114            }
115    
116            /**
117            * Returns all the document library file entry types where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @return the matching document library file entry types
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> 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 entry types 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.DLFileEntryTypeModelImpl}. 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 entry types
138            * @param end the upper bound of the range of document library file entry types (not inclusive)
139            * @return the range of matching document library file entry types
140            * @throws SystemException if a system exception occurred
141            */
142            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> 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 entry types 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.DLFileEntryTypeModelImpl}. 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 entry types
157            * @param end the upper bound of the range of document library file entry types (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 entry types
160            * @throws SystemException if a system exception occurred
161            */
162            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> 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 type 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 type
175            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType 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.NoSuchFileEntryTypeException {
183                    return getPersistence().findByUuid_First(uuid, orderByComparator);
184            }
185    
186            /**
187            * Returns the first document library file entry type 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 type, or <code>null</code> if a matching document library file entry type could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType 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 type 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 type
207            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType 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.NoSuchFileEntryTypeException {
215                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
216            }
217    
218            /**
219            * Returns the last document library file entry type 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 type, or <code>null</code> if a matching document library file entry type could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType 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 entry types before and after the current document library file entry type in the ordered set where uuid = &#63;.
235            *
236            * @param fileEntryTypeId the primary key of the current document library file entry type
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 type
240            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type 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.DLFileEntryType[] findByUuid_PrevAndNext(
244                    long fileEntryTypeId, 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.NoSuchFileEntryTypeException {
248                    return getPersistence()
249                                       .findByUuid_PrevAndNext(fileEntryTypeId, uuid,
250                            orderByComparator);
251            }
252    
253            /**
254            * Removes all the document library file entry types where uuid = &#63; from the database.
255            *
256            * @param uuid the uuid
257            * @throws SystemException if a system exception occurred
258            */
259            public static void removeByUuid(java.lang.String uuid)
260                    throws com.liferay.portal.kernel.exception.SystemException {
261                    getPersistence().removeByUuid(uuid);
262            }
263    
264            /**
265            * Returns the number of document library file entry types where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @return the number of matching document library file entry types
269            * @throws SystemException if a system exception occurred
270            */
271            public static int countByUuid(java.lang.String uuid)
272                    throws com.liferay.portal.kernel.exception.SystemException {
273                    return getPersistence().countByUuid(uuid);
274            }
275    
276            /**
277            * Returns the document library file entry type where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found.
278            *
279            * @param uuid the uuid
280            * @param groupId the group ID
281            * @return the matching document library file entry type
282            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
283            * @throws SystemException if a system exception occurred
284            */
285            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUUID_G(
286                    java.lang.String uuid, long groupId)
287                    throws com.liferay.portal.kernel.exception.SystemException,
288                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
289                    return getPersistence().findByUUID_G(uuid, groupId);
290            }
291    
292            /**
293            * Returns the document library file entry type where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
294            *
295            * @param uuid the uuid
296            * @param groupId the group ID
297            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
298            * @throws SystemException if a system exception occurred
299            */
300            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G(
301                    java.lang.String uuid, long groupId)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return getPersistence().fetchByUUID_G(uuid, groupId);
304            }
305    
306            /**
307            * Returns the document library file entry type where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
308            *
309            * @param uuid the uuid
310            * @param groupId the group ID
311            * @param retrieveFromCache whether to use the finder cache
312            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G(
316                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
319            }
320    
321            /**
322            * Removes the document library file entry type where uuid = &#63; and groupId = &#63; from the database.
323            *
324            * @param uuid the uuid
325            * @param groupId the group ID
326            * @return the document library file entry type that was removed
327            * @throws SystemException if a system exception occurred
328            */
329            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByUUID_G(
330                    java.lang.String uuid, long groupId)
331                    throws com.liferay.portal.kernel.exception.SystemException,
332                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
333                    return getPersistence().removeByUUID_G(uuid, groupId);
334            }
335    
336            /**
337            * Returns the number of document library file entry types where uuid = &#63; and groupId = &#63;.
338            *
339            * @param uuid the uuid
340            * @param groupId the group ID
341            * @return the number of matching document library file entry types
342            * @throws SystemException if a system exception occurred
343            */
344            public static int countByUUID_G(java.lang.String uuid, long groupId)
345                    throws com.liferay.portal.kernel.exception.SystemException {
346                    return getPersistence().countByUUID_G(uuid, groupId);
347            }
348    
349            /**
350            * Returns all the document library file entry types where uuid = &#63; and companyId = &#63;.
351            *
352            * @param uuid the uuid
353            * @param companyId the company ID
354            * @return the matching document library file entry types
355            * @throws SystemException if a system exception occurred
356            */
357            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C(
358                    java.lang.String uuid, long companyId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getPersistence().findByUuid_C(uuid, companyId);
361            }
362    
363            /**
364            * Returns a range of all the document library file entry types where uuid = &#63; and companyId = &#63;.
365            *
366            * <p>
367            * 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.DLFileEntryTypeModelImpl}. 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.
368            * </p>
369            *
370            * @param uuid the uuid
371            * @param companyId the company ID
372            * @param start the lower bound of the range of document library file entry types
373            * @param end the upper bound of the range of document library file entry types (not inclusive)
374            * @return the range of matching document library file entry types
375            * @throws SystemException if a system exception occurred
376            */
377            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C(
378                    java.lang.String uuid, long companyId, int start, int end)
379                    throws com.liferay.portal.kernel.exception.SystemException {
380                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
381            }
382    
383            /**
384            * Returns an ordered range of all the document library file entry types where uuid = &#63; and companyId = &#63;.
385            *
386            * <p>
387            * 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.DLFileEntryTypeModelImpl}. 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.
388            * </p>
389            *
390            * @param uuid the uuid
391            * @param companyId the company ID
392            * @param start the lower bound of the range of document library file entry types
393            * @param end the upper bound of the range of document library file entry types (not inclusive)
394            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
395            * @return the ordered range of matching document library file entry types
396            * @throws SystemException if a system exception occurred
397            */
398            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByUuid_C(
399                    java.lang.String uuid, long companyId, int start, int end,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence()
403                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
404            }
405    
406            /**
407            * Returns the first document library file entry type in the ordered set where uuid = &#63; and companyId = &#63;.
408            *
409            * @param uuid the uuid
410            * @param companyId the company ID
411            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
412            * @return the first matching document library file entry type
413            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
414            * @throws SystemException if a system exception occurred
415            */
416            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_C_First(
417                    java.lang.String uuid, long companyId,
418                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
419                    throws com.liferay.portal.kernel.exception.SystemException,
420                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
421                    return getPersistence()
422                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
423            }
424    
425            /**
426            * Returns the first document library file entry type in the ordered set where uuid = &#63; and companyId = &#63;.
427            *
428            * @param uuid the uuid
429            * @param companyId the company ID
430            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
431            * @return the first matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
432            * @throws SystemException if a system exception occurred
433            */
434            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_C_First(
435                    java.lang.String uuid, long companyId,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException {
438                    return getPersistence()
439                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
440            }
441    
442            /**
443            * Returns the last document library file entry type in the ordered set where uuid = &#63; and companyId = &#63;.
444            *
445            * @param uuid the uuid
446            * @param companyId the company ID
447            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
448            * @return the last matching document library file entry type
449            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
450            * @throws SystemException if a system exception occurred
451            */
452            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_C_Last(
453                    java.lang.String uuid, long companyId,
454                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
455                    throws com.liferay.portal.kernel.exception.SystemException,
456                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
457                    return getPersistence()
458                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
459            }
460    
461            /**
462            * Returns the last document library file entry type in the ordered set where uuid = &#63; and companyId = &#63;.
463            *
464            * @param uuid the uuid
465            * @param companyId the company ID
466            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
467            * @return the last matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
468            * @throws SystemException if a system exception occurred
469            */
470            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_C_Last(
471                    java.lang.String uuid, long companyId,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getPersistence()
475                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
476            }
477    
478            /**
479            * Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = &#63; and companyId = &#63;.
480            *
481            * @param fileEntryTypeId the primary key of the current document library file entry type
482            * @param uuid the uuid
483            * @param companyId the company ID
484            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
485            * @return the previous, current, and next document library file entry type
486            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByUuid_C_PrevAndNext(
490                    long fileEntryTypeId, java.lang.String uuid, long companyId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException,
493                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
494                    return getPersistence()
495                                       .findByUuid_C_PrevAndNext(fileEntryTypeId, uuid, companyId,
496                            orderByComparator);
497            }
498    
499            /**
500            * Removes all the document library file entry types where uuid = &#63; and companyId = &#63; from the database.
501            *
502            * @param uuid the uuid
503            * @param companyId the company ID
504            * @throws SystemException if a system exception occurred
505            */
506            public static void removeByUuid_C(java.lang.String uuid, long companyId)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    getPersistence().removeByUuid_C(uuid, companyId);
509            }
510    
511            /**
512            * Returns the number of document library file entry types where uuid = &#63; and companyId = &#63;.
513            *
514            * @param uuid the uuid
515            * @param companyId the company ID
516            * @return the number of matching document library file entry types
517            * @throws SystemException if a system exception occurred
518            */
519            public static int countByUuid_C(java.lang.String uuid, long companyId)
520                    throws com.liferay.portal.kernel.exception.SystemException {
521                    return getPersistence().countByUuid_C(uuid, companyId);
522            }
523    
524            /**
525            * Returns all the document library file entry types where groupId = &#63;.
526            *
527            * @param groupId the group ID
528            * @return the matching document library file entry types
529            * @throws SystemException if a system exception occurred
530            */
531            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
532                    long groupId)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getPersistence().findByGroupId(groupId);
535            }
536    
537            /**
538            * Returns a range of all the document library file entry types where groupId = &#63;.
539            *
540            * <p>
541            * 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.DLFileEntryTypeModelImpl}. 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.
542            * </p>
543            *
544            * @param groupId the group ID
545            * @param start the lower bound of the range of document library file entry types
546            * @param end the upper bound of the range of document library file entry types (not inclusive)
547            * @return the range of matching document library file entry types
548            * @throws SystemException if a system exception occurred
549            */
550            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
551                    long groupId, int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getPersistence().findByGroupId(groupId, start, end);
554            }
555    
556            /**
557            * Returns an ordered range of all the document library file entry types where groupId = &#63;.
558            *
559            * <p>
560            * 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.DLFileEntryTypeModelImpl}. 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.
561            * </p>
562            *
563            * @param groupId the group ID
564            * @param start the lower bound of the range of document library file entry types
565            * @param end the upper bound of the range of document library file entry types (not inclusive)
566            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
567            * @return the ordered range of matching document library file entry types
568            * @throws SystemException if a system exception occurred
569            */
570            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
571                    long groupId, int start, int end,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getPersistence()
575                                       .findByGroupId(groupId, start, end, orderByComparator);
576            }
577    
578            /**
579            * Returns the first document library file entry type in the ordered set where groupId = &#63;.
580            *
581            * @param groupId the group ID
582            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
583            * @return the first matching document library file entry type
584            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_First(
588                    long groupId,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException,
591                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
592                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
593            }
594    
595            /**
596            * Returns the first document library file entry type in the ordered set where groupId = &#63;.
597            *
598            * @param groupId the group ID
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the first matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_First(
604                    long groupId,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
608            }
609    
610            /**
611            * Returns the last document library file entry type in the ordered set where groupId = &#63;.
612            *
613            * @param groupId the group ID
614            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
615            * @return the last matching document library file entry type
616            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_Last(
620                    long groupId,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
624                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last document library file entry type in the ordered set where groupId = &#63;.
629            *
630            * @param groupId the group ID
631            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
632            * @return the last matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_Last(
636                    long groupId,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
640            }
641    
642            /**
643            * Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = &#63;.
644            *
645            * @param fileEntryTypeId the primary key of the current document library file entry type
646            * @param groupId the group ID
647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
648            * @return the previous, current, and next document library file entry type
649            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
650            * @throws SystemException if a system exception occurred
651            */
652            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByGroupId_PrevAndNext(
653                    long fileEntryTypeId, long groupId,
654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
657                    return getPersistence()
658                                       .findByGroupId_PrevAndNext(fileEntryTypeId, groupId,
659                            orderByComparator);
660            }
661    
662            /**
663            * Returns all the document library file entry types that the user has permission to view where groupId = &#63;.
664            *
665            * @param groupId the group ID
666            * @return the matching document library file entry types that the user has permission to view
667            * @throws SystemException if a system exception occurred
668            */
669            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
670                    long groupId)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getPersistence().filterFindByGroupId(groupId);
673            }
674    
675            /**
676            * Returns a range of all the document library file entry types that the user has permission to view where groupId = &#63;.
677            *
678            * <p>
679            * 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.DLFileEntryTypeModelImpl}. 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.
680            * </p>
681            *
682            * @param groupId the group ID
683            * @param start the lower bound of the range of document library file entry types
684            * @param end the upper bound of the range of document library file entry types (not inclusive)
685            * @return the range of matching document library file entry types that the user has permission to view
686            * @throws SystemException if a system exception occurred
687            */
688            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
689                    long groupId, int start, int end)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().filterFindByGroupId(groupId, start, end);
692            }
693    
694            /**
695            * Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = &#63;.
696            *
697            * <p>
698            * 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.DLFileEntryTypeModelImpl}. 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.
699            * </p>
700            *
701            * @param groupId the group ID
702            * @param start the lower bound of the range of document library file entry types
703            * @param end the upper bound of the range of document library file entry types (not inclusive)
704            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
705            * @return the ordered range of matching document library file entry types that the user has permission to view
706            * @throws SystemException if a system exception occurred
707            */
708            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
709                    long groupId, int start, int end,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.kernel.exception.SystemException {
712                    return getPersistence()
713                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
714            }
715    
716            /**
717            * Returns the document library file entry types before and after the current document library file entry type in the ordered set of document library file entry types that the user has permission to view where groupId = &#63;.
718            *
719            * @param fileEntryTypeId the primary key of the current document library file entry type
720            * @param groupId the group ID
721            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
722            * @return the previous, current, and next document library file entry type
723            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
724            * @throws SystemException if a system exception occurred
725            */
726            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] filterFindByGroupId_PrevAndNext(
727                    long fileEntryTypeId, long groupId,
728                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
729                    throws com.liferay.portal.kernel.exception.SystemException,
730                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
731                    return getPersistence()
732                                       .filterFindByGroupId_PrevAndNext(fileEntryTypeId, groupId,
733                            orderByComparator);
734            }
735    
736            /**
737            * Returns all the document library file entry types that the user has permission to view where groupId = any &#63;.
738            *
739            * @param groupIds the group IDs
740            * @return the matching document library file entry types that the user has permission to view
741            * @throws SystemException if a system exception occurred
742            */
743            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
744                    long[] groupIds)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence().filterFindByGroupId(groupIds);
747            }
748    
749            /**
750            * Returns a range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
751            *
752            * <p>
753            * 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.DLFileEntryTypeModelImpl}. 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.
754            * </p>
755            *
756            * @param groupIds the group IDs
757            * @param start the lower bound of the range of document library file entry types
758            * @param end the upper bound of the range of document library file entry types (not inclusive)
759            * @return the range of matching document library file entry types that the user has permission to view
760            * @throws SystemException if a system exception occurred
761            */
762            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
763                    long[] groupIds, int start, int end)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    return getPersistence().filterFindByGroupId(groupIds, start, end);
766            }
767    
768            /**
769            * Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
770            *
771            * <p>
772            * 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.DLFileEntryTypeModelImpl}. 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.
773            * </p>
774            *
775            * @param groupIds the group IDs
776            * @param start the lower bound of the range of document library file entry types
777            * @param end the upper bound of the range of document library file entry types (not inclusive)
778            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
779            * @return the ordered range of matching document library file entry types that the user has permission to view
780            * @throws SystemException if a system exception occurred
781            */
782            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
783                    long[] groupIds, int start, int end,
784                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
785                    throws com.liferay.portal.kernel.exception.SystemException {
786                    return getPersistence()
787                                       .filterFindByGroupId(groupIds, start, end, orderByComparator);
788            }
789    
790            /**
791            * Returns all the document library file entry types where groupId = any &#63;.
792            *
793            * <p>
794            * 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.DLFileEntryTypeModelImpl}. 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.
795            * </p>
796            *
797            * @param groupIds the group IDs
798            * @return the matching document library file entry types
799            * @throws SystemException if a system exception occurred
800            */
801            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
802                    long[] groupIds)
803                    throws com.liferay.portal.kernel.exception.SystemException {
804                    return getPersistence().findByGroupId(groupIds);
805            }
806    
807            /**
808            * Returns a range of all the document library file entry types where groupId = any &#63;.
809            *
810            * <p>
811            * 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.DLFileEntryTypeModelImpl}. 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.
812            * </p>
813            *
814            * @param groupIds the group IDs
815            * @param start the lower bound of the range of document library file entry types
816            * @param end the upper bound of the range of document library file entry types (not inclusive)
817            * @return the range of matching document library file entry types
818            * @throws SystemException if a system exception occurred
819            */
820            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
821                    long[] groupIds, int start, int end)
822                    throws com.liferay.portal.kernel.exception.SystemException {
823                    return getPersistence().findByGroupId(groupIds, start, end);
824            }
825    
826            /**
827            * Returns an ordered range of all the document library file entry types where groupId = any &#63;.
828            *
829            * <p>
830            * 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.DLFileEntryTypeModelImpl}. 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.
831            * </p>
832            *
833            * @param groupIds the group IDs
834            * @param start the lower bound of the range of document library file entry types
835            * @param end the upper bound of the range of document library file entry types (not inclusive)
836            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
837            * @return the ordered range of matching document library file entry types
838            * @throws SystemException if a system exception occurred
839            */
840            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
841                    long[] groupIds, int start, int end,
842                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
843                    throws com.liferay.portal.kernel.exception.SystemException {
844                    return getPersistence()
845                                       .findByGroupId(groupIds, start, end, orderByComparator);
846            }
847    
848            /**
849            * Removes all the document library file entry types where groupId = &#63; from the database.
850            *
851            * @param groupId the group ID
852            * @throws SystemException if a system exception occurred
853            */
854            public static void removeByGroupId(long groupId)
855                    throws com.liferay.portal.kernel.exception.SystemException {
856                    getPersistence().removeByGroupId(groupId);
857            }
858    
859            /**
860            * Returns the number of document library file entry types where groupId = &#63;.
861            *
862            * @param groupId the group ID
863            * @return the number of matching document library file entry types
864            * @throws SystemException if a system exception occurred
865            */
866            public static int countByGroupId(long groupId)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return getPersistence().countByGroupId(groupId);
869            }
870    
871            /**
872            * Returns the number of document library file entry types where groupId = any &#63;.
873            *
874            * @param groupIds the group IDs
875            * @return the number of matching document library file entry types
876            * @throws SystemException if a system exception occurred
877            */
878            public static int countByGroupId(long[] groupIds)
879                    throws com.liferay.portal.kernel.exception.SystemException {
880                    return getPersistence().countByGroupId(groupIds);
881            }
882    
883            /**
884            * Returns the number of document library file entry types that the user has permission to view where groupId = &#63;.
885            *
886            * @param groupId the group ID
887            * @return the number of matching document library file entry types that the user has permission to view
888            * @throws SystemException if a system exception occurred
889            */
890            public static int filterCountByGroupId(long groupId)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence().filterCountByGroupId(groupId);
893            }
894    
895            /**
896            * Returns the number of document library file entry types that the user has permission to view where groupId = any &#63;.
897            *
898            * @param groupIds the group IDs
899            * @return the number of matching document library file entry types that the user has permission to view
900            * @throws SystemException if a system exception occurred
901            */
902            public static int filterCountByGroupId(long[] groupIds)
903                    throws com.liferay.portal.kernel.exception.SystemException {
904                    return getPersistence().filterCountByGroupId(groupIds);
905            }
906    
907            /**
908            * Returns the document library file entry type where groupId = &#63; and fileEntryTypeKey = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found.
909            *
910            * @param groupId the group ID
911            * @param fileEntryTypeKey the file entry type key
912            * @return the matching document library file entry type
913            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
914            * @throws SystemException if a system exception occurred
915            */
916            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByG_F(
917                    long groupId, java.lang.String fileEntryTypeKey)
918                    throws com.liferay.portal.kernel.exception.SystemException,
919                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
920                    return getPersistence().findByG_F(groupId, fileEntryTypeKey);
921            }
922    
923            /**
924            * Returns the document library file entry type where groupId = &#63; and fileEntryTypeKey = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
925            *
926            * @param groupId the group ID
927            * @param fileEntryTypeKey the file entry type key
928            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
929            * @throws SystemException if a system exception occurred
930            */
931            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_F(
932                    long groupId, java.lang.String fileEntryTypeKey)
933                    throws com.liferay.portal.kernel.exception.SystemException {
934                    return getPersistence().fetchByG_F(groupId, fileEntryTypeKey);
935            }
936    
937            /**
938            * Returns the document library file entry type where groupId = &#63; and fileEntryTypeKey = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
939            *
940            * @param groupId the group ID
941            * @param fileEntryTypeKey the file entry type key
942            * @param retrieveFromCache whether to use the finder cache
943            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
944            * @throws SystemException if a system exception occurred
945            */
946            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_F(
947                    long groupId, java.lang.String fileEntryTypeKey,
948                    boolean retrieveFromCache)
949                    throws com.liferay.portal.kernel.exception.SystemException {
950                    return getPersistence()
951                                       .fetchByG_F(groupId, fileEntryTypeKey, retrieveFromCache);
952            }
953    
954            /**
955            * Removes the document library file entry type where groupId = &#63; and fileEntryTypeKey = &#63; from the database.
956            *
957            * @param groupId the group ID
958            * @param fileEntryTypeKey the file entry type key
959            * @return the document library file entry type that was removed
960            * @throws SystemException if a system exception occurred
961            */
962            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByG_F(
963                    long groupId, java.lang.String fileEntryTypeKey)
964                    throws com.liferay.portal.kernel.exception.SystemException,
965                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
966                    return getPersistence().removeByG_F(groupId, fileEntryTypeKey);
967            }
968    
969            /**
970            * Returns the number of document library file entry types where groupId = &#63; and fileEntryTypeKey = &#63;.
971            *
972            * @param groupId the group ID
973            * @param fileEntryTypeKey the file entry type key
974            * @return the number of matching document library file entry types
975            * @throws SystemException if a system exception occurred
976            */
977            public static int countByG_F(long groupId, java.lang.String fileEntryTypeKey)
978                    throws com.liferay.portal.kernel.exception.SystemException {
979                    return getPersistence().countByG_F(groupId, fileEntryTypeKey);
980            }
981    
982            /**
983            * Caches the document library file entry type in the entity cache if it is enabled.
984            *
985            * @param dlFileEntryType the document library file entry type
986            */
987            public static void cacheResult(
988                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType) {
989                    getPersistence().cacheResult(dlFileEntryType);
990            }
991    
992            /**
993            * Caches the document library file entry types in the entity cache if it is enabled.
994            *
995            * @param dlFileEntryTypes the document library file entry types
996            */
997            public static void cacheResult(
998                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes) {
999                    getPersistence().cacheResult(dlFileEntryTypes);
1000            }
1001    
1002            /**
1003            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
1004            *
1005            * @param fileEntryTypeId the primary key for the new document library file entry type
1006            * @return the new document library file entry type
1007            */
1008            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType create(
1009                    long fileEntryTypeId) {
1010                    return getPersistence().create(fileEntryTypeId);
1011            }
1012    
1013            /**
1014            * Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
1015            *
1016            * @param fileEntryTypeId the primary key of the document library file entry type
1017            * @return the document library file entry type that was removed
1018            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
1019            * @throws SystemException if a system exception occurred
1020            */
1021            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType remove(
1022                    long fileEntryTypeId)
1023                    throws com.liferay.portal.kernel.exception.SystemException,
1024                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
1025                    return getPersistence().remove(fileEntryTypeId);
1026            }
1027    
1028            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType updateImpl(
1029                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
1030                    throws com.liferay.portal.kernel.exception.SystemException {
1031                    return getPersistence().updateImpl(dlFileEntryType);
1032            }
1033    
1034            /**
1035            * Returns the document library file entry type with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException} if it could not be found.
1036            *
1037            * @param fileEntryTypeId the primary key of the document library file entry type
1038            * @return the document library file entry type
1039            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByPrimaryKey(
1043                    long fileEntryTypeId)
1044                    throws com.liferay.portal.kernel.exception.SystemException,
1045                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
1046                    return getPersistence().findByPrimaryKey(fileEntryTypeId);
1047            }
1048    
1049            /**
1050            * Returns the document library file entry type with the primary key or returns <code>null</code> if it could not be found.
1051            *
1052            * @param fileEntryTypeId the primary key of the document library file entry type
1053            * @return the document library file entry type, or <code>null</code> if a document library file entry type with the primary key could not be found
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByPrimaryKey(
1057                    long fileEntryTypeId)
1058                    throws com.liferay.portal.kernel.exception.SystemException {
1059                    return getPersistence().fetchByPrimaryKey(fileEntryTypeId);
1060            }
1061    
1062            /**
1063            * Returns all the document library file entry types.
1064            *
1065            * @return the document library file entry types
1066            * @throws SystemException if a system exception occurred
1067            */
1068            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll()
1069                    throws com.liferay.portal.kernel.exception.SystemException {
1070                    return getPersistence().findAll();
1071            }
1072    
1073            /**
1074            * Returns a range of all the document library file entry types.
1075            *
1076            * <p>
1077            * 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.DLFileEntryTypeModelImpl}. 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.
1078            * </p>
1079            *
1080            * @param start the lower bound of the range of document library file entry types
1081            * @param end the upper bound of the range of document library file entry types (not inclusive)
1082            * @return the range of document library file entry types
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
1086                    int start, int end)
1087                    throws com.liferay.portal.kernel.exception.SystemException {
1088                    return getPersistence().findAll(start, end);
1089            }
1090    
1091            /**
1092            * Returns an ordered range of all the document library file entry types.
1093            *
1094            * <p>
1095            * 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.DLFileEntryTypeModelImpl}. 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.
1096            * </p>
1097            *
1098            * @param start the lower bound of the range of document library file entry types
1099            * @param end the upper bound of the range of document library file entry types (not inclusive)
1100            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1101            * @return the ordered range of document library file entry types
1102            * @throws SystemException if a system exception occurred
1103            */
1104            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
1105                    int start, int end,
1106                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1107                    throws com.liferay.portal.kernel.exception.SystemException {
1108                    return getPersistence().findAll(start, end, orderByComparator);
1109            }
1110    
1111            /**
1112            * Removes all the document library file entry types from the database.
1113            *
1114            * @throws SystemException if a system exception occurred
1115            */
1116            public static void removeAll()
1117                    throws com.liferay.portal.kernel.exception.SystemException {
1118                    getPersistence().removeAll();
1119            }
1120    
1121            /**
1122            * Returns the number of document library file entry types.
1123            *
1124            * @return the number of document library file entry types
1125            * @throws SystemException if a system exception occurred
1126            */
1127            public static int countAll()
1128                    throws com.liferay.portal.kernel.exception.SystemException {
1129                    return getPersistence().countAll();
1130            }
1131    
1132            /**
1133            * Returns all the document library folders associated with the document library file entry type.
1134            *
1135            * @param pk the primary key of the document library file entry type
1136            * @return the document library folders associated with the document library file entry type
1137            * @throws SystemException if a system exception occurred
1138            */
1139            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
1140                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1141                    return getPersistence().getDLFolders(pk);
1142            }
1143    
1144            /**
1145            * Returns a range of all the document library folders associated with the document library file entry type.
1146            *
1147            * <p>
1148            * 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.DLFileEntryTypeModelImpl}. 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.
1149            * </p>
1150            *
1151            * @param pk the primary key of the document library file entry type
1152            * @param start the lower bound of the range of document library file entry types
1153            * @param end the upper bound of the range of document library file entry types (not inclusive)
1154            * @return the range of document library folders associated with the document library file entry type
1155            * @throws SystemException if a system exception occurred
1156            */
1157            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
1158                    long pk, int start, int end)
1159                    throws com.liferay.portal.kernel.exception.SystemException {
1160                    return getPersistence().getDLFolders(pk, start, end);
1161            }
1162    
1163            /**
1164            * Returns an ordered range of all the document library folders associated with the document library file entry type.
1165            *
1166            * <p>
1167            * 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.DLFileEntryTypeModelImpl}. 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.
1168            * </p>
1169            *
1170            * @param pk the primary key of the document library file entry type
1171            * @param start the lower bound of the range of document library file entry types
1172            * @param end the upper bound of the range of document library file entry types (not inclusive)
1173            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1174            * @return the ordered range of document library folders associated with the document library file entry type
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
1178                    long pk, int start, int end,
1179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1180                    throws com.liferay.portal.kernel.exception.SystemException {
1181                    return getPersistence().getDLFolders(pk, start, end, orderByComparator);
1182            }
1183    
1184            /**
1185            * Returns the number of document library folders associated with the document library file entry type.
1186            *
1187            * @param pk the primary key of the document library file entry type
1188            * @return the number of document library folders associated with the document library file entry type
1189            * @throws SystemException if a system exception occurred
1190            */
1191            public static int getDLFoldersSize(long pk)
1192                    throws com.liferay.portal.kernel.exception.SystemException {
1193                    return getPersistence().getDLFoldersSize(pk);
1194            }
1195    
1196            /**
1197            * Returns <code>true</code> if the document library folder is associated with the document library file entry type.
1198            *
1199            * @param pk the primary key of the document library file entry type
1200            * @param dlFolderPK the primary key of the document library folder
1201            * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise
1202            * @throws SystemException if a system exception occurred
1203            */
1204            public static boolean containsDLFolder(long pk, long dlFolderPK)
1205                    throws com.liferay.portal.kernel.exception.SystemException {
1206                    return getPersistence().containsDLFolder(pk, dlFolderPK);
1207            }
1208    
1209            /**
1210            * Returns <code>true</code> if the document library file entry type has any document library folders associated with it.
1211            *
1212            * @param pk the primary key of the document library file entry type to check for associations with document library folders
1213            * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise
1214            * @throws SystemException if a system exception occurred
1215            */
1216            public static boolean containsDLFolders(long pk)
1217                    throws com.liferay.portal.kernel.exception.SystemException {
1218                    return getPersistence().containsDLFolders(pk);
1219            }
1220    
1221            /**
1222            * Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1223            *
1224            * @param pk the primary key of the document library file entry type
1225            * @param dlFolderPK the primary key of the document library folder
1226            * @throws SystemException if a system exception occurred
1227            */
1228            public static void addDLFolder(long pk, long dlFolderPK)
1229                    throws com.liferay.portal.kernel.exception.SystemException {
1230                    getPersistence().addDLFolder(pk, dlFolderPK);
1231            }
1232    
1233            /**
1234            * Adds an association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1235            *
1236            * @param pk the primary key of the document library file entry type
1237            * @param dlFolder the document library folder
1238            * @throws SystemException if a system exception occurred
1239            */
1240            public static void addDLFolder(long pk,
1241                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
1242                    throws com.liferay.portal.kernel.exception.SystemException {
1243                    getPersistence().addDLFolder(pk, dlFolder);
1244            }
1245    
1246            /**
1247            * Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1248            *
1249            * @param pk the primary key of the document library file entry type
1250            * @param dlFolderPKs the primary keys of the document library folders
1251            * @throws SystemException if a system exception occurred
1252            */
1253            public static void addDLFolders(long pk, long[] dlFolderPKs)
1254                    throws com.liferay.portal.kernel.exception.SystemException {
1255                    getPersistence().addDLFolders(pk, dlFolderPKs);
1256            }
1257    
1258            /**
1259            * Adds an association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1260            *
1261            * @param pk the primary key of the document library file entry type
1262            * @param dlFolders the document library folders
1263            * @throws SystemException if a system exception occurred
1264            */
1265            public static void addDLFolders(long pk,
1266                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1267                    throws com.liferay.portal.kernel.exception.SystemException {
1268                    getPersistence().addDLFolders(pk, dlFolders);
1269            }
1270    
1271            /**
1272            * Clears all associations between the document library file entry type and its document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1273            *
1274            * @param pk the primary key of the document library file entry type to clear the associated document library folders from
1275            * @throws SystemException if a system exception occurred
1276            */
1277            public static void clearDLFolders(long pk)
1278                    throws com.liferay.portal.kernel.exception.SystemException {
1279                    getPersistence().clearDLFolders(pk);
1280            }
1281    
1282            /**
1283            * Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1284            *
1285            * @param pk the primary key of the document library file entry type
1286            * @param dlFolderPK the primary key of the document library folder
1287            * @throws SystemException if a system exception occurred
1288            */
1289            public static void removeDLFolder(long pk, long dlFolderPK)
1290                    throws com.liferay.portal.kernel.exception.SystemException {
1291                    getPersistence().removeDLFolder(pk, dlFolderPK);
1292            }
1293    
1294            /**
1295            * Removes the association between the document library file entry type and the document library folder. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1296            *
1297            * @param pk the primary key of the document library file entry type
1298            * @param dlFolder the document library folder
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public static void removeDLFolder(long pk,
1302                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
1303                    throws com.liferay.portal.kernel.exception.SystemException {
1304                    getPersistence().removeDLFolder(pk, dlFolder);
1305            }
1306    
1307            /**
1308            * Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1309            *
1310            * @param pk the primary key of the document library file entry type
1311            * @param dlFolderPKs the primary keys of the document library folders
1312            * @throws SystemException if a system exception occurred
1313            */
1314            public static void removeDLFolders(long pk, long[] dlFolderPKs)
1315                    throws com.liferay.portal.kernel.exception.SystemException {
1316                    getPersistence().removeDLFolders(pk, dlFolderPKs);
1317            }
1318    
1319            /**
1320            * Removes the association between the document library file entry type and the document library folders. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1321            *
1322            * @param pk the primary key of the document library file entry type
1323            * @param dlFolders the document library folders
1324            * @throws SystemException if a system exception occurred
1325            */
1326            public static void removeDLFolders(long pk,
1327                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1328                    throws com.liferay.portal.kernel.exception.SystemException {
1329                    getPersistence().removeDLFolders(pk, dlFolders);
1330            }
1331    
1332            /**
1333            * Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1334            *
1335            * @param pk the primary key of the document library file entry type
1336            * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type
1337            * @throws SystemException if a system exception occurred
1338            */
1339            public static void setDLFolders(long pk, long[] dlFolderPKs)
1340                    throws com.liferay.portal.kernel.exception.SystemException {
1341                    getPersistence().setDLFolders(pk, dlFolderPKs);
1342            }
1343    
1344            /**
1345            * Sets the document library folders associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1346            *
1347            * @param pk the primary key of the document library file entry type
1348            * @param dlFolders the document library folders to be associated with the document library file entry type
1349            * @throws SystemException if a system exception occurred
1350            */
1351            public static void setDLFolders(long pk,
1352                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1353                    throws com.liferay.portal.kernel.exception.SystemException {
1354                    getPersistence().setDLFolders(pk, dlFolders);
1355            }
1356    
1357            /**
1358            * Returns all the d d m structures associated with the document library file entry type.
1359            *
1360            * @param pk the primary key of the document library file entry type
1361            * @return the d d m structures associated with the document library file entry type
1362            * @throws SystemException if a system exception occurred
1363            */
1364            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1365                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1366                    return getPersistence().getDDMStructures(pk);
1367            }
1368    
1369            /**
1370            * Returns a range of all the d d m structures associated with the document library file entry type.
1371            *
1372            * <p>
1373            * 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.DLFileEntryTypeModelImpl}. 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.
1374            * </p>
1375            *
1376            * @param pk the primary key of the document library file entry type
1377            * @param start the lower bound of the range of document library file entry types
1378            * @param end the upper bound of the range of document library file entry types (not inclusive)
1379            * @return the range of d d m structures associated with the document library file entry type
1380            * @throws SystemException if a system exception occurred
1381            */
1382            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1383                    long pk, int start, int end)
1384                    throws com.liferay.portal.kernel.exception.SystemException {
1385                    return getPersistence().getDDMStructures(pk, start, end);
1386            }
1387    
1388            /**
1389            * Returns an ordered range of all the d d m structures associated with the document library file entry type.
1390            *
1391            * <p>
1392            * 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.DLFileEntryTypeModelImpl}. 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.
1393            * </p>
1394            *
1395            * @param pk the primary key of the document library file entry type
1396            * @param start the lower bound of the range of document library file entry types
1397            * @param end the upper bound of the range of document library file entry types (not inclusive)
1398            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1399            * @return the ordered range of d d m structures associated with the document library file entry type
1400            * @throws SystemException if a system exception occurred
1401            */
1402            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1403                    long pk, int start, int end,
1404                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1405                    throws com.liferay.portal.kernel.exception.SystemException {
1406                    return getPersistence()
1407                                       .getDDMStructures(pk, start, end, orderByComparator);
1408            }
1409    
1410            /**
1411            * Returns the number of d d m structures associated with the document library file entry type.
1412            *
1413            * @param pk the primary key of the document library file entry type
1414            * @return the number of d d m structures associated with the document library file entry type
1415            * @throws SystemException if a system exception occurred
1416            */
1417            public static int getDDMStructuresSize(long pk)
1418                    throws com.liferay.portal.kernel.exception.SystemException {
1419                    return getPersistence().getDDMStructuresSize(pk);
1420            }
1421    
1422            /**
1423            * Returns <code>true</code> if the d d m structure is associated with the document library file entry type.
1424            *
1425            * @param pk the primary key of the document library file entry type
1426            * @param ddmStructurePK the primary key of the d d m structure
1427            * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise
1428            * @throws SystemException if a system exception occurred
1429            */
1430            public static boolean containsDDMStructure(long pk, long ddmStructurePK)
1431                    throws com.liferay.portal.kernel.exception.SystemException {
1432                    return getPersistence().containsDDMStructure(pk, ddmStructurePK);
1433            }
1434    
1435            /**
1436            * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it.
1437            *
1438            * @param pk the primary key of the document library file entry type to check for associations with d d m structures
1439            * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise
1440            * @throws SystemException if a system exception occurred
1441            */
1442            public static boolean containsDDMStructures(long pk)
1443                    throws com.liferay.portal.kernel.exception.SystemException {
1444                    return getPersistence().containsDDMStructures(pk);
1445            }
1446    
1447            /**
1448            * Adds an association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1449            *
1450            * @param pk the primary key of the document library file entry type
1451            * @param ddmStructurePK the primary key of the d d m structure
1452            * @throws SystemException if a system exception occurred
1453            */
1454            public static void addDDMStructure(long pk, long ddmStructurePK)
1455                    throws com.liferay.portal.kernel.exception.SystemException {
1456                    getPersistence().addDDMStructure(pk, ddmStructurePK);
1457            }
1458    
1459            /**
1460            * Adds an association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1461            *
1462            * @param pk the primary key of the document library file entry type
1463            * @param ddmStructure the d d m structure
1464            * @throws SystemException if a system exception occurred
1465            */
1466            public static void addDDMStructure(long pk,
1467                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
1468                    throws com.liferay.portal.kernel.exception.SystemException {
1469                    getPersistence().addDDMStructure(pk, ddmStructure);
1470            }
1471    
1472            /**
1473            * Adds an association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1474            *
1475            * @param pk the primary key of the document library file entry type
1476            * @param ddmStructurePKs the primary keys of the d d m structures
1477            * @throws SystemException if a system exception occurred
1478            */
1479            public static void addDDMStructures(long pk, long[] ddmStructurePKs)
1480                    throws com.liferay.portal.kernel.exception.SystemException {
1481                    getPersistence().addDDMStructures(pk, ddmStructurePKs);
1482            }
1483    
1484            /**
1485            * Adds an association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1486            *
1487            * @param pk the primary key of the document library file entry type
1488            * @param ddmStructures the d d m structures
1489            * @throws SystemException if a system exception occurred
1490            */
1491            public static void addDDMStructures(long pk,
1492                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1493                    throws com.liferay.portal.kernel.exception.SystemException {
1494                    getPersistence().addDDMStructures(pk, ddmStructures);
1495            }
1496    
1497            /**
1498            * Clears all associations between the document library file entry type and its d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1499            *
1500            * @param pk the primary key of the document library file entry type to clear the associated d d m structures from
1501            * @throws SystemException if a system exception occurred
1502            */
1503            public static void clearDDMStructures(long pk)
1504                    throws com.liferay.portal.kernel.exception.SystemException {
1505                    getPersistence().clearDDMStructures(pk);
1506            }
1507    
1508            /**
1509            * Removes the association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1510            *
1511            * @param pk the primary key of the document library file entry type
1512            * @param ddmStructurePK the primary key of the d d m structure
1513            * @throws SystemException if a system exception occurred
1514            */
1515            public static void removeDDMStructure(long pk, long ddmStructurePK)
1516                    throws com.liferay.portal.kernel.exception.SystemException {
1517                    getPersistence().removeDDMStructure(pk, ddmStructurePK);
1518            }
1519    
1520            /**
1521            * Removes the association between the document library file entry type and the d d m structure. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1522            *
1523            * @param pk the primary key of the document library file entry type
1524            * @param ddmStructure the d d m structure
1525            * @throws SystemException if a system exception occurred
1526            */
1527            public static void removeDDMStructure(long pk,
1528                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
1529                    throws com.liferay.portal.kernel.exception.SystemException {
1530                    getPersistence().removeDDMStructure(pk, ddmStructure);
1531            }
1532    
1533            /**
1534            * Removes the association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1535            *
1536            * @param pk the primary key of the document library file entry type
1537            * @param ddmStructurePKs the primary keys of the d d m structures
1538            * @throws SystemException if a system exception occurred
1539            */
1540            public static void removeDDMStructures(long pk, long[] ddmStructurePKs)
1541                    throws com.liferay.portal.kernel.exception.SystemException {
1542                    getPersistence().removeDDMStructures(pk, ddmStructurePKs);
1543            }
1544    
1545            /**
1546            * Removes the association between the document library file entry type and the d d m structures. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1547            *
1548            * @param pk the primary key of the document library file entry type
1549            * @param ddmStructures the d d m structures
1550            * @throws SystemException if a system exception occurred
1551            */
1552            public static void removeDDMStructures(long pk,
1553                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1554                    throws com.liferay.portal.kernel.exception.SystemException {
1555                    getPersistence().removeDDMStructures(pk, ddmStructures);
1556            }
1557    
1558            /**
1559            * Sets the d d m structures associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1560            *
1561            * @param pk the primary key of the document library file entry type
1562            * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type
1563            * @throws SystemException if a system exception occurred
1564            */
1565            public static void setDDMStructures(long pk, long[] ddmStructurePKs)
1566                    throws com.liferay.portal.kernel.exception.SystemException {
1567                    getPersistence().setDDMStructures(pk, ddmStructurePKs);
1568            }
1569    
1570            /**
1571            * Sets the d d m structures associated with the document library file entry type, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.
1572            *
1573            * @param pk the primary key of the document library file entry type
1574            * @param ddmStructures the d d m structures to be associated with the document library file entry type
1575            * @throws SystemException if a system exception occurred
1576            */
1577            public static void setDDMStructures(long pk,
1578                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1579                    throws com.liferay.portal.kernel.exception.SystemException {
1580                    getPersistence().setDDMStructures(pk, ddmStructures);
1581            }
1582    
1583            public static DLFileEntryTypePersistence getPersistence() {
1584                    if (_persistence == null) {
1585                            _persistence = (DLFileEntryTypePersistence)PortalBeanLocatorUtil.locate(DLFileEntryTypePersistence.class.getName());
1586    
1587                            ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class,
1588                                    "_persistence");
1589                    }
1590    
1591                    return _persistence;
1592            }
1593    
1594            /**
1595             * @deprecated As of 6.2.0
1596             */
1597            public void setPersistence(DLFileEntryTypePersistence persistence) {
1598            }
1599    
1600            private static DLFileEntryTypePersistence _persistence;
1601    }