001    /**
002     * Copyright (c) 2000-2012 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)
099             */
100            public static DLContent update(DLContent dlContent)
101                    throws SystemException {
102                    return getPersistence().update(dlContent);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DLContent update(DLContent dlContent,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(dlContent, 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                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(dlContent);
163            }
164    
165            /**
166            * Returns the document library content with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchContentException} if it could not be found.
167            *
168            * @param contentId the primary key of the document library content
169            * @return the document library content
170            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(
174                    long contentId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.documentlibrary.NoSuchContentException {
177                    return getPersistence().findByPrimaryKey(contentId);
178            }
179    
180            /**
181            * Returns the document library content with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param contentId the primary key of the document library content
184            * @return the document library content, or <code>null</code> if a document library content with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(
188                    long contentId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(contentId);
191            }
192    
193            /**
194            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63;.
195            *
196            * @param companyId the company ID
197            * @param repositoryId the repository ID
198            * @return the matching document library contents
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
202                    long companyId, long repositoryId)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByC_R(companyId, repositoryId);
205            }
206    
207            /**
208            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param companyId the company ID
215            * @param repositoryId the repository ID
216            * @param start the lower bound of the range of document library contents
217            * @param end the upper bound of the range of document library contents (not inclusive)
218            * @return the range of matching document library contents
219            * @throws SystemException if a system exception occurred
220            */
221            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
222                    long companyId, long repositoryId, int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getPersistence().findByC_R(companyId, repositoryId, start, end);
225            }
226    
227            /**
228            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63;.
229            *
230            * <p>
231            * 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.
232            * </p>
233            *
234            * @param companyId the company ID
235            * @param repositoryId the repository ID
236            * @param start the lower bound of the range of document library contents
237            * @param end the upper bound of the range of document library contents (not inclusive)
238            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
239            * @return the ordered range of matching document library contents
240            * @throws SystemException if a system exception occurred
241            */
242            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(
243                    long companyId, long repositoryId, int start, int end,
244                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245                    throws com.liferay.portal.kernel.exception.SystemException {
246                    return getPersistence()
247                                       .findByC_R(companyId, repositoryId, start, end,
248                            orderByComparator);
249            }
250    
251            /**
252            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
253            *
254            * @param companyId the company ID
255            * @param repositoryId the repository ID
256            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
257            * @return the first matching document library content
258            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(
262                    long companyId, long repositoryId,
263                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264                    throws com.liferay.portal.kernel.exception.SystemException,
265                            com.liferay.portlet.documentlibrary.NoSuchContentException {
266                    return getPersistence()
267                                       .findByC_R_First(companyId, repositoryId, orderByComparator);
268            }
269    
270            /**
271            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
272            *
273            * @param companyId the company ID
274            * @param repositoryId the repository ID
275            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
276            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
277            * @throws SystemException if a system exception occurred
278            */
279            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_First(
280                    long companyId, long repositoryId,
281                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
282                    throws com.liferay.portal.kernel.exception.SystemException {
283                    return getPersistence()
284                                       .fetchByC_R_First(companyId, repositoryId, orderByComparator);
285            }
286    
287            /**
288            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
289            *
290            * @param companyId the company ID
291            * @param repositoryId the repository ID
292            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
293            * @return the last matching document library content
294            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
295            * @throws SystemException if a system exception occurred
296            */
297            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(
298                    long companyId, long repositoryId,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.kernel.exception.SystemException,
301                            com.liferay.portlet.documentlibrary.NoSuchContentException {
302                    return getPersistence()
303                                       .findByC_R_Last(companyId, repositoryId, orderByComparator);
304            }
305    
306            /**
307            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
308            *
309            * @param companyId the company ID
310            * @param repositoryId the repository ID
311            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
312            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
313            * @throws SystemException if a system exception occurred
314            */
315            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_Last(
316                    long companyId, long repositoryId,
317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return getPersistence()
320                                       .fetchByC_R_Last(companyId, repositoryId, orderByComparator);
321            }
322    
323            /**
324            * Returns the document library contents before and after the current document library content in the ordered set where companyId = &#63; and repositoryId = &#63;.
325            *
326            * @param contentId the primary key of the current document library content
327            * @param companyId the company ID
328            * @param repositoryId the repository ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the previous, current, and next document library content
331            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(
335                    long contentId, long companyId, long repositoryId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.documentlibrary.NoSuchContentException {
339                    return getPersistence()
340                                       .findByC_R_PrevAndNext(contentId, companyId, repositoryId,
341                            orderByComparator);
342            }
343    
344            /**
345            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
346            *
347            * @param companyId the company ID
348            * @param repositoryId the repository ID
349            * @param path the path
350            * @return the matching document library contents
351            * @throws SystemException if a system exception occurred
352            */
353            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
354                    long companyId, long repositoryId, java.lang.String path)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().findByC_R_P(companyId, repositoryId, path);
357            }
358    
359            /**
360            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
361            *
362            * <p>
363            * 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.
364            * </p>
365            *
366            * @param companyId the company ID
367            * @param repositoryId the repository ID
368            * @param path the path
369            * @param start the lower bound of the range of document library contents
370            * @param end the upper bound of the range of document library contents (not inclusive)
371            * @return the range of matching document library contents
372            * @throws SystemException if a system exception occurred
373            */
374            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
375                    long companyId, long repositoryId, java.lang.String path, int start,
376                    int end) throws com.liferay.portal.kernel.exception.SystemException {
377                    return getPersistence()
378                                       .findByC_R_P(companyId, repositoryId, path, start, end);
379            }
380    
381            /**
382            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
383            *
384            * <p>
385            * 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.
386            * </p>
387            *
388            * @param companyId the company ID
389            * @param repositoryId the repository ID
390            * @param path the path
391            * @param start the lower bound of the range of document library contents
392            * @param end the upper bound of the range of document library contents (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching document library contents
395            * @throws SystemException if a system exception occurred
396            */
397            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(
398                    long companyId, long repositoryId, java.lang.String path, int start,
399                    int end,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getPersistence()
403                                       .findByC_R_P(companyId, repositoryId, path, start, end,
404                            orderByComparator);
405            }
406    
407            /**
408            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
409            *
410            * @param companyId the company ID
411            * @param repositoryId the repository ID
412            * @param path the path
413            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
414            * @return the first matching document library content
415            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
416            * @throws SystemException if a system exception occurred
417            */
418            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(
419                    long companyId, long repositoryId, java.lang.String path,
420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
421                    throws com.liferay.portal.kernel.exception.SystemException,
422                            com.liferay.portlet.documentlibrary.NoSuchContentException {
423                    return getPersistence()
424                                       .findByC_R_P_First(companyId, repositoryId, path,
425                            orderByComparator);
426            }
427    
428            /**
429            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
430            *
431            * @param companyId the company ID
432            * @param repositoryId the repository ID
433            * @param path the path
434            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
435            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_First(
439                    long companyId, long repositoryId, java.lang.String path,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return getPersistence()
443                                       .fetchByC_R_P_First(companyId, repositoryId, path,
444                            orderByComparator);
445            }
446    
447            /**
448            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
449            *
450            * @param companyId the company ID
451            * @param repositoryId the repository ID
452            * @param path the path
453            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
454            * @return the last matching document library content
455            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
456            * @throws SystemException if a system exception occurred
457            */
458            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(
459                    long companyId, long repositoryId, java.lang.String path,
460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
461                    throws com.liferay.portal.kernel.exception.SystemException,
462                            com.liferay.portlet.documentlibrary.NoSuchContentException {
463                    return getPersistence()
464                                       .findByC_R_P_Last(companyId, repositoryId, path,
465                            orderByComparator);
466            }
467    
468            /**
469            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path = &#63;.
470            *
471            * @param companyId the company ID
472            * @param repositoryId the repository ID
473            * @param path the path
474            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
475            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
476            * @throws SystemException if a system exception occurred
477            */
478            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_Last(
479                    long companyId, long repositoryId, java.lang.String path,
480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return getPersistence()
483                                       .fetchByC_R_P_Last(companyId, repositoryId, path,
484                            orderByComparator);
485            }
486    
487            /**
488            * 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;.
489            *
490            * @param contentId the primary key of the current document library content
491            * @param companyId the company ID
492            * @param repositoryId the repository ID
493            * @param path the path
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the previous, current, and next document library content
496            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(
500                    long contentId, long companyId, long repositoryId,
501                    java.lang.String path,
502                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
503                    throws com.liferay.portal.kernel.exception.SystemException,
504                            com.liferay.portlet.documentlibrary.NoSuchContentException {
505                    return getPersistence()
506                                       .findByC_R_P_PrevAndNext(contentId, companyId, repositoryId,
507                            path, orderByComparator);
508            }
509    
510            /**
511            * Returns all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
512            *
513            * @param companyId the company ID
514            * @param repositoryId the repository ID
515            * @param path the path
516            * @return the matching document library contents
517            * @throws SystemException if a system exception occurred
518            */
519            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
520                    long companyId, long repositoryId, java.lang.String path)
521                    throws com.liferay.portal.kernel.exception.SystemException {
522                    return getPersistence().findByC_R_LikeP(companyId, repositoryId, path);
523            }
524    
525            /**
526            * Returns a range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
527            *
528            * <p>
529            * 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.
530            * </p>
531            *
532            * @param companyId the company ID
533            * @param repositoryId the repository ID
534            * @param path the path
535            * @param start the lower bound of the range of document library contents
536            * @param end the upper bound of the range of document library contents (not inclusive)
537            * @return the range of matching document library contents
538            * @throws SystemException if a system exception occurred
539            */
540            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
541                    long companyId, long repositoryId, java.lang.String path, int start,
542                    int end) throws com.liferay.portal.kernel.exception.SystemException {
543                    return getPersistence()
544                                       .findByC_R_LikeP(companyId, repositoryId, path, start, end);
545            }
546    
547            /**
548            * Returns an ordered range of all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
549            *
550            * <p>
551            * 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.
552            * </p>
553            *
554            * @param companyId the company ID
555            * @param repositoryId the repository ID
556            * @param path the path
557            * @param start the lower bound of the range of document library contents
558            * @param end the upper bound of the range of document library contents (not inclusive)
559            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
560            * @return the ordered range of matching document library contents
561            * @throws SystemException if a system exception occurred
562            */
563            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(
564                    long companyId, long repositoryId, java.lang.String path, int start,
565                    int end,
566                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
567                    throws com.liferay.portal.kernel.exception.SystemException {
568                    return getPersistence()
569                                       .findByC_R_LikeP(companyId, repositoryId, path, start, end,
570                            orderByComparator);
571            }
572    
573            /**
574            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
575            *
576            * @param companyId the company ID
577            * @param repositoryId the repository ID
578            * @param path the path
579            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
580            * @return the first matching document library content
581            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(
585                    long companyId, long repositoryId, java.lang.String path,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.kernel.exception.SystemException,
588                            com.liferay.portlet.documentlibrary.NoSuchContentException {
589                    return getPersistence()
590                                       .findByC_R_LikeP_First(companyId, repositoryId, path,
591                            orderByComparator);
592            }
593    
594            /**
595            * Returns the first document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
596            *
597            * @param companyId the company ID
598            * @param repositoryId the repository ID
599            * @param path the path
600            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
601            * @return the first matching document library content, or <code>null</code> if a matching document library content could not be found
602            * @throws SystemException if a system exception occurred
603            */
604            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_First(
605                    long companyId, long repositoryId, java.lang.String path,
606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
607                    throws com.liferay.portal.kernel.exception.SystemException {
608                    return getPersistence()
609                                       .fetchByC_R_LikeP_First(companyId, repositoryId, path,
610                            orderByComparator);
611            }
612    
613            /**
614            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
615            *
616            * @param companyId the company ID
617            * @param repositoryId the repository ID
618            * @param path the path
619            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
620            * @return the last matching document library content
621            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(
625                    long companyId, long repositoryId, java.lang.String path,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.kernel.exception.SystemException,
628                            com.liferay.portlet.documentlibrary.NoSuchContentException {
629                    return getPersistence()
630                                       .findByC_R_LikeP_Last(companyId, repositoryId, path,
631                            orderByComparator);
632            }
633    
634            /**
635            * Returns the last document library content in the ordered set where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
636            *
637            * @param companyId the company ID
638            * @param repositoryId the repository ID
639            * @param path the path
640            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
641            * @return the last matching document library content, or <code>null</code> if a matching document library content could not be found
642            * @throws SystemException if a system exception occurred
643            */
644            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_Last(
645                    long companyId, long repositoryId, java.lang.String path,
646                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
647                    throws com.liferay.portal.kernel.exception.SystemException {
648                    return getPersistence()
649                                       .fetchByC_R_LikeP_Last(companyId, repositoryId, path,
650                            orderByComparator);
651            }
652    
653            /**
654            * 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;.
655            *
656            * @param contentId the primary key of the current document library content
657            * @param companyId the company ID
658            * @param repositoryId the repository ID
659            * @param path the path
660            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
661            * @return the previous, current, and next document library content
662            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a document library content with the primary key could not be found
663            * @throws SystemException if a system exception occurred
664            */
665            public static com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(
666                    long contentId, long companyId, long repositoryId,
667                    java.lang.String path,
668                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
669                    throws com.liferay.portal.kernel.exception.SystemException,
670                            com.liferay.portlet.documentlibrary.NoSuchContentException {
671                    return getPersistence()
672                                       .findByC_R_LikeP_PrevAndNext(contentId, companyId,
673                            repositoryId, path, orderByComparator);
674            }
675    
676            /**
677            * 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.
678            *
679            * @param companyId the company ID
680            * @param repositoryId the repository ID
681            * @param path the path
682            * @param version the version
683            * @return the matching document library content
684            * @throws com.liferay.portlet.documentlibrary.NoSuchContentException if a matching document library content could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public static com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_V(
688                    long companyId, long repositoryId, java.lang.String path,
689                    java.lang.String version)
690                    throws com.liferay.portal.kernel.exception.SystemException,
691                            com.liferay.portlet.documentlibrary.NoSuchContentException {
692                    return getPersistence()
693                                       .findByC_R_P_V(companyId, repositoryId, path, version);
694            }
695    
696            /**
697            * 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.
698            *
699            * @param companyId the company ID
700            * @param repositoryId the repository ID
701            * @param path the path
702            * @param version the version
703            * @return the matching document library content, or <code>null</code> if a matching document library content could not be found
704            * @throws SystemException if a system exception occurred
705            */
706            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(
707                    long companyId, long repositoryId, java.lang.String path,
708                    java.lang.String version)
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    return getPersistence()
711                                       .fetchByC_R_P_V(companyId, repositoryId, path, version);
712            }
713    
714            /**
715            * 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.
716            *
717            * @param companyId the company ID
718            * @param repositoryId the repository ID
719            * @param path the path
720            * @param version the version
721            * @param retrieveFromCache whether to use the finder cache
722            * @return the matching document library content, or <code>null</code> if a matching document library content could not be found
723            * @throws SystemException if a system exception occurred
724            */
725            public static com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(
726                    long companyId, long repositoryId, java.lang.String path,
727                    java.lang.String version, boolean retrieveFromCache)
728                    throws com.liferay.portal.kernel.exception.SystemException {
729                    return getPersistence()
730                                       .fetchByC_R_P_V(companyId, repositoryId, path, version,
731                            retrieveFromCache);
732            }
733    
734            /**
735            * Returns all the document library contents.
736            *
737            * @return the document library contents
738            * @throws SystemException if a system exception occurred
739            */
740            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll()
741                    throws com.liferay.portal.kernel.exception.SystemException {
742                    return getPersistence().findAll();
743            }
744    
745            /**
746            * Returns a range of all the document library contents.
747            *
748            * <p>
749            * 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.
750            * </p>
751            *
752            * @param start the lower bound of the range of document library contents
753            * @param end the upper bound of the range of document library contents (not inclusive)
754            * @return the range of document library contents
755            * @throws SystemException if a system exception occurred
756            */
757            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
758                    int start, int end)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getPersistence().findAll(start, end);
761            }
762    
763            /**
764            * Returns an ordered range of all the document library contents.
765            *
766            * <p>
767            * 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.
768            * </p>
769            *
770            * @param start the lower bound of the range of document library contents
771            * @param end the upper bound of the range of document library contents (not inclusive)
772            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
773            * @return the ordered range of document library contents
774            * @throws SystemException if a system exception occurred
775            */
776            public static java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(
777                    int start, int end,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    return getPersistence().findAll(start, end, orderByComparator);
781            }
782    
783            /**
784            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; from the database.
785            *
786            * @param companyId the company ID
787            * @param repositoryId the repository ID
788            * @throws SystemException if a system exception occurred
789            */
790            public static void removeByC_R(long companyId, long repositoryId)
791                    throws com.liferay.portal.kernel.exception.SystemException {
792                    getPersistence().removeByC_R(companyId, repositoryId);
793            }
794    
795            /**
796            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; from the database.
797            *
798            * @param companyId the company ID
799            * @param repositoryId the repository ID
800            * @param path the path
801            * @throws SystemException if a system exception occurred
802            */
803            public static void removeByC_R_P(long companyId, long repositoryId,
804                    java.lang.String path)
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    getPersistence().removeByC_R_P(companyId, repositoryId, path);
807            }
808    
809            /**
810            * Removes all the document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63; from the database.
811            *
812            * @param companyId the company ID
813            * @param repositoryId the repository ID
814            * @param path the path
815            * @throws SystemException if a system exception occurred
816            */
817            public static void removeByC_R_LikeP(long companyId, long repositoryId,
818                    java.lang.String path)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    getPersistence().removeByC_R_LikeP(companyId, repositoryId, path);
821            }
822    
823            /**
824            * Removes the document library content where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63; from the database.
825            *
826            * @param companyId the company ID
827            * @param repositoryId the repository ID
828            * @param path the path
829            * @param version the version
830            * @return the document library content that was removed
831            * @throws SystemException if a system exception occurred
832            */
833            public static com.liferay.portlet.documentlibrary.model.DLContent removeByC_R_P_V(
834                    long companyId, long repositoryId, java.lang.String path,
835                    java.lang.String version)
836                    throws com.liferay.portal.kernel.exception.SystemException,
837                            com.liferay.portlet.documentlibrary.NoSuchContentException {
838                    return getPersistence()
839                                       .removeByC_R_P_V(companyId, repositoryId, path, version);
840            }
841    
842            /**
843            * Removes all the document library contents from the database.
844            *
845            * @throws SystemException if a system exception occurred
846            */
847            public static void removeAll()
848                    throws com.liferay.portal.kernel.exception.SystemException {
849                    getPersistence().removeAll();
850            }
851    
852            /**
853            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63;.
854            *
855            * @param companyId the company ID
856            * @param repositoryId the repository ID
857            * @return the number of matching document library contents
858            * @throws SystemException if a system exception occurred
859            */
860            public static int countByC_R(long companyId, long repositoryId)
861                    throws com.liferay.portal.kernel.exception.SystemException {
862                    return getPersistence().countByC_R(companyId, repositoryId);
863            }
864    
865            /**
866            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63;.
867            *
868            * @param companyId the company ID
869            * @param repositoryId the repository ID
870            * @param path the path
871            * @return the number of matching document library contents
872            * @throws SystemException if a system exception occurred
873            */
874            public static int countByC_R_P(long companyId, long repositoryId,
875                    java.lang.String path)
876                    throws com.liferay.portal.kernel.exception.SystemException {
877                    return getPersistence().countByC_R_P(companyId, repositoryId, path);
878            }
879    
880            /**
881            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path LIKE &#63;.
882            *
883            * @param companyId the company ID
884            * @param repositoryId the repository ID
885            * @param path the path
886            * @return the number of matching document library contents
887            * @throws SystemException if a system exception occurred
888            */
889            public static int countByC_R_LikeP(long companyId, long repositoryId,
890                    java.lang.String path)
891                    throws com.liferay.portal.kernel.exception.SystemException {
892                    return getPersistence().countByC_R_LikeP(companyId, repositoryId, path);
893            }
894    
895            /**
896            * Returns the number of document library contents where companyId = &#63; and repositoryId = &#63; and path = &#63; and version = &#63;.
897            *
898            * @param companyId the company ID
899            * @param repositoryId the repository ID
900            * @param path the path
901            * @param version the version
902            * @return the number of matching document library contents
903            * @throws SystemException if a system exception occurred
904            */
905            public static int countByC_R_P_V(long companyId, long repositoryId,
906                    java.lang.String path, java.lang.String version)
907                    throws com.liferay.portal.kernel.exception.SystemException {
908                    return getPersistence()
909                                       .countByC_R_P_V(companyId, repositoryId, path, version);
910            }
911    
912            /**
913            * Returns the number of document library contents.
914            *
915            * @return the number of document library contents
916            * @throws SystemException if a system exception occurred
917            */
918            public static int countAll()
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    return getPersistence().countAll();
921            }
922    
923            public static DLContentPersistence getPersistence() {
924                    if (_persistence == null) {
925                            _persistence = (DLContentPersistence)PortalBeanLocatorUtil.locate(DLContentPersistence.class.getName());
926    
927                            ReferenceRegistry.registerReference(DLContentUtil.class,
928                                    "_persistence");
929                    }
930    
931                    return _persistence;
932            }
933    
934            /**
935             * @deprecated
936             */
937            public void setPersistence(DLContentPersistence persistence) {
938            }
939    
940            private static DLContentPersistence _persistence;
941    }