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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021    import com.liferay.portal.kernel.exception.SystemException;
022    import com.liferay.portal.kernel.util.OrderByComparator;
023    import com.liferay.portal.kernel.util.ReferenceRegistry;
024    import com.liferay.portal.service.ServiceContext;
025    
026    import com.liferay.portlet.dynamicdatalists.model.DDLRecord;
027    
028    import java.util.List;
029    
030    /**
031     * 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.
032     *
033     * <p>
034     * Caching information and settings can be found in <code>portal.properties</code>
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see DDLRecordPersistence
039     * @see DDLRecordPersistenceImpl
040     * @generated
041     */
042    @ProviderType
043    public class DDLRecordUtil {
044            /*
045             * NOTE FOR DEVELOPERS:
046             *
047             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
048             */
049    
050            /**
051             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
052             */
053            public static void clearCache() {
054                    getPersistence().clearCache();
055            }
056    
057            /**
058             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
059             */
060            public static void clearCache(DDLRecord ddlRecord) {
061                    getPersistence().clearCache(ddlRecord);
062            }
063    
064            /**
065             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
066             */
067            public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
068                    throws SystemException {
069                    return getPersistence().countWithDynamicQuery(dynamicQuery);
070            }
071    
072            /**
073             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
074             */
075            public static List<DDLRecord> findWithDynamicQuery(
076                    DynamicQuery dynamicQuery) throws SystemException {
077                    return getPersistence().findWithDynamicQuery(dynamicQuery);
078            }
079    
080            /**
081             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
082             */
083            public static List<DDLRecord> findWithDynamicQuery(
084                    DynamicQuery dynamicQuery, int start, int end)
085                    throws SystemException {
086                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
087            }
088    
089            /**
090             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
091             */
092            public static List<DDLRecord> findWithDynamicQuery(
093                    DynamicQuery dynamicQuery, int start, int end,
094                    OrderByComparator orderByComparator) throws SystemException {
095                    return getPersistence()
096                                       .findWithDynamicQuery(dynamicQuery, start, end,
097                            orderByComparator);
098            }
099    
100            /**
101             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
102             */
103            public static DDLRecord update(DDLRecord ddlRecord)
104                    throws SystemException {
105                    return getPersistence().update(ddlRecord);
106            }
107    
108            /**
109             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
110             */
111            public static DDLRecord update(DDLRecord ddlRecord,
112                    ServiceContext serviceContext) throws SystemException {
113                    return getPersistence().update(ddlRecord, serviceContext);
114            }
115    
116            /**
117            * Returns all the d d l records where uuid = &#63;.
118            *
119            * @param uuid the uuid
120            * @return the matching d d l records
121            * @throws SystemException if a system exception occurred
122            */
123            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
124                    java.lang.String uuid)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return getPersistence().findByUuid(uuid);
127            }
128    
129            /**
130            * Returns a range of all the d d l records where uuid = &#63;.
131            *
132            * <p>
133            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
134            * </p>
135            *
136            * @param uuid the uuid
137            * @param start the lower bound of the range of d d l records
138            * @param end the upper bound of the range of d d l records (not inclusive)
139            * @return the range of matching d d l records
140            * @throws SystemException if a system exception occurred
141            */
142            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
143                    java.lang.String uuid, int start, int end)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return getPersistence().findByUuid(uuid, start, end);
146            }
147    
148            /**
149            * Returns an ordered range of all the d d l records where uuid = &#63;.
150            *
151            * <p>
152            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
153            * </p>
154            *
155            * @param uuid the uuid
156            * @param start the lower bound of the range of d d l records
157            * @param end the upper bound of the range of d d l records (not inclusive)
158            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
159            * @return the ordered range of matching d d l records
160            * @throws SystemException if a system exception occurred
161            */
162            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
163                    java.lang.String uuid, int start, int end,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
167            }
168    
169            /**
170            * Returns the first d d l record in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching d d l record
175            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First(
179                    java.lang.String uuid,
180                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
181                    throws com.liferay.portal.kernel.exception.SystemException,
182                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
183                    return getPersistence().findByUuid_First(uuid, orderByComparator);
184            }
185    
186            /**
187            * Returns the first d d l record in the ordered set where uuid = &#63;.
188            *
189            * @param uuid the uuid
190            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
191            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
192            * @throws SystemException if a system exception occurred
193            */
194            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First(
195                    java.lang.String uuid,
196                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
199            }
200    
201            /**
202            * Returns the last d d l record in the ordered set where uuid = &#63;.
203            *
204            * @param uuid the uuid
205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
206            * @return the last matching d d l record
207            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
208            * @throws SystemException if a system exception occurred
209            */
210            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last(
211                    java.lang.String uuid,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
215                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
216            }
217    
218            /**
219            * Returns the last d d l record in the ordered set where uuid = &#63;.
220            *
221            * @param uuid the uuid
222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
223            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
224            * @throws SystemException if a system exception occurred
225            */
226            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last(
227                    java.lang.String uuid,
228                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229                    throws com.liferay.portal.kernel.exception.SystemException {
230                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
231            }
232    
233            /**
234            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63;.
235            *
236            * @param recordId the primary key of the current d d l record
237            * @param uuid the uuid
238            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
239            * @return the previous, current, and next d d l record
240            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
241            * @throws SystemException if a system exception occurred
242            */
243            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext(
244                    long recordId, java.lang.String uuid,
245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
246                    throws com.liferay.portal.kernel.exception.SystemException,
247                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
248                    return getPersistence()
249                                       .findByUuid_PrevAndNext(recordId, uuid, orderByComparator);
250            }
251    
252            /**
253            * Removes all the d d l records where uuid = &#63; from the database.
254            *
255            * @param uuid the uuid
256            * @throws SystemException if a system exception occurred
257            */
258            public static void removeByUuid(java.lang.String uuid)
259                    throws com.liferay.portal.kernel.exception.SystemException {
260                    getPersistence().removeByUuid(uuid);
261            }
262    
263            /**
264            * Returns the number of d d l records where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @return the number of matching d d l records
268            * @throws SystemException if a system exception occurred
269            */
270            public static int countByUuid(java.lang.String uuid)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    return getPersistence().countByUuid(uuid);
273            }
274    
275            /**
276            * 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.
277            *
278            * @param uuid the uuid
279            * @param groupId the group ID
280            * @return the matching d d l record
281            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
282            * @throws SystemException if a system exception occurred
283            */
284            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G(
285                    java.lang.String uuid, long groupId)
286                    throws com.liferay.portal.kernel.exception.SystemException,
287                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
288                    return getPersistence().findByUUID_G(uuid, groupId);
289            }
290    
291            /**
292            * 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.
293            *
294            * @param uuid the uuid
295            * @param groupId the group ID
296            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
297            * @throws SystemException if a system exception occurred
298            */
299            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
300                    java.lang.String uuid, long groupId)
301                    throws com.liferay.portal.kernel.exception.SystemException {
302                    return getPersistence().fetchByUUID_G(uuid, groupId);
303            }
304    
305            /**
306            * 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.
307            *
308            * @param uuid the uuid
309            * @param groupId the group ID
310            * @param retrieveFromCache whether to use the finder cache
311            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
312            * @throws SystemException if a system exception occurred
313            */
314            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
315                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
316                    throws com.liferay.portal.kernel.exception.SystemException {
317                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
318            }
319    
320            /**
321            * Removes the d d l record where uuid = &#63; and groupId = &#63; from the database.
322            *
323            * @param uuid the uuid
324            * @param groupId the group ID
325            * @return the d d l record that was removed
326            * @throws SystemException if a system exception occurred
327            */
328            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G(
329                    java.lang.String uuid, long groupId)
330                    throws com.liferay.portal.kernel.exception.SystemException,
331                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
332                    return getPersistence().removeByUUID_G(uuid, groupId);
333            }
334    
335            /**
336            * Returns the number of d d l records where uuid = &#63; and groupId = &#63;.
337            *
338            * @param uuid the uuid
339            * @param groupId the group ID
340            * @return the number of matching d d l records
341            * @throws SystemException if a system exception occurred
342            */
343            public static int countByUUID_G(java.lang.String uuid, long groupId)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return getPersistence().countByUUID_G(uuid, groupId);
346            }
347    
348            /**
349            * Returns all the d d l records where uuid = &#63; and companyId = &#63;.
350            *
351            * @param uuid the uuid
352            * @param companyId the company ID
353            * @return the matching d d l records
354            * @throws SystemException if a system exception occurred
355            */
356            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
357                    java.lang.String uuid, long companyId)
358                    throws com.liferay.portal.kernel.exception.SystemException {
359                    return getPersistence().findByUuid_C(uuid, companyId);
360            }
361    
362            /**
363            * Returns a range of all the d d l records where uuid = &#63; and companyId = &#63;.
364            *
365            * <p>
366            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
367            * </p>
368            *
369            * @param uuid the uuid
370            * @param companyId the company ID
371            * @param start the lower bound of the range of d d l records
372            * @param end the upper bound of the range of d d l records (not inclusive)
373            * @return the range of matching d d l records
374            * @throws SystemException if a system exception occurred
375            */
376            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
377                    java.lang.String uuid, long companyId, int start, int end)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
380            }
381    
382            /**
383            * Returns an ordered range of all the d d l records where uuid = &#63; and companyId = &#63;.
384            *
385            * <p>
386            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
387            * </p>
388            *
389            * @param uuid the uuid
390            * @param companyId the company ID
391            * @param start the lower bound of the range of d d l records
392            * @param end the upper bound of the range of d d l records (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching d d l records
395            * @throws SystemException if a system exception occurred
396            */
397            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
398                    java.lang.String uuid, long companyId, int start, int end,
399                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
400                    throws com.liferay.portal.kernel.exception.SystemException {
401                    return getPersistence()
402                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
403            }
404    
405            /**
406            * Returns the first d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
407            *
408            * @param uuid the uuid
409            * @param companyId the company ID
410            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
411            * @return the first matching d d l record
412            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
413            * @throws SystemException if a system exception occurred
414            */
415            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_First(
416                    java.lang.String uuid, long companyId,
417                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
418                    throws com.liferay.portal.kernel.exception.SystemException,
419                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
420                    return getPersistence()
421                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
422            }
423    
424            /**
425            * Returns the first d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
426            *
427            * @param uuid the uuid
428            * @param companyId the company ID
429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
430            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
431            * @throws SystemException if a system exception occurred
432            */
433            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_First(
434                    java.lang.String uuid, long companyId,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getPersistence()
438                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
439            }
440    
441            /**
442            * Returns the last d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
443            *
444            * @param uuid the uuid
445            * @param companyId the company ID
446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
447            * @return the last matching d d l record
448            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
449            * @throws SystemException if a system exception occurred
450            */
451            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_Last(
452                    java.lang.String uuid, long companyId,
453                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
454                    throws com.liferay.portal.kernel.exception.SystemException,
455                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
456                    return getPersistence()
457                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
458            }
459    
460            /**
461            * Returns the last d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
462            *
463            * @param uuid the uuid
464            * @param companyId the company ID
465            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
466            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
467            * @throws SystemException if a system exception occurred
468            */
469            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_Last(
470                    java.lang.String uuid, long companyId,
471                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getPersistence()
474                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
475            }
476    
477            /**
478            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
479            *
480            * @param recordId the primary key of the current d d l record
481            * @param uuid the uuid
482            * @param companyId the company ID
483            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
484            * @return the previous, current, and next d d l record
485            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
486            * @throws SystemException if a system exception occurred
487            */
488            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_C_PrevAndNext(
489                    long recordId, java.lang.String uuid, long companyId,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException,
492                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
493                    return getPersistence()
494                                       .findByUuid_C_PrevAndNext(recordId, uuid, companyId,
495                            orderByComparator);
496            }
497    
498            /**
499            * Removes all the d d l records where uuid = &#63; and companyId = &#63; from the database.
500            *
501            * @param uuid the uuid
502            * @param companyId the company ID
503            * @throws SystemException if a system exception occurred
504            */
505            public static void removeByUuid_C(java.lang.String uuid, long companyId)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    getPersistence().removeByUuid_C(uuid, companyId);
508            }
509    
510            /**
511            * Returns the number of d d l records where uuid = &#63; and companyId = &#63;.
512            *
513            * @param uuid the uuid
514            * @param companyId the company ID
515            * @return the number of matching d d l records
516            * @throws SystemException if a system exception occurred
517            */
518            public static int countByUuid_C(java.lang.String uuid, long companyId)
519                    throws com.liferay.portal.kernel.exception.SystemException {
520                    return getPersistence().countByUuid_C(uuid, companyId);
521            }
522    
523            /**
524            * Returns all the d d l records where companyId = &#63;.
525            *
526            * @param companyId the company ID
527            * @return the matching d d l records
528            * @throws SystemException if a system exception occurred
529            */
530            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
531                    long companyId)
532                    throws com.liferay.portal.kernel.exception.SystemException {
533                    return getPersistence().findByCompanyId(companyId);
534            }
535    
536            /**
537            * Returns a range of all the d d l records where companyId = &#63;.
538            *
539            * <p>
540            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
541            * </p>
542            *
543            * @param companyId the company ID
544            * @param start the lower bound of the range of d d l records
545            * @param end the upper bound of the range of d d l records (not inclusive)
546            * @return the range of matching d d l records
547            * @throws SystemException if a system exception occurred
548            */
549            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
550                    long companyId, int start, int end)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    return getPersistence().findByCompanyId(companyId, start, end);
553            }
554    
555            /**
556            * Returns an ordered range of all the d d l records where companyId = &#63;.
557            *
558            * <p>
559            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
560            * </p>
561            *
562            * @param companyId the company ID
563            * @param start the lower bound of the range of d d l records
564            * @param end the upper bound of the range of d d l records (not inclusive)
565            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
566            * @return the ordered range of matching d d l records
567            * @throws SystemException if a system exception occurred
568            */
569            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
570                    long companyId, int start, int end,
571                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
572                    throws com.liferay.portal.kernel.exception.SystemException {
573                    return getPersistence()
574                                       .findByCompanyId(companyId, start, end, orderByComparator);
575            }
576    
577            /**
578            * Returns the first d d l record in the ordered set where companyId = &#63;.
579            *
580            * @param companyId the company ID
581            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
582            * @return the first matching d d l record
583            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
584            * @throws SystemException if a system exception occurred
585            */
586            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_First(
587                    long companyId,
588                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
591                    return getPersistence()
592                                       .findByCompanyId_First(companyId, orderByComparator);
593            }
594    
595            /**
596            * Returns the first d d l record in the ordered set where companyId = &#63;.
597            *
598            * @param companyId the company ID
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_First(
604                    long companyId,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence()
608                                       .fetchByCompanyId_First(companyId, orderByComparator);
609            }
610    
611            /**
612            * Returns the last d d l record in the ordered set where companyId = &#63;.
613            *
614            * @param companyId the company 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 findByCompanyId_Last(
621                    long companyId,
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                                       .findByCompanyId_Last(companyId, orderByComparator);
627            }
628    
629            /**
630            * Returns the last d d l record in the ordered set where companyId = &#63;.
631            *
632            * @param companyId the company ID
633            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
634            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
635            * @throws SystemException if a system exception occurred
636            */
637            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_Last(
638                    long companyId,
639                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
640                    throws com.liferay.portal.kernel.exception.SystemException {
641                    return getPersistence()
642                                       .fetchByCompanyId_Last(companyId, orderByComparator);
643            }
644    
645            /**
646            * Returns the d d l records before and after the current d d l record in the ordered set where companyId = &#63;.
647            *
648            * @param recordId the primary key of the current d d l record
649            * @param companyId the company ID
650            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
651            * @return the previous, current, and next d d l record
652            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
653            * @throws SystemException if a system exception occurred
654            */
655            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByCompanyId_PrevAndNext(
656                    long recordId, long companyId,
657                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
658                    throws com.liferay.portal.kernel.exception.SystemException,
659                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
660                    return getPersistence()
661                                       .findByCompanyId_PrevAndNext(recordId, companyId,
662                            orderByComparator);
663            }
664    
665            /**
666            * Removes all the d d l records where companyId = &#63; from the database.
667            *
668            * @param companyId the company ID
669            * @throws SystemException if a system exception occurred
670            */
671            public static void removeByCompanyId(long companyId)
672                    throws com.liferay.portal.kernel.exception.SystemException {
673                    getPersistence().removeByCompanyId(companyId);
674            }
675    
676            /**
677            * Returns the number of d d l records where companyId = &#63;.
678            *
679            * @param companyId the company ID
680            * @return the number of matching d d l records
681            * @throws SystemException if a system exception occurred
682            */
683            public static int countByCompanyId(long companyId)
684                    throws com.liferay.portal.kernel.exception.SystemException {
685                    return getPersistence().countByCompanyId(companyId);
686            }
687    
688            /**
689            * Returns all the d d l records where recordSetId = &#63;.
690            *
691            * @param recordSetId the record set ID
692            * @return the matching d d l records
693            * @throws SystemException if a system exception occurred
694            */
695            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
696                    long recordSetId)
697                    throws com.liferay.portal.kernel.exception.SystemException {
698                    return getPersistence().findByRecordSetId(recordSetId);
699            }
700    
701            /**
702            * Returns a range of all the d d l records where recordSetId = &#63;.
703            *
704            * <p>
705            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
706            * </p>
707            *
708            * @param recordSetId the record set ID
709            * @param start the lower bound of the range of d d l records
710            * @param end the upper bound of the range of d d l records (not inclusive)
711            * @return the range of matching d d l records
712            * @throws SystemException if a system exception occurred
713            */
714            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
715                    long recordSetId, int start, int end)
716                    throws com.liferay.portal.kernel.exception.SystemException {
717                    return getPersistence().findByRecordSetId(recordSetId, start, end);
718            }
719    
720            /**
721            * Returns an ordered range of all the d d l records where recordSetId = &#63;.
722            *
723            * <p>
724            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
725            * </p>
726            *
727            * @param recordSetId the record set ID
728            * @param start the lower bound of the range of d d l records
729            * @param end the upper bound of the range of d d l records (not inclusive)
730            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
731            * @return the ordered range of matching d d l records
732            * @throws SystemException if a system exception occurred
733            */
734            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
735                    long recordSetId, int start, int end,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence()
739                                       .findByRecordSetId(recordSetId, start, end, orderByComparator);
740            }
741    
742            /**
743            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
744            *
745            * @param recordSetId the record set ID
746            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
747            * @return the first matching d d l record
748            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
749            * @throws SystemException if a system exception occurred
750            */
751            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First(
752                    long recordSetId,
753                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
754                    throws com.liferay.portal.kernel.exception.SystemException,
755                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
756                    return getPersistence()
757                                       .findByRecordSetId_First(recordSetId, orderByComparator);
758            }
759    
760            /**
761            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
762            *
763            * @param recordSetId the record set ID
764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
765            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
766            * @throws SystemException if a system exception occurred
767            */
768            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First(
769                    long recordSetId,
770                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
771                    throws com.liferay.portal.kernel.exception.SystemException {
772                    return getPersistence()
773                                       .fetchByRecordSetId_First(recordSetId, orderByComparator);
774            }
775    
776            /**
777            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
778            *
779            * @param recordSetId the record set ID
780            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
781            * @return the last matching d d l record
782            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
783            * @throws SystemException if a system exception occurred
784            */
785            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last(
786                    long recordSetId,
787                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
788                    throws com.liferay.portal.kernel.exception.SystemException,
789                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
790                    return getPersistence()
791                                       .findByRecordSetId_Last(recordSetId, orderByComparator);
792            }
793    
794            /**
795            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
796            *
797            * @param recordSetId the record set ID
798            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
799            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
800            * @throws SystemException if a system exception occurred
801            */
802            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last(
803                    long recordSetId,
804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
805                    throws com.liferay.portal.kernel.exception.SystemException {
806                    return getPersistence()
807                                       .fetchByRecordSetId_Last(recordSetId, orderByComparator);
808            }
809    
810            /**
811            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63;.
812            *
813            * @param recordId the primary key of the current d d l record
814            * @param recordSetId the record set ID
815            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
816            * @return the previous, current, and next d d l record
817            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
818            * @throws SystemException if a system exception occurred
819            */
820            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext(
821                    long recordId, long recordSetId,
822                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
823                    throws com.liferay.portal.kernel.exception.SystemException,
824                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
825                    return getPersistence()
826                                       .findByRecordSetId_PrevAndNext(recordId, recordSetId,
827                            orderByComparator);
828            }
829    
830            /**
831            * Removes all the d d l records where recordSetId = &#63; from the database.
832            *
833            * @param recordSetId the record set ID
834            * @throws SystemException if a system exception occurred
835            */
836            public static void removeByRecordSetId(long recordSetId)
837                    throws com.liferay.portal.kernel.exception.SystemException {
838                    getPersistence().removeByRecordSetId(recordSetId);
839            }
840    
841            /**
842            * Returns the number of d d l records where recordSetId = &#63;.
843            *
844            * @param recordSetId the record set ID
845            * @return the number of matching d d l records
846            * @throws SystemException if a system exception occurred
847            */
848            public static int countByRecordSetId(long recordSetId)
849                    throws com.liferay.portal.kernel.exception.SystemException {
850                    return getPersistence().countByRecordSetId(recordSetId);
851            }
852    
853            /**
854            * Returns all the d d l records where recordSetId = &#63; and userId = &#63;.
855            *
856            * @param recordSetId the record set ID
857            * @param userId the user ID
858            * @return the matching d d l records
859            * @throws SystemException if a system exception occurred
860            */
861            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
862                    long recordSetId, long userId)
863                    throws com.liferay.portal.kernel.exception.SystemException {
864                    return getPersistence().findByR_U(recordSetId, userId);
865            }
866    
867            /**
868            * Returns a range of all the d d l records where recordSetId = &#63; and userId = &#63;.
869            *
870            * <p>
871            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
872            * </p>
873            *
874            * @param recordSetId the record set ID
875            * @param userId the user ID
876            * @param start the lower bound of the range of d d l records
877            * @param end the upper bound of the range of d d l records (not inclusive)
878            * @return the range of matching d d l records
879            * @throws SystemException if a system exception occurred
880            */
881            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
882                    long recordSetId, long userId, int start, int end)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence().findByR_U(recordSetId, userId, start, end);
885            }
886    
887            /**
888            * Returns an ordered range of all the d d l records where recordSetId = &#63; and userId = &#63;.
889            *
890            * <p>
891            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
892            * </p>
893            *
894            * @param recordSetId the record set ID
895            * @param userId the user ID
896            * @param start the lower bound of the range of d d l records
897            * @param end the upper bound of the range of d d l records (not inclusive)
898            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
899            * @return the ordered range of matching d d l records
900            * @throws SystemException if a system exception occurred
901            */
902            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
903                    long recordSetId, long userId, int start, int end,
904                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
905                    throws com.liferay.portal.kernel.exception.SystemException {
906                    return getPersistence()
907                                       .findByR_U(recordSetId, userId, start, end, orderByComparator);
908            }
909    
910            /**
911            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
912            *
913            * @param recordSetId the record set ID
914            * @param userId the user ID
915            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
916            * @return the first matching d d l record
917            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
918            * @throws SystemException if a system exception occurred
919            */
920            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First(
921                    long recordSetId, long userId,
922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
923                    throws com.liferay.portal.kernel.exception.SystemException,
924                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
925                    return getPersistence()
926                                       .findByR_U_First(recordSetId, userId, orderByComparator);
927            }
928    
929            /**
930            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
931            *
932            * @param recordSetId the record set ID
933            * @param userId the user ID
934            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
935            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
936            * @throws SystemException if a system exception occurred
937            */
938            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_First(
939                    long recordSetId, long userId,
940                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
941                    throws com.liferay.portal.kernel.exception.SystemException {
942                    return getPersistence()
943                                       .fetchByR_U_First(recordSetId, userId, orderByComparator);
944            }
945    
946            /**
947            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
948            *
949            * @param recordSetId the record set ID
950            * @param userId the user ID
951            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
952            * @return the last matching d d l record
953            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
954            * @throws SystemException if a system exception occurred
955            */
956            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last(
957                    long recordSetId, long userId,
958                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
959                    throws com.liferay.portal.kernel.exception.SystemException,
960                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
961                    return getPersistence()
962                                       .findByR_U_Last(recordSetId, userId, orderByComparator);
963            }
964    
965            /**
966            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
967            *
968            * @param recordSetId the record set ID
969            * @param userId the user ID
970            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
971            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
972            * @throws SystemException if a system exception occurred
973            */
974            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last(
975                    long recordSetId, long userId,
976                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
977                    throws com.liferay.portal.kernel.exception.SystemException {
978                    return getPersistence()
979                                       .fetchByR_U_Last(recordSetId, userId, orderByComparator);
980            }
981    
982            /**
983            * 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;.
984            *
985            * @param recordId the primary key of the current d d l record
986            * @param recordSetId the record set ID
987            * @param userId the user ID
988            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
989            * @return the previous, current, and next d d l record
990            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
991            * @throws SystemException if a system exception occurred
992            */
993            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext(
994                    long recordId, long recordSetId, long userId,
995                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
996                    throws com.liferay.portal.kernel.exception.SystemException,
997                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
998                    return getPersistence()
999                                       .findByR_U_PrevAndNext(recordId, recordSetId, userId,
1000                            orderByComparator);
1001            }
1002    
1003            /**
1004            * Removes all the d d l records where recordSetId = &#63; and userId = &#63; from the database.
1005            *
1006            * @param recordSetId the record set ID
1007            * @param userId the user ID
1008            * @throws SystemException if a system exception occurred
1009            */
1010            public static void removeByR_U(long recordSetId, long userId)
1011                    throws com.liferay.portal.kernel.exception.SystemException {
1012                    getPersistence().removeByR_U(recordSetId, userId);
1013            }
1014    
1015            /**
1016            * Returns the number of d d l records where recordSetId = &#63; and userId = &#63;.
1017            *
1018            * @param recordSetId the record set ID
1019            * @param userId the user ID
1020            * @return the number of matching d d l records
1021            * @throws SystemException if a system exception occurred
1022            */
1023            public static int countByR_U(long recordSetId, long userId)
1024                    throws com.liferay.portal.kernel.exception.SystemException {
1025                    return getPersistence().countByR_U(recordSetId, userId);
1026            }
1027    
1028            /**
1029            * Caches the d d l record in the entity cache if it is enabled.
1030            *
1031            * @param ddlRecord the d d l record
1032            */
1033            public static void cacheResult(
1034                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord) {
1035                    getPersistence().cacheResult(ddlRecord);
1036            }
1037    
1038            /**
1039            * Caches the d d l records in the entity cache if it is enabled.
1040            *
1041            * @param ddlRecords the d d l records
1042            */
1043            public static void cacheResult(
1044                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords) {
1045                    getPersistence().cacheResult(ddlRecords);
1046            }
1047    
1048            /**
1049            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
1050            *
1051            * @param recordId the primary key for the new d d l record
1052            * @return the new d d l record
1053            */
1054            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord create(
1055                    long recordId) {
1056                    return getPersistence().create(recordId);
1057            }
1058    
1059            /**
1060            * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
1061            *
1062            * @param recordId the primary key of the d d l record
1063            * @return the d d l record that was removed
1064            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
1065            * @throws SystemException if a system exception occurred
1066            */
1067            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord remove(
1068                    long recordId)
1069                    throws com.liferay.portal.kernel.exception.SystemException,
1070                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
1071                    return getPersistence().remove(recordId);
1072            }
1073    
1074            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl(
1075                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
1076                    throws com.liferay.portal.kernel.exception.SystemException {
1077                    return getPersistence().updateImpl(ddlRecord);
1078            }
1079    
1080            /**
1081            * 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.
1082            *
1083            * @param recordId the primary key of the d d l record
1084            * @return the d d l record
1085            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
1086            * @throws SystemException if a system exception occurred
1087            */
1088            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord findByPrimaryKey(
1089                    long recordId)
1090                    throws com.liferay.portal.kernel.exception.SystemException,
1091                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException {
1092                    return getPersistence().findByPrimaryKey(recordId);
1093            }
1094    
1095            /**
1096            * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found.
1097            *
1098            * @param recordId the primary key of the d d l record
1099            * @return the d d l record, or <code>null</code> if a d d l record with the primary key could not be found
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public static com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByPrimaryKey(
1103                    long recordId)
1104                    throws com.liferay.portal.kernel.exception.SystemException {
1105                    return getPersistence().fetchByPrimaryKey(recordId);
1106            }
1107    
1108            /**
1109            * Returns all the d d l records.
1110            *
1111            * @return the d d l records
1112            * @throws SystemException if a system exception occurred
1113            */
1114            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll()
1115                    throws com.liferay.portal.kernel.exception.SystemException {
1116                    return getPersistence().findAll();
1117            }
1118    
1119            /**
1120            * Returns a range of all the d d l records.
1121            *
1122            * <p>
1123            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1124            * </p>
1125            *
1126            * @param start the lower bound of the range of d d l records
1127            * @param end the upper bound of the range of d d l records (not inclusive)
1128            * @return the range of d d l records
1129            * @throws SystemException if a system exception occurred
1130            */
1131            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
1132                    int start, int end)
1133                    throws com.liferay.portal.kernel.exception.SystemException {
1134                    return getPersistence().findAll(start, end);
1135            }
1136    
1137            /**
1138            * Returns an ordered range of all the d d l records.
1139            *
1140            * <p>
1141            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1142            * </p>
1143            *
1144            * @param start the lower bound of the range of d d l records
1145            * @param end the upper bound of the range of d d l records (not inclusive)
1146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1147            * @return the ordered range of d d l records
1148            * @throws SystemException if a system exception occurred
1149            */
1150            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
1151                    int start, int end,
1152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1153                    throws com.liferay.portal.kernel.exception.SystemException {
1154                    return getPersistence().findAll(start, end, orderByComparator);
1155            }
1156    
1157            /**
1158            * Removes all the d d l records from the database.
1159            *
1160            * @throws SystemException if a system exception occurred
1161            */
1162            public static void removeAll()
1163                    throws com.liferay.portal.kernel.exception.SystemException {
1164                    getPersistence().removeAll();
1165            }
1166    
1167            /**
1168            * Returns the number of d d l records.
1169            *
1170            * @return the number of d d l records
1171            * @throws SystemException if a system exception occurred
1172            */
1173            public static int countAll()
1174                    throws com.liferay.portal.kernel.exception.SystemException {
1175                    return getPersistence().countAll();
1176            }
1177    
1178            public static DDLRecordPersistence getPersistence() {
1179                    if (_persistence == null) {
1180                            _persistence = (DDLRecordPersistence)PortalBeanLocatorUtil.locate(DDLRecordPersistence.class.getName());
1181    
1182                            ReferenceRegistry.registerReference(DDLRecordUtil.class,
1183                                    "_persistence");
1184                    }
1185    
1186                    return _persistence;
1187            }
1188    
1189            /**
1190             * @deprecated As of 6.2.0
1191             */
1192            public void setPersistence(DDLRecordPersistence persistence) {
1193            }
1194    
1195            private static DDLRecordPersistence _persistence;
1196    }