001    /**
002     * Copyright (c) 2000-2013 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            * @param uuid the uuid
251            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
252            * @return the first matching d d l record
253            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
254            * @throws SystemException if a system exception occurred
255            */
256            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First(
257                    java.lang.String uuid,
258                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259                    throws com.liferay.portal.kernel.exception.SystemException,
260                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
261                    return getPersistence().findByUuid_First(uuid, orderByComparator);
262            }
263    
264            /**
265            * Returns the first d d l record in the ordered set where uuid = &#63;.
266            *
267            * @param uuid the uuid
268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
269            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
270            * @throws SystemException if a system exception occurred
271            */
272            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First(
273                    java.lang.String uuid,
274                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
277            }
278    
279            /**
280            * Returns the last d d l record in the ordered set where uuid = &#63;.
281            *
282            * @param uuid the uuid
283            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
284            * @return the last matching d d l record
285            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
286            * @throws SystemException if a system exception occurred
287            */
288            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last(
289                    java.lang.String uuid,
290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
291                    throws com.liferay.portal.kernel.exception.SystemException,
292                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
293                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
294            }
295    
296            /**
297            * Returns the last d d l record in the ordered set where uuid = &#63;.
298            *
299            * @param uuid the uuid
300            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
301            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last(
305                    java.lang.String uuid,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
309            }
310    
311            /**
312            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63;.
313            *
314            * @param recordId the primary key of the current d d l record
315            * @param uuid the uuid
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next d d l record
318            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext(
322                    long recordId, java.lang.String uuid,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
326                    return getPersistence()
327                                       .findByUuid_PrevAndNext(recordId, uuid, orderByComparator);
328            }
329    
330            /**
331            * 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.
332            *
333            * @param uuid the uuid
334            * @param groupId the group ID
335            * @return the matching d d l record
336            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G(
340                    java.lang.String uuid, long groupId)
341                    throws com.liferay.portal.kernel.exception.SystemException,
342                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
343                    return getPersistence().findByUUID_G(uuid, groupId);
344            }
345    
346            /**
347            * 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.
348            *
349            * @param uuid the uuid
350            * @param groupId the group ID
351            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
355                    java.lang.String uuid, long groupId)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getPersistence().fetchByUUID_G(uuid, groupId);
358            }
359    
360            /**
361            * 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.
362            *
363            * @param uuid the uuid
364            * @param groupId the group ID
365            * @param retrieveFromCache whether to use the finder cache
366            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
370                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
373            }
374    
375            /**
376            * Returns all the d d l records where recordSetId = &#63;.
377            *
378            * @param recordSetId the record set ID
379            * @return the matching d d l records
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
383                    long recordSetId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByRecordSetId(recordSetId);
386            }
387    
388            /**
389            * Returns a range of all the d d l records where recordSetId = &#63;.
390            *
391            * <p>
392            * 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.
393            * </p>
394            *
395            * @param recordSetId the record set ID
396            * @param start the lower bound of the range of d d l records
397            * @param end the upper bound of the range of d d l records (not inclusive)
398            * @return the range of matching d d l records
399            * @throws SystemException if a system exception occurred
400            */
401            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
402                    long recordSetId, int start, int end)
403                    throws com.liferay.portal.kernel.exception.SystemException {
404                    return getPersistence().findByRecordSetId(recordSetId, start, end);
405            }
406    
407            /**
408            * Returns an ordered range of all the d d l records where recordSetId = &#63;.
409            *
410            * <p>
411            * 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.
412            * </p>
413            *
414            * @param recordSetId the record set ID
415            * @param start the lower bound of the range of d d l records
416            * @param end the upper bound of the range of d d l records (not inclusive)
417            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
418            * @return the ordered range of matching d d l records
419            * @throws SystemException if a system exception occurred
420            */
421            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
422                    long recordSetId, int start, int end,
423                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return getPersistence()
426                                       .findByRecordSetId(recordSetId, start, end, orderByComparator);
427            }
428    
429            /**
430            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
431            *
432            * @param recordSetId the record set ID
433            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
434            * @return the first matching d d l record
435            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
436            * @throws SystemException if a system exception occurred
437            */
438            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First(
439                    long recordSetId,
440                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
441                    throws com.liferay.portal.kernel.exception.SystemException,
442                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
443                    return getPersistence()
444                                       .findByRecordSetId_First(recordSetId, orderByComparator);
445            }
446    
447            /**
448            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
449            *
450            * @param recordSetId the record set ID
451            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
452            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First(
456                    long recordSetId,
457                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
458                    throws com.liferay.portal.kernel.exception.SystemException {
459                    return getPersistence()
460                                       .fetchByRecordSetId_First(recordSetId, orderByComparator);
461            }
462    
463            /**
464            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
465            *
466            * @param recordSetId the record set ID
467            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
468            * @return the last matching d d l record
469            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
470            * @throws SystemException if a system exception occurred
471            */
472            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last(
473                    long recordSetId,
474                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
475                    throws com.liferay.portal.kernel.exception.SystemException,
476                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
477                    return getPersistence()
478                                       .findByRecordSetId_Last(recordSetId, orderByComparator);
479            }
480    
481            /**
482            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
483            *
484            * @param recordSetId the record set ID
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last(
490                    long recordSetId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException {
493                    return getPersistence()
494                                       .fetchByRecordSetId_Last(recordSetId, orderByComparator);
495            }
496    
497            /**
498            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63;.
499            *
500            * @param recordId the primary key of the current d d l record
501            * @param recordSetId the record set ID
502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
503            * @return the previous, current, and next d d l record
504            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
505            * @throws SystemException if a system exception occurred
506            */
507            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext(
508                    long recordId, long recordSetId,
509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
510                    throws com.liferay.portal.kernel.exception.SystemException,
511                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
512                    return getPersistence()
513                                       .findByRecordSetId_PrevAndNext(recordId, recordSetId,
514                            orderByComparator);
515            }
516    
517            /**
518            * Returns all the d d l records where recordSetId = &#63; and userId = &#63;.
519            *
520            * @param recordSetId the record set ID
521            * @param userId the user ID
522            * @return the matching d d l records
523            * @throws SystemException if a system exception occurred
524            */
525            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
526                    long recordSetId, long userId)
527                    throws com.liferay.portal.kernel.exception.SystemException {
528                    return getPersistence().findByR_U(recordSetId, userId);
529            }
530    
531            /**
532            * Returns a range of all the d d l records where recordSetId = &#63; and userId = &#63;.
533            *
534            * <p>
535            * 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.
536            * </p>
537            *
538            * @param recordSetId the record set ID
539            * @param userId the user ID
540            * @param start the lower bound of the range of d d l records
541            * @param end the upper bound of the range of d d l records (not inclusive)
542            * @return the range of matching d d l records
543            * @throws SystemException if a system exception occurred
544            */
545            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
546                    long recordSetId, long userId, int start, int end)
547                    throws com.liferay.portal.kernel.exception.SystemException {
548                    return getPersistence().findByR_U(recordSetId, userId, start, end);
549            }
550    
551            /**
552            * Returns an ordered range of all the d d l records where recordSetId = &#63; and userId = &#63;.
553            *
554            * <p>
555            * 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.
556            * </p>
557            *
558            * @param recordSetId the record set ID
559            * @param userId the user ID
560            * @param start the lower bound of the range of d d l records
561            * @param end the upper bound of the range of d d l records (not inclusive)
562            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
563            * @return the ordered range of matching d d l records
564            * @throws SystemException if a system exception occurred
565            */
566            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
567                    long recordSetId, long userId, int start, int end,
568                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
569                    throws com.liferay.portal.kernel.exception.SystemException {
570                    return getPersistence()
571                                       .findByR_U(recordSetId, userId, start, end, orderByComparator);
572            }
573    
574            /**
575            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
576            *
577            * @param recordSetId the record set ID
578            * @param userId the user ID
579            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
580            * @return the first matching d d l record
581            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
582            * @throws SystemException if a system exception occurred
583            */
584            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First(
585                    long recordSetId, long userId,
586                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
587                    throws com.liferay.portal.kernel.exception.SystemException,
588                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
589                    return getPersistence()
590                                       .findByR_U_First(recordSetId, userId, orderByComparator);
591            }
592    
593            /**
594            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
595            *
596            * @param recordSetId the record set ID
597            * @param userId the user ID
598            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
599            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
600            * @throws SystemException if a system exception occurred
601            */
602            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_First(
603                    long recordSetId, long userId,
604                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605                    throws com.liferay.portal.kernel.exception.SystemException {
606                    return getPersistence()
607                                       .fetchByR_U_First(recordSetId, userId, orderByComparator);
608            }
609    
610            /**
611            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
612            *
613            * @param recordSetId the record set ID
614            * @param userId the user ID
615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
616            * @return the last matching d d l record
617            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
618            * @throws SystemException if a system exception occurred
619            */
620            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last(
621                    long recordSetId, long userId,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException,
624                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
625                    return getPersistence()
626                                       .findByR_U_Last(recordSetId, userId, orderByComparator);
627            }
628    
629            /**
630            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
631            *
632            * @param recordSetId the record set ID
633            * @param userId the user ID
634            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
635            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
636            * @throws SystemException if a system exception occurred
637            */
638            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last(
639                    long recordSetId, long userId,
640                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
641                    throws com.liferay.portal.kernel.exception.SystemException {
642                    return getPersistence()
643                                       .fetchByR_U_Last(recordSetId, userId, orderByComparator);
644            }
645    
646            /**
647            * 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;.
648            *
649            * @param recordId the primary key of the current d d l record
650            * @param recordSetId the record set ID
651            * @param userId the user ID
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the previous, current, and next d d l record
654            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext(
658                    long recordId, long recordSetId, long userId,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
662                    return getPersistence()
663                                       .findByR_U_PrevAndNext(recordId, recordSetId, userId,
664                            orderByComparator);
665            }
666    
667            /**
668            * Returns all the d d l records.
669            *
670            * @return the d d l records
671            * @throws SystemException if a system exception occurred
672            */
673            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll()
674                    throws com.liferay.portal.kernel.exception.SystemException {
675                    return getPersistence().findAll();
676            }
677    
678            /**
679            * Returns a range of all the d d l records.
680            *
681            * <p>
682            * 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.
683            * </p>
684            *
685            * @param start the lower bound of the range of d d l records
686            * @param end the upper bound of the range of d d l records (not inclusive)
687            * @return the range of d d l records
688            * @throws SystemException if a system exception occurred
689            */
690            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
691                    int start, int end)
692                    throws com.liferay.portal.kernel.exception.SystemException {
693                    return getPersistence().findAll(start, end);
694            }
695    
696            /**
697            * Returns an ordered range of all the d d l records.
698            *
699            * <p>
700            * 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.
701            * </p>
702            *
703            * @param start the lower bound of the range of d d l records
704            * @param end the upper bound of the range of d d l records (not inclusive)
705            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
706            * @return the ordered range of d d l records
707            * @throws SystemException if a system exception occurred
708            */
709            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
710                    int start, int end,
711                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
712                    throws com.liferay.portal.kernel.exception.SystemException {
713                    return getPersistence().findAll(start, end, orderByComparator);
714            }
715    
716            /**
717            * Removes all the d d l records where uuid = &#63; from the database.
718            *
719            * @param uuid the uuid
720            * @throws SystemException if a system exception occurred
721            */
722            public static void removeByUuid(java.lang.String uuid)
723                    throws com.liferay.portal.kernel.exception.SystemException {
724                    getPersistence().removeByUuid(uuid);
725            }
726    
727            /**
728            * Removes the d d l record where uuid = &#63; and groupId = &#63; from the database.
729            *
730            * @param uuid the uuid
731            * @param groupId the group ID
732            * @return the d d l record that was removed
733            * @throws SystemException if a system exception occurred
734            */
735            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G(
736                    java.lang.String uuid, long groupId)
737                    throws com.liferay.portal.kernel.exception.SystemException,
738                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
739                    return getPersistence().removeByUUID_G(uuid, groupId);
740            }
741    
742            /**
743            * Removes all the d d l records where recordSetId = &#63; from the database.
744            *
745            * @param recordSetId the record set ID
746            * @throws SystemException if a system exception occurred
747            */
748            public static void removeByRecordSetId(long recordSetId)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    getPersistence().removeByRecordSetId(recordSetId);
751            }
752    
753            /**
754            * Removes all the d d l records where recordSetId = &#63; and userId = &#63; from the database.
755            *
756            * @param recordSetId the record set ID
757            * @param userId the user ID
758            * @throws SystemException if a system exception occurred
759            */
760            public static void removeByR_U(long recordSetId, long userId)
761                    throws com.liferay.portal.kernel.exception.SystemException {
762                    getPersistence().removeByR_U(recordSetId, userId);
763            }
764    
765            /**
766            * Removes all the d d l records from the database.
767            *
768            * @throws SystemException if a system exception occurred
769            */
770            public static void removeAll()
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    getPersistence().removeAll();
773            }
774    
775            /**
776            * Returns the number of d d l records where uuid = &#63;.
777            *
778            * @param uuid the uuid
779            * @return the number of matching d d l records
780            * @throws SystemException if a system exception occurred
781            */
782            public static int countByUuid(java.lang.String uuid)
783                    throws com.liferay.portal.kernel.exception.SystemException {
784                    return getPersistence().countByUuid(uuid);
785            }
786    
787            /**
788            * Returns the number of d d l records where uuid = &#63; and groupId = &#63;.
789            *
790            * @param uuid the uuid
791            * @param groupId the group ID
792            * @return the number of matching d d l records
793            * @throws SystemException if a system exception occurred
794            */
795            public static int countByUUID_G(java.lang.String uuid, long groupId)
796                    throws com.liferay.portal.kernel.exception.SystemException {
797                    return getPersistence().countByUUID_G(uuid, groupId);
798            }
799    
800            /**
801            * Returns the number of d d l records where recordSetId = &#63;.
802            *
803            * @param recordSetId the record set ID
804            * @return the number of matching d d l records
805            * @throws SystemException if a system exception occurred
806            */
807            public static int countByRecordSetId(long recordSetId)
808                    throws com.liferay.portal.kernel.exception.SystemException {
809                    return getPersistence().countByRecordSetId(recordSetId);
810            }
811    
812            /**
813            * Returns the number of d d l records where recordSetId = &#63; and userId = &#63;.
814            *
815            * @param recordSetId the record set ID
816            * @param userId the user ID
817            * @return the number of matching d d l records
818            * @throws SystemException if a system exception occurred
819            */
820            public static int countByR_U(long recordSetId, long userId)
821                    throws com.liferay.portal.kernel.exception.SystemException {
822                    return getPersistence().countByR_U(recordSetId, userId);
823            }
824    
825            /**
826            * Returns the number of d d l records.
827            *
828            * @return the number of d d l records
829            * @throws SystemException if a system exception occurred
830            */
831            public static int countAll()
832                    throws com.liferay.portal.kernel.exception.SystemException {
833                    return getPersistence().countAll();
834            }
835    
836            public static DDLRecordPersistence getPersistence() {
837                    if (_persistence == null) {
838                            _persistence = (DDLRecordPersistence)PortalBeanLocatorUtil.locate(DDLRecordPersistence.class.getName());
839    
840                            ReferenceRegistry.registerReference(DDLRecordUtil.class,
841                                    "_persistence");
842                    }
843    
844                    return _persistence;
845            }
846    
847            /**
848             * @deprecated
849             */
850            public void setPersistence(DDLRecordPersistence persistence) {
851            }
852    
853            private static DDLRecordPersistence _persistence;
854    }