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.DLFileEntryMetadata;
021    
022    /**
023     * The persistence interface for the document library file entry metadata 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 DLFileEntryMetadataPersistenceImpl
031     * @see DLFileEntryMetadataUtil
032     * @generated
033     */
034    public interface DLFileEntryMetadataPersistence extends BasePersistence<DLFileEntryMetadata> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link DLFileEntryMetadataUtil} to access the document library file entry metadata persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the document library file entry metadata in the entity cache if it is enabled.
043            *
044            * @param dlFileEntryMetadata the document library file entry metadata
045            */
046            public void cacheResult(
047                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata);
048    
049            /**
050            * Caches the document library file entry metadatas in the entity cache if it is enabled.
051            *
052            * @param dlFileEntryMetadatas the document library file entry metadatas
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas);
056    
057            /**
058            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
059            *
060            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
061            * @return the new document library file entry metadata
062            */
063            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create(
064                    long fileEntryMetadataId);
065    
066            /**
067            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param fileEntryMetadataId the primary key of the document library file entry metadata
070            * @return the document library file entry metadata that was removed
071            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove(
075                    long fileEntryMetadataId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
078    
079            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl(
080                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Returns the document library file entry metadata with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found.
086            *
087            * @param fileEntryMetadataId the primary key of the document library file entry metadata
088            * @return the document library file entry metadata
089            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey(
093                    long fileEntryMetadataId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
096    
097            /**
098            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param fileEntryMetadataId the primary key of the document library file entry metadata
101            * @return the document library file entry metadata, or <code>null</code> if a document library file entry metadata with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey(
105                    long fileEntryMetadataId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Returns all the document library file entry metadatas where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @return the matching document library file entry metadatas
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
116                    java.lang.String uuid)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Returns a range of all the document library file entry metadatas where uuid = &#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 uuid the uuid
127            * @param start the lower bound of the range of document library file entry metadatas
128            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
129            * @return the range of matching document library file entry metadatas
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
133                    java.lang.String uuid, 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 metadatas where uuid = &#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 uuid the uuid
144            * @param start the lower bound of the range of document library file entry metadatas
145            * @param end the upper bound of the range of document library file entry metadatas (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 metadatas
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
151                    java.lang.String uuid, 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 metadata in the ordered set where uuid = &#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 uuid the uuid
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching document library file entry metadata
165            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First(
169                    java.lang.String uuid,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
173    
174            /**
175            * Returns the last document library file entry metadata in the ordered set where uuid = &#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 uuid the uuid
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last matching document library file entry metadata
184            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last(
188                    java.lang.String uuid,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
192    
193            /**
194            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#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 fileEntryMetadataId the primary key of the current document library file entry metadata
201            * @param uuid the uuid
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 metadata
204            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext(
208                    long fileEntryMetadataId, java.lang.String uuid,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
212    
213            /**
214            * Returns all the document library file entry metadatas where fileEntryTypeId = &#63;.
215            *
216            * @param fileEntryTypeId the file entry type ID
217            * @return the matching document library file entry metadatas
218            * @throws SystemException if a system exception occurred
219            */
220            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
221                    long fileEntryTypeId)
222                    throws com.liferay.portal.kernel.exception.SystemException;
223    
224            /**
225            * Returns a range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param fileEntryTypeId the file entry type ID
232            * @param start the lower bound of the range of document library file entry metadatas
233            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
234            * @return the range of matching document library file entry metadatas
235            * @throws SystemException if a system exception occurred
236            */
237            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
238                    long fileEntryTypeId, int start, int end)
239                    throws com.liferay.portal.kernel.exception.SystemException;
240    
241            /**
242            * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
243            *
244            * <p>
245            * 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.
246            * </p>
247            *
248            * @param fileEntryTypeId the file entry type ID
249            * @param start the lower bound of the range of document library file entry metadatas
250            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
252            * @return the ordered range of matching document library file entry metadatas
253            * @throws SystemException if a system exception occurred
254            */
255            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
256                    long fileEntryTypeId, int start, int end,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException;
259    
260            /**
261            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
262            *
263            * <p>
264            * 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.
265            * </p>
266            *
267            * @param fileEntryTypeId the file entry type ID
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching document library file entry metadata
270            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
271            * @throws SystemException if a system exception occurred
272            */
273            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First(
274                    long fileEntryTypeId,
275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276                    throws com.liferay.portal.kernel.exception.SystemException,
277                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
278    
279            /**
280            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
281            *
282            * <p>
283            * 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.
284            * </p>
285            *
286            * @param fileEntryTypeId the file entry type ID
287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
288            * @return the last matching document library file entry metadata
289            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
290            * @throws SystemException if a system exception occurred
291            */
292            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last(
293                    long fileEntryTypeId,
294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295                    throws com.liferay.portal.kernel.exception.SystemException,
296                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
297    
298            /**
299            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
300            *
301            * <p>
302            * 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.
303            * </p>
304            *
305            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
306            * @param fileEntryTypeId the file entry type ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the previous, current, and next document library file entry metadata
309            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(
313                    long fileEntryMetadataId, long fileEntryTypeId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
317    
318            /**
319            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
320            *
321            * @param fileEntryId the file entry ID
322            * @return the matching document library file entry metadatas
323            * @throws SystemException if a system exception occurred
324            */
325            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
326                    long fileEntryId)
327                    throws com.liferay.portal.kernel.exception.SystemException;
328    
329            /**
330            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
331            *
332            * <p>
333            * 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.
334            * </p>
335            *
336            * @param fileEntryId the file entry ID
337            * @param start the lower bound of the range of document library file entry metadatas
338            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
339            * @return the range of matching document library file entry metadatas
340            * @throws SystemException if a system exception occurred
341            */
342            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
343                    long fileEntryId, int start, int end)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            /**
347            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
348            *
349            * <p>
350            * 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.
351            * </p>
352            *
353            * @param fileEntryId the file entry ID
354            * @param start the lower bound of the range of document library file entry metadatas
355            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
356            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
357            * @return the ordered range of matching document library file entry metadatas
358            * @throws SystemException if a system exception occurred
359            */
360            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
361                    long fileEntryId, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            /**
366            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
367            *
368            * <p>
369            * 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.
370            * </p>
371            *
372            * @param fileEntryId the file entry ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the first matching document library file entry metadata
375            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First(
379                    long fileEntryId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
383    
384            /**
385            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
386            *
387            * <p>
388            * 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.
389            * </p>
390            *
391            * @param fileEntryId the file entry ID
392            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
393            * @return the last matching document library file entry metadata
394            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
395            * @throws SystemException if a system exception occurred
396            */
397            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last(
398                    long fileEntryId,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException,
401                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
402    
403            /**
404            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
411            * @param fileEntryId the file entry ID
412            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
413            * @return the previous, current, and next document library file entry metadata
414            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
415            * @throws SystemException if a system exception occurred
416            */
417            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
418                    long fileEntryMetadataId, long fileEntryId,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException,
421                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
422    
423            /**
424            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
425            *
426            * @param fileVersionId the file version ID
427            * @return the matching document library file entry metadatas
428            * @throws SystemException if a system exception occurred
429            */
430            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
431                    long fileVersionId)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
436            *
437            * <p>
438            * 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.
439            * </p>
440            *
441            * @param fileVersionId the file version ID
442            * @param start the lower bound of the range of document library file entry metadatas
443            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
444            * @return the range of matching document library file entry metadatas
445            * @throws SystemException if a system exception occurred
446            */
447            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
448                    long fileVersionId, int start, int end)
449                    throws com.liferay.portal.kernel.exception.SystemException;
450    
451            /**
452            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
453            *
454            * <p>
455            * 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.
456            * </p>
457            *
458            * @param fileVersionId the file version ID
459            * @param start the lower bound of the range of document library file entry metadatas
460            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
461            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
462            * @return the ordered range of matching document library file entry metadatas
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
466                    long fileVersionId, int start, int end,
467                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
468                    throws com.liferay.portal.kernel.exception.SystemException;
469    
470            /**
471            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
472            *
473            * <p>
474            * 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.
475            * </p>
476            *
477            * @param fileVersionId the file version ID
478            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
479            * @return the first matching document library file entry metadata
480            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
481            * @throws SystemException if a system exception occurred
482            */
483            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First(
484                    long fileVersionId,
485                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
486                    throws com.liferay.portal.kernel.exception.SystemException,
487                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
488    
489            /**
490            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
491            *
492            * <p>
493            * 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.
494            * </p>
495            *
496            * @param fileVersionId the file version ID
497            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
498            * @return the last matching document library file entry metadata
499            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
500            * @throws SystemException if a system exception occurred
501            */
502            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last(
503                    long fileVersionId,
504                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
505                    throws com.liferay.portal.kernel.exception.SystemException,
506                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
507    
508            /**
509            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
510            *
511            * <p>
512            * 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.
513            * </p>
514            *
515            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
516            * @param fileVersionId the file version ID
517            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
518            * @return the previous, current, and next document library file entry metadata
519            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
523                    long fileEntryMetadataId, long fileVersionId,
524                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
525                    throws com.liferay.portal.kernel.exception.SystemException,
526                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
527    
528            /**
529            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found.
530            *
531            * @param DDMStructureId the d d m structure ID
532            * @param fileVersionId the file version ID
533            * @return the matching document library file entry metadata
534            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
535            * @throws SystemException if a system exception occurred
536            */
537            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F(
538                    long DDMStructureId, long fileVersionId)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
541    
542            /**
543            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
544            *
545            * @param DDMStructureId the d d m structure ID
546            * @param fileVersionId the file version ID
547            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
551                    long DDMStructureId, long fileVersionId)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
556            *
557            * @param DDMStructureId the d d m structure ID
558            * @param fileVersionId the file version ID
559            * @param retrieveFromCache whether to use the finder cache
560            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
561            * @throws SystemException if a system exception occurred
562            */
563            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
564                    long DDMStructureId, long fileVersionId, boolean retrieveFromCache)
565                    throws com.liferay.portal.kernel.exception.SystemException;
566    
567            /**
568            * Returns the document library file entry metadata where fileEntryId = &#63; and fileVersionId = &#63; or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException} if it could not be found.
569            *
570            * @param fileEntryId the file entry ID
571            * @param fileVersionId the file version ID
572            * @return the matching document library file entry metadata
573            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
574            * @throws SystemException if a system exception occurred
575            */
576            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByF_V(
577                    long fileEntryId, long fileVersionId)
578                    throws com.liferay.portal.kernel.exception.SystemException,
579                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
580    
581            /**
582            * Returns the document library file entry metadata where fileEntryId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
583            *
584            * @param fileEntryId the file entry ID
585            * @param fileVersionId the file version ID
586            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
587            * @throws SystemException if a system exception occurred
588            */
589            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V(
590                    long fileEntryId, long fileVersionId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the document library file entry metadata where fileEntryId = &#63; and fileVersionId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
595            *
596            * @param fileEntryId the file entry ID
597            * @param fileVersionId the file version ID
598            * @param retrieveFromCache whether to use the finder cache
599            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByF_V(
603                    long fileEntryId, long fileVersionId, boolean retrieveFromCache)
604                    throws com.liferay.portal.kernel.exception.SystemException;
605    
606            /**
607            * Returns all the document library file entry metadatas.
608            *
609            * @return the document library file entry metadatas
610            * @throws SystemException if a system exception occurred
611            */
612            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll()
613                    throws com.liferay.portal.kernel.exception.SystemException;
614    
615            /**
616            * Returns a range of all the document library file entry metadatas.
617            *
618            * <p>
619            * 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.
620            * </p>
621            *
622            * @param start the lower bound of the range of document library file entry metadatas
623            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
624            * @return the range of document library file entry metadatas
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
628                    int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns an ordered range of all the document library file entry metadatas.
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 start the lower bound of the range of document library file entry metadatas
639            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
640            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
641            * @return the ordered range of document library file entry metadatas
642            * @throws SystemException if a system exception occurred
643            */
644            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
645                    int start, int end,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.kernel.exception.SystemException;
648    
649            /**
650            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
651            *
652            * @param uuid the uuid
653            * @throws SystemException if a system exception occurred
654            */
655            public void removeByUuid(java.lang.String uuid)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Removes all the document library file entry metadatas where fileEntryTypeId = &#63; from the database.
660            *
661            * @param fileEntryTypeId the file entry type ID
662            * @throws SystemException if a system exception occurred
663            */
664            public void removeByFileEntryTypeId(long fileEntryTypeId)
665                    throws com.liferay.portal.kernel.exception.SystemException;
666    
667            /**
668            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
669            *
670            * @param fileEntryId the file entry ID
671            * @throws SystemException if a system exception occurred
672            */
673            public void removeByFileEntryId(long fileEntryId)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
678            *
679            * @param fileVersionId the file version ID
680            * @throws SystemException if a system exception occurred
681            */
682            public void removeByFileVersionId(long fileVersionId)
683                    throws com.liferay.portal.kernel.exception.SystemException;
684    
685            /**
686            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
687            *
688            * @param DDMStructureId the d d m structure ID
689            * @param fileVersionId the file version ID
690            * @throws SystemException if a system exception occurred
691            */
692            public void removeByD_F(long DDMStructureId, long fileVersionId)
693                    throws com.liferay.portal.kernel.exception.SystemException,
694                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
695    
696            /**
697            * Removes the document library file entry metadata where fileEntryId = &#63; and fileVersionId = &#63; from the database.
698            *
699            * @param fileEntryId the file entry ID
700            * @param fileVersionId the file version ID
701            * @throws SystemException if a system exception occurred
702            */
703            public void removeByF_V(long fileEntryId, long fileVersionId)
704                    throws com.liferay.portal.kernel.exception.SystemException,
705                            com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
706    
707            /**
708            * Removes all the document library file entry metadatas from the database.
709            *
710            * @throws SystemException if a system exception occurred
711            */
712            public void removeAll()
713                    throws com.liferay.portal.kernel.exception.SystemException;
714    
715            /**
716            * Returns the number of document library file entry metadatas where uuid = &#63;.
717            *
718            * @param uuid the uuid
719            * @return the number of matching document library file entry metadatas
720            * @throws SystemException if a system exception occurred
721            */
722            public int countByUuid(java.lang.String uuid)
723                    throws com.liferay.portal.kernel.exception.SystemException;
724    
725            /**
726            * Returns the number of document library file entry metadatas where fileEntryTypeId = &#63;.
727            *
728            * @param fileEntryTypeId the file entry type ID
729            * @return the number of matching document library file entry metadatas
730            * @throws SystemException if a system exception occurred
731            */
732            public int countByFileEntryTypeId(long fileEntryTypeId)
733                    throws com.liferay.portal.kernel.exception.SystemException;
734    
735            /**
736            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
737            *
738            * @param fileEntryId the file entry ID
739            * @return the number of matching document library file entry metadatas
740            * @throws SystemException if a system exception occurred
741            */
742            public int countByFileEntryId(long fileEntryId)
743                    throws com.liferay.portal.kernel.exception.SystemException;
744    
745            /**
746            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
747            *
748            * @param fileVersionId the file version ID
749            * @return the number of matching document library file entry metadatas
750            * @throws SystemException if a system exception occurred
751            */
752            public int countByFileVersionId(long fileVersionId)
753                    throws com.liferay.portal.kernel.exception.SystemException;
754    
755            /**
756            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
757            *
758            * @param DDMStructureId the d d m structure ID
759            * @param fileVersionId the file version ID
760            * @return the number of matching document library file entry metadatas
761            * @throws SystemException if a system exception occurred
762            */
763            public int countByD_F(long DDMStructureId, long fileVersionId)
764                    throws com.liferay.portal.kernel.exception.SystemException;
765    
766            /**
767            * Returns the number of document library file entry metadatas where fileEntryId = &#63; and fileVersionId = &#63;.
768            *
769            * @param fileEntryId the file entry ID
770            * @param fileVersionId the file version ID
771            * @return the number of matching document library file entry metadatas
772            * @throws SystemException if a system exception occurred
773            */
774            public int countByF_V(long fileEntryId, long fileVersionId)
775                    throws com.liferay.portal.kernel.exception.SystemException;
776    
777            /**
778            * Returns the number of document library file entry metadatas.
779            *
780            * @return the number of document library file entry metadatas
781            * @throws SystemException if a system exception occurred
782            */
783            public int countAll()
784                    throws com.liferay.portal.kernel.exception.SystemException;
785    
786            public DLFileEntryMetadata remove(DLFileEntryMetadata dlFileEntryMetadata)
787                    throws SystemException;
788    }