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