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