001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
022    
023    /**
024     * The persistence interface for the document library file entry metadata service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see com.liferay.portlet.documentlibrary.service.persistence.impl.DLFileEntryMetadataPersistenceImpl
032     * @see DLFileEntryMetadataUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DLFileEntryMetadataPersistence extends BasePersistence<DLFileEntryMetadata> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link DLFileEntryMetadataUtil} to access the document library file entry metadata persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the document library file entry metadatas where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching document library file entry metadatas
048            */
049            public java.util.List<DLFileEntryMetadata> findByUuid(java.lang.String uuid);
050    
051            /**
052            * Returns a range of all the document library file entry metadatas where uuid = &#63;.
053            *
054            * <p>
055            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
056            * </p>
057            *
058            * @param uuid the uuid
059            * @param start the lower bound of the range of document library file entry metadatas
060            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
061            * @return the range of matching document library file entry metadatas
062            */
063            public java.util.List<DLFileEntryMetadata> findByUuid(
064                    java.lang.String uuid, int start, int end);
065    
066            /**
067            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
068            *
069            * <p>
070            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link DLFileEntryMetadataModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
071            * </p>
072            *
073            * @param uuid the uuid
074            * @param start the lower bound of the range of document library file entry metadatas
075            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
076            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
077            * @return the ordered range of matching document library file entry metadatas
078            */
079            public java.util.List<DLFileEntryMetadata> findByUuid(
080                    java.lang.String uuid, int start, int end,
081                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
082    
083            /**
084            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63;.
085            *
086            * <p>
087            * 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.
088            * </p>
089            *
090            * @param uuid the uuid
091            * @param start the lower bound of the range of document library file entry metadatas
092            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
093            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
094            * @param retrieveFromCache whether to retrieve from the finder cache
095            * @return the ordered range of matching document library file entry metadatas
096            */
097            public java.util.List<DLFileEntryMetadata> findByUuid(
098                    java.lang.String uuid, int start, int end,
099                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator,
100                    boolean retrieveFromCache);
101    
102            /**
103            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
104            *
105            * @param uuid the uuid
106            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
107            * @return the first matching document library file entry metadata
108            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
109            */
110            public DLFileEntryMetadata findByUuid_First(java.lang.String uuid,
111                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
112                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
113    
114            /**
115            * Returns the first document library file entry metadata in the ordered set where uuid = &#63;.
116            *
117            * @param uuid the uuid
118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
119            * @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
120            */
121            public DLFileEntryMetadata fetchByUuid_First(java.lang.String uuid,
122                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
123    
124            /**
125            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
126            *
127            * @param uuid the uuid
128            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
129            * @return the last matching document library file entry metadata
130            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
131            */
132            public DLFileEntryMetadata findByUuid_Last(java.lang.String uuid,
133                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
134                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
135    
136            /**
137            * Returns the last document library file entry metadata in the ordered set where uuid = &#63;.
138            *
139            * @param uuid the uuid
140            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
141            * @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
142            */
143            public DLFileEntryMetadata fetchByUuid_Last(java.lang.String uuid,
144                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
145    
146            /**
147            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where uuid = &#63;.
148            *
149            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next document library file entry metadata
153            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
154            */
155            public DLFileEntryMetadata[] findByUuid_PrevAndNext(
156                    long fileEntryMetadataId, java.lang.String uuid,
157                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
158                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
159    
160            /**
161            * Removes all the document library file entry metadatas where uuid = &#63; from the database.
162            *
163            * @param uuid the uuid
164            */
165            public void removeByUuid(java.lang.String uuid);
166    
167            /**
168            * Returns the number of document library file entry metadatas where uuid = &#63;.
169            *
170            * @param uuid the uuid
171            * @return the number of matching document library file entry metadatas
172            */
173            public int countByUuid(java.lang.String uuid);
174    
175            /**
176            * Returns all the document library file entry metadatas where uuid = &#63; and companyId = &#63;.
177            *
178            * @param uuid the uuid
179            * @param companyId the company ID
180            * @return the matching document library file entry metadatas
181            */
182            public java.util.List<DLFileEntryMetadata> findByUuid_C(
183                    java.lang.String uuid, long companyId);
184    
185            /**
186            * Returns a range of all the document library file entry metadatas where uuid = &#63; and companyId = &#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 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.
190            * </p>
191            *
192            * @param uuid the uuid
193            * @param companyId the company ID
194            * @param start the lower bound of the range of document library file entry metadatas
195            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
196            * @return the range of matching document library file entry metadatas
197            */
198            public java.util.List<DLFileEntryMetadata> findByUuid_C(
199                    java.lang.String uuid, long companyId, int start, int end);
200    
201            /**
202            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63; and companyId = &#63;.
203            *
204            * <p>
205            * 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.
206            * </p>
207            *
208            * @param uuid the uuid
209            * @param companyId the company ID
210            * @param start the lower bound of the range of document library file entry metadatas
211            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
212            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
213            * @return the ordered range of matching document library file entry metadatas
214            */
215            public java.util.List<DLFileEntryMetadata> findByUuid_C(
216                    java.lang.String uuid, long companyId, int start, int end,
217                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
218    
219            /**
220            * Returns an ordered range of all the document library file entry metadatas where uuid = &#63; and companyId = &#63;.
221            *
222            * <p>
223            * 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.
224            * </p>
225            *
226            * @param uuid the uuid
227            * @param companyId the company ID
228            * @param start the lower bound of the range of document library file entry metadatas
229            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
230            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
231            * @param retrieveFromCache whether to retrieve from the finder cache
232            * @return the ordered range of matching document library file entry metadatas
233            */
234            public java.util.List<DLFileEntryMetadata> findByUuid_C(
235                    java.lang.String uuid, long companyId, int start, int end,
236                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator,
237                    boolean retrieveFromCache);
238    
239            /**
240            * Returns the first document library file entry metadata in the ordered set where uuid = &#63; and companyId = &#63;.
241            *
242            * @param uuid the uuid
243            * @param companyId the company ID
244            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
245            * @return the first matching document library file entry metadata
246            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
247            */
248            public DLFileEntryMetadata findByUuid_C_First(java.lang.String uuid,
249                    long companyId,
250                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
251                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
252    
253            /**
254            * Returns the first document library file entry metadata in the ordered set where uuid = &#63; and companyId = &#63;.
255            *
256            * @param uuid the uuid
257            * @param companyId the company ID
258            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
259            * @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
260            */
261            public DLFileEntryMetadata fetchByUuid_C_First(java.lang.String uuid,
262                    long companyId,
263                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
264    
265            /**
266            * Returns the last document library file entry metadata in the ordered set where uuid = &#63; and companyId = &#63;.
267            *
268            * @param uuid the uuid
269            * @param companyId the company ID
270            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
271            * @return the last matching document library file entry metadata
272            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
273            */
274            public DLFileEntryMetadata findByUuid_C_Last(java.lang.String uuid,
275                    long companyId,
276                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
277                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
278    
279            /**
280            * Returns the last document library file entry metadata in the ordered set where uuid = &#63; and companyId = &#63;.
281            *
282            * @param uuid the uuid
283            * @param companyId the company ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @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
286            */
287            public DLFileEntryMetadata fetchByUuid_C_Last(java.lang.String uuid,
288                    long companyId,
289                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
290    
291            /**
292            * 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;.
293            *
294            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
295            * @param uuid the uuid
296            * @param companyId the company ID
297            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
298            * @return the previous, current, and next document library file entry metadata
299            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
300            */
301            public DLFileEntryMetadata[] findByUuid_C_PrevAndNext(
302                    long fileEntryMetadataId, java.lang.String uuid, long companyId,
303                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
304                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
305    
306            /**
307            * Removes all the document library file entry metadatas where uuid = &#63; and companyId = &#63; from the database.
308            *
309            * @param uuid the uuid
310            * @param companyId the company ID
311            */
312            public void removeByUuid_C(java.lang.String uuid, long companyId);
313    
314            /**
315            * Returns the number of document library file entry metadatas where uuid = &#63; and companyId = &#63;.
316            *
317            * @param uuid the uuid
318            * @param companyId the company ID
319            * @return the number of matching document library file entry metadatas
320            */
321            public int countByUuid_C(java.lang.String uuid, long companyId);
322    
323            /**
324            * Returns all the document library file entry metadatas where fileEntryId = &#63;.
325            *
326            * @param fileEntryId the file entry ID
327            * @return the matching document library file entry metadatas
328            */
329            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
330                    long fileEntryId);
331    
332            /**
333            * Returns a range of all the document library file entry metadatas where fileEntryId = &#63;.
334            *
335            * <p>
336            * 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.
337            * </p>
338            *
339            * @param fileEntryId the file entry ID
340            * @param start the lower bound of the range of document library file entry metadatas
341            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
342            * @return the range of matching document library file entry metadatas
343            */
344            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
345                    long fileEntryId, int start, int end);
346    
347            /**
348            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
349            *
350            * <p>
351            * 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.
352            * </p>
353            *
354            * @param fileEntryId the file entry ID
355            * @param start the lower bound of the range of document library file entry metadatas
356            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
357            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
358            * @return the ordered range of matching document library file entry metadatas
359            */
360            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
361                    long fileEntryId, int start, int end,
362                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
363    
364            /**
365            * Returns an ordered range of all the document library file entry metadatas where fileEntryId = &#63;.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link 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.
369            * </p>
370            *
371            * @param fileEntryId the file entry ID
372            * @param start the lower bound of the range of document library file entry metadatas
373            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
374            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
375            * @param retrieveFromCache whether to retrieve from the finder cache
376            * @return the ordered range of matching document library file entry metadatas
377            */
378            public java.util.List<DLFileEntryMetadata> findByFileEntryId(
379                    long fileEntryId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator,
381                    boolean retrieveFromCache);
382    
383            /**
384            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
385            *
386            * @param fileEntryId the file entry ID
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the first matching document library file entry metadata
389            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
390            */
391            public DLFileEntryMetadata findByFileEntryId_First(long fileEntryId,
392                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
393                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
394    
395            /**
396            * Returns the first document library file entry metadata in the ordered set where fileEntryId = &#63;.
397            *
398            * @param fileEntryId the file entry ID
399            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
400            * @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
401            */
402            public DLFileEntryMetadata fetchByFileEntryId_First(long fileEntryId,
403                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
404    
405            /**
406            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
407            *
408            * @param fileEntryId the file entry ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the last matching document library file entry metadata
411            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
412            */
413            public DLFileEntryMetadata findByFileEntryId_Last(long fileEntryId,
414                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
415                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
416    
417            /**
418            * Returns the last document library file entry metadata in the ordered set where fileEntryId = &#63;.
419            *
420            * @param fileEntryId the file entry ID
421            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
422            * @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
423            */
424            public DLFileEntryMetadata fetchByFileEntryId_Last(long fileEntryId,
425                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
426    
427            /**
428            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileEntryId = &#63;.
429            *
430            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
431            * @param fileEntryId the file entry ID
432            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
433            * @return the previous, current, and next document library file entry metadata
434            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
435            */
436            public DLFileEntryMetadata[] findByFileEntryId_PrevAndNext(
437                    long fileEntryMetadataId, long fileEntryId,
438                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
439                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
440    
441            /**
442            * Removes all the document library file entry metadatas where fileEntryId = &#63; from the database.
443            *
444            * @param fileEntryId the file entry ID
445            */
446            public void removeByFileEntryId(long fileEntryId);
447    
448            /**
449            * Returns the number of document library file entry metadatas where fileEntryId = &#63;.
450            *
451            * @param fileEntryId the file entry ID
452            * @return the number of matching document library file entry metadatas
453            */
454            public int countByFileEntryId(long fileEntryId);
455    
456            /**
457            * Returns all the document library file entry metadatas where fileVersionId = &#63;.
458            *
459            * @param fileVersionId the file version ID
460            * @return the matching document library file entry metadatas
461            */
462            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
463                    long fileVersionId);
464    
465            /**
466            * Returns a range of all the document library file entry metadatas where fileVersionId = &#63;.
467            *
468            * <p>
469            * 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.
470            * </p>
471            *
472            * @param fileVersionId the file version ID
473            * @param start the lower bound of the range of document library file entry metadatas
474            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
475            * @return the range of matching document library file entry metadatas
476            */
477            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
478                    long fileVersionId, int start, int end);
479    
480            /**
481            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
482            *
483            * <p>
484            * 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.
485            * </p>
486            *
487            * @param fileVersionId the file version ID
488            * @param start the lower bound of the range of document library file entry metadatas
489            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
490            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
491            * @return the ordered range of matching document library file entry metadatas
492            */
493            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
494                    long fileVersionId, int start, int end,
495                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
496    
497            /**
498            * Returns an ordered range of all the document library file entry metadatas where fileVersionId = &#63;.
499            *
500            * <p>
501            * 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.
502            * </p>
503            *
504            * @param fileVersionId the file version ID
505            * @param start the lower bound of the range of document library file entry metadatas
506            * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
507            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
508            * @param retrieveFromCache whether to retrieve from the finder cache
509            * @return the ordered range of matching document library file entry metadatas
510            */
511            public java.util.List<DLFileEntryMetadata> findByFileVersionId(
512                    long fileVersionId, int start, int end,
513                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator,
514                    boolean retrieveFromCache);
515    
516            /**
517            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
518            *
519            * @param fileVersionId the file version ID
520            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
521            * @return the first matching document library file entry metadata
522            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
523            */
524            public DLFileEntryMetadata findByFileVersionId_First(long fileVersionId,
525                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
526                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
527    
528            /**
529            * Returns the first document library file entry metadata in the ordered set where fileVersionId = &#63;.
530            *
531            * @param fileVersionId the file version ID
532            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
533            * @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
534            */
535            public DLFileEntryMetadata fetchByFileVersionId_First(long fileVersionId,
536                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
537    
538            /**
539            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
540            *
541            * @param fileVersionId the file version ID
542            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
543            * @return the last matching document library file entry metadata
544            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
545            */
546            public DLFileEntryMetadata findByFileVersionId_Last(long fileVersionId,
547                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
548                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
549    
550            /**
551            * Returns the last document library file entry metadata in the ordered set where fileVersionId = &#63;.
552            *
553            * @param fileVersionId the file version ID
554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
555            * @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
556            */
557            public DLFileEntryMetadata fetchByFileVersionId_Last(long fileVersionId,
558                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator);
559    
560            /**
561            * Returns the document library file entry metadatas before and after the current document library file entry metadata in the ordered set where fileVersionId = &#63;.
562            *
563            * @param fileEntryMetadataId the primary key of the current document library file entry metadata
564            * @param fileVersionId the file version ID
565            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
566            * @return the previous, current, and next document library file entry metadata
567            * @throws NoSuchFileEntryMetadataException if a document library file entry metadata with the primary key could not be found
568            */
569            public DLFileEntryMetadata[] findByFileVersionId_PrevAndNext(
570                    long fileEntryMetadataId, long fileVersionId,
571                    com.liferay.portal.kernel.util.OrderByComparator<DLFileEntryMetadata> orderByComparator)
572                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
573    
574            /**
575            * Removes all the document library file entry metadatas where fileVersionId = &#63; from the database.
576            *
577            * @param fileVersionId the file version ID
578            */
579            public void removeByFileVersionId(long fileVersionId);
580    
581            /**
582            * Returns the number of document library file entry metadatas where fileVersionId = &#63;.
583            *
584            * @param fileVersionId the file version ID
585            * @return the number of matching document library file entry metadatas
586            */
587            public int countByFileVersionId(long fileVersionId);
588    
589            /**
590            * Returns the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; or throws a {@link NoSuchFileEntryMetadataException} if it could not be found.
591            *
592            * @param DDMStructureId the d d m structure ID
593            * @param fileVersionId the file version ID
594            * @return the matching document library file entry metadata
595            * @throws NoSuchFileEntryMetadataException if a matching document library file entry metadata could not be found
596            */
597            public DLFileEntryMetadata findByD_F(long DDMStructureId, long fileVersionId)
598                    throws com.liferay.portlet.documentlibrary.exception.NoSuchFileEntryMetadataException;
599    
600            /**
601            * 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.
602            *
603            * @param DDMStructureId the d d m structure ID
604            * @param fileVersionId the file version ID
605            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
606            */
607            public DLFileEntryMetadata fetchByD_F(long DDMStructureId,
608                    long fileVersionId);
609    
610            /**
611            * 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.
612            *
613            * @param DDMStructureId the d d m structure ID
614            * @param fileVersionId the file version ID
615            * @param retrieveFromCache whether to retrieve from the finder cache
616            * @return the matching document library file entry metadata, or <code>null</code> if a matching document library file entry metadata could not be found
617            */
618            public DLFileEntryMetadata fetchByD_F(long DDMStructureId,
619                    long fileVersionId, boolean retrieveFromCache);
620    
621            /**
622            * Removes the document library file entry metadata where DDMStructureId = &#63; and fileVersionId = &#63; from the database.
623            *
624            * @param DDMStructureId the d d m structure ID
625            * @param fileVersionId the file version ID
626            * @return the document library file entry metadata that was removed
627            */
628            public DLFileEntryMetadata removeByD_F(long DDMStructureId,
629                    long fileVersionId)
630                    throws com.liferay.portlet.documentlibrary.exception.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 com.liferay.portlet.documentlibrary.exception.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 com.liferay.portlet.documentlibrary.exception.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    }