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.dynamicdatalists.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.dynamicdatalists.model.DDLRecordVersion;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d l record version service. This utility wraps {@link DDLRecordVersionPersistenceImpl} 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 DDLRecordVersionPersistence
037     * @see DDLRecordVersionPersistenceImpl
038     * @generated
039     */
040    public class DDLRecordVersionUtil {
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(DDLRecordVersion ddlRecordVersion) {
058                    getPersistence().clearCache(ddlRecordVersion);
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<DDLRecordVersion> 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<DDLRecordVersion> 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<DDLRecordVersion> 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 DDLRecordVersion update(DDLRecordVersion ddlRecordVersion)
101                    throws SystemException {
102                    return getPersistence().update(ddlRecordVersion);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddlRecordVersion, serviceContext);
111            }
112    
113            /**
114            * Caches the d d l record version in the entity cache if it is enabled.
115            *
116            * @param ddlRecordVersion the d d l record version
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) {
120                    getPersistence().cacheResult(ddlRecordVersion);
121            }
122    
123            /**
124            * Caches the d d l record versions in the entity cache if it is enabled.
125            *
126            * @param ddlRecordVersions the d d l record versions
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions) {
130                    getPersistence().cacheResult(ddlRecordVersions);
131            }
132    
133            /**
134            * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.
135            *
136            * @param recordVersionId the primary key for the new d d l record version
137            * @return the new d d l record version
138            */
139            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create(
140                    long recordVersionId) {
141                    return getPersistence().create(recordVersionId);
142            }
143    
144            /**
145            * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param recordVersionId the primary key of the d d l record version
148            * @return the d d l record version that was removed
149            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove(
153                    long recordVersionId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
156                    return getPersistence().remove(recordVersionId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl(
160                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(ddlRecordVersion);
163            }
164    
165            /**
166            * Returns the d d l record version with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found.
167            *
168            * @param recordVersionId the primary key of the d d l record version
169            * @return the d d l record version
170            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey(
174                    long recordVersionId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
177                    return getPersistence().findByPrimaryKey(recordVersionId);
178            }
179    
180            /**
181            * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param recordVersionId the primary key of the d d l record version
184            * @return the d d l record version, or <code>null</code> if a d d l record version with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey(
188                    long recordVersionId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(recordVersionId);
191            }
192    
193            /**
194            * Returns all the d d l record versions where recordId = &#63;.
195            *
196            * @param recordId the record ID
197            * @return the matching d d l record versions
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
201                    long recordId)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByRecordId(recordId);
204            }
205    
206            /**
207            * Returns a range of all the d d l record versions where recordId = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param recordId the record ID
214            * @param start the lower bound of the range of d d l record versions
215            * @param end the upper bound of the range of d d l record versions (not inclusive)
216            * @return the range of matching d d l record versions
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
220                    long recordId, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByRecordId(recordId, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the d d l record versions where recordId = &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param recordId the record ID
233            * @param start the lower bound of the range of d d l record versions
234            * @param end the upper bound of the range of d d l record versions (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching d d l record versions
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
240                    long recordId, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence()
244                                       .findByRecordId(recordId, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first d d l record version in the ordered set where recordId = &#63;.
249            *
250            * @param recordId the record ID
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching d d l record version
253            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First(
257                    long recordId,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
261                    return getPersistence().findByRecordId_First(recordId, orderByComparator);
262            }
263    
264            /**
265            * Returns the first d d l record version in the ordered set where recordId = &#63;.
266            *
267            * @param recordId the record ID
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First(
273                    long recordId,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence()
277                                       .fetchByRecordId_First(recordId, orderByComparator);
278            }
279    
280            /**
281            * Returns the last d d l record version in the ordered set where recordId = &#63;.
282            *
283            * @param recordId the record ID
284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
285            * @return the last matching d d l record version
286            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
287            * @throws SystemException if a system exception occurred
288            */
289            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last(
290                    long recordId,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException,
293                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
294                    return getPersistence().findByRecordId_Last(recordId, orderByComparator);
295            }
296    
297            /**
298            * Returns the last d d l record version in the ordered set where recordId = &#63;.
299            *
300            * @param recordId the record ID
301            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
302            * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last(
306                    long recordId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException {
309                    return getPersistence().fetchByRecordId_Last(recordId, orderByComparator);
310            }
311    
312            /**
313            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63;.
314            *
315            * @param recordVersionId the primary key of the current d d l record version
316            * @param recordId the record ID
317            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
318            * @return the previous, current, and next d d l record version
319            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
320            * @throws SystemException if a system exception occurred
321            */
322            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext(
323                    long recordVersionId, long recordId,
324                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
325                    throws com.liferay.portal.kernel.exception.SystemException,
326                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
327                    return getPersistence()
328                                       .findByRecordId_PrevAndNext(recordVersionId, recordId,
329                            orderByComparator);
330            }
331    
332            /**
333            * Returns the d d l record version where recordId = &#63; and version = &#63; or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found.
334            *
335            * @param recordId the record ID
336            * @param version the version
337            * @return the matching d d l record version
338            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
339            * @throws SystemException if a system exception occurred
340            */
341            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V(
342                    long recordId, java.lang.String version)
343                    throws com.liferay.portal.kernel.exception.SystemException,
344                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
345                    return getPersistence().findByR_V(recordId, version);
346            }
347    
348            /**
349            * Returns the d d l record version where recordId = &#63; and version = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
350            *
351            * @param recordId the record ID
352            * @param version the version
353            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
354            * @throws SystemException if a system exception occurred
355            */
356            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
357                    long recordId, java.lang.String version)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().fetchByR_V(recordId, version);
360            }
361    
362            /**
363            * Returns the d d l record version where recordId = &#63; and version = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
364            *
365            * @param recordId the record ID
366            * @param version the version
367            * @param retrieveFromCache whether to use the finder cache
368            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
369            * @throws SystemException if a system exception occurred
370            */
371            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
372                    long recordId, java.lang.String version, boolean retrieveFromCache)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getPersistence().fetchByR_V(recordId, version, retrieveFromCache);
375            }
376    
377            /**
378            * Returns all the d d l record versions where recordId = &#63; and status = &#63;.
379            *
380            * @param recordId the record ID
381            * @param status the status
382            * @return the matching d d l record versions
383            * @throws SystemException if a system exception occurred
384            */
385            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
386                    long recordId, int status)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return getPersistence().findByR_S(recordId, status);
389            }
390    
391            /**
392            * Returns a range of all the d d l record versions where recordId = &#63; and status = &#63;.
393            *
394            * <p>
395            * 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.
396            * </p>
397            *
398            * @param recordId the record ID
399            * @param status the status
400            * @param start the lower bound of the range of d d l record versions
401            * @param end the upper bound of the range of d d l record versions (not inclusive)
402            * @return the range of matching d d l record versions
403            * @throws SystemException if a system exception occurred
404            */
405            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
406                    long recordId, int status, int start, int end)
407                    throws com.liferay.portal.kernel.exception.SystemException {
408                    return getPersistence().findByR_S(recordId, status, start, end);
409            }
410    
411            /**
412            * Returns an ordered range of all the d d l record versions where recordId = &#63; and status = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param recordId the record ID
419            * @param status the status
420            * @param start the lower bound of the range of d d l record versions
421            * @param end the upper bound of the range of d d l record versions (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching d d l record versions
424            * @throws SystemException if a system exception occurred
425            */
426            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
427                    long recordId, int status, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException {
430                    return getPersistence()
431                                       .findByR_S(recordId, status, start, end, orderByComparator);
432            }
433    
434            /**
435            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
436            *
437            * @param recordId the record ID
438            * @param status the status
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the first matching d d l record version
441            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First(
445                    long recordId, int status,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException,
448                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
449                    return getPersistence()
450                                       .findByR_S_First(recordId, status, orderByComparator);
451            }
452    
453            /**
454            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
455            *
456            * @param recordId the record ID
457            * @param status the status
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First(
463                    long recordId, int status,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getPersistence()
467                                       .fetchByR_S_First(recordId, status, orderByComparator);
468            }
469    
470            /**
471            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
472            *
473            * @param recordId the record ID
474            * @param status the status
475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
476            * @return the last matching d d l record version
477            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
478            * @throws SystemException if a system exception occurred
479            */
480            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last(
481                    long recordId, int status,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
485                    return getPersistence()
486                                       .findByR_S_Last(recordId, status, orderByComparator);
487            }
488    
489            /**
490            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
491            *
492            * @param recordId the record ID
493            * @param status the status
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
496            * @throws SystemException if a system exception occurred
497            */
498            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last(
499                    long recordId, int status,
500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getPersistence()
503                                       .fetchByR_S_Last(recordId, status, orderByComparator);
504            }
505    
506            /**
507            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63; and status = &#63;.
508            *
509            * @param recordVersionId the primary key of the current d d l record version
510            * @param recordId the record ID
511            * @param status the status
512            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
513            * @return the previous, current, and next d d l record version
514            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext(
518                    long recordVersionId, long recordId, int status,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException,
521                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
522                    return getPersistence()
523                                       .findByR_S_PrevAndNext(recordVersionId, recordId, status,
524                            orderByComparator);
525            }
526    
527            /**
528            * Returns all the d d l record versions.
529            *
530            * @return the d d l record versions
531            * @throws SystemException if a system exception occurred
532            */
533            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll()
534                    throws com.liferay.portal.kernel.exception.SystemException {
535                    return getPersistence().findAll();
536            }
537    
538            /**
539            * Returns a range of all the d d l record versions.
540            *
541            * <p>
542            * 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.
543            * </p>
544            *
545            * @param start the lower bound of the range of d d l record versions
546            * @param end the upper bound of the range of d d l record versions (not inclusive)
547            * @return the range of d d l record versions
548            * @throws SystemException if a system exception occurred
549            */
550            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
551                    int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getPersistence().findAll(start, end);
554            }
555    
556            /**
557            * Returns an ordered range of all the d d l record versions.
558            *
559            * <p>
560            * 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.
561            * </p>
562            *
563            * @param start the lower bound of the range of d d l record versions
564            * @param end the upper bound of the range of d d l record versions (not inclusive)
565            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
566            * @return the ordered range of d d l record versions
567            * @throws SystemException if a system exception occurred
568            */
569            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
570                    int start, int end,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return getPersistence().findAll(start, end, orderByComparator);
574            }
575    
576            /**
577            * Removes all the d d l record versions where recordId = &#63; from the database.
578            *
579            * @param recordId the record ID
580            * @throws SystemException if a system exception occurred
581            */
582            public static void removeByRecordId(long recordId)
583                    throws com.liferay.portal.kernel.exception.SystemException {
584                    getPersistence().removeByRecordId(recordId);
585            }
586    
587            /**
588            * Removes the d d l record version where recordId = &#63; and version = &#63; from the database.
589            *
590            * @param recordId the record ID
591            * @param version the version
592            * @return the d d l record version that was removed
593            * @throws SystemException if a system exception occurred
594            */
595            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V(
596                    long recordId, java.lang.String version)
597                    throws com.liferay.portal.kernel.exception.SystemException,
598                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
599                    return getPersistence().removeByR_V(recordId, version);
600            }
601    
602            /**
603            * Removes all the d d l record versions where recordId = &#63; and status = &#63; from the database.
604            *
605            * @param recordId the record ID
606            * @param status the status
607            * @throws SystemException if a system exception occurred
608            */
609            public static void removeByR_S(long recordId, int status)
610                    throws com.liferay.portal.kernel.exception.SystemException {
611                    getPersistence().removeByR_S(recordId, status);
612            }
613    
614            /**
615            * Removes all the d d l record versions from the database.
616            *
617            * @throws SystemException if a system exception occurred
618            */
619            public static void removeAll()
620                    throws com.liferay.portal.kernel.exception.SystemException {
621                    getPersistence().removeAll();
622            }
623    
624            /**
625            * Returns the number of d d l record versions where recordId = &#63;.
626            *
627            * @param recordId the record ID
628            * @return the number of matching d d l record versions
629            * @throws SystemException if a system exception occurred
630            */
631            public static int countByRecordId(long recordId)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return getPersistence().countByRecordId(recordId);
634            }
635    
636            /**
637            * Returns the number of d d l record versions where recordId = &#63; and version = &#63;.
638            *
639            * @param recordId the record ID
640            * @param version the version
641            * @return the number of matching d d l record versions
642            * @throws SystemException if a system exception occurred
643            */
644            public static int countByR_V(long recordId, java.lang.String version)
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    return getPersistence().countByR_V(recordId, version);
647            }
648    
649            /**
650            * Returns the number of d d l record versions where recordId = &#63; and status = &#63;.
651            *
652            * @param recordId the record ID
653            * @param status the status
654            * @return the number of matching d d l record versions
655            * @throws SystemException if a system exception occurred
656            */
657            public static int countByR_S(long recordId, int status)
658                    throws com.liferay.portal.kernel.exception.SystemException {
659                    return getPersistence().countByR_S(recordId, status);
660            }
661    
662            /**
663            * Returns the number of d d l record versions.
664            *
665            * @return the number of d d l record versions
666            * @throws SystemException if a system exception occurred
667            */
668            public static int countAll()
669                    throws com.liferay.portal.kernel.exception.SystemException {
670                    return getPersistence().countAll();
671            }
672    
673            public static DDLRecordVersionPersistence getPersistence() {
674                    if (_persistence == null) {
675                            _persistence = (DDLRecordVersionPersistence)PortalBeanLocatorUtil.locate(DDLRecordVersionPersistence.class.getName());
676    
677                            ReferenceRegistry.registerReference(DDLRecordVersionUtil.class,
678                                    "_persistence");
679                    }
680    
681                    return _persistence;
682            }
683    
684            /**
685             * @deprecated
686             */
687            public void setPersistence(DDLRecordVersionPersistence persistence) {
688            }
689    
690            private static DDLRecordVersionPersistence _persistence;
691    }