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