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.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.documentlibrary.model.DLContent;
026    
027    import java.util.List;
028    
029    /**
030     * The persistence utility for the document library content service. This utility wraps {@link DLContentPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see DLContentPersistence
038     * @see DLContentPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class DLContentUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(DLContent dlContent) {
060                    getPersistence().clearCache(dlContent);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<DLContent> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<DLContent> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DLContent> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<DLContent> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DLContent update(DLContent dlContent) {
101                    return getPersistence().update(dlContent);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static DLContent update(DLContent dlContent,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(dlContent, serviceContext);
110            }
111    
112            /**
113            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63;.
114            *
115            * @param companyId the company ID
116            * @param repositoryId the repository ID
117            * @return the matching document library contents
118            */
119            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
120                    long companyId, long repositoryId) {
121                    return getPersistence().findByC_R(companyId, repositoryId);
122            }
123    
124            /**
125            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63;.
126            *
127            * <p>
128            * 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.
129            * </p>
130            *
131            * @param companyId the company ID
132            * @param repositoryId the repository ID
133            * @param start the lower bound of the range of document library contents
134            * @param end the upper bound of the range of document library contents (not inclusive)
135            * @return the range of matching document library contents
136            */
137            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
138                    long companyId, long repositoryId, int start, int end) {
139                    return getPersistence().findByC_R(companyId, repositoryId, start, end);
140            }
141    
142            /**
143            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63;.
144            *
145            * <p>
146            * 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.
147            * </p>
148            *
149            * @param companyId the company ID
150            * @param repositoryId the repository ID
151            * @param start the lower bound of the range of document library contents
152            * @param end the upper bound of the range of document library contents (not inclusive)
153            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
154            * @return the ordered range of matching document library contents
155            */
156            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
157                    long companyId, long repositoryId, int start, int end,
158                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
159                    return getPersistence()
160                                       .findByC_R(companyId, repositoryId, start, end,
161                            orderByComparator);
162            }
163    
164            /**
165            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
166            *
167            * @param companyId the company ID
168            * @param repositoryId the repository ID
169            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
170            * @return the first matching document library content
171            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
172            */
173            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(
174                    long companyId, long repositoryId,
175                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
176                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
177                    return getPersistence()
178                                       .findByC_R_First(companyId, repositoryId, orderByComparator);
179            }
180    
181            /**
182            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
183            *
184            * @param companyId the company ID
185            * @param repositoryId the repository ID
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
188            */
189            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_First(
190                    long companyId, long repositoryId,
191                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
192                    return getPersistence()
193                                       .fetchByC_R_First(companyId, repositoryId, orderByComparator);
194            }
195    
196            /**
197            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
198            *
199            * @param companyId the company ID
200            * @param repositoryId the repository ID
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching document library content
203            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
204            */
205            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(
206                    long companyId, long repositoryId,
207                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
208                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
209                    return getPersistence()
210                                       .findByC_R_Last(companyId, repositoryId, orderByComparator);
211            }
212    
213            /**
214            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
215            *
216            * @param companyId the company ID
217            * @param repositoryId the repository ID
218            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
219            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
220            */
221            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_Last(
222                    long companyId, long repositoryId,
223                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
224                    return getPersistence()
225                                       .fetchByC_R_Last(companyId, repositoryId, orderByComparator);
226            }
227    
228            /**
229            * Returns the document library contents before and after the current document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
230            *
231            * @param contentId the primary key of the current document library content
232            * @param companyId the company ID
233            * @param repositoryId the repository ID
234            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
235            * @return the previous, current, and next document library content
236            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
237            */
238            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(
239                    long contentId, long companyId, long repositoryId,
240                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
241                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
242                    return getPersistence()
243                                       .findByC_R_PrevAndNext(contentId, companyId, repositoryId,
244                            orderByComparator);
245            }
246    
247            /**
248            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; from the database.
249            *
250            * @param companyId the company ID
251            * @param repositoryId the repository ID
252            */
253            public static void removeByC_R(long companyId, long repositoryId) {
254                    getPersistence().removeByC_R(companyId, repositoryId);
255            }
256    
257            /**
258            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63;.
259            *
260            * @param companyId the company ID
261            * @param repositoryId the repository ID
262            * @return the number of matching document library contents
263            */
264            public static int countByC_R(long companyId, long repositoryId) {
265                    return getPersistence().countByC_R(companyId, repositoryId);
266            }
267    
268            /**
269            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
270            *
271            * @param companyId the company ID
272            * @param repositoryId the repository ID
273            * @param path the path
274            * @return the matching document library contents
275            */
276            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
277                    long companyId, long repositoryId, java.lang.String path) {
278                    return getPersistence().findByC_R_P(companyId, repositoryId, path);
279            }
280    
281            /**
282            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
283            *
284            * <p>
285            * 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.
286            * </p>
287            *
288            * @param companyId the company ID
289            * @param repositoryId the repository ID
290            * @param path the path
291            * @param start the lower bound of the range of document library contents
292            * @param end the upper bound of the range of document library contents (not inclusive)
293            * @return the range of matching document library contents
294            */
295            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
296                    long companyId, long repositoryId, java.lang.String path, int start,
297                    int end) {
298                    return getPersistence()
299                                       .findByC_R_P(companyId, repositoryId, path, start, end);
300            }
301    
302            /**
303            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
304            *
305            * <p>
306            * 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.
307            * </p>
308            *
309            * @param companyId the company ID
310            * @param repositoryId the repository ID
311            * @param path the path
312            * @param start the lower bound of the range of document library contents
313            * @param end the upper bound of the range of document library contents (not inclusive)
314            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
315            * @return the ordered range of matching document library contents
316            */
317            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
318                    long companyId, long repositoryId, java.lang.String path, int start,
319                    int end,
320                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
321                    return getPersistence()
322                                       .findByC_R_P(companyId, repositoryId, path, start, end,
323                            orderByComparator);
324            }
325    
326            /**
327            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
328            *
329            * @param companyId the company ID
330            * @param repositoryId the repository ID
331            * @param path the path
332            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
333            * @return the first matching document library content
334            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
335            */
336            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(
337                    long companyId, long repositoryId, java.lang.String path,
338                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
339                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
340                    return getPersistence()
341                                       .findByC_R_P_First(companyId, repositoryId, path,
342                            orderByComparator);
343            }
344    
345            /**
346            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
347            *
348            * @param companyId the company ID
349            * @param repositoryId the repository ID
350            * @param path the path
351            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
352            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
353            */
354            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_First(
355                    long companyId, long repositoryId, java.lang.String path,
356                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
357                    return getPersistence()
358                                       .fetchByC_R_P_First(companyId, repositoryId, path,
359                            orderByComparator);
360            }
361    
362            /**
363            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
364            *
365            * @param companyId the company ID
366            * @param repositoryId the repository ID
367            * @param path the path
368            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
369            * @return the last matching document library content
370            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
371            */
372            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(
373                    long companyId, long repositoryId, java.lang.String path,
374                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
375                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
376                    return getPersistence()
377                                       .findByC_R_P_Last(companyId, repositoryId, path,
378                            orderByComparator);
379            }
380    
381            /**
382            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
383            *
384            * @param companyId the company ID
385            * @param repositoryId the repository ID
386            * @param path the path
387            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
388            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
389            */
390            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_Last(
391                    long companyId, long repositoryId, java.lang.String path,
392                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
393                    return getPersistence()
394                                       .fetchByC_R_P_Last(companyId, repositoryId, path,
395                            orderByComparator);
396            }
397    
398            /**
399            * 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;.
400            *
401            * @param contentId the primary key of the current document library content
402            * @param companyId the company ID
403            * @param repositoryId the repository ID
404            * @param path the path
405            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
406            * @return the previous, current, and next document library content
407            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
408            */
409            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(
410                    long contentId, long companyId, long repositoryId,
411                    java.lang.String path,
412                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
413                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
414                    return getPersistence()
415                                       .findByC_R_P_PrevAndNext(contentId, companyId, repositoryId,
416                            path, orderByComparator);
417            }
418    
419            /**
420            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; from the database.
421            *
422            * @param companyId the company ID
423            * @param repositoryId the repository ID
424            * @param path the path
425            */
426            public static void removeByC_R_P(long companyId, long repositoryId,
427                    java.lang.String path) {
428                    getPersistence().removeByC_R_P(companyId, repositoryId, path);
429            }
430    
431            /**
432            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
433            *
434            * @param companyId the company ID
435            * @param repositoryId the repository ID
436            * @param path the path
437            * @return the number of matching document library contents
438            */
439            public static int countByC_R_P(long companyId, long repositoryId,
440                    java.lang.String path) {
441                    return getPersistence().countByC_R_P(companyId, repositoryId, path);
442            }
443    
444            /**
445            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
446            *
447            * @param companyId the company ID
448            * @param repositoryId the repository ID
449            * @param path the path
450            * @return the matching document library contents
451            */
452            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
453                    long companyId, long repositoryId, java.lang.String path) {
454                    return getPersistence().findByC_R_LikeP(companyId, repositoryId, path);
455            }
456    
457            /**
458            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
459            *
460            * <p>
461            * 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.
462            * </p>
463            *
464            * @param companyId the company ID
465            * @param repositoryId the repository ID
466            * @param path the path
467            * @param start the lower bound of the range of document library contents
468            * @param end the upper bound of the range of document library contents (not inclusive)
469            * @return the range of matching document library contents
470            */
471            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
472                    long companyId, long repositoryId, java.lang.String path, int start,
473                    int end) {
474                    return getPersistence()
475                                       .findByC_R_LikeP(companyId, repositoryId, path, start, end);
476            }
477    
478            /**
479            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
480            *
481            * <p>
482            * 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.
483            * </p>
484            *
485            * @param companyId the company ID
486            * @param repositoryId the repository ID
487            * @param path the path
488            * @param start the lower bound of the range of document library contents
489            * @param end the upper bound of the range of document library contents (not inclusive)
490            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
491            * @return the ordered range of matching document library contents
492            */
493            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
494                    long companyId, long repositoryId, java.lang.String path, int start,
495                    int end,
496                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
497                    return getPersistence()
498                                       .findByC_R_LikeP(companyId, repositoryId, path, start, end,
499                            orderByComparator);
500            }
501    
502            /**
503            * Returns the first document library content in the ordered set 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            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
509            * @return the first matching document library content
510            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
511            */
512            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(
513                    long companyId, long repositoryId, java.lang.String path,
514                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
515                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
516                    return getPersistence()
517                                       .findByC_R_LikeP_First(companyId, repositoryId, path,
518                            orderByComparator);
519            }
520    
521            /**
522            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
523            *
524            * @param companyId the company ID
525            * @param repositoryId the repository ID
526            * @param path the path
527            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
528            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
529            */
530            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_First(
531                    long companyId, long repositoryId, java.lang.String path,
532                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
533                    return getPersistence()
534                                       .fetchByC_R_LikeP_First(companyId, repositoryId, path,
535                            orderByComparator);
536            }
537    
538            /**
539            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
540            *
541            * @param companyId the company ID
542            * @param repositoryId the repository ID
543            * @param path the path
544            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
545            * @return the last matching document library content
546            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
547            */
548            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(
549                    long companyId, long repositoryId, java.lang.String path,
550                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
551                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
552                    return getPersistence()
553                                       .findByC_R_LikeP_Last(companyId, repositoryId, path,
554                            orderByComparator);
555            }
556    
557            /**
558            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
559            *
560            * @param companyId the company ID
561            * @param repositoryId the repository ID
562            * @param path the path
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
565            */
566            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_Last(
567                    long companyId, long repositoryId, java.lang.String path,
568                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
569                    return getPersistence()
570                                       .fetchByC_R_LikeP_Last(companyId, repositoryId, path,
571                            orderByComparator);
572            }
573    
574            /**
575            * 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;.
576            *
577            * @param contentId the primary key of the current document library content
578            * @param companyId the company ID
579            * @param repositoryId the repository ID
580            * @param path the path
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the previous, current, and next document library content
583            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
584            */
585            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(
586                    long contentId, long companyId, long repositoryId,
587                    java.lang.String path,
588                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator)
589                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
590                    return getPersistence()
591                                       .findByC_R_LikeP_PrevAndNext(contentId, companyId,
592                            repositoryId, path, orderByComparator);
593            }
594    
595            /**
596            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63; from the database.
597            *
598            * @param companyId the company ID
599            * @param repositoryId the repository ID
600            * @param path the path
601            */
602            public static void removeByC_R_LikeP(long companyId, long repositoryId,
603                    java.lang.String path) {
604                    getPersistence().removeByC_R_LikeP(companyId, repositoryId, path);
605            }
606    
607            /**
608            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
609            *
610            * @param companyId the company ID
611            * @param repositoryId the repository ID
612            * @param path the path
613            * @return the number of matching document library contents
614            */
615            public static int countByC_R_LikeP(long companyId, long repositoryId,
616                    java.lang.String path) {
617                    return getPersistence().countByC_R_LikeP(companyId, repositoryId, path);
618            }
619    
620            /**
621            * 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.
622            *
623            * @param companyId the company ID
624            * @param repositoryId the repository ID
625            * @param path the path
626            * @param version the version
627            * @return the matching document library content
628            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
629            */
630            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_V(
631                    long companyId, long repositoryId, java.lang.String path,
632                    java.lang.String version)
633                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
634                    return getPersistence()
635                                       .findByC_R_P_V(companyId, repositoryId, path, version);
636            }
637    
638            /**
639            * 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.
640            *
641            * @param companyId the company ID
642            * @param repositoryId the repository ID
643            * @param path the path
644            * @param version the version
645            * @return the matching document library content, or <code>null</code> if a matching document library content could not be found
646            */
647            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(
648                    long companyId, long repositoryId, java.lang.String path,
649                    java.lang.String version) {
650                    return getPersistence()
651                                       .fetchByC_R_P_V(companyId, repositoryId, path, version);
652            }
653    
654            /**
655            * 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.
656            *
657            * @param companyId the company ID
658            * @param repositoryId the repository ID
659            * @param path the path
660            * @param version the version
661            * @param retrieveFromCache whether to use the finder cache
662            * @return the matching document library content, or <code>null</code> if a matching document library content could not be found
663            */
664            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(
665                    long companyId, long repositoryId, java.lang.String path,
666                    java.lang.String version, boolean retrieveFromCache) {
667                    return getPersistence()
668                                       .fetchByC_R_P_V(companyId, repositoryId, path, version,
669                            retrieveFromCache);
670            }
671    
672            /**
673            * Removes the document library content where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63; from the database.
674            *
675            * @param companyId the company ID
676            * @param repositoryId the repository ID
677            * @param path the path
678            * @param version the version
679            * @return the document library content that was removed
680            */
681            public static com.liferay.portlet.documentlibrary.model.DLContent removeByC_R_P_V(
682                    long companyId, long repositoryId, java.lang.String path,
683                    java.lang.String version)
684                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
685                    return getPersistence()
686                                       .removeByC_R_P_V(companyId, repositoryId, path, version);
687            }
688    
689            /**
690            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63;.
691            *
692            * @param companyId the company ID
693            * @param repositoryId the repository ID
694            * @param path the path
695            * @param version the version
696            * @return the number of matching document library contents
697            */
698            public static int countByC_R_P_V(long companyId, long repositoryId,
699                    java.lang.String path, java.lang.String version) {
700                    return getPersistence()
701                                       .countByC_R_P_V(companyId, repositoryId, path, version);
702            }
703    
704            /**
705            * Caches the document library content in the entity cache if it is enabled.
706            *
707            * @param dlContent the document library content
708            */
709            public static void cacheResult(
710                    com.liferay.portlet.documentlibrary.model.DLContent dlContent) {
711                    getPersistence().cacheResult(dlContent);
712            }
713    
714            /**
715            * Caches the document library contents in the entity cache if it is enabled.
716            *
717            * @param dlContents the document library contents
718            */
719            public static void cacheResult(
720                    java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents) {
721                    getPersistence().cacheResult(dlContents);
722            }
723    
724            /**
725            * Creates a new document library content with the primary key. Does not add the document library content to the database.
726            *
727            * @param contentId the primary key for the new document library content
728            * @return the new document library content
729            */
730            public static com.liferay.portlet.documentlibrary.model.DLContent create(
731                    long contentId) {
732                    return getPersistence().create(contentId);
733            }
734    
735            /**
736            * Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.
737            *
738            * @param contentId the primary key of the document library content
739            * @return the document library content that was removed
740            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
741            */
742            public static com.liferay.portlet.documentlibrary.model.DLContent remove(
743                    long contentId)
744                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
745                    return getPersistence().remove(contentId);
746            }
747    
748            public static com.liferay.portlet.documentlibrary.model.DLContent updateImpl(
749                    com.liferay.portlet.documentlibrary.model.DLContent dlContent) {
750                    return getPersistence().updateImpl(dlContent);
751            }
752    
753            /**
754            * Returns the document library content with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchContentException} if it could not be found.
755            *
756            * @param contentId the primary key of the document library content
757            * @return the document library content
758            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
759            */
760            public static com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(
761                    long contentId)
762                    throws com.liferay.portlet.documentlibrary.NoSuchContentException {
763                    return getPersistence().findByPrimaryKey(contentId);
764            }
765    
766            /**
767            * Returns the document library content with the primary key or returns <code>null</code> if it could not be found.
768            *
769            * @param contentId the primary key of the document library content
770            * @return the document library content, or <code>null</code> if a document library content with the primary key could not be found
771            */
772            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(
773                    long contentId) {
774                    return getPersistence().fetchByPrimaryKey(contentId);
775            }
776    
777            public static java.util.Map<java.io.Serializable, com.liferay.portlet.documentlibrary.model.DLContent> fetchByPrimaryKeys(
778                    java.util.Set<java.io.Serializable> primaryKeys) {
779                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
780            }
781    
782            /**
783            * Returns all the document library contents.
784            *
785            * @return the document library contents
786            */
787            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll() {
788                    return getPersistence().findAll();
789            }
790    
791            /**
792            * Returns a range of all the document library contents.
793            *
794            * <p>
795            * 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.
796            * </p>
797            *
798            * @param start the lower bound of the range of document library contents
799            * @param end the upper bound of the range of document library contents (not inclusive)
800            * @return the range of document library contents
801            */
802            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
803                    int start, int end) {
804                    return getPersistence().findAll(start, end);
805            }
806    
807            /**
808            * Returns an ordered range of all the document library contents.
809            *
810            * <p>
811            * 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.
812            * </p>
813            *
814            * @param start the lower bound of the range of document library contents
815            * @param end the upper bound of the range of document library contents (not inclusive)
816            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
817            * @return the ordered range of document library contents
818            */
819            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
820                    int start, int end,
821                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLContent> orderByComparator) {
822                    return getPersistence().findAll(start, end, orderByComparator);
823            }
824    
825            /**
826            * Removes all the document library contents from the database.
827            */
828            public static void removeAll() {
829                    getPersistence().removeAll();
830            }
831    
832            /**
833            * Returns the number of document library contents.
834            *
835            * @return the number of document library contents
836            */
837            public static int countAll() {
838                    return getPersistence().countAll();
839            }
840    
841            public static DLContentPersistence getPersistence() {
842                    if (_persistence == null) {
843                            _persistence = (DLContentPersistence)PortalBeanLocatorUtil.locate(DLContentPersistence.class.getName());
844    
845                            ReferenceRegistry.registerReference(DLContentUtil.class,
846                                    "_persistence");
847                    }
848    
849                    return _persistence;
850            }
851    
852            /**
853             * @deprecated As of 6.2.0
854             */
855            @Deprecated
856            public void setPersistence(DLContentPersistence persistence) {
857            }
858    
859            private static DLContentPersistence _persistence;
860    }