001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.dynamicdatalists.service.persistence;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.util.OrderByComparator;
022    import com.liferay.portal.kernel.util.ReferenceRegistry;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion;
026    
027    import java.util.List;
028    
029    /**
030     * 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.
031     *
032     * <p>
033     * Caching information and settings can be found in <code>portal.properties</code>
034     * </p>
035     *
036     * @author Brian Wing Shun Chan
037     * @see DDLRecordVersionPersistence
038     * @see DDLRecordVersionPersistenceImpl
039     * @generated
040     */
041    @ProviderType
042    public class DDLRecordVersionUtil {
043            /*
044             * NOTE FOR DEVELOPERS:
045             *
046             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
047             */
048    
049            /**
050             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
051             */
052            public static void clearCache() {
053                    getPersistence().clearCache();
054            }
055    
056            /**
057             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
058             */
059            public static void clearCache(DDLRecordVersion ddlRecordVersion) {
060                    getPersistence().clearCache(ddlRecordVersion);
061            }
062    
063            /**
064             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
065             */
066            public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
067                    return getPersistence().countWithDynamicQuery(dynamicQuery);
068            }
069    
070            /**
071             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
072             */
073            public static List<DDLRecordVersion> findWithDynamicQuery(
074                    DynamicQuery dynamicQuery) {
075                    return getPersistence().findWithDynamicQuery(dynamicQuery);
076            }
077    
078            /**
079             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
080             */
081            public static List<DDLRecordVersion> findWithDynamicQuery(
082                    DynamicQuery dynamicQuery, int start, int end) {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DDLRecordVersion> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator<DDLRecordVersion> orderByComparator) {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
099             */
100            public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion) {
101                    return getPersistence().update(ddlRecordVersion);
102            }
103    
104            /**
105             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
106             */
107            public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion,
108                    ServiceContext serviceContext) {
109                    return getPersistence().update(ddlRecordVersion, serviceContext);
110            }
111    
112            /**
113            * Returns all the d d l record versions where recordId = &#63;.
114            *
115            * @param recordId the record ID
116            * @return the matching d d l record versions
117            */
118            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
119                    long recordId) {
120                    return getPersistence().findByRecordId(recordId);
121            }
122    
123            /**
124            * Returns a range of all the d d l record versions where recordId = &#63;.
125            *
126            * <p>
127            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
128            * </p>
129            *
130            * @param recordId the record ID
131            * @param start the lower bound of the range of d d l record versions
132            * @param end the upper bound of the range of d d l record versions (not inclusive)
133            * @return the range of matching d d l record versions
134            */
135            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
136                    long recordId, int start, int end) {
137                    return getPersistence().findByRecordId(recordId, start, end);
138            }
139    
140            /**
141            * Returns an ordered range of all the d d l record versions where recordId = &#63;.
142            *
143            * <p>
144            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
145            * </p>
146            *
147            * @param recordId the record ID
148            * @param start the lower bound of the range of d d l record versions
149            * @param end the upper bound of the range of d d l record versions (not inclusive)
150            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
151            * @return the ordered range of matching d d l record versions
152            */
153            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
154                    long recordId, int start, int end,
155                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
156                    return getPersistence()
157                                       .findByRecordId(recordId, start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the first d d l record version in the ordered set where recordId = &#63;.
162            *
163            * @param recordId the record ID
164            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
165            * @return the first matching d d l record version
166            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
167            */
168            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First(
169                    long recordId,
170                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
171                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
172                    return getPersistence().findByRecordId_First(recordId, orderByComparator);
173            }
174    
175            /**
176            * Returns the first d d l record version in the ordered set where recordId = &#63;.
177            *
178            * @param recordId the record ID
179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
180            * @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
181            */
182            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First(
183                    long recordId,
184                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
185                    return getPersistence()
186                                       .fetchByRecordId_First(recordId, orderByComparator);
187            }
188    
189            /**
190            * Returns the last d d l record version in the ordered set where recordId = &#63;.
191            *
192            * @param recordId the record ID
193            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
194            * @return the last matching d d l record version
195            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
196            */
197            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last(
198                    long recordId,
199                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
200                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
201                    return getPersistence().findByRecordId_Last(recordId, orderByComparator);
202            }
203    
204            /**
205            * Returns the last d d l record version in the ordered set where recordId = &#63;.
206            *
207            * @param recordId the record ID
208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
209            * @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
210            */
211            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last(
212                    long recordId,
213                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
214                    return getPersistence().fetchByRecordId_Last(recordId, orderByComparator);
215            }
216    
217            /**
218            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63;.
219            *
220            * @param recordVersionId the primary key of the current d d l record version
221            * @param recordId the record ID
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the previous, current, and next d d l record version
224            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
225            */
226            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext(
227                    long recordVersionId, long recordId,
228                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
229                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
230                    return getPersistence()
231                                       .findByRecordId_PrevAndNext(recordVersionId, recordId,
232                            orderByComparator);
233            }
234    
235            /**
236            * Removes all the d d l record versions where recordId = &#63; from the database.
237            *
238            * @param recordId the record ID
239            */
240            public static void removeByRecordId(long recordId) {
241                    getPersistence().removeByRecordId(recordId);
242            }
243    
244            /**
245            * Returns the number of d d l record versions where recordId = &#63;.
246            *
247            * @param recordId the record ID
248            * @return the number of matching d d l record versions
249            */
250            public static int countByRecordId(long recordId) {
251                    return getPersistence().countByRecordId(recordId);
252            }
253    
254            /**
255            * 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.
256            *
257            * @param recordId the record ID
258            * @param version the version
259            * @return the matching d d l record version
260            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
261            */
262            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V(
263                    long recordId, java.lang.String version)
264                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
265                    return getPersistence().findByR_V(recordId, version);
266            }
267    
268            /**
269            * 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.
270            *
271            * @param recordId the record ID
272            * @param version the version
273            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
274            */
275            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
276                    long recordId, java.lang.String version) {
277                    return getPersistence().fetchByR_V(recordId, version);
278            }
279    
280            /**
281            * 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.
282            *
283            * @param recordId the record ID
284            * @param version the version
285            * @param retrieveFromCache whether to use the finder cache
286            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
287            */
288            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
289                    long recordId, java.lang.String version, boolean retrieveFromCache) {
290                    return getPersistence().fetchByR_V(recordId, version, retrieveFromCache);
291            }
292    
293            /**
294            * Removes the d d l record version where recordId = &#63; and version = &#63; from the database.
295            *
296            * @param recordId the record ID
297            * @param version the version
298            * @return the d d l record version that was removed
299            */
300            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V(
301                    long recordId, java.lang.String version)
302                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
303                    return getPersistence().removeByR_V(recordId, version);
304            }
305    
306            /**
307            * Returns the number of d d l record versions where recordId = &#63; and version = &#63;.
308            *
309            * @param recordId the record ID
310            * @param version the version
311            * @return the number of matching d d l record versions
312            */
313            public static int countByR_V(long recordId, java.lang.String version) {
314                    return getPersistence().countByR_V(recordId, version);
315            }
316    
317            /**
318            * Returns all the d d l record versions where recordId = &#63; and status = &#63;.
319            *
320            * @param recordId the record ID
321            * @param status the status
322            * @return the matching d d l record versions
323            */
324            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
325                    long recordId, int status) {
326                    return getPersistence().findByR_S(recordId, status);
327            }
328    
329            /**
330            * Returns a range of all the d d l record versions where recordId = &#63; and status = &#63;.
331            *
332            * <p>
333            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
334            * </p>
335            *
336            * @param recordId the record ID
337            * @param status the status
338            * @param start the lower bound of the range of d d l record versions
339            * @param end the upper bound of the range of d d l record versions (not inclusive)
340            * @return the range of matching d d l record versions
341            */
342            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
343                    long recordId, int status, int start, int end) {
344                    return getPersistence().findByR_S(recordId, status, start, end);
345            }
346    
347            /**
348            * Returns an ordered range of all the d d l record versions where recordId = &#63; and status = &#63;.
349            *
350            * <p>
351            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
352            * </p>
353            *
354            * @param recordId the record ID
355            * @param status the status
356            * @param start the lower bound of the range of d d l record versions
357            * @param end the upper bound of the range of d d l record versions (not inclusive)
358            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
359            * @return the ordered range of matching d d l record versions
360            */
361            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
362                    long recordId, int status, int start, int end,
363                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
364                    return getPersistence()
365                                       .findByR_S(recordId, status, start, end, orderByComparator);
366            }
367    
368            /**
369            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
370            *
371            * @param recordId the record ID
372            * @param status the status
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the first matching d d l record version
375            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
376            */
377            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First(
378                    long recordId, int status,
379                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
380                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
381                    return getPersistence()
382                                       .findByR_S_First(recordId, status, orderByComparator);
383            }
384    
385            /**
386            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
387            *
388            * @param recordId the record ID
389            * @param status the status
390            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
391            * @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
392            */
393            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First(
394                    long recordId, int status,
395                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
396                    return getPersistence()
397                                       .fetchByR_S_First(recordId, status, orderByComparator);
398            }
399    
400            /**
401            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
402            *
403            * @param recordId the record ID
404            * @param status the status
405            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
406            * @return the last matching d d l record version
407            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
408            */
409            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last(
410                    long recordId, int status,
411                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
412                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
413                    return getPersistence()
414                                       .findByR_S_Last(recordId, status, orderByComparator);
415            }
416    
417            /**
418            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
419            *
420            * @param recordId the record ID
421            * @param status the status
422            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
423            * @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
424            */
425            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last(
426                    long recordId, int status,
427                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
428                    return getPersistence()
429                                       .fetchByR_S_Last(recordId, status, orderByComparator);
430            }
431    
432            /**
433            * 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;.
434            *
435            * @param recordVersionId the primary key of the current d d l record version
436            * @param recordId the record ID
437            * @param status the status
438            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
439            * @return the previous, current, and next d d l record version
440            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
441            */
442            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext(
443                    long recordVersionId, long recordId, int status,
444                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
445                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
446                    return getPersistence()
447                                       .findByR_S_PrevAndNext(recordVersionId, recordId, status,
448                            orderByComparator);
449            }
450    
451            /**
452            * Removes all the d d l record versions where recordId = &#63; and status = &#63; from the database.
453            *
454            * @param recordId the record ID
455            * @param status the status
456            */
457            public static void removeByR_S(long recordId, int status) {
458                    getPersistence().removeByR_S(recordId, status);
459            }
460    
461            /**
462            * Returns the number of d d l record versions where recordId = &#63; and status = &#63;.
463            *
464            * @param recordId the record ID
465            * @param status the status
466            * @return the number of matching d d l record versions
467            */
468            public static int countByR_S(long recordId, int status) {
469                    return getPersistence().countByR_S(recordId, status);
470            }
471    
472            /**
473            * Caches the d d l record version in the entity cache if it is enabled.
474            *
475            * @param ddlRecordVersion the d d l record version
476            */
477            public static void cacheResult(
478                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) {
479                    getPersistence().cacheResult(ddlRecordVersion);
480            }
481    
482            /**
483            * Caches the d d l record versions in the entity cache if it is enabled.
484            *
485            * @param ddlRecordVersions the d d l record versions
486            */
487            public static void cacheResult(
488                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions) {
489                    getPersistence().cacheResult(ddlRecordVersions);
490            }
491    
492            /**
493            * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.
494            *
495            * @param recordVersionId the primary key for the new d d l record version
496            * @return the new d d l record version
497            */
498            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create(
499                    long recordVersionId) {
500                    return getPersistence().create(recordVersionId);
501            }
502    
503            /**
504            * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.
505            *
506            * @param recordVersionId the primary key of the d d l record version
507            * @return the d d l record version that was removed
508            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
509            */
510            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove(
511                    long recordVersionId)
512                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
513                    return getPersistence().remove(recordVersionId);
514            }
515    
516            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl(
517                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion) {
518                    return getPersistence().updateImpl(ddlRecordVersion);
519            }
520    
521            /**
522            * 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.
523            *
524            * @param recordVersionId the primary key of the d d l record version
525            * @return the d d l record version
526            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
527            */
528            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey(
529                    long recordVersionId)
530                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException {
531                    return getPersistence().findByPrimaryKey(recordVersionId);
532            }
533    
534            /**
535            * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found.
536            *
537            * @param recordVersionId the primary key of the d d l record version
538            * @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
539            */
540            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey(
541                    long recordVersionId) {
542                    return getPersistence().fetchByPrimaryKey(recordVersionId);
543            }
544    
545            public static java.util.Map<java.io.Serializable, com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> fetchByPrimaryKeys(
546                    java.util.Set<java.io.Serializable> primaryKeys) {
547                    return getPersistence().fetchByPrimaryKeys(primaryKeys);
548            }
549    
550            /**
551            * Returns all the d d l record versions.
552            *
553            * @return the d d l record versions
554            */
555            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll() {
556                    return getPersistence().findAll();
557            }
558    
559            /**
560            * Returns a range of all the d d l record versions.
561            *
562            * <p>
563            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
564            * </p>
565            *
566            * @param start the lower bound of the range of d d l record versions
567            * @param end the upper bound of the range of d d l record versions (not inclusive)
568            * @return the range of d d l record versions
569            */
570            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
571                    int start, int end) {
572                    return getPersistence().findAll(start, end);
573            }
574    
575            /**
576            * Returns an ordered range of all the d d l record versions.
577            *
578            * <p>
579            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
580            * </p>
581            *
582            * @param start the lower bound of the range of d d l record versions
583            * @param end the upper bound of the range of d d l record versions (not inclusive)
584            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
585            * @return the ordered range of d d l record versions
586            */
587            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
588                    int start, int end,
589                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator) {
590                    return getPersistence().findAll(start, end, orderByComparator);
591            }
592    
593            /**
594            * Removes all the d d l record versions from the database.
595            */
596            public static void removeAll() {
597                    getPersistence().removeAll();
598            }
599    
600            /**
601            * Returns the number of d d l record versions.
602            *
603            * @return the number of d d l record versions
604            */
605            public static int countAll() {
606                    return getPersistence().countAll();
607            }
608    
609            public static DDLRecordVersionPersistence getPersistence() {
610                    if (_persistence == null) {
611                            _persistence = (DDLRecordVersionPersistence)PortalBeanLocatorUtil.locate(DDLRecordVersionPersistence.class.getName());
612    
613                            ReferenceRegistry.registerReference(DDLRecordVersionUtil.class,
614                                    "_persistence");
615                    }
616    
617                    return _persistence;
618            }
619    
620            /**
621             * @deprecated As of 6.2.0
622             */
623            @Deprecated
624            public void setPersistence(DDLRecordVersionPersistence persistence) {
625            }
626    
627            private static DDLRecordVersionPersistence _persistence;
628    }