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