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