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