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