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