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