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