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.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.dynamicdatalists.model.DDLRecord;
022    
023    /**
024     * The persistence interface for the d d l record service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DDLRecordPersistenceImpl
032     * @see DDLRecordUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DDLRecordPersistence extends BasePersistence<DDLRecord> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link DDLRecordUtil} to access the d d l record persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the d d l records where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching d d l records
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the d d l records where uuid = &#63;.
056            *
057            * <p>
058            * 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.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of d d l records
063            * @param end the upper bound of the range of d d l records (not inclusive)
064            * @return the range of matching d d l records
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the d d l records where uuid = &#63;.
073            *
074            * <p>
075            * 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.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of d d l records
080            * @param end the upper bound of the range of d d l records (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching d d l records
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first d d l record in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching d d l record
096            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
104    
105            /**
106            * Returns the first d d l record in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last d d l record in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching d d l record
124            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
132    
133            /**
134            * Returns the last d d l record in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63;.
148            *
149            * @param recordId the primary key of the current d d l record
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next d d l record
153            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext(
157                    long recordId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
161    
162            /**
163            * Removes all the d d l records where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of d d l records where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching d d l records
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * 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.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching d d l record
187            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
194    
195            /**
196            * 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.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the d d l record where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the d d l record that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
232    
233            /**
234            * Returns the number of d d l records where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching d d l records
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the d d l records where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching d d l records
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the d d l records where uuid = &#63; and companyId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of d d l records
266            * @param end the upper bound of the range of d d l records (not inclusive)
267            * @return the range of matching d d l records
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the d d l records where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of d d l records
284            * @param end the upper bound of the range of d d l records (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching d d l records
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching d d l record
301            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
309    
310            /**
311            * Returns the first d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching d d l record
331            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
339    
340            /**
341            * Returns the last d d l record in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * 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;.
356            *
357            * @param recordId the primary key of the current d d l record
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next d d l record
362            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_C_PrevAndNext(
366                    long recordId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
370    
371            /**
372            * Removes all the d d l records where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of d d l records where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching d d l records
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the d d l records where companyId = &#63;.
394            *
395            * @param companyId the company ID
396            * @return the matching d d l records
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
400                    long companyId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the d d l records where companyId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param companyId the company ID
411            * @param start the lower bound of the range of d d l records
412            * @param end the upper bound of the range of d d l records (not inclusive)
413            * @return the range of matching d d l records
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
417                    long companyId, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the d d l records where companyId = &#63;.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param companyId the company ID
428            * @param start the lower bound of the range of d d l records
429            * @param end the upper bound of the range of d d l records (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching d d l records
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByCompanyId(
435                    long companyId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first d d l record in the ordered set where companyId = &#63;.
441            *
442            * @param companyId the company ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching d d l record
445            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_First(
449                    long companyId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
453    
454            /**
455            * Returns the first d d l record in the ordered set where companyId = &#63;.
456            *
457            * @param companyId the company ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_First(
463                    long companyId,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last d d l record in the ordered set where companyId = &#63;.
469            *
470            * @param companyId the company ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching d d l record
473            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByCompanyId_Last(
477                    long companyId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
481    
482            /**
483            * Returns the last d d l record in the ordered set where companyId = &#63;.
484            *
485            * @param companyId the company ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByCompanyId_Last(
491                    long companyId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the d d l records before and after the current d d l record in the ordered set where companyId = &#63;.
497            *
498            * @param recordId the primary key of the current d d l record
499            * @param companyId the company ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next d d l record
502            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByCompanyId_PrevAndNext(
506                    long recordId, long companyId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
510    
511            /**
512            * Removes all the d d l records where companyId = &#63; from the database.
513            *
514            * @param companyId the company ID
515            * @throws SystemException if a system exception occurred
516            */
517            public void removeByCompanyId(long companyId)
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns the number of d d l records where companyId = &#63;.
522            *
523            * @param companyId the company ID
524            * @return the number of matching d d l records
525            * @throws SystemException if a system exception occurred
526            */
527            public int countByCompanyId(long companyId)
528                    throws com.liferay.portal.kernel.exception.SystemException;
529    
530            /**
531            * Returns all the d d l records where recordSetId = &#63;.
532            *
533            * @param recordSetId the record set ID
534            * @return the matching d d l records
535            * @throws SystemException if a system exception occurred
536            */
537            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
538                    long recordSetId)
539                    throws com.liferay.portal.kernel.exception.SystemException;
540    
541            /**
542            * Returns a range of all the d d l records where recordSetId = &#63;.
543            *
544            * <p>
545            * 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.
546            * </p>
547            *
548            * @param recordSetId the record set ID
549            * @param start the lower bound of the range of d d l records
550            * @param end the upper bound of the range of d d l records (not inclusive)
551            * @return the range of matching d d l records
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
555                    long recordSetId, int start, int end)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * Returns an ordered range of all the d d l records where recordSetId = &#63;.
560            *
561            * <p>
562            * 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.
563            * </p>
564            *
565            * @param recordSetId the record set ID
566            * @param start the lower bound of the range of d d l records
567            * @param end the upper bound of the range of d d l records (not inclusive)
568            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
569            * @return the ordered range of matching d d l records
570            * @throws SystemException if a system exception occurred
571            */
572            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
573                    long recordSetId, int start, int end,
574                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            /**
578            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
579            *
580            * @param recordSetId the record set 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 com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First(
587                    long recordSetId,
588                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
589                    throws com.liferay.portal.kernel.exception.SystemException,
590                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
591    
592            /**
593            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
594            *
595            * @param recordSetId the record set ID
596            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
597            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
598            * @throws SystemException if a system exception occurred
599            */
600            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First(
601                    long recordSetId,
602                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
607            *
608            * @param recordSetId the record set ID
609            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
610            * @return the last matching d d l record
611            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last(
615                    long recordSetId,
616                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
617                    throws com.liferay.portal.kernel.exception.SystemException,
618                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
619    
620            /**
621            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
622            *
623            * @param recordSetId the record set ID
624            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
625            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
626            * @throws SystemException if a system exception occurred
627            */
628            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last(
629                    long recordSetId,
630                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
631                    throws com.liferay.portal.kernel.exception.SystemException;
632    
633            /**
634            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63;.
635            *
636            * @param recordId the primary key of the current d d l record
637            * @param recordSetId the record set ID
638            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
639            * @return the previous, current, and next d d l record
640            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext(
644                    long recordId, long recordSetId,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException,
647                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
648    
649            /**
650            * Removes all the d d l records where recordSetId = &#63; from the database.
651            *
652            * @param recordSetId the record set ID
653            * @throws SystemException if a system exception occurred
654            */
655            public void removeByRecordSetId(long recordSetId)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Returns the number of d d l records where recordSetId = &#63;.
660            *
661            * @param recordSetId the record set ID
662            * @return the number of matching d d l records
663            * @throws SystemException if a system exception occurred
664            */
665            public int countByRecordSetId(long recordSetId)
666                    throws com.liferay.portal.kernel.exception.SystemException;
667    
668            /**
669            * Returns all the d d l records where recordSetId = &#63; and userId = &#63;.
670            *
671            * @param recordSetId the record set ID
672            * @param userId the user ID
673            * @return the matching d d l records
674            * @throws SystemException if a system exception occurred
675            */
676            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
677                    long recordSetId, long userId)
678                    throws com.liferay.portal.kernel.exception.SystemException;
679    
680            /**
681            * Returns a range of all the d d l records where recordSetId = &#63; and userId = &#63;.
682            *
683            * <p>
684            * 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.
685            * </p>
686            *
687            * @param recordSetId the record set ID
688            * @param userId the user ID
689            * @param start the lower bound of the range of d d l records
690            * @param end the upper bound of the range of d d l records (not inclusive)
691            * @return the range of matching d d l records
692            * @throws SystemException if a system exception occurred
693            */
694            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
695                    long recordSetId, long userId, int start, int end)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Returns an ordered range of all the d d l records where recordSetId = &#63; and userId = &#63;.
700            *
701            * <p>
702            * 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.
703            * </p>
704            *
705            * @param recordSetId the record set ID
706            * @param userId the user ID
707            * @param start the lower bound of the range of d d l records
708            * @param end the upper bound of the range of d d l records (not inclusive)
709            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
710            * @return the ordered range of matching d d l records
711            * @throws SystemException if a system exception occurred
712            */
713            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
714                    long recordSetId, long userId, int start, int end,
715                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
716                    throws com.liferay.portal.kernel.exception.SystemException;
717    
718            /**
719            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
720            *
721            * @param recordSetId the record set ID
722            * @param userId the user ID
723            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
724            * @return the first matching d d l record
725            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
726            * @throws SystemException if a system exception occurred
727            */
728            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First(
729                    long recordSetId, long userId,
730                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
731                    throws com.liferay.portal.kernel.exception.SystemException,
732                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
733    
734            /**
735            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
736            *
737            * @param recordSetId the record set ID
738            * @param userId the user ID
739            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
740            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
741            * @throws SystemException if a system exception occurred
742            */
743            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_First(
744                    long recordSetId, long userId,
745                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
750            *
751            * @param recordSetId the record set ID
752            * @param userId the user ID
753            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
754            * @return the last matching d d l record
755            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
756            * @throws SystemException if a system exception occurred
757            */
758            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last(
759                    long recordSetId, long userId,
760                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
761                    throws com.liferay.portal.kernel.exception.SystemException,
762                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
763    
764            /**
765            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
766            *
767            * @param recordSetId the record set ID
768            * @param userId the user ID
769            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
770            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
771            * @throws SystemException if a system exception occurred
772            */
773            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last(
774                    long recordSetId, long userId,
775                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
776                    throws com.liferay.portal.kernel.exception.SystemException;
777    
778            /**
779            * 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;.
780            *
781            * @param recordId the primary key of the current d d l record
782            * @param recordSetId the record set ID
783            * @param userId the user ID
784            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
785            * @return the previous, current, and next d d l record
786            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
787            * @throws SystemException if a system exception occurred
788            */
789            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext(
790                    long recordId, long recordSetId, long userId,
791                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
792                    throws com.liferay.portal.kernel.exception.SystemException,
793                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
794    
795            /**
796            * Removes all the d d l records where recordSetId = &#63; and userId = &#63; from the database.
797            *
798            * @param recordSetId the record set ID
799            * @param userId the user ID
800            * @throws SystemException if a system exception occurred
801            */
802            public void removeByR_U(long recordSetId, long userId)
803                    throws com.liferay.portal.kernel.exception.SystemException;
804    
805            /**
806            * Returns the number of d d l records where recordSetId = &#63; and userId = &#63;.
807            *
808            * @param recordSetId the record set ID
809            * @param userId the user ID
810            * @return the number of matching d d l records
811            * @throws SystemException if a system exception occurred
812            */
813            public int countByR_U(long recordSetId, long userId)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Caches the d d l record in the entity cache if it is enabled.
818            *
819            * @param ddlRecord the d d l record
820            */
821            public void cacheResult(
822                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord);
823    
824            /**
825            * Caches the d d l records in the entity cache if it is enabled.
826            *
827            * @param ddlRecords the d d l records
828            */
829            public void cacheResult(
830                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords);
831    
832            /**
833            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
834            *
835            * @param recordId the primary key for the new d d l record
836            * @return the new d d l record
837            */
838            public com.liferay.portlet.dynamicdatalists.model.DDLRecord create(
839                    long recordId);
840    
841            /**
842            * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
843            *
844            * @param recordId the primary key of the d d l record
845            * @return the d d l record that was removed
846            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
847            * @throws SystemException if a system exception occurred
848            */
849            public com.liferay.portlet.dynamicdatalists.model.DDLRecord remove(
850                    long recordId)
851                    throws com.liferay.portal.kernel.exception.SystemException,
852                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
853    
854            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl(
855                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * 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.
860            *
861            * @param recordId the primary key of the d d l record
862            * @return the d d l record
863            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
864            * @throws SystemException if a system exception occurred
865            */
866            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByPrimaryKey(
867                    long recordId)
868                    throws com.liferay.portal.kernel.exception.SystemException,
869                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
870    
871            /**
872            * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found.
873            *
874            * @param recordId the primary key of the d d l record
875            * @return the d d l record, or <code>null</code> if a d d l record with the primary key could not be found
876            * @throws SystemException if a system exception occurred
877            */
878            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByPrimaryKey(
879                    long recordId)
880                    throws com.liferay.portal.kernel.exception.SystemException;
881    
882            /**
883            * Returns all the d d l records.
884            *
885            * @return the d d l records
886            * @throws SystemException if a system exception occurred
887            */
888            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll()
889                    throws com.liferay.portal.kernel.exception.SystemException;
890    
891            /**
892            * Returns a range of all the d d l records.
893            *
894            * <p>
895            * 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.
896            * </p>
897            *
898            * @param start the lower bound of the range of d d l records
899            * @param end the upper bound of the range of d d l records (not inclusive)
900            * @return the range of d d l records
901            * @throws SystemException if a system exception occurred
902            */
903            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
904                    int start, int end)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Returns an ordered range of all the d d l records.
909            *
910            * <p>
911            * 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.
912            * </p>
913            *
914            * @param start the lower bound of the range of d d l records
915            * @param end the upper bound of the range of d d l records (not inclusive)
916            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
917            * @return the ordered range of d d l records
918            * @throws SystemException if a system exception occurred
919            */
920            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
921                    int start, int end,
922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
923                    throws com.liferay.portal.kernel.exception.SystemException;
924    
925            /**
926            * Removes all the d d l records from the database.
927            *
928            * @throws SystemException if a system exception occurred
929            */
930            public void removeAll()
931                    throws com.liferay.portal.kernel.exception.SystemException;
932    
933            /**
934            * Returns the number of d d l records.
935            *
936            * @return the number of d d l records
937            * @throws SystemException if a system exception occurred
938            */
939            public int countAll()
940                    throws com.liferay.portal.kernel.exception.SystemException;
941    }