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