001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
022    
023    /**
024     * The persistence interface for the document library file entry metadata service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryMetadataPersistenceImpl
032     * @see DLFileEntryMetadataUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DLFileEntryMetadataPersistence extends BasePersistence<DLFileEntryMetadata> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the document library file entry metadatas where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching document library file entry metadatas
048            */
049            public java.util.List<DLFileEntryMetadata> findByUuid(java.lang.String uuid);
050    
051            /**
052            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
053            *
054            * <p>
055            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param uuid the uuid
059            * @param start the lower bound of the range of document library file entry metadatas
060            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
061            * @return the range of matching document library file entry metadatas
062            */
063            public java.util.List<DLFileEntryMetadata> findByUuid(
064                    java.lang.String uuid, int start, int end);
065    
066            /**
067            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
068            *
069            * <p>
070            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of document library file entry metadatas
075            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching document library file entry metadatas
078            */
079            public java.util.List<DLFileEntryMetadata> findByUuid(
080                    java.lang.String uuid, int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
082    
083            /**
084            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
085            *
086            * @param uuid the uuid
087            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
088            * @return the first matching document library file entry metadata
089            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
090            */
091            public DLFileEntryMetadata findByUuid_First(java.lang.String uuid,
092                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
093                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
094    
095            /**
096            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
097            *
098            * @param uuid the uuid
099            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
100            * @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
101            */
102            public DLFileEntryMetadata fetchByUuid_First(java.lang.String uuid,
103                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
104    
105            /**
106            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the last matching document library file entry metadata
111            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
112            */
113            public DLFileEntryMetadata findByUuid_Last(java.lang.String uuid,
114                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
115                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
116    
117            /**
118            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
119            *
120            * @param uuid the uuid
121            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
122            * @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
123            */
124            public DLFileEntryMetadata fetchByUuid_Last(java.lang.String uuid,
125                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
126    
127            /**
128            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
129            *
130            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
131            * @param uuid the uuid
132            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
133            * @return the previous, current, and next document library file entry metadata
134            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
135            */
136            public DLFileEntryMetadata[] findByUuid_PrevAndNext(
137                    long fileEntryMetadataId, java.lang.String uuid,
138                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
139                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
140    
141            /**
142            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
143            *
144            * @param uuid the uuid
145            */
146            public void removeByUuid(java.lang.String uuid);
147    
148            /**
149            * Returns the number of document library file entry metadatas where uuid = &#63;.
150            *
151            * @param uuid the uuid
152            * @return the number of matching document library file entry metadatas
153            */
154            public int countByUuid(java.lang.String uuid);
155    
156            /**
157            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
158            *
159            * @param fileEntryId the file entry ID
160            * @return the matching document library file entry metadatas
161            */
162            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
163                    long fileEntryId);
164    
165            /**
166            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
167            *
168            * <p>
169            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
170            * </p>
171            *
172            * @param fileEntryId the file entry ID
173            * @param start the lower bound of the range of document library file entry metadatas
174            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
175            * @return the range of matching document library file entry metadatas
176            */
177            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
178                    long fileEntryId, int start, int end);
179    
180            /**
181            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
182            *
183            * <p>
184            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
185            * </p>
186            *
187            * @param fileEntryId the file entry ID
188            * @param start the lower bound of the range of document library file entry metadatas
189            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
190            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
191            * @return the ordered range of matching document library file entry metadatas
192            */
193            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
194                    long fileEntryId, int start, int end,
195                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
196    
197            /**
198            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
199            *
200            * @param fileEntryId the file entry ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the first matching document library file entry metadata
203            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
204            */
205            public DLFileEntryMetadata findByFileEntryId_First(long fileEntryId,
206                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
207                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
208    
209            /**
210            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
211            *
212            * @param fileEntryId the file entry ID
213            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
214            * @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
215            */
216            public DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId,
217                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
218    
219            /**
220            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
221            *
222            * @param fileEntryId the file entry ID
223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
224            * @return the last matching document library file entry metadata
225            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
226            */
227            public DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId,
228                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
229                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
230    
231            /**
232            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
233            *
234            * @param fileEntryId the file entry ID
235            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
236            * @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
237            */
238            public DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId,
239                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
240    
241            /**
242            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
243            *
244            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
245            * @param fileEntryId the file entry ID
246            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
247            * @return the previous, current, and next document library file entry metadata
248            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
249            */
250            public DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
251                    long fileEntryMetadataId, long fileEntryId,
252                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
253                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
254    
255            /**
256            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
257            *
258            * @param fileEntryId the file entry ID
259            */
260            public void removeByFileEntryId(long fileEntryId);
261    
262            /**
263            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
264            *
265            * @param fileEntryId the file entry ID
266            * @return the number of matching document library file entry metadatas
267            */
268            public int countByFileEntryId(long fileEntryId);
269    
270            /**
271            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
272            *
273            * @param fileVersionId the file version ID
274            * @return the matching document library file entry metadatas
275            */
276            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
277                    long fileVersionId);
278    
279            /**
280            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
281            *
282            * <p>
283            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
284            * </p>
285            *
286            * @param fileVersionId the file version ID
287            * @param start the lower bound of the range of document library file entry metadatas
288            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
289            * @return the range of matching document library file entry metadatas
290            */
291            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
292                    long fileVersionId, int start, int end);
293    
294            /**
295            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
296            *
297            * <p>
298            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
299            * </p>
300            *
301            * @param fileVersionId the file version ID
302            * @param start the lower bound of the range of document library file entry metadatas
303            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
304            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
305            * @return the ordered range of matching document library file entry metadatas
306            */
307            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
308                    long fileVersionId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
310    
311            /**
312            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
313            *
314            * @param fileVersionId the file version ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching document library file entry metadata
317            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
318            */
319            public DLFileEntryMetadata findByFileVersionId_First(long fileVersionId,
320                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
321                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
322    
323            /**
324            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
325            *
326            * @param fileVersionId the file version ID
327            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
328            * @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
329            */
330            public DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId,
331                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
332    
333            /**
334            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
335            *
336            * @param fileVersionId the file version ID
337            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
338            * @return the last matching document library file entry metadata
339            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
340            */
341            public DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId,
342                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
343                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
344    
345            /**
346            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
347            *
348            * @param fileVersionId the file version ID
349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
350            * @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
351            */
352            public DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId,
353                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
354    
355            /**
356            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
357            *
358            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
359            * @param fileVersionId the file version ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next document library file entry metadata
362            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
363            */
364            public DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
365                    long fileEntryMetadataId, long fileVersionId,
366                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
367                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
368    
369            /**
370            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
371            *
372            * @param fileVersionId the file version ID
373            */
374            public void removeByFileVersionId(long fileVersionId);
375    
376            /**
377            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
378            *
379            * @param fileVersionId the file version ID
380            * @return the number of matching document library file entry metadatas
381            */
382            public int countByFileVersionId(long fileVersionId);
383    
384            /**
385            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or throws a {@link NoSuchFileEntryMetadataException} if it could not be found.
386            *
387            * @param DDMStructureId the d d m structure ID
388            * @param fileVersionId the file version ID
389            * @return the matching document library file entry metadata
390            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
391            */
392            public DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId)
393                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
394    
395            /**
396            * 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.
397            *
398            * @param DDMStructureId the d d m structure ID
399            * @param fileVersionId the file version ID
400            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
401            */
402            public DLFileEntryMetadata fetchByD_F(long DDMStructureId,
403                    long fileVersionId);
404    
405            /**
406            * 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.
407            *
408            * @param DDMStructureId the d d m structure ID
409            * @param fileVersionId the file version ID
410            * @param retrieveFromCache whether to use the finder cache
411            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
412            */
413            public DLFileEntryMetadata fetchByD_F(long DDMStructureId,
414                    long fileVersionId, boolean retrieveFromCache);
415    
416            /**
417            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
418            *
419            * @param DDMStructureId the d d m structure ID
420            * @param fileVersionId the file version ID
421            * @return the document library file entry metadata that was removed
422            */
423            public DLFileEntryMetadata removeByD_F(long DDMStructureId,
424                    long fileVersionId)
425                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
426    
427            /**
428            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
429            *
430            * @param DDMStructureId the d d m structure ID
431            * @param fileVersionId the file version ID
432            * @return the number of matching document library file entry metadatas
433            */
434            public int countByD_F(long DDMStructureId, long fileVersionId);
435    
436            /**
437            * Caches the document library file entry metadata in the entity cache if it is enabled.
438            *
439            * @param dlFileEntryMetadata the document library file entry metadata
440            */
441            public void cacheResult(DLFileEntryMetadata dlFileEntryMetadata);
442    
443            /**
444            * Caches the document library file entry metadatas in the entity cache if it is enabled.
445            *
446            * @param dlFileEntryMetadatas the document library file entry metadatas
447            */
448            public void cacheResult(
449                    java.util.List<DLFileEntryMetadata> dlFileEntryMetadatas);
450    
451            /**
452            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
453            *
454            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
455            * @return the new document library file entry metadata
456            */
457            public DLFileEntryMetadata create(long fileEntryMetadataId);
458    
459            /**
460            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
461            *
462            * @param fileEntryMetadataId the primary key of the document library file entry metadata
463            * @return the document library file entry metadata that was removed
464            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
465            */
466            public DLFileEntryMetadata remove(long fileEntryMetadataId)
467                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
468    
469            public DLFileEntryMetadata updateImpl(
470                    DLFileEntryMetadata dlFileEntryMetadata);
471    
472            /**
473            * Returns the document library file entry metadata with the primary key or throws a {@link NoSuchFileEntryMetadataException} if it could not be found.
474            *
475            * @param fileEntryMetadataId the primary key of the document library file entry metadata
476            * @return the document library file entry metadata
477            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
478            */
479            public DLFileEntryMetadata findByPrimaryKey(long fileEntryMetadataId)
480                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
481    
482            /**
483            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
484            *
485            * @param fileEntryMetadataId the primary key of the document library file entry metadata
486            * @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
487            */
488            public DLFileEntryMetadata fetchByPrimaryKey(long fileEntryMetadataId);
489    
490            @Override
491            public java.util.Map<java.io.Serializable, DLFileEntryMetadata> fetchByPrimaryKeys(
492                    java.util.Set<java.io.Serializable> primaryKeys);
493    
494            /**
495            * Returns all the document library file entry metadatas.
496            *
497            * @return the document library file entry metadatas
498            */
499            public java.util.List<DLFileEntryMetadata> findAll();
500    
501            /**
502            * Returns a range of all the document library file entry metadatas.
503            *
504            * <p>
505            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
506            * </p>
507            *
508            * @param start the lower bound of the range of document library file entry metadatas
509            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
510            * @return the range of document library file entry metadatas
511            */
512            public java.util.List<DLFileEntryMetadata> findAll(int start, int end);
513    
514            /**
515            * Returns an ordered range of all the document library file entry metadatas.
516            *
517            * <p>
518            * 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 QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
519            * </p>
520            *
521            * @param start the lower bound of the range of document library file entry metadatas
522            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
523            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
524            * @return the ordered range of document library file entry metadatas
525            */
526            public java.util.List<DLFileEntryMetadata> findAll(int start, int end,
527                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
528    
529            /**
530            * Removes all the document library file entry metadatas from the database.
531            */
532            public void removeAll();
533    
534            /**
535            * Returns the number of document library file entry metadatas.
536            *
537            * @return the number of document library file entry metadatas
538            */
539            public int countAll();
540    }