001    /**
002     * Copyright (c) 2000-2011 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.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
021    
022    /**
023     * The persistence interface for the document library file entry type service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see DLFileEntryTypePersistenceImpl
031     * @see DLFileEntryTypeUtil
032     * @generated
033     */
034    public interface DLFileEntryTypePersistence extends BasePersistence<DLFileEntryType> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link DLFileEntryTypeUtil} to access the document library file entry type persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the document library file entry type in the entity cache if it is enabled.
043            *
044            * @param dlFileEntryType the document library file entry type
045            */
046            public void cacheResult(
047                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
048    
049            /**
050            * Caches the document library file entry types in the entity cache if it is enabled.
051            *
052            * @param dlFileEntryTypes the document library file entry types
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> dlFileEntryTypes);
056    
057            /**
058            * Creates a new document library file entry type with the primary key. Does not add the document library file entry type to the database.
059            *
060            * @param fileEntryTypeId the primary key for the new document library file entry type
061            * @return the new document library file entry type
062            */
063            public com.liferay.portlet.documentlibrary.model.DLFileEntryType create(
064                    long fileEntryTypeId);
065    
066            /**
067            * Removes the document library file entry type with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param fileEntryTypeId the primary key of the document library file entry type
070            * @return the document library file entry type that was removed
071            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.documentlibrary.model.DLFileEntryType remove(
075                    long fileEntryTypeId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
078    
079            public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateImpl(
080                    com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * 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.
086            *
087            * @param fileEntryTypeId the primary key of the document library file entry type
088            * @return the document library file entry type
089            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.documentlibrary.model.DLFileEntryType findByPrimaryKey(
093                    long fileEntryTypeId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
096    
097            /**
098            * Returns the document library file entry type with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param fileEntryTypeId the primary key of the document library file entry type
101            * @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
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByPrimaryKey(
105                    long fileEntryTypeId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Returns all the document library file entry types where groupId = &#63;.
110            *
111            * @param groupId the group ID
112            * @return the matching document library file entry types
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
116                    long groupId)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Returns a range of all the document library file entry types where groupId = &#63;.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param groupId the group ID
127            * @param start the lower bound of the range of document library file entry types
128            * @param end the upper bound of the range of document library file entry types (not inclusive)
129            * @return the range of matching document library file entry types
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
133                    long groupId, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            /**
137            * Returns an ordered range of all the document library file entry types where groupId = &#63;.
138            *
139            * <p>
140            * 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.
141            * </p>
142            *
143            * @param groupId the group ID
144            * @param start the lower bound of the range of document library file entry types
145            * @param end the upper bound of the range of document library file entry types (not inclusive)
146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
147            * @return the ordered range of matching document library file entry types
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
151                    long groupId, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            /**
156            * Returns the first document library file entry type in the ordered set where groupId = &#63;.
157            *
158            * <p>
159            * 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.
160            * </p>
161            *
162            * @param groupId the group ID
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching document library file entry type
165            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_First(
169                    long groupId,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
173    
174            /**
175            * Returns the last document library file entry type in the ordered set where groupId = &#63;.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param groupId the group ID
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last matching document library file entry type
184            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.documentlibrary.model.DLFileEntryType findByGroupId_Last(
188                    long groupId,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
192    
193            /**
194            * Returns the document library file entry types before and after the current document library file entry type in the ordered set where groupId = &#63;.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param fileEntryTypeId the primary key of the current document library file entry type
201            * @param groupId the group ID
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the previous, current, and next document library file entry type
204            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a document library file entry type with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.documentlibrary.model.DLFileEntryType[] findByGroupId_PrevAndNext(
208                    long fileEntryTypeId, long groupId,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
212    
213            /**
214            * Returns all the document library file entry types where groupId = any &#63;.
215            *
216            * <p>
217            * 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.
218            * </p>
219            *
220            * @param groupIds the group IDs
221            * @return the matching document library file entry types
222            * @throws SystemException if a system exception occurred
223            */
224            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
225                    long[] groupIds)
226                    throws com.liferay.portal.kernel.exception.SystemException;
227    
228            /**
229            * Returns a range of all the document library file entry types where groupId = any &#63;.
230            *
231            * <p>
232            * 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.
233            * </p>
234            *
235            * @param groupIds the group IDs
236            * @param start the lower bound of the range of document library file entry types
237            * @param end the upper bound of the range of document library file entry types (not inclusive)
238            * @return the range of matching document library file entry types
239            * @throws SystemException if a system exception occurred
240            */
241            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
242                    long[] groupIds, int start, int end)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Returns an ordered range of all the document library file entry types where groupId = any &#63;.
247            *
248            * <p>
249            * 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.
250            * </p>
251            *
252            * @param groupIds the group IDs
253            * @param start the lower bound of the range of document library file entry types
254            * @param end the upper bound of the range of document library file entry types (not inclusive)
255            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
256            * @return the ordered range of matching document library file entry types
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findByGroupId(
260                    long[] groupIds, int start, int end,
261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns all the document library file entry types that the user has permission to view where groupId = &#63;.
266            *
267            * @param groupId the group ID
268            * @return the matching document library file entry types that the user has permission to view
269            * @throws SystemException if a system exception occurred
270            */
271            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
272                    long groupId)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    
275            /**
276            * Returns a range of all the document library file entry types that the user has permission to view where groupId = &#63;.
277            *
278            * <p>
279            * 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.
280            * </p>
281            *
282            * @param groupId the group ID
283            * @param start the lower bound of the range of document library file entry types
284            * @param end the upper bound of the range of document library file entry types (not inclusive)
285            * @return the range of matching document library file entry types that the user has permission to view
286            * @throws SystemException if a system exception occurred
287            */
288            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
289                    long groupId, int start, int end)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Returns an ordered range of all the document library file entry types that the user has permissions to view where groupId = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param groupId the group ID
300            * @param start the lower bound of the range of document library file entry types
301            * @param end the upper bound of the range of document library file entry types (not inclusive)
302            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
303            * @return the ordered range of matching document library file entry types that the user has permission to view
304            * @throws SystemException if a system exception occurred
305            */
306            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
307                    long groupId, int start, int end,
308                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309                    throws com.liferay.portal.kernel.exception.SystemException;
310    
311            /**
312            * 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;.
313            *
314            * @param fileEntryTypeId the primary key of the current document library file entry type
315            * @param groupId the group ID
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 com.liferay.portlet.documentlibrary.model.DLFileEntryType[] filterFindByGroupId_PrevAndNext(
322                    long fileEntryTypeId, long groupId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
326    
327            /**
328            * Returns all the document library file entry types that the user has permission to view where groupId = any &#63;.
329            *
330            * @param groupIds the group IDs
331            * @return the matching document library file entry types that the user has permission to view
332            * @throws SystemException if a system exception occurred
333            */
334            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
335                    long[] groupIds)
336                    throws com.liferay.portal.kernel.exception.SystemException;
337    
338            /**
339            * Returns a range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
340            *
341            * <p>
342            * 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.
343            * </p>
344            *
345            * @param groupIds the group IDs
346            * @param start the lower bound of the range of document library file entry types
347            * @param end the upper bound of the range of document library file entry types (not inclusive)
348            * @return the range of matching document library file entry types that the user has permission to view
349            * @throws SystemException if a system exception occurred
350            */
351            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
352                    long[] groupIds, int start, int end)
353                    throws com.liferay.portal.kernel.exception.SystemException;
354    
355            /**
356            * Returns an ordered range of all the document library file entry types that the user has permission to view where groupId = any &#63;.
357            *
358            * <p>
359            * 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.
360            * </p>
361            *
362            * @param groupIds the group IDs
363            * @param start the lower bound of the range of document library file entry types
364            * @param end the upper bound of the range of document library file entry types (not inclusive)
365            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
366            * @return the ordered range of matching document library file entry types that the user has permission to view
367            * @throws SystemException if a system exception occurred
368            */
369            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> filterFindByGroupId(
370                    long[] groupIds, int start, int end,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * 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.
376            *
377            * @param groupId the group ID
378            * @param name the name
379            * @return the matching document library file entry type
380            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException if a matching document library file entry type could not be found
381            * @throws SystemException if a system exception occurred
382            */
383            public com.liferay.portlet.documentlibrary.model.DLFileEntryType findByG_N(
384                    long groupId, java.lang.String name)
385                    throws com.liferay.portal.kernel.exception.SystemException,
386                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
387    
388            /**
389            * 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.
390            *
391            * @param groupId the group ID
392            * @param name the name
393            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
394            * @throws SystemException if a system exception occurred
395            */
396            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N(
397                    long groupId, java.lang.String name)
398                    throws com.liferay.portal.kernel.exception.SystemException;
399    
400            /**
401            * 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.
402            *
403            * @param groupId the group ID
404            * @param name the name
405            * @param retrieveFromCache whether to use the finder cache
406            * @return the matching document library file entry type, or <code>null</code> if a matching document library file entry type could not be found
407            * @throws SystemException if a system exception occurred
408            */
409            public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchByG_N(
410                    long groupId, java.lang.String name, boolean retrieveFromCache)
411                    throws com.liferay.portal.kernel.exception.SystemException;
412    
413            /**
414            * Returns all the document library file entry types.
415            *
416            * @return the document library file entry types
417            * @throws SystemException if a system exception occurred
418            */
419            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll()
420                    throws com.liferay.portal.kernel.exception.SystemException;
421    
422            /**
423            * Returns a range of all the document library file entry types.
424            *
425            * <p>
426            * 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.
427            * </p>
428            *
429            * @param start the lower bound of the range of document library file entry types
430            * @param end the upper bound of the range of document library file entry types (not inclusive)
431            * @return the range of document library file entry types
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
435                    int start, int end)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns an ordered range of all the document library file entry types.
440            *
441            * <p>
442            * 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.
443            * </p>
444            *
445            * @param start the lower bound of the range of document library file entry types
446            * @param end the upper bound of the range of document library file entry types (not inclusive)
447            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
448            * @return the ordered range of document library file entry types
449            * @throws SystemException if a system exception occurred
450            */
451            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> findAll(
452                    int start, int end,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException;
455    
456            /**
457            * Removes all the document library file entry types where groupId = &#63; from the database.
458            *
459            * @param groupId the group ID
460            * @throws SystemException if a system exception occurred
461            */
462            public void removeByGroupId(long groupId)
463                    throws com.liferay.portal.kernel.exception.SystemException;
464    
465            /**
466            * Removes the document library file entry type where groupId = &#63; and name = &#63; from the database.
467            *
468            * @param groupId the group ID
469            * @param name the name
470            * @throws SystemException if a system exception occurred
471            */
472            public void removeByG_N(long groupId, java.lang.String name)
473                    throws com.liferay.portal.kernel.exception.SystemException,
474                            com.liferay.portlet.documentlibrary.NoSuchFileEntryTypeException;
475    
476            /**
477            * Removes all the document library file entry types from the database.
478            *
479            * @throws SystemException if a system exception occurred
480            */
481            public void removeAll()
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Returns the number of document library file entry types where groupId = &#63;.
486            *
487            * @param groupId the group ID
488            * @return the number of matching document library file entry types
489            * @throws SystemException if a system exception occurred
490            */
491            public int countByGroupId(long groupId)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the number of document library file entry types where groupId = any &#63;.
496            *
497            * @param groupIds the group IDs
498            * @return the number of matching document library file entry types
499            * @throws SystemException if a system exception occurred
500            */
501            public int countByGroupId(long[] groupIds)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns the number of document library file entry types that the user has permission to view where groupId = &#63;.
506            *
507            * @param groupId the group ID
508            * @return the number of matching document library file entry types that the user has permission to view
509            * @throws SystemException if a system exception occurred
510            */
511            public int filterCountByGroupId(long groupId)
512                    throws com.liferay.portal.kernel.exception.SystemException;
513    
514            /**
515            * Returns the number of document library file entry types that the user has permission to view where groupId = any &#63;.
516            *
517            * @param groupIds the group IDs
518            * @return the number of matching document library file entry types that the user has permission to view
519            * @throws SystemException if a system exception occurred
520            */
521            public int filterCountByGroupId(long[] groupIds)
522                    throws com.liferay.portal.kernel.exception.SystemException;
523    
524            /**
525            * Returns the number of document library file entry types where groupId = &#63; and name = &#63;.
526            *
527            * @param groupId the group ID
528            * @param name the name
529            * @return the number of matching document library file entry types
530            * @throws SystemException if a system exception occurred
531            */
532            public int countByG_N(long groupId, java.lang.String name)
533                    throws com.liferay.portal.kernel.exception.SystemException;
534    
535            /**
536            * Returns the number of document library file entry types.
537            *
538            * @return the number of document library file entry types
539            * @throws SystemException if a system exception occurred
540            */
541            public int countAll()
542                    throws com.liferay.portal.kernel.exception.SystemException;
543    
544            /**
545            * Returns all the document library folders associated with the document library file entry type.
546            *
547            * @param pk the primary key of the document library file entry type
548            * @return the document library folders associated with the document library file entry type
549            * @throws SystemException if a system exception occurred
550            */
551            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
552                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns a range of all the document library folders associated with the document library file entry type.
556            *
557            * <p>
558            * 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.
559            * </p>
560            *
561            * @param pk the primary key of the document library file entry type
562            * @param start the lower bound of the range of document library file entry types
563            * @param end the upper bound of the range of document library file entry types (not inclusive)
564            * @return the range of document library folders associated with the document library file entry type
565            * @throws SystemException if a system exception occurred
566            */
567            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
568                    long pk, int start, int end)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns an ordered range of all the document library folders associated with the document library file entry type.
573            *
574            * <p>
575            * 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.
576            * </p>
577            *
578            * @param pk the primary key of the document library file entry type
579            * @param start the lower bound of the range of document library file entry types
580            * @param end the upper bound of the range of document library file entry types (not inclusive)
581            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
582            * @return the ordered range of document library folders associated with the document library file entry type
583            * @throws SystemException if a system exception occurred
584            */
585            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
586                    long pk, int start, int end,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException;
589    
590            /**
591            * Returns the number of document library folders associated with the document library file entry type.
592            *
593            * @param pk the primary key of the document library file entry type
594            * @return the number of document library folders associated with the document library file entry type
595            * @throws SystemException if a system exception occurred
596            */
597            public int getDLFoldersSize(long pk)
598                    throws com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Returns <code>true</code> if the document library folder is associated with the document library file entry type.
602            *
603            * @param pk the primary key of the document library file entry type
604            * @param dlFolderPK the primary key of the document library folder
605            * @return <code>true</code> if the document library folder is associated with the document library file entry type; <code>false</code> otherwise
606            * @throws SystemException if a system exception occurred
607            */
608            public boolean containsDLFolder(long pk, long dlFolderPK)
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            /**
612            * Returns <code>true</code> if the document library file entry type has any document library folders associated with it.
613            *
614            * @param pk the primary key of the document library file entry type to check for associations with document library folders
615            * @return <code>true</code> if the document library file entry type has any document library folders associated with it; <code>false</code> otherwise
616            * @throws SystemException if a system exception occurred
617            */
618            public boolean containsDLFolders(long pk)
619                    throws com.liferay.portal.kernel.exception.SystemException;
620    
621            /**
622            * 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.
623            *
624            * @param pk the primary key of the document library file entry type
625            * @param dlFolderPK the primary key of the document library folder
626            * @throws SystemException if a system exception occurred
627            */
628            public void addDLFolder(long pk, long dlFolderPK)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * 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.
633            *
634            * @param pk the primary key of the document library file entry type
635            * @param dlFolder the document library folder
636            * @throws SystemException if a system exception occurred
637            */
638            public void addDLFolder(long pk,
639                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
640                    throws com.liferay.portal.kernel.exception.SystemException;
641    
642            /**
643            * 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.
644            *
645            * @param pk the primary key of the document library file entry type
646            * @param dlFolderPKs the primary keys of the document library folders
647            * @throws SystemException if a system exception occurred
648            */
649            public void addDLFolders(long pk, long[] dlFolderPKs)
650                    throws com.liferay.portal.kernel.exception.SystemException;
651    
652            /**
653            * 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.
654            *
655            * @param pk the primary key of the document library file entry type
656            * @param dlFolders the document library folders
657            * @throws SystemException if a system exception occurred
658            */
659            public void addDLFolders(long pk,
660                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    
663            /**
664            * 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.
665            *
666            * @param pk the primary key of the document library file entry type to clear the associated document library folders from
667            * @throws SystemException if a system exception occurred
668            */
669            public void clearDLFolders(long pk)
670                    throws com.liferay.portal.kernel.exception.SystemException;
671    
672            /**
673            * 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.
674            *
675            * @param pk the primary key of the document library file entry type
676            * @param dlFolderPK the primary key of the document library folder
677            * @throws SystemException if a system exception occurred
678            */
679            public void removeDLFolder(long pk, long dlFolderPK)
680                    throws com.liferay.portal.kernel.exception.SystemException;
681    
682            /**
683            * 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.
684            *
685            * @param pk the primary key of the document library file entry type
686            * @param dlFolder the document library folder
687            * @throws SystemException if a system exception occurred
688            */
689            public void removeDLFolder(long pk,
690                    com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
691                    throws com.liferay.portal.kernel.exception.SystemException;
692    
693            /**
694            * 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.
695            *
696            * @param pk the primary key of the document library file entry type
697            * @param dlFolderPKs the primary keys of the document library folders
698            * @throws SystemException if a system exception occurred
699            */
700            public void removeDLFolders(long pk, long[] dlFolderPKs)
701                    throws com.liferay.portal.kernel.exception.SystemException;
702    
703            /**
704            * 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.
705            *
706            * @param pk the primary key of the document library file entry type
707            * @param dlFolders the document library folders
708            * @throws SystemException if a system exception occurred
709            */
710            public void removeDLFolders(long pk,
711                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
712                    throws com.liferay.portal.kernel.exception.SystemException;
713    
714            /**
715            * 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.
716            *
717            * @param pk the primary key of the document library file entry type
718            * @param dlFolderPKs the primary keys of the document library folders to be associated with the document library file entry type
719            * @throws SystemException if a system exception occurred
720            */
721            public void setDLFolders(long pk, long[] dlFolderPKs)
722                    throws com.liferay.portal.kernel.exception.SystemException;
723    
724            /**
725            * 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.
726            *
727            * @param pk the primary key of the document library file entry type
728            * @param dlFolders the document library folders to be associated with the document library file entry type
729            * @throws SystemException if a system exception occurred
730            */
731            public void setDLFolders(long pk,
732                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> dlFolders)
733                    throws com.liferay.portal.kernel.exception.SystemException;
734    
735            /**
736            * Returns all the d d m structures associated with the document library file entry type.
737            *
738            * @param pk the primary key of the document library file entry type
739            * @return the d d m structures associated with the document library file entry type
740            * @throws SystemException if a system exception occurred
741            */
742            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
743                    long pk) throws com.liferay.portal.kernel.exception.SystemException;
744    
745            /**
746            * Returns a range of all the d d m structures associated with the document library file entry type.
747            *
748            * <p>
749            * 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.
750            * </p>
751            *
752            * @param pk the primary key of the document library file entry type
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            * @return the range of d d m structures associated with the document library file entry type
756            * @throws SystemException if a system exception occurred
757            */
758            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
759                    long pk, int start, int end)
760                    throws com.liferay.portal.kernel.exception.SystemException;
761    
762            /**
763            * Returns an ordered range of all the d d m structures associated with the document library file entry type.
764            *
765            * <p>
766            * 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.
767            * </p>
768            *
769            * @param pk the primary key of the document library file entry type
770            * @param start the lower bound of the range of document library file entry types
771            * @param end the upper bound of the range of document library file entry types (not inclusive)
772            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
773            * @return the ordered range of d d m structures associated with the document library file entry type
774            * @throws SystemException if a system exception occurred
775            */
776            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
777                    long pk, int start, int end,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException;
780    
781            /**
782            * Returns the number of d d m structures associated with the document library file entry type.
783            *
784            * @param pk the primary key of the document library file entry type
785            * @return the number of d d m structures associated with the document library file entry type
786            * @throws SystemException if a system exception occurred
787            */
788            public int getDDMStructuresSize(long pk)
789                    throws com.liferay.portal.kernel.exception.SystemException;
790    
791            /**
792            * Returns <code>true</code> if the d d m structure is associated with the document library file entry type.
793            *
794            * @param pk the primary key of the document library file entry type
795            * @param ddmStructurePK the primary key of the d d m structure
796            * @return <code>true</code> if the d d m structure is associated with the document library file entry type; <code>false</code> otherwise
797            * @throws SystemException if a system exception occurred
798            */
799            public boolean containsDDMStructure(long pk, long ddmStructurePK)
800                    throws com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Returns <code>true</code> if the document library file entry type has any d d m structures associated with it.
804            *
805            * @param pk the primary key of the document library file entry type to check for associations with d d m structures
806            * @return <code>true</code> if the document library file entry type has any d d m structures associated with it; <code>false</code> otherwise
807            * @throws SystemException if a system exception occurred
808            */
809            public boolean containsDDMStructures(long pk)
810                    throws com.liferay.portal.kernel.exception.SystemException;
811    
812            /**
813            * 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.
814            *
815            * @param pk the primary key of the document library file entry type
816            * @param ddmStructurePK the primary key of the d d m structure
817            * @throws SystemException if a system exception occurred
818            */
819            public void addDDMStructure(long pk, long ddmStructurePK)
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    
822            /**
823            * 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.
824            *
825            * @param pk the primary key of the document library file entry type
826            * @param ddmStructure the d d m structure
827            * @throws SystemException if a system exception occurred
828            */
829            public void addDDMStructure(long pk,
830                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
831                    throws com.liferay.portal.kernel.exception.SystemException;
832    
833            /**
834            * 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.
835            *
836            * @param pk the primary key of the document library file entry type
837            * @param ddmStructurePKs the primary keys of the d d m structures
838            * @throws SystemException if a system exception occurred
839            */
840            public void addDDMStructures(long pk, long[] ddmStructurePKs)
841                    throws com.liferay.portal.kernel.exception.SystemException;
842    
843            /**
844            * 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.
845            *
846            * @param pk the primary key of the document library file entry type
847            * @param ddmStructures the d d m structures
848            * @throws SystemException if a system exception occurred
849            */
850            public void addDDMStructures(long pk,
851                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
852                    throws com.liferay.portal.kernel.exception.SystemException;
853    
854            /**
855            * 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.
856            *
857            * @param pk the primary key of the document library file entry type to clear the associated d d m structures from
858            * @throws SystemException if a system exception occurred
859            */
860            public void clearDDMStructures(long pk)
861                    throws com.liferay.portal.kernel.exception.SystemException;
862    
863            /**
864            * 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.
865            *
866            * @param pk the primary key of the document library file entry type
867            * @param ddmStructurePK the primary key of the d d m structure
868            * @throws SystemException if a system exception occurred
869            */
870            public void removeDDMStructure(long pk, long ddmStructurePK)
871                    throws com.liferay.portal.kernel.exception.SystemException;
872    
873            /**
874            * 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.
875            *
876            * @param pk the primary key of the document library file entry type
877            * @param ddmStructure the d d m structure
878            * @throws SystemException if a system exception occurred
879            */
880            public void removeDDMStructure(long pk,
881                    com.liferay.portlet.dynamicdatamapping.model.DDMStructure ddmStructure)
882                    throws com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * 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.
886            *
887            * @param pk the primary key of the document library file entry type
888            * @param ddmStructurePKs the primary keys of the d d m structures
889            * @throws SystemException if a system exception occurred
890            */
891            public void removeDDMStructures(long pk, long[] ddmStructurePKs)
892                    throws com.liferay.portal.kernel.exception.SystemException;
893    
894            /**
895            * 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.
896            *
897            * @param pk the primary key of the document library file entry type
898            * @param ddmStructures the d d m structures
899            * @throws SystemException if a system exception occurred
900            */
901            public void removeDDMStructures(long pk,
902                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
903                    throws com.liferay.portal.kernel.exception.SystemException;
904    
905            /**
906            * 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.
907            *
908            * @param pk the primary key of the document library file entry type
909            * @param ddmStructurePKs the primary keys of the d d m structures to be associated with the document library file entry type
910            * @throws SystemException if a system exception occurred
911            */
912            public void setDDMStructures(long pk, long[] ddmStructurePKs)
913                    throws com.liferay.portal.kernel.exception.SystemException;
914    
915            /**
916            * 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.
917            *
918            * @param pk the primary key of the document library file entry type
919            * @param ddmStructures the d d m structures to be associated with the document library file entry type
920            * @throws SystemException if a system exception occurred
921            */
922            public void setDDMStructures(long pk,
923                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> ddmStructures)
924                    throws com.liferay.portal.kernel.exception.SystemException;
925    
926            public DLFileEntryType remove(DLFileEntryType dlFileEntryType)
927                    throws SystemException;
928    }