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                    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            * <p>
161            * 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.
162            * </p>
163            *
164            * @param companyId the company ID
165            * @param repositoryId the repository ID
166            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
167            * @return the first matching document library content
168            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(
172                    long companyId, long repositoryId,
173                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
174                    throws com.liferay.portal.kernel.exception.SystemException,
175                            com.liferay.portlet.documentlibrary.NoSuchContentException;
176    
177            /**
178            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
179            *
180            * <p>
181            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
182            * </p>
183            *
184            * @param companyId the company ID
185            * @param repositoryId the repository ID
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching document library content
188            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(
192                    long companyId, long repositoryId,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.documentlibrary.NoSuchContentException;
196    
197            /**
198            * Returns the document library contents before and after the current document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
199            *
200            * <p>
201            * 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.
202            * </p>
203            *
204            * @param contentId the primary key of the current document library content
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 previous, current, and next document library content
209            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(
213                    long contentId, long companyId, long repositoryId,
214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
215                    throws com.liferay.portal.kernel.exception.SystemException,
216                            com.liferay.portlet.documentlibrary.NoSuchContentException;
217    
218            /**
219            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
220            *
221            * @param companyId the company ID
222            * @param repositoryId the repository ID
223            * @param path the path
224            * @return the matching document library contents
225            * @throws SystemException if a system exception occurred
226            */
227            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
228                    long companyId, long repositoryId, java.lang.String path)
229                    throws com.liferay.portal.kernel.exception.SystemException;
230    
231            /**
232            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
233            *
234            * <p>
235            * 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.
236            * </p>
237            *
238            * @param companyId the company ID
239            * @param repositoryId the repository ID
240            * @param path the path
241            * @param start the lower bound of the range of document library contents
242            * @param end the upper bound of the range of document library contents (not inclusive)
243            * @return the range of matching document library contents
244            * @throws SystemException if a system exception occurred
245            */
246            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
247                    long companyId, long repositoryId, java.lang.String path, int start,
248                    int end) throws com.liferay.portal.kernel.exception.SystemException;
249    
250            /**
251            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
252            *
253            * <p>
254            * 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.
255            * </p>
256            *
257            * @param companyId the company ID
258            * @param repositoryId the repository ID
259            * @param path the path
260            * @param start the lower bound of the range of document library contents
261            * @param end the upper bound of the range of document library contents (not inclusive)
262            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
263            * @return the ordered range of matching document library contents
264            * @throws SystemException if a system exception occurred
265            */
266            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
267                    long companyId, long repositoryId, java.lang.String path, int start,
268                    int end,
269                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270                    throws com.liferay.portal.kernel.exception.SystemException;
271    
272            /**
273            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
274            *
275            * <p>
276            * 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.
277            * </p>
278            *
279            * @param companyId the company ID
280            * @param repositoryId the repository ID
281            * @param path the path
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the first matching document library content
284            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(
288                    long companyId, long repositoryId, java.lang.String path,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.documentlibrary.NoSuchContentException;
292    
293            /**
294            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param companyId the company ID
301            * @param repositoryId the repository ID
302            * @param path the path
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @return the last matching document library content
305            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
306            * @throws SystemException if a system exception occurred
307            */
308            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(
309                    long companyId, long repositoryId, java.lang.String path,
310                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311                    throws com.liferay.portal.kernel.exception.SystemException,
312                            com.liferay.portlet.documentlibrary.NoSuchContentException;
313    
314            /**
315            * 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;.
316            *
317            * <p>
318            * 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.
319            * </p>
320            *
321            * @param contentId the primary key of the current document library content
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 previous, current, and next document library content
327            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
328            * @throws SystemException if a system exception occurred
329            */
330            public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(
331                    long contentId, long companyId, long repositoryId,
332                    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 all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
339            *
340            * @param companyId the company ID
341            * @param repositoryId the repository ID
342            * @param path the path
343            * @return the matching document library contents
344            * @throws SystemException if a system exception occurred
345            */
346            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
347                    long companyId, long repositoryId, java.lang.String path)
348                    throws com.liferay.portal.kernel.exception.SystemException;
349    
350            /**
351            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
352            *
353            * <p>
354            * 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.
355            * </p>
356            *
357            * @param companyId the company ID
358            * @param repositoryId the repository ID
359            * @param path the path
360            * @param start the lower bound of the range of document library contents
361            * @param end the upper bound of the range of document library contents (not inclusive)
362            * @return the range of matching document library contents
363            * @throws SystemException if a system exception occurred
364            */
365            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
366                    long companyId, long repositoryId, java.lang.String path, int start,
367                    int end) throws com.liferay.portal.kernel.exception.SystemException;
368    
369            /**
370            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
371            *
372            * <p>
373            * 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.
374            * </p>
375            *
376            * @param companyId the company ID
377            * @param repositoryId the repository ID
378            * @param path the path
379            * @param start the lower bound of the range of document library contents
380            * @param end the upper bound of the range of document library contents (not inclusive)
381            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
382            * @return the ordered range of matching document library contents
383            * @throws SystemException if a system exception occurred
384            */
385            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
386                    long companyId, long repositoryId, java.lang.String path, int start,
387                    int end,
388                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
389                    throws com.liferay.portal.kernel.exception.SystemException;
390    
391            /**
392            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
393            *
394            * <p>
395            * 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.
396            * </p>
397            *
398            * @param companyId the company ID
399            * @param repositoryId the repository ID
400            * @param path the path
401            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
402            * @return the first matching document library content
403            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
404            * @throws SystemException if a system exception occurred
405            */
406            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(
407                    long companyId, long repositoryId, java.lang.String path,
408                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
409                    throws com.liferay.portal.kernel.exception.SystemException,
410                            com.liferay.portlet.documentlibrary.NoSuchContentException;
411    
412            /**
413            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param companyId the company ID
420            * @param repositoryId the repository ID
421            * @param path the path
422            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
423            * @return the last matching document library content
424            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
425            * @throws SystemException if a system exception occurred
426            */
427            public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(
428                    long companyId, long repositoryId, java.lang.String path,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.kernel.exception.SystemException,
431                            com.liferay.portlet.documentlibrary.NoSuchContentException;
432    
433            /**
434            * 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;.
435            *
436            * <p>
437            * 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.
438            * </p>
439            *
440            * @param contentId the primary key of the current document library content
441            * @param companyId the company ID
442            * @param repositoryId the repository ID
443            * @param path the path
444            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
445            * @return the previous, current, and next document library content
446            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
447            * @throws SystemException if a system exception occurred
448            */
449            public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(
450                    long contentId, long companyId, long repositoryId,
451                    java.lang.String path,
452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
453                    throws com.liferay.portal.kernel.exception.SystemException,
454                            com.liferay.portlet.documentlibrary.NoSuchContentException;
455    
456            /**
457            * 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.
458            *
459            * @param companyId the company ID
460            * @param repositoryId the repository ID
461            * @param path the path
462            * @param version the version
463            * @return the 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_P_V(
468                    long companyId, long repositoryId, java.lang.String path,
469                    java.lang.String version)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.documentlibrary.NoSuchContentException;
472    
473            /**
474            * 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.
475            *
476            * @param companyId the company ID
477            * @param repositoryId the repository ID
478            * @param path the path
479            * @param version the version
480            * @return the 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_P_V(
484                    long companyId, long repositoryId, java.lang.String path,
485                    java.lang.String version)
486                    throws com.liferay.portal.kernel.exception.SystemException;
487    
488            /**
489            * 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.
490            *
491            * @param companyId the company ID
492            * @param repositoryId the repository ID
493            * @param path the path
494            * @param version the version
495            * @param retrieveFromCache whether to use the finder cache
496            * @return the matching document library content, or <code>null</code> if a matching document library content could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(
500                    long companyId, long repositoryId, java.lang.String path,
501                    java.lang.String version, boolean retrieveFromCache)
502                    throws com.liferay.portal.kernel.exception.SystemException;
503    
504            /**
505            * Returns all the document library contents.
506            *
507            * @return the document library contents
508            * @throws SystemException if a system exception occurred
509            */
510            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll()
511                    throws com.liferay.portal.kernel.exception.SystemException;
512    
513            /**
514            * Returns a range of all the document library contents.
515            *
516            * <p>
517            * 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.
518            * </p>
519            *
520            * @param start the lower bound of the range of document library contents
521            * @param end the upper bound of the range of document library contents (not inclusive)
522            * @return the range of document library contents
523            * @throws SystemException if a system exception occurred
524            */
525            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
526                    int start, int end)
527                    throws com.liferay.portal.kernel.exception.SystemException;
528    
529            /**
530            * Returns an ordered range of all the document library contents.
531            *
532            * <p>
533            * 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.
534            * </p>
535            *
536            * @param start the lower bound of the range of document library contents
537            * @param end the upper bound of the range of document library contents (not inclusive)
538            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
539            * @return the ordered range of document library contents
540            * @throws SystemException if a system exception occurred
541            */
542            public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
543                    int start, int end,
544                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545                    throws com.liferay.portal.kernel.exception.SystemException;
546    
547            /**
548            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; from the database.
549            *
550            * @param companyId the company ID
551            * @param repositoryId the repository ID
552            * @throws SystemException if a system exception occurred
553            */
554            public void removeByC_R(long companyId, long repositoryId)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; from the database.
559            *
560            * @param companyId the company ID
561            * @param repositoryId the repository ID
562            * @param path the path
563            * @throws SystemException if a system exception occurred
564            */
565            public void removeByC_R_P(long companyId, long repositoryId,
566                    java.lang.String path)
567                    throws com.liferay.portal.kernel.exception.SystemException;
568    
569            /**
570            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63; from the database.
571            *
572            * @param companyId the company ID
573            * @param repositoryId the repository ID
574            * @param path the path
575            * @throws SystemException if a system exception occurred
576            */
577            public void removeByC_R_LikeP(long companyId, long repositoryId,
578                    java.lang.String path)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Removes the document library content where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63; from the database.
583            *
584            * @param companyId the company ID
585            * @param repositoryId the repository ID
586            * @param path the path
587            * @param version the version
588            * @throws SystemException if a system exception occurred
589            */
590            public void removeByC_R_P_V(long companyId, long repositoryId,
591                    java.lang.String path, java.lang.String version)
592                    throws com.liferay.portal.kernel.exception.SystemException,
593                            com.liferay.portlet.documentlibrary.NoSuchContentException;
594    
595            /**
596            * Removes all the document library contents from the database.
597            *
598            * @throws SystemException if a system exception occurred
599            */
600            public void removeAll()
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63;.
605            *
606            * @param companyId the company ID
607            * @param repositoryId the repository ID
608            * @return the number of matching document library contents
609            * @throws SystemException if a system exception occurred
610            */
611            public int countByC_R(long companyId, long repositoryId)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
616            *
617            * @param companyId the company ID
618            * @param repositoryId the repository ID
619            * @param path the path
620            * @return the number of matching document library contents
621            * @throws SystemException if a system exception occurred
622            */
623            public int countByC_R_P(long companyId, long repositoryId,
624                    java.lang.String path)
625                    throws com.liferay.portal.kernel.exception.SystemException;
626    
627            /**
628            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
629            *
630            * @param companyId the company ID
631            * @param repositoryId the repository ID
632            * @param path the path
633            * @return the number of matching document library contents
634            * @throws SystemException if a system exception occurred
635            */
636            public int countByC_R_LikeP(long companyId, long repositoryId,
637                    java.lang.String path)
638                    throws com.liferay.portal.kernel.exception.SystemException;
639    
640            /**
641            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63;.
642            *
643            * @param companyId the company ID
644            * @param repositoryId the repository ID
645            * @param path the path
646            * @param version the version
647            * @return the number of matching document library contents
648            * @throws SystemException if a system exception occurred
649            */
650            public int countByC_R_P_V(long companyId, long repositoryId,
651                    java.lang.String path, java.lang.String version)
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    
654            /**
655            * Returns the number of document library contents.
656            *
657            * @return the number of document library contents
658            * @throws SystemException if a system exception occurred
659            */
660            public int countAll()
661                    throws com.liferay.portal.kernel.exception.SystemException;
662    }