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