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