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 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<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
050                    java.lang.String uuid);
051    
052            /**
053            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
054            *
055            * <p>
056            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
057            * </p>
058            *
059            * @param uuid the uuid
060            * @param start the lower bound of the range of document library file entry metadatas
061            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
062            * @return the range of matching document library file entry metadatas
063            */
064            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
065                    java.lang.String uuid, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
069            *
070            * <p>
071            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
072            * </p>
073            *
074            * @param uuid the uuid
075            * @param start the lower bound of the range of document library file entry metadatas
076            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching document library file entry metadatas
079            */
080            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByUuid(
081                    java.lang.String uuid, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
083    
084            /**
085            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
086            *
087            * @param uuid the uuid
088            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
089            * @return the first matching document library file entry metadata
090            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
091            */
092            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_First(
093                    java.lang.String uuid,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
095                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
096    
097            /**
098            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
099            *
100            * @param uuid the uuid
101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
102            * @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
103            */
104            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_First(
105                    java.lang.String uuid,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
107    
108            /**
109            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
113            * @return the last matching document library file entry metadata
114            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
115            */
116            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByUuid_Last(
117                    java.lang.String uuid,
118                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
119                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
120    
121            /**
122            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
123            *
124            * @param uuid the uuid
125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
126            * @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
127            */
128            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByUuid_Last(
129                    java.lang.String uuid,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
131    
132            /**
133            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
134            *
135            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the previous, current, and next document library file entry metadata
139            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
140            */
141            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByUuid_PrevAndNext(
142                    long fileEntryMetadataId, java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
144                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
145    
146            /**
147            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
148            *
149            * @param uuid the uuid
150            */
151            public void removeByUuid(java.lang.String uuid);
152    
153            /**
154            * Returns the number of document library file entry metadatas where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @return the number of matching document library file entry metadatas
158            */
159            public int countByUuid(java.lang.String uuid);
160    
161            /**
162            * Returns all the document library file entry metadatas where fileEntryTypeId = &#63;.
163            *
164            * @param fileEntryTypeId the file entry type ID
165            * @return the matching document library file entry metadatas
166            */
167            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
168                    long fileEntryTypeId);
169    
170            /**
171            * Returns a range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
172            *
173            * <p>
174            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
175            * </p>
176            *
177            * @param fileEntryTypeId the file entry type ID
178            * @param start the lower bound of the range of document library file entry metadatas
179            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
180            * @return the range of matching document library file entry metadatas
181            */
182            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
183                    long fileEntryTypeId, int start, int end);
184    
185            /**
186            * Returns an ordered range of all the document library file entry metadatas where fileEntryTypeId = &#63;.
187            *
188            * <p>
189            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
190            * </p>
191            *
192            * @param fileEntryTypeId the file entry type ID
193            * @param start the lower bound of the range of document library file entry metadatas
194            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
195            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
196            * @return the ordered range of matching document library file entry metadatas
197            */
198            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryTypeId(
199                    long fileEntryTypeId, int start, int end,
200                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
201    
202            /**
203            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
204            *
205            * @param fileEntryTypeId the file entry type ID
206            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
207            * @return the first matching document library file entry metadata
208            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
209            */
210            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_First(
211                    long fileEntryTypeId,
212                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
213                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
214    
215            /**
216            * Returns the first document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
217            *
218            * @param fileEntryTypeId the file entry type ID
219            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
220            * @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
221            */
222            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_First(
223                    long fileEntryTypeId,
224                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
225    
226            /**
227            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
228            *
229            * @param fileEntryTypeId the file entry type ID
230            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
231            * @return the last matching document library file entry metadata
232            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
233            */
234            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryTypeId_Last(
235                    long fileEntryTypeId,
236                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
237                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
238    
239            /**
240            * Returns the last document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
241            *
242            * @param fileEntryTypeId the file entry type ID
243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
244            * @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
245            */
246            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryTypeId_Last(
247                    long fileEntryTypeId,
248                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
249    
250            /**
251            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryTypeId = &#63;.
252            *
253            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
254            * @param fileEntryTypeId the file entry type ID
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the previous, current, and next document library file entry metadata
257            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
258            */
259            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryTypeId_PrevAndNext(
260                    long fileEntryMetadataId, long fileEntryTypeId,
261                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
262                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
263    
264            /**
265            * Removes all the document library file entry metadatas where fileEntryTypeId = &#63; from the database.
266            *
267            * @param fileEntryTypeId the file entry type ID
268            */
269            public void removeByFileEntryTypeId(long fileEntryTypeId);
270    
271            /**
272            * Returns the number of document library file entry metadatas where fileEntryTypeId = &#63;.
273            *
274            * @param fileEntryTypeId the file entry type ID
275            * @return the number of matching document library file entry metadatas
276            */
277            public int countByFileEntryTypeId(long fileEntryTypeId);
278    
279            /**
280            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
281            *
282            * @param fileEntryId the file entry ID
283            * @return the matching document library file entry metadatas
284            */
285            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
286                    long fileEntryId);
287    
288            /**
289            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
290            *
291            * <p>
292            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
293            * </p>
294            *
295            * @param fileEntryId the file entry ID
296            * @param start the lower bound of the range of document library file entry metadatas
297            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
298            * @return the range of matching document library file entry metadatas
299            */
300            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
301                    long fileEntryId, int start, int end);
302    
303            /**
304            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
305            *
306            * <p>
307            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
308            * </p>
309            *
310            * @param fileEntryId the file entry ID
311            * @param start the lower bound of the range of document library file entry metadatas
312            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
313            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
314            * @return the ordered range of matching document library file entry metadatas
315            */
316            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileEntryId(
317                    long fileEntryId, int start, int end,
318                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
319    
320            /**
321            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
322            *
323            * @param fileEntryId the file entry ID
324            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
325            * @return the first matching document library file entry metadata
326            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
327            */
328            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_First(
329                    long fileEntryId,
330                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
331                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
332    
333            /**
334            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
335            *
336            * @param fileEntryId the file entry ID
337            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
338            * @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
339            */
340            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_First(
341                    long fileEntryId,
342                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
343    
344            /**
345            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
346            *
347            * @param fileEntryId the file entry ID
348            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
349            * @return the last matching document library file entry metadata
350            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
351            */
352            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileEntryId_Last(
353                    long fileEntryId,
354                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
355                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
356    
357            /**
358            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
359            *
360            * @param fileEntryId the file entry ID
361            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
362            * @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
363            */
364            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileEntryId_Last(
365                    long fileEntryId,
366                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
367    
368            /**
369            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
370            *
371            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
372            * @param fileEntryId the file entry ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next document library file entry metadata
375            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
376            */
377            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
378                    long fileEntryMetadataId, long fileEntryId,
379                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
380                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
381    
382            /**
383            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
384            *
385            * @param fileEntryId the file entry ID
386            */
387            public void removeByFileEntryId(long fileEntryId);
388    
389            /**
390            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
391            *
392            * @param fileEntryId the file entry ID
393            * @return the number of matching document library file entry metadatas
394            */
395            public int countByFileEntryId(long fileEntryId);
396    
397            /**
398            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
399            *
400            * @param fileVersionId the file version ID
401            * @return the matching document library file entry metadatas
402            */
403            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
404                    long fileVersionId);
405    
406            /**
407            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
408            *
409            * <p>
410            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
411            * </p>
412            *
413            * @param fileVersionId the file version ID
414            * @param start the lower bound of the range of document library file entry metadatas
415            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
416            * @return the range of matching document library file entry metadatas
417            */
418            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
419                    long fileVersionId, int start, int end);
420    
421            /**
422            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
423            *
424            * <p>
425            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
426            * </p>
427            *
428            * @param fileVersionId the file version ID
429            * @param start the lower bound of the range of document library file entry metadatas
430            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
431            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
432            * @return the ordered range of matching document library file entry metadatas
433            */
434            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findByFileVersionId(
435                    long fileVersionId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
437    
438            /**
439            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
440            *
441            * @param fileVersionId the file version ID
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the first matching document library file entry metadata
444            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
445            */
446            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_First(
447                    long fileVersionId,
448                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
449                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
450    
451            /**
452            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
453            *
454            * @param fileVersionId the file version ID
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
456            * @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
457            */
458            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_First(
459                    long fileVersionId,
460                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
461    
462            /**
463            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
464            *
465            * @param fileVersionId the file version ID
466            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
467            * @return the last matching document library file entry metadata
468            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
469            */
470            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByFileVersionId_Last(
471                    long fileVersionId,
472                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
473                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
474    
475            /**
476            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
477            *
478            * @param fileVersionId the file version ID
479            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
480            * @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
481            */
482            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByFileVersionId_Last(
483                    long fileVersionId,
484                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
485    
486            /**
487            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
488            *
489            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
490            * @param fileVersionId the file version ID
491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
492            * @return the previous, current, and next document library file entry metadata
493            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
494            */
495            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
496                    long fileEntryMetadataId, long fileVersionId,
497                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator)
498                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
499    
500            /**
501            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
502            *
503            * @param fileVersionId the file version ID
504            */
505            public void removeByFileVersionId(long fileVersionId);
506    
507            /**
508            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
509            *
510            * @param fileVersionId the file version ID
511            * @return the number of matching document library file entry metadatas
512            */
513            public int countByFileVersionId(long fileVersionId);
514    
515            /**
516            * 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.
517            *
518            * @param DDMStructureId the d d m structure ID
519            * @param fileVersionId the file version ID
520            * @return the matching document library file entry metadata
521            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
522            */
523            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByD_F(
524                    long DDMStructureId, long fileVersionId)
525                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
526    
527            /**
528            * 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.
529            *
530            * @param DDMStructureId the d d m structure ID
531            * @param fileVersionId the file version ID
532            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
533            */
534            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
535                    long DDMStructureId, long fileVersionId);
536    
537            /**
538            * 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.
539            *
540            * @param DDMStructureId the d d m structure ID
541            * @param fileVersionId the file version ID
542            * @param retrieveFromCache whether to use the finder cache
543            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
544            */
545            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByD_F(
546                    long DDMStructureId, long fileVersionId, boolean retrieveFromCache);
547    
548            /**
549            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
550            *
551            * @param DDMStructureId the d d m structure ID
552            * @param fileVersionId the file version ID
553            * @return the document library file entry metadata that was removed
554            */
555            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata removeByD_F(
556                    long DDMStructureId, long fileVersionId)
557                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
558    
559            /**
560            * Returns the number of document library file entry metadatas where DDMStructureId = &#63; and fileVersionId = &#63;.
561            *
562            * @param DDMStructureId the d d m structure ID
563            * @param fileVersionId the file version ID
564            * @return the number of matching document library file entry metadatas
565            */
566            public int countByD_F(long DDMStructureId, long fileVersionId);
567    
568            /**
569            * Caches the document library file entry metadata in the entity cache if it is enabled.
570            *
571            * @param dlFileEntryMetadata the document library file entry metadata
572            */
573            public void cacheResult(
574                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata);
575    
576            /**
577            * Caches the document library file entry metadatas in the entity cache if it is enabled.
578            *
579            * @param dlFileEntryMetadatas the document library file entry metadatas
580            */
581            public void cacheResult(
582                    java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> dlFileEntryMetadatas);
583    
584            /**
585            * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
586            *
587            * @param fileEntryMetadataId the primary key for the new document library file entry metadata
588            * @return the new document library file entry metadata
589            */
590            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata create(
591                    long fileEntryMetadataId);
592    
593            /**
594            * Removes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
595            *
596            * @param fileEntryMetadataId the primary key of the document library file entry metadata
597            * @return the document library file entry metadata that was removed
598            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
599            */
600            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata remove(
601                    long fileEntryMetadataId)
602                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
603    
604            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata updateImpl(
605                    com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata dlFileEntryMetadata);
606    
607            /**
608            * 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.
609            *
610            * @param fileEntryMetadataId the primary key of the document library file entry metadata
611            * @return the document library file entry metadata
612            * @throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
613            */
614            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata findByPrimaryKey(
615                    long fileEntryMetadataId)
616                    throws com.liferay.portlet.documentlibrary.NoSuchFileEntryMetadataException;
617    
618            /**
619            * Returns the document library file entry metadata with the primary key or returns <code>null</code> if it could not be found.
620            *
621            * @param fileEntryMetadataId the primary key of the document library file entry metadata
622            * @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
623            */
624            public com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata fetchByPrimaryKey(
625                    long fileEntryMetadataId);
626    
627            @Override
628            public java.util.Map<java.io.Serializable, com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> fetchByPrimaryKeys(
629                    java.util.Set<java.io.Serializable> primaryKeys);
630    
631            /**
632            * Returns all the document library file entry metadatas.
633            *
634            * @return the document library file entry metadatas
635            */
636            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll();
637    
638            /**
639            * Returns a range of all the document library file entry metadatas.
640            *
641            * <p>
642            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
643            * </p>
644            *
645            * @param start the lower bound of the range of document library file entry metadatas
646            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
647            * @return the range of document library file entry metadatas
648            */
649            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
650                    int start, int end);
651    
652            /**
653            * Returns an ordered range of all the document library file entry metadatas.
654            *
655            * <p>
656            * 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. 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.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.
657            * </p>
658            *
659            * @param start the lower bound of the range of document library file entry metadatas
660            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
661            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
662            * @return the ordered range of document library file entry metadatas
663            */
664            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> findAll(
665                    int start, int end,
666                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata> orderByComparator);
667    
668            /**
669            * Removes all the document library file entry metadatas from the database.
670            */
671            public void removeAll();
672    
673            /**
674            * Returns the number of document library file entry metadatas.
675            *
676            * @return the number of document library file entry metadatas
677            */
678            public int countAll();
679    }