001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.documentlibrary.model.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            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching document library file entry type
253            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first document library file entry type in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @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
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last document library file entry type in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching document library file entry type
285            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last document library file entry type in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @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
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the document library file entry types before and after the current document library file entry type in the ordered set where uuid = &#63;.
313            *
314            * @param fileEntryTypeId the primary key of the current document library file entry type
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next document library file entry type
318            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByUuid_PrevAndNext(
322                    long fileEntryTypeId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(fileEntryTypeId, uuid,
328                            orderByComparator);
329            }
330    
331            /**
332            * 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.
333            *
334            * @param uuid the uuid
335            * @param groupId the group ID
336            * @return the matching document library file entry type
337            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
338            * @throws SystemException if a system exception occurred
339            */
340            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByUUID_G(
341                    java.lang.String uuid, long groupId)
342                    throws com.liferay.portal.kernel.exception.SystemException,
343                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
344                    return getPersistence().findByUUID_G(uuid, groupId);
345            }
346    
347            /**
348            * 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.
349            *
350            * @param uuid the uuid
351            * @param groupId the group ID
352            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
353            * @throws SystemException if a system exception occurred
354            */
355            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G(
356                    java.lang.String uuid, long groupId)
357                    throws com.liferay.portal.kernel.exception.SystemException {
358                    return getPersistence().fetchByUUID_G(uuid, groupId);
359            }
360    
361            /**
362            * 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.
363            *
364            * @param uuid the uuid
365            * @param groupId the group ID
366            * @param retrieveFromCache whether to use the finder cache
367            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
368            * @throws SystemException if a system exception occurred
369            */
370            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByUUID_G(
371                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
374            }
375    
376            /**
377            * Returns all the document library file entry types where groupId = &#63;.
378            *
379            * @param groupId the group ID
380            * @return the matching document library file entry types
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
384                    long groupId)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByGroupId(groupId);
387            }
388    
389            /**
390            * Returns a range of all the document library file entry types where groupId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param groupId the group ID
397            * @param start the lower bound of the range of document library file entry types
398            * @param end the upper bound of the range of document library file entry types (not inclusive)
399            * @return the range of matching document library file entry types
400            * @throws SystemException if a system exception occurred
401            */
402            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
403                    long groupId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getPersistence().findByGroupId(groupId, start, end);
406            }
407    
408            /**
409            * Returns an ordered range of all the document library file entry types where groupId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param groupId the group ID
416            * @param start the lower bound of the range of document library file entry types
417            * @param end the upper bound of the range of document library file entry types (not inclusive)
418            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
419            * @return the ordered range of matching document library file entry types
420            * @throws SystemException if a system exception occurred
421            */
422            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
423                    long groupId, int start, int end,
424                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getPersistence()
427                                       .findByGroupId(groupId, start, end, orderByComparator);
428            }
429    
430            /**
431            * Returns the first document library file entry type in the ordered set where groupId = &#63;.
432            *
433            * @param groupId the group ID
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the first matching document library file entry type
436            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
437            * @throws SystemException if a system exception occurred
438            */
439            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_First(
440                    long groupId,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException,
443                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
444                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
445            }
446    
447            /**
448            * Returns the first document library file entry type in the ordered set where groupId = &#63;.
449            *
450            * @param groupId the group ID
451            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
452            * @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
453            * @throws SystemException if a system exception occurred
454            */
455            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_First(
456                    long groupId,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
460            }
461    
462            /**
463            * Returns the last document library file entry type in the ordered set where groupId = &#63;.
464            *
465            * @param groupId the group 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
468            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
469            * @throws SystemException if a system exception occurred
470            */
471            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_Last(
472                    long groupId,
473                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
474                    throws com.liferay.portal.kernel.exception.SystemException,
475                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
476                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
477            }
478    
479            /**
480            * Returns the last document library file entry type in the ordered set where groupId = &#63;.
481            *
482            * @param groupId the group ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @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
485            * @throws SystemException if a system exception occurred
486            */
487            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByGroupId_Last(
488                    long groupId,
489                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
490                    throws com.liferay.portal.kernel.exception.SystemException {
491                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
492            }
493    
494            /**
495            * Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = &#63;.
496            *
497            * @param fileEntryTypeId the primary key of the current document library file entry type
498            * @param groupId the group ID
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next document library file entry type
501            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByGroupId_PrevAndNext(
505                    long fileEntryTypeId, long groupId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
509                    return getPersistence()
510                                       .findByGroupId_PrevAndNext(fileEntryTypeId, groupId,
511                            orderByComparator);
512            }
513    
514            /**
515            * Returns 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            * @return the matching document library file entry types
523            * @throws SystemException if a system exception occurred
524            */
525            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
526                    long[] groupIds)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence().findByGroupId(groupIds);
529            }
530    
531            /**
532            * Returns a range of all the document library file entry types where groupId = any &#63;.
533            *
534            * <p>
535            * 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.
536            * </p>
537            *
538            * @param groupIds the group IDs
539            * @param start the lower bound of the range of document library file entry types
540            * @param end the upper bound of the range of document library file entry types (not inclusive)
541            * @return the range of matching document library file entry types
542            * @throws SystemException if a system exception occurred
543            */
544            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
545                    long[] groupIds, int start, int end)
546                    throws com.liferay.portal.kernel.exception.SystemException {
547                    return getPersistence().findByGroupId(groupIds, start, end);
548            }
549    
550            /**
551            * Returns an ordered range of all the document library file entry types where groupId = any &#63;.
552            *
553            * <p>
554            * 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.
555            * </p>
556            *
557            * @param groupIds the group IDs
558            * @param start the lower bound of the range of document library file entry types
559            * @param end the upper bound of the range of document library file entry types (not inclusive)
560            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
561            * @return the ordered range of matching document library file entry types
562            * @throws SystemException if a system exception occurred
563            */
564            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
565                    long[] groupIds, int start, int end,
566                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence()
569                                       .findByGroupId(groupIds, start, end, orderByComparator);
570            }
571    
572            /**
573            * Returns all the document library file entry types that the user has permission to view where groupId = &#63;.
574            *
575            * @param groupId the group ID
576            * @return the matching document library file entry types that the user has permission to view
577            * @throws SystemException if a system exception occurred
578            */
579            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
580                    long groupId)
581                    throws com.liferay.portal.kernel.exception.SystemException {
582                    return getPersistence().filterFindByGroupId(groupId);
583            }
584    
585            /**
586            * Returns a range of all the document library file entry types that the user has permission to view where groupId = &#63;.
587            *
588            * <p>
589            * 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.
590            * </p>
591            *
592            * @param groupId the group ID
593            * @param start the lower bound of the range of document library file entry types
594            * @param end the upper bound of the range of document library file entry types (not inclusive)
595            * @return the range of matching document library file entry types that the user has permission to view
596            * @throws SystemException if a system exception occurred
597            */
598            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
599                    long groupId, int start, int end)
600                    throws com.liferay.portal.kernel.exception.SystemException {
601                    return getPersistence().filterFindByGroupId(groupId, start, end);
602            }
603    
604            /**
605            * Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = &#63;.
606            *
607            * <p>
608            * 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.
609            * </p>
610            *
611            * @param groupId the group ID
612            * @param start the lower bound of the range of document library file entry types
613            * @param end the upper bound of the range of document library file entry types (not inclusive)
614            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
615            * @return the ordered range of matching document library file entry types that the user has permission to view
616            * @throws SystemException if a system exception occurred
617            */
618            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
619                    long groupId, int start, int end,
620                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
621                    throws com.liferay.portal.kernel.exception.SystemException {
622                    return getPersistence()
623                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
624            }
625    
626            /**
627            * 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;.
628            *
629            * @param fileEntryTypeId the primary key of the current document library file entry type
630            * @param groupId the group ID
631            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
632            * @return the previous, current, and next document library file entry type
633            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
634            * @throws SystemException if a system exception occurred
635            */
636            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType[] filterFindByGroupId_PrevAndNext(
637                    long fileEntryTypeId, long groupId,
638                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
639                    throws com.liferay.portal.kernel.exception.SystemException,
640                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
641                    return getPersistence()
642                                       .filterFindByGroupId_PrevAndNext(fileEntryTypeId, groupId,
643                            orderByComparator);
644            }
645    
646            /**
647            * Returns all the document library file entry types that the user has permission to view where groupId = any &#63;.
648            *
649            * @param groupIds the group IDs
650            * @return the matching document library file entry types that the user has permission to view
651            * @throws SystemException if a system exception occurred
652            */
653            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
654                    long[] groupIds)
655                    throws com.liferay.portal.kernel.exception.SystemException {
656                    return getPersistence().filterFindByGroupId(groupIds);
657            }
658    
659            /**
660            * Returns a range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
661            *
662            * <p>
663            * 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.
664            * </p>
665            *
666            * @param groupIds the group IDs
667            * @param start the lower bound of the range of document library file entry types
668            * @param end the upper bound of the range of document library file entry types (not inclusive)
669            * @return the range of matching document library file entry types that the user has permission to view
670            * @throws SystemException if a system exception occurred
671            */
672            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
673                    long[] groupIds, int start, int end)
674                    throws com.liferay.portal.kernel.exception.SystemException {
675                    return getPersistence().filterFindByGroupId(groupIds, start, end);
676            }
677    
678            /**
679            * Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
680            *
681            * <p>
682            * 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.
683            * </p>
684            *
685            * @param groupIds the group IDs
686            * @param start the lower bound of the range of document library file entry types
687            * @param end the upper bound of the range of document library file entry types (not inclusive)
688            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
689            * @return the ordered range of matching document library file entry types that the user has permission to view
690            * @throws SystemException if a system exception occurred
691            */
692            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
693                    long[] groupIds, int start, int end,
694                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
695                    throws com.liferay.portal.kernel.exception.SystemException {
696                    return getPersistence()
697                                       .filterFindByGroupId(groupIds, start, end, orderByComparator);
698            }
699    
700            /**
701            * 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.
702            *
703            * @param groupId the group ID
704            * @param name the name
705            * @return the matching document library file entry type
706            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
707            * @throws SystemException if a system exception occurred
708            */
709            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType findByG_N(
710                    long groupId, java.lang.String name)
711                    throws com.liferay.portal.kernel.exception.SystemException,
712                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
713                    return getPersistence().findByG_N(groupId, name);
714            }
715    
716            /**
717            * 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.
718            *
719            * @param groupId the group ID
720            * @param name the name
721            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
722            * @throws SystemException if a system exception occurred
723            */
724            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N(
725                    long groupId, java.lang.String name)
726                    throws com.liferay.portal.kernel.exception.SystemException {
727                    return getPersistence().fetchByG_N(groupId, name);
728            }
729    
730            /**
731            * 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.
732            *
733            * @param groupId the group ID
734            * @param name the name
735            * @param retrieveFromCache whether to use the finder cache
736            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
737            * @throws SystemException if a system exception occurred
738            */
739            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N(
740                    long groupId, java.lang.String name, boolean retrieveFromCache)
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    return getPersistence().fetchByG_N(groupId, name, retrieveFromCache);
743            }
744    
745            /**
746            * Returns all the document library file entry types.
747            *
748            * @return the 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                    throws com.liferay.portal.kernel.exception.SystemException {
753                    return getPersistence().findAll();
754            }
755    
756            /**
757            * Returns a range of all the document library file entry types.
758            *
759            * <p>
760            * 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.
761            * </p>
762            *
763            * @param start the lower bound of the range of document library file entry types
764            * @param end the upper bound of the range of document library file entry types (not inclusive)
765            * @return the range of document library file entry types
766            * @throws SystemException if a system exception occurred
767            */
768            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
769                    int start, int end)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence().findAll(start, end);
772            }
773    
774            /**
775            * Returns an ordered range of all the document library file entry types.
776            *
777            * <p>
778            * 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.
779            * </p>
780            *
781            * @param start the lower bound of the range of document library file entry types
782            * @param end the upper bound of the range of document library file entry types (not inclusive)
783            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
784            * @return the ordered range of document library file entry types
785            * @throws SystemException if a system exception occurred
786            */
787            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
788                    int start, int end,
789                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
790                    throws com.liferay.portal.kernel.exception.SystemException {
791                    return getPersistence().findAll(start, end, orderByComparator);
792            }
793    
794            /**
795            * Removes all the document library file entry types where uuid = &#63; from the database.
796            *
797            * @param uuid the uuid
798            * @throws SystemException if a system exception occurred
799            */
800            public static void removeByUuid(java.lang.String uuid)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    getPersistence().removeByUuid(uuid);
803            }
804    
805            /**
806            * Removes the document library file entry type where uuid = &#63; and groupId = &#63; from the database.
807            *
808            * @param uuid the uuid
809            * @param groupId the group ID
810            * @return the document library file entry type that was removed
811            * @throws SystemException if a system exception occurred
812            */
813            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByUUID_G(
814                    java.lang.String uuid, long groupId)
815                    throws com.liferay.portal.kernel.exception.SystemException,
816                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
817                    return getPersistence().removeByUUID_G(uuid, groupId);
818            }
819    
820            /**
821            * Removes all the document library file entry types where groupId = &#63; from the database.
822            *
823            * @param groupId the group ID
824            * @throws SystemException if a system exception occurred
825            */
826            public static void removeByGroupId(long groupId)
827                    throws com.liferay.portal.kernel.exception.SystemException {
828                    getPersistence().removeByGroupId(groupId);
829            }
830    
831            /**
832            * Removes the document library file entry type where groupId = &#63; and name = &#63; from the database.
833            *
834            * @param groupId the group ID
835            * @param name the name
836            * @return the document library file entry type that was removed
837            * @throws SystemException if a system exception occurred
838            */
839            public static com.liferay.portlet.documentlibrary.model.DLFileEntryType removeByG_N(
840                    long groupId, java.lang.String name)
841                    throws com.liferay.portal.kernel.exception.SystemException,
842                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException {
843                    return getPersistence().removeByG_N(groupId, name);
844            }
845    
846            /**
847            * Removes all the document library file entry types from the database.
848            *
849            * @throws SystemException if a system exception occurred
850            */
851            public static void removeAll()
852                    throws com.liferay.portal.kernel.exception.SystemException {
853                    getPersistence().removeAll();
854            }
855    
856            /**
857            * Returns the number of document library file entry types where uuid = &#63;.
858            *
859            * @param uuid the uuid
860            * @return the number of matching document library file entry types
861            * @throws SystemException if a system exception occurred
862            */
863            public static int countByUuid(java.lang.String uuid)
864                    throws com.liferay.portal.kernel.exception.SystemException {
865                    return getPersistence().countByUuid(uuid);
866            }
867    
868            /**
869            * Returns the number of document library file entry types where uuid = &#63; and groupId = &#63;.
870            *
871            * @param uuid the uuid
872            * @param groupId the group ID
873            * @return the number of matching document library file entry types
874            * @throws SystemException if a system exception occurred
875            */
876            public static int countByUUID_G(java.lang.String uuid, long groupId)
877                    throws com.liferay.portal.kernel.exception.SystemException {
878                    return getPersistence().countByUUID_G(uuid, groupId);
879            }
880    
881            /**
882            * Returns the number of document library file entry types where groupId = &#63;.
883            *
884            * @param groupId the group ID
885            * @return the number of matching document library file entry types
886            * @throws SystemException if a system exception occurred
887            */
888            public static int countByGroupId(long groupId)
889                    throws com.liferay.portal.kernel.exception.SystemException {
890                    return getPersistence().countByGroupId(groupId);
891            }
892    
893            /**
894            * Returns the number of document library file entry types where groupId = any &#63;.
895            *
896            * @param groupIds the group IDs
897            * @return the number of matching document library file entry types
898            * @throws SystemException if a system exception occurred
899            */
900            public static int countByGroupId(long[] groupIds)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return getPersistence().countByGroupId(groupIds);
903            }
904    
905            /**
906            * Returns the number of document library file entry types that the user has permission to view where groupId = &#63;.
907            *
908            * @param groupId the group ID
909            * @return the number of matching document library file entry types that the user has permission to view
910            * @throws SystemException if a system exception occurred
911            */
912            public static int filterCountByGroupId(long groupId)
913                    throws com.liferay.portal.kernel.exception.SystemException {
914                    return getPersistence().filterCountByGroupId(groupId);
915            }
916    
917            /**
918            * Returns the number of document library file entry types that the user has permission to view where groupId = any &#63;.
919            *
920            * @param groupIds the group IDs
921            * @return the number of matching document library file entry types that the user has permission to view
922            * @throws SystemException if a system exception occurred
923            */
924            public static int filterCountByGroupId(long[] groupIds)
925                    throws com.liferay.portal.kernel.exception.SystemException {
926                    return getPersistence().filterCountByGroupId(groupIds);
927            }
928    
929            /**
930            * Returns the number of document library file entry types where groupId = &#63; and name = &#63;.
931            *
932            * @param groupId the group ID
933            * @param name the name
934            * @return the number of matching document library file entry types
935            * @throws SystemException if a system exception occurred
936            */
937            public static int countByG_N(long groupId, java.lang.String name)
938                    throws com.liferay.portal.kernel.exception.SystemException {
939                    return getPersistence().countByG_N(groupId, name);
940            }
941    
942            /**
943            * Returns the number of document library file entry types.
944            *
945            * @return the number of document library file entry types
946            * @throws SystemException if a system exception occurred
947            */
948            public static int countAll()
949                    throws com.liferay.portal.kernel.exception.SystemException {
950                    return getPersistence().countAll();
951            }
952    
953            /**
954            * Returns all the document library folders associated with the document library file entry type.
955            *
956            * @param pk the primary key of the document library file entry type
957            * @return the document library folders associated with the document library file entry type
958            * @throws SystemException if a system exception occurred
959            */
960            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
961                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
962                    return getPersistence().getDLFolders(pk);
963            }
964    
965            /**
966            * Returns a range of all the document library folders associated with the document library file entry type.
967            *
968            * <p>
969            * 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.
970            * </p>
971            *
972            * @param pk the primary key of the document library file entry type
973            * @param start the lower bound of the range of document library file entry types
974            * @param end the upper bound of the range of document library file entry types (not inclusive)
975            * @return the range of document library folders associated with the document library file entry type
976            * @throws SystemException if a system exception occurred
977            */
978            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
979                    long pk, int start, int end)
980                    throws com.liferay.portal.kernel.exception.SystemException {
981                    return getPersistence().getDLFolders(pk, start, end);
982            }
983    
984            /**
985            * Returns an ordered range of all the document library folders associated with the document library file entry type.
986            *
987            * <p>
988            * 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.
989            * </p>
990            *
991            * @param pk the primary key of the document library file entry type
992            * @param start the lower bound of the range of document library file entry types
993            * @param end the upper bound of the range of document library file entry types (not inclusive)
994            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
995            * @return the ordered range of document library folders associated with the document library file entry type
996            * @throws SystemException if a system exception occurred
997            */
998            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
999                    long pk, int start, int end,
1000                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1001                    throws com.liferay.portal.kernel.exception.SystemException {
1002                    return getPersistence().getDLFolders(pk, start, end, orderByComparator);
1003            }
1004    
1005            /**
1006            * Returns the number of document library folders associated with the document library file entry type.
1007            *
1008            * @param pk the primary key of the document library file entry type
1009            * @return the number of document library folders associated with the document library file entry type
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public static int getDLFoldersSize(long pk)
1013                    throws com.liferay.portal.kernel.exception.SystemException {
1014                    return getPersistence().getDLFoldersSize(pk);
1015            }
1016    
1017            /**
1018            * Returns <code>true</code> if the document library folder is associated with the document library file entry type.
1019            *
1020            * @param pk the primary key of the document library file entry type
1021            * @param dlFolderPK the primary key of the document library folder
1022            * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise
1023            * @throws SystemException if a system exception occurred
1024            */
1025            public static boolean containsDLFolder(long pk, long dlFolderPK)
1026                    throws com.liferay.portal.kernel.exception.SystemException {
1027                    return getPersistence().containsDLFolder(pk, dlFolderPK);
1028            }
1029    
1030            /**
1031            * Returns <code>true</code> if the document library file entry type has any document library folders associated with it.
1032            *
1033            * @param pk the primary key of the document library file entry type to check for associations with document library folders
1034            * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise
1035            * @throws SystemException if a system exception occurred
1036            */
1037            public static boolean containsDLFolders(long pk)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    return getPersistence().containsDLFolders(pk);
1040            }
1041    
1042            /**
1043            * 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.
1044            *
1045            * @param pk the primary key of the document library file entry type
1046            * @param dlFolderPK the primary key of the document library folder
1047            * @throws SystemException if a system exception occurred
1048            */
1049            public static void addDLFolder(long pk, long dlFolderPK)
1050                    throws com.liferay.portal.kernel.exception.SystemException {
1051                    getPersistence().addDLFolder(pk, dlFolderPK);
1052            }
1053    
1054            /**
1055            * 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.
1056            *
1057            * @param pk the primary key of the document library file entry type
1058            * @param dlFolder the document library folder
1059            * @throws SystemException if a system exception occurred
1060            */
1061            public static void addDLFolder(long pk,
1062                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
1063                    throws com.liferay.portal.kernel.exception.SystemException {
1064                    getPersistence().addDLFolder(pk, dlFolder);
1065            }
1066    
1067            /**
1068            * 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.
1069            *
1070            * @param pk the primary key of the document library file entry type
1071            * @param dlFolderPKs the primary keys of the document library folders
1072            * @throws SystemException if a system exception occurred
1073            */
1074            public static void addDLFolders(long pk, long[] dlFolderPKs)
1075                    throws com.liferay.portal.kernel.exception.SystemException {
1076                    getPersistence().addDLFolders(pk, dlFolderPKs);
1077            }
1078    
1079            /**
1080            * 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.
1081            *
1082            * @param pk the primary key of the document library file entry type
1083            * @param dlFolders the document library folders
1084            * @throws SystemException if a system exception occurred
1085            */
1086            public static void addDLFolders(long pk,
1087                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1088                    throws com.liferay.portal.kernel.exception.SystemException {
1089                    getPersistence().addDLFolders(pk, dlFolders);
1090            }
1091    
1092            /**
1093            * 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.
1094            *
1095            * @param pk the primary key of the document library file entry type to clear the associated document library folders from
1096            * @throws SystemException if a system exception occurred
1097            */
1098            public static void clearDLFolders(long pk)
1099                    throws com.liferay.portal.kernel.exception.SystemException {
1100                    getPersistence().clearDLFolders(pk);
1101            }
1102    
1103            /**
1104            * 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.
1105            *
1106            * @param pk the primary key of the document library file entry type
1107            * @param dlFolderPK the primary key of the document library folder
1108            * @throws SystemException if a system exception occurred
1109            */
1110            public static void removeDLFolder(long pk, long dlFolderPK)
1111                    throws com.liferay.portal.kernel.exception.SystemException {
1112                    getPersistence().removeDLFolder(pk, dlFolderPK);
1113            }
1114    
1115            /**
1116            * 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.
1117            *
1118            * @param pk the primary key of the document library file entry type
1119            * @param dlFolder the document library folder
1120            * @throws SystemException if a system exception occurred
1121            */
1122            public static void removeDLFolder(long pk,
1123                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
1124                    throws com.liferay.portal.kernel.exception.SystemException {
1125                    getPersistence().removeDLFolder(pk, dlFolder);
1126            }
1127    
1128            /**
1129            * 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.
1130            *
1131            * @param pk the primary key of the document library file entry type
1132            * @param dlFolderPKs the primary keys of the document library folders
1133            * @throws SystemException if a system exception occurred
1134            */
1135            public static void removeDLFolders(long pk, long[] dlFolderPKs)
1136                    throws com.liferay.portal.kernel.exception.SystemException {
1137                    getPersistence().removeDLFolders(pk, dlFolderPKs);
1138            }
1139    
1140            /**
1141            * 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.
1142            *
1143            * @param pk the primary key of the document library file entry type
1144            * @param dlFolders the document library folders
1145            * @throws SystemException if a system exception occurred
1146            */
1147            public static void removeDLFolders(long pk,
1148                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1149                    throws com.liferay.portal.kernel.exception.SystemException {
1150                    getPersistence().removeDLFolders(pk, dlFolders);
1151            }
1152    
1153            /**
1154            * 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.
1155            *
1156            * @param pk the primary key of the document library file entry type
1157            * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public static void setDLFolders(long pk, long[] dlFolderPKs)
1161                    throws com.liferay.portal.kernel.exception.SystemException {
1162                    getPersistence().setDLFolders(pk, dlFolderPKs);
1163            }
1164    
1165            /**
1166            * 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.
1167            *
1168            * @param pk the primary key of the document library file entry type
1169            * @param dlFolders the document library folders to be associated with the document library file entry type
1170            * @throws SystemException if a system exception occurred
1171            */
1172            public static void setDLFolders(long pk,
1173                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
1174                    throws com.liferay.portal.kernel.exception.SystemException {
1175                    getPersistence().setDLFolders(pk, dlFolders);
1176            }
1177    
1178            /**
1179            * Returns all the d d m structures associated with the document library file entry type.
1180            *
1181            * @param pk the primary key of the document library file entry type
1182            * @return the d d m structures associated with the document library file entry type
1183            * @throws SystemException if a system exception occurred
1184            */
1185            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1186                    long pk) throws com.liferay.portal.kernel.exception.SystemException {
1187                    return getPersistence().getDDMStructures(pk);
1188            }
1189    
1190            /**
1191            * Returns a range of all the d d m structures associated with the document library file entry type.
1192            *
1193            * <p>
1194            * 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.
1195            * </p>
1196            *
1197            * @param pk the primary key of the document library file entry type
1198            * @param start the lower bound of the range of document library file entry types
1199            * @param end the upper bound of the range of document library file entry types (not inclusive)
1200            * @return the range of d d m structures associated with the document library file entry type
1201            * @throws SystemException if a system exception occurred
1202            */
1203            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1204                    long pk, int start, int end)
1205                    throws com.liferay.portal.kernel.exception.SystemException {
1206                    return getPersistence().getDDMStructures(pk, start, end);
1207            }
1208    
1209            /**
1210            * Returns an ordered range of all the d d m structures associated with the document library file entry type.
1211            *
1212            * <p>
1213            * 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.
1214            * </p>
1215            *
1216            * @param pk the primary key of the document library file entry type
1217            * @param start the lower bound of the range of document library file entry types
1218            * @param end the upper bound of the range of document library file entry types (not inclusive)
1219            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1220            * @return the ordered range of d d m structures associated with the document library file entry type
1221            * @throws SystemException if a system exception occurred
1222            */
1223            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
1224                    long pk, int start, int end,
1225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1226                    throws com.liferay.portal.kernel.exception.SystemException {
1227                    return getPersistence()
1228                                       .getDDMStructures(pk, start, end, orderByComparator);
1229            }
1230    
1231            /**
1232            * Returns the number of d d m structures associated with the document library file entry type.
1233            *
1234            * @param pk the primary key of the document library file entry type
1235            * @return the number of d d m structures associated with the document library file entry type
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public static int getDDMStructuresSize(long pk)
1239                    throws com.liferay.portal.kernel.exception.SystemException {
1240                    return getPersistence().getDDMStructuresSize(pk);
1241            }
1242    
1243            /**
1244            * Returns <code>true</code> if the d d m structure is associated with the document library file entry type.
1245            *
1246            * @param pk the primary key of the document library file entry type
1247            * @param ddmStructurePK the primary key of the d d m structure
1248            * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise
1249            * @throws SystemException if a system exception occurred
1250            */
1251            public static boolean containsDDMStructure(long pk, long ddmStructurePK)
1252                    throws com.liferay.portal.kernel.exception.SystemException {
1253                    return getPersistence().containsDDMStructure(pk, ddmStructurePK);
1254            }
1255    
1256            /**
1257            * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it.
1258            *
1259            * @param pk the primary key of the document library file entry type to check for associations with d d m structures
1260            * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise
1261            * @throws SystemException if a system exception occurred
1262            */
1263            public static boolean containsDDMStructures(long pk)
1264                    throws com.liferay.portal.kernel.exception.SystemException {
1265                    return getPersistence().containsDDMStructures(pk);
1266            }
1267    
1268            /**
1269            * 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.
1270            *
1271            * @param pk the primary key of the document library file entry type
1272            * @param ddmStructurePK the primary key of the d d m structure
1273            * @throws SystemException if a system exception occurred
1274            */
1275            public static void addDDMStructure(long pk, long ddmStructurePK)
1276                    throws com.liferay.portal.kernel.exception.SystemException {
1277                    getPersistence().addDDMStructure(pk, ddmStructurePK);
1278            }
1279    
1280            /**
1281            * 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.
1282            *
1283            * @param pk the primary key of the document library file entry type
1284            * @param ddmStructure the d d m structure
1285            * @throws SystemException if a system exception occurred
1286            */
1287            public static void addDDMStructure(long pk,
1288                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
1289                    throws com.liferay.portal.kernel.exception.SystemException {
1290                    getPersistence().addDDMStructure(pk, ddmStructure);
1291            }
1292    
1293            /**
1294            * 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.
1295            *
1296            * @param pk the primary key of the document library file entry type
1297            * @param ddmStructurePKs the primary keys of the d d m structures
1298            * @throws SystemException if a system exception occurred
1299            */
1300            public static void addDDMStructures(long pk, long[] ddmStructurePKs)
1301                    throws com.liferay.portal.kernel.exception.SystemException {
1302                    getPersistence().addDDMStructures(pk, ddmStructurePKs);
1303            }
1304    
1305            /**
1306            * 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.
1307            *
1308            * @param pk the primary key of the document library file entry type
1309            * @param ddmStructures the d d m structures
1310            * @throws SystemException if a system exception occurred
1311            */
1312            public static void addDDMStructures(long pk,
1313                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1314                    throws com.liferay.portal.kernel.exception.SystemException {
1315                    getPersistence().addDDMStructures(pk, ddmStructures);
1316            }
1317    
1318            /**
1319            * 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.
1320            *
1321            * @param pk the primary key of the document library file entry type to clear the associated d d m structures from
1322            * @throws SystemException if a system exception occurred
1323            */
1324            public static void clearDDMStructures(long pk)
1325                    throws com.liferay.portal.kernel.exception.SystemException {
1326                    getPersistence().clearDDMStructures(pk);
1327            }
1328    
1329            /**
1330            * 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.
1331            *
1332            * @param pk the primary key of the document library file entry type
1333            * @param ddmStructurePK the primary key of the d d m structure
1334            * @throws SystemException if a system exception occurred
1335            */
1336            public static void removeDDMStructure(long pk, long ddmStructurePK)
1337                    throws com.liferay.portal.kernel.exception.SystemException {
1338                    getPersistence().removeDDMStructure(pk, ddmStructurePK);
1339            }
1340    
1341            /**
1342            * 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.
1343            *
1344            * @param pk the primary key of the document library file entry type
1345            * @param ddmStructure the d d m structure
1346            * @throws SystemException if a system exception occurred
1347            */
1348            public static void removeDDMStructure(long pk,
1349                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
1350                    throws com.liferay.portal.kernel.exception.SystemException {
1351                    getPersistence().removeDDMStructure(pk, ddmStructure);
1352            }
1353    
1354            /**
1355            * 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.
1356            *
1357            * @param pk the primary key of the document library file entry type
1358            * @param ddmStructurePKs the primary keys of the d d m structures
1359            * @throws SystemException if a system exception occurred
1360            */
1361            public static void removeDDMStructures(long pk, long[] ddmStructurePKs)
1362                    throws com.liferay.portal.kernel.exception.SystemException {
1363                    getPersistence().removeDDMStructures(pk, ddmStructurePKs);
1364            }
1365    
1366            /**
1367            * 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.
1368            *
1369            * @param pk the primary key of the document library file entry type
1370            * @param ddmStructures the d d m structures
1371            * @throws SystemException if a system exception occurred
1372            */
1373            public static void removeDDMStructures(long pk,
1374                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1375                    throws com.liferay.portal.kernel.exception.SystemException {
1376                    getPersistence().removeDDMStructures(pk, ddmStructures);
1377            }
1378    
1379            /**
1380            * 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.
1381            *
1382            * @param pk the primary key of the document library file entry type
1383            * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type
1384            * @throws SystemException if a system exception occurred
1385            */
1386            public static void setDDMStructures(long pk, long[] ddmStructurePKs)
1387                    throws com.liferay.portal.kernel.exception.SystemException {
1388                    getPersistence().setDDMStructures(pk, ddmStructurePKs);
1389            }
1390    
1391            /**
1392            * 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.
1393            *
1394            * @param pk the primary key of the document library file entry type
1395            * @param ddmStructures the d d m structures to be associated with the document library file entry type
1396            * @throws SystemException if a system exception occurred
1397            */
1398            public static void setDDMStructures(long pk,
1399                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
1400                    throws com.liferay.portal.kernel.exception.SystemException {
1401                    getPersistence().setDDMStructures(pk, ddmStructures);
1402            }
1403    
1404            public static DLFileEntryTypePersistence getPersistence() {
1405                    if (_persistence == null) {
1406                            _persistence = (DLFileEntryTypePersistence)PortalBeanLocatorUtil.locate(DLFileEntryTypePersistence.class.getName());
1407    
1408                            ReferenceRegistry.registerReference(DLFileEntryTypeUtil.class,
1409                                    "_persistence");
1410                    }
1411    
1412                    return _persistence;
1413            }
1414    
1415            /**
1416             * @deprecated
1417             */
1418            public void setPersistence(DLFileEntryTypePersistence persistence) {
1419            }
1420    
1421            private static DLFileEntryTypePersistence _persistence;
1422    }