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