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