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