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.DDLRecord;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d l record service. This utility wraps {@link DDLRecordPersistenceImpl} 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 DDLRecordPersistence
037     * @see DDLRecordPersistenceImpl
038     * @generated
039     */
040    public class DDLRecordUtil {
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(DDLRecord ddlRecord) {
058                    getPersistence().clearCache(ddlRecord);
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<DDLRecord> 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<DDLRecord> 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<DDLRecord> 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 DDLRecord update(DDLRecord ddlRecord, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(ddlRecord, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static DDLRecord update(DDLRecord ddlRecord, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddlRecord, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the d d l record in the entity cache if it is enabled.
115            *
116            * @param ddlRecord the d d l record
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) {
120                    getPersistence().cacheResult(ddlRecord);
121            }
122    
123            /**
124            * Caches the d d l records in the entity cache if it is enabled.
125            *
126            * @param ddlRecords the d d l records
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords) {
130                    getPersistence().cacheResult(ddlRecords);
131            }
132    
133            /**
134            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
135            *
136            * @param recordId the primary key for the new d d l record
137            * @return the new d d l record
138            */
139            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord create(
140                    long recordId) {
141                    return getPersistence().create(recordId);
142            }
143    
144            /**
145            * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param recordId the primary key of the d d l record
148            * @return the d d l record that was removed
149            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record 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.DDLRecord remove(
153                    long recordId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
156                    return getPersistence().remove(recordId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl(
160                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(ddlRecord, merge);
164            }
165    
166            /**
167            * Returns the d d l record with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found.
168            *
169            * @param recordId the primary key of the d d l record
170            * @return the d d l record
171            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record 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.DDLRecord findByPrimaryKey(
175                    long recordId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
178                    return getPersistence().findByPrimaryKey(recordId);
179            }
180    
181            /**
182            * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param recordId the primary key of the d d l record
185            * @return the d d l record, or <code>null</code> if a d d l record 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.DDLRecord fetchByPrimaryKey(
189                    long recordId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(recordId);
192            }
193    
194            /**
195            * Returns all the d d l records where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching d d l records
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the d d l records where uuid = &#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 uuid the uuid
215            * @param start the lower bound of the range of d d l records
216            * @param end the upper bound of the range of d d l records (not inclusive)
217            * @return the range of matching d d l records
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the d d l records where uuid = &#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 uuid the uuid
234            * @param start the lower bound of the range of d d l records
235            * @param end the upper bound of the range of d d l records (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 records
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first d d l record in the ordered set where uuid = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching d d l record
257            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last d d l record in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching d d l record
278            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param recordId the primary key of the current d d l record
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next d d l record
300            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext(
304                    long recordId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(recordId, uuid, orderByComparator);
310            }
311    
312            /**
313            * Returns the d d l record where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordException} if it could not be found.
314            *
315            * @param uuid the uuid
316            * @param groupId the group ID
317            * @return the matching d d l record
318            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
325                    return getPersistence().findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329            * Returns the d d l record where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
330            *
331            * @param uuid the uuid
332            * @param groupId the group ID
333            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
337                    java.lang.String uuid, long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().fetchByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * Returns the d d l record where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Returns all the d d l records where recordSetId = &#63;.
359            *
360            * @param recordSetId the record set ID
361            * @return the matching d d l records
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
365                    long recordSetId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByRecordSetId(recordSetId);
368            }
369    
370            /**
371            * Returns a range of all the d d l records where recordSetId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param recordSetId the record set ID
378            * @param start the lower bound of the range of d d l records
379            * @param end the upper bound of the range of d d l records (not inclusive)
380            * @return the range of matching d d l records
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
384                    long recordSetId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByRecordSetId(recordSetId, start, end);
387            }
388    
389            /**
390            * Returns an ordered range of all the d d l records where recordSetId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param recordSetId the record set ID
397            * @param start the lower bound of the range of d d l records
398            * @param end the upper bound of the range of d d l records (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of matching d d l records
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
404                    long recordSetId, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence()
408                                       .findByRecordSetId(recordSetId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Returns the first d d l record in the ordered set where recordSetId = &#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 recordSetId the record set ID
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the first matching d d l record
421            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First(
425                    long recordSetId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
429                    return getPersistence()
430                                       .findByRecordSetId_First(recordSetId, orderByComparator);
431            }
432    
433            /**
434            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
435            *
436            * <p>
437            * 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.
438            * </p>
439            *
440            * @param recordSetId the record set ID
441            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
442            * @return the last matching d d l record
443            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
444            * @throws SystemException if a system exception occurred
445            */
446            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last(
447                    long recordSetId,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException,
450                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
451                    return getPersistence()
452                                       .findByRecordSetId_Last(recordSetId, orderByComparator);
453            }
454    
455            /**
456            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63;.
457            *
458            * <p>
459            * 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.
460            * </p>
461            *
462            * @param recordId the primary key of the current d d l record
463            * @param recordSetId the record set ID
464            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
465            * @return the previous, current, and next d d l record
466            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext(
470                    long recordId, long recordSetId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException,
473                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
474                    return getPersistence()
475                                       .findByRecordSetId_PrevAndNext(recordId, recordSetId,
476                            orderByComparator);
477            }
478    
479            /**
480            * Returns all the d d l records where recordSetId = &#63; and userId = &#63;.
481            *
482            * @param recordSetId the record set ID
483            * @param userId the user ID
484            * @return the matching d d l records
485            * @throws SystemException if a system exception occurred
486            */
487            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
488                    long recordSetId, long userId)
489                    throws com.liferay.portal.kernel.exception.SystemException {
490                    return getPersistence().findByR_U(recordSetId, userId);
491            }
492    
493            /**
494            * Returns a range of all the d d l records where recordSetId = &#63; and userId = &#63;.
495            *
496            * <p>
497            * 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.
498            * </p>
499            *
500            * @param recordSetId the record set ID
501            * @param userId the user ID
502            * @param start the lower bound of the range of d d l records
503            * @param end the upper bound of the range of d d l records (not inclusive)
504            * @return the range of matching d d l records
505            * @throws SystemException if a system exception occurred
506            */
507            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
508                    long recordSetId, long userId, int start, int end)
509                    throws com.liferay.portal.kernel.exception.SystemException {
510                    return getPersistence().findByR_U(recordSetId, userId, start, end);
511            }
512    
513            /**
514            * Returns an ordered range of all the d d l records where recordSetId = &#63; and userId = &#63;.
515            *
516            * <p>
517            * 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.
518            * </p>
519            *
520            * @param recordSetId the record set ID
521            * @param userId the user ID
522            * @param start the lower bound of the range of d d l records
523            * @param end the upper bound of the range of d d l records (not inclusive)
524            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
525            * @return the ordered range of matching d d l records
526            * @throws SystemException if a system exception occurred
527            */
528            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
529                    long recordSetId, long userId, int start, int end,
530                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return getPersistence()
533                                       .findByR_U(recordSetId, userId, start, end, orderByComparator);
534            }
535    
536            /**
537            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
538            *
539            * <p>
540            * 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.
541            * </p>
542            *
543            * @param recordSetId the record set ID
544            * @param userId the user ID
545            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
546            * @return the first matching d d l record
547            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
548            * @throws SystemException if a system exception occurred
549            */
550            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First(
551                    long recordSetId, long userId,
552                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
553                    throws com.liferay.portal.kernel.exception.SystemException,
554                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
555                    return getPersistence()
556                                       .findByR_U_First(recordSetId, userId, orderByComparator);
557            }
558    
559            /**
560            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
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.
564            * </p>
565            *
566            * @param recordSetId the record set ID
567            * @param userId the user ID
568            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
569            * @return the last matching d d l record
570            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
571            * @throws SystemException if a system exception occurred
572            */
573            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last(
574                    long recordSetId, long userId,
575                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
576                    throws com.liferay.portal.kernel.exception.SystemException,
577                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
578                    return getPersistence()
579                                       .findByR_U_Last(recordSetId, userId, orderByComparator);
580            }
581    
582            /**
583            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
584            *
585            * <p>
586            * 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.
587            * </p>
588            *
589            * @param recordId the primary key of the current d d l record
590            * @param recordSetId the record set ID
591            * @param userId the user ID
592            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
593            * @return the previous, current, and next d d l record
594            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
595            * @throws SystemException if a system exception occurred
596            */
597            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext(
598                    long recordId, long recordSetId, long userId,
599                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
600                    throws com.liferay.portal.kernel.exception.SystemException,
601                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
602                    return getPersistence()
603                                       .findByR_U_PrevAndNext(recordId, recordSetId, userId,
604                            orderByComparator);
605            }
606    
607            /**
608            * Returns all the d d l records.
609            *
610            * @return the d d l records
611            * @throws SystemException if a system exception occurred
612            */
613            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll()
614                    throws com.liferay.portal.kernel.exception.SystemException {
615                    return getPersistence().findAll();
616            }
617    
618            /**
619            * Returns a range of all the d d l records.
620            *
621            * <p>
622            * 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.
623            * </p>
624            *
625            * @param start the lower bound of the range of d d l records
626            * @param end the upper bound of the range of d d l records (not inclusive)
627            * @return the range of d d l records
628            * @throws SystemException if a system exception occurred
629            */
630            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
631                    int start, int end)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return getPersistence().findAll(start, end);
634            }
635    
636            /**
637            * Returns an ordered range of all the d d l records.
638            *
639            * <p>
640            * 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.
641            * </p>
642            *
643            * @param start the lower bound of the range of d d l records
644            * @param end the upper bound of the range of d d l records (not inclusive)
645            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
646            * @return the ordered range of d d l records
647            * @throws SystemException if a system exception occurred
648            */
649            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
650                    int start, int end,
651                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
652                    throws com.liferay.portal.kernel.exception.SystemException {
653                    return getPersistence().findAll(start, end, orderByComparator);
654            }
655    
656            /**
657            * Removes all the d d l records where uuid = &#63; from the database.
658            *
659            * @param uuid the uuid
660            * @throws SystemException if a system exception occurred
661            */
662            public static void removeByUuid(java.lang.String uuid)
663                    throws com.liferay.portal.kernel.exception.SystemException {
664                    getPersistence().removeByUuid(uuid);
665            }
666    
667            /**
668            * Removes the d d l record where uuid = &#63; and groupId = &#63; from the database.
669            *
670            * @param uuid the uuid
671            * @param groupId the group ID
672            * @throws SystemException if a system exception occurred
673            */
674            public static void removeByUUID_G(java.lang.String uuid, long groupId)
675                    throws com.liferay.portal.kernel.exception.SystemException,
676                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
677                    getPersistence().removeByUUID_G(uuid, groupId);
678            }
679    
680            /**
681            * Removes all the d d l records where recordSetId = &#63; from the database.
682            *
683            * @param recordSetId the record set ID
684            * @throws SystemException if a system exception occurred
685            */
686            public static void removeByRecordSetId(long recordSetId)
687                    throws com.liferay.portal.kernel.exception.SystemException {
688                    getPersistence().removeByRecordSetId(recordSetId);
689            }
690    
691            /**
692            * Removes all the d d l records where recordSetId = &#63; and userId = &#63; from the database.
693            *
694            * @param recordSetId the record set ID
695            * @param userId the user ID
696            * @throws SystemException if a system exception occurred
697            */
698            public static void removeByR_U(long recordSetId, long userId)
699                    throws com.liferay.portal.kernel.exception.SystemException {
700                    getPersistence().removeByR_U(recordSetId, userId);
701            }
702    
703            /**
704            * Removes all the d d l records from the database.
705            *
706            * @throws SystemException if a system exception occurred
707            */
708            public static void removeAll()
709                    throws com.liferay.portal.kernel.exception.SystemException {
710                    getPersistence().removeAll();
711            }
712    
713            /**
714            * Returns the number of d d l records where uuid = &#63;.
715            *
716            * @param uuid the uuid
717            * @return the number of matching d d l records
718            * @throws SystemException if a system exception occurred
719            */
720            public static int countByUuid(java.lang.String uuid)
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    return getPersistence().countByUuid(uuid);
723            }
724    
725            /**
726            * Returns the number of d d l records where uuid = &#63; and groupId = &#63;.
727            *
728            * @param uuid the uuid
729            * @param groupId the group ID
730            * @return the number of matching d d l records
731            * @throws SystemException if a system exception occurred
732            */
733            public static int countByUUID_G(java.lang.String uuid, long groupId)
734                    throws com.liferay.portal.kernel.exception.SystemException {
735                    return getPersistence().countByUUID_G(uuid, groupId);
736            }
737    
738            /**
739            * Returns the number of d d l records where recordSetId = &#63;.
740            *
741            * @param recordSetId the record set ID
742            * @return the number of matching d d l records
743            * @throws SystemException if a system exception occurred
744            */
745            public static int countByRecordSetId(long recordSetId)
746                    throws com.liferay.portal.kernel.exception.SystemException {
747                    return getPersistence().countByRecordSetId(recordSetId);
748            }
749    
750            /**
751            * Returns the number of d d l records where recordSetId = &#63; and userId = &#63;.
752            *
753            * @param recordSetId the record set ID
754            * @param userId the user ID
755            * @return the number of matching d d l records
756            * @throws SystemException if a system exception occurred
757            */
758            public static int countByR_U(long recordSetId, long userId)
759                    throws com.liferay.portal.kernel.exception.SystemException {
760                    return getPersistence().countByR_U(recordSetId, userId);
761            }
762    
763            /**
764            * Returns the number of d d l records.
765            *
766            * @return the number of d d l records
767            * @throws SystemException if a system exception occurred
768            */
769            public static int countAll()
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    return getPersistence().countAll();
772            }
773    
774            public static DDLRecordPersistence getPersistence() {
775                    if (_persistence == null) {
776                            _persistence = (DDLRecordPersistence)PortalBeanLocatorUtil.locate(DDLRecordPersistence.class.getName());
777    
778                            ReferenceRegistry.registerReference(DDLRecordUtil.class,
779                                    "_persistence");
780                    }
781    
782                    return _persistence;
783            }
784    
785            public void setPersistence(DDLRecordPersistence persistence) {
786                    _persistence = persistence;
787    
788                    ReferenceRegistry.registerReference(DDLRecordUtil.class, "_persistence");
789            }
790    
791            private static DDLRecordPersistence _persistence;
792    }