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