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.DDLRecordVersion;
022    
023    /**
024     * The persistence interface for the d d l record version 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 DDLRecordVersionPersistenceImpl
032     * @see DDLRecordVersionUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DDLRecordVersionPersistence extends BasePersistence<DDLRecordVersion> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * Never modify or reference this interface directly. Always use {@link DDLRecordVersionUtil} to access the d d l record version persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
041             */
042    
043            /**
044            * Returns all the d d l record versions where recordId = &#63;.
045            *
046            * @param recordId the record ID
047            * @return the matching d d l record versions
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
051                    long recordId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the d d l record versions where recordId = &#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.DDLRecordVersionModelImpl}. 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 recordId the record ID
062            * @param start the lower bound of the range of d d l record versions
063            * @param end the upper bound of the range of d d l record versions (not inclusive)
064            * @return the range of matching d d l record versions
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
068                    long recordId, 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 record versions where recordId = &#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.DDLRecordVersionModelImpl}. 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 recordId the record ID
079            * @param start the lower bound of the range of d d l record versions
080            * @param end the upper bound of the range of d d l record versions (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 record versions
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
086                    long recordId, 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 version in the ordered set where recordId = &#63;.
092            *
093            * @param recordId the record ID
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching d d l record version
096            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First(
100                    long recordId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
104    
105            /**
106            * Returns the first d d l record version in the ordered set where recordId = &#63;.
107            *
108            * @param recordId the record ID
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First(
114                    long recordId,
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 version in the ordered set where recordId = &#63;.
120            *
121            * @param recordId the record ID
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching d d l record version
124            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last(
128                    long recordId,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
132    
133            /**
134            * Returns the last d d l record version in the ordered set where recordId = &#63;.
135            *
136            * @param recordId the record ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last(
142                    long recordId,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63;.
148            *
149            * @param recordVersionId the primary key of the current d d l record version
150            * @param recordId the record ID
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 version
153            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext(
157                    long recordVersionId, long recordId,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
161    
162            /**
163            * Removes all the d d l record versions where recordId = &#63; from the database.
164            *
165            * @param recordId the record ID
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByRecordId(long recordId)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of d d l record versions where recordId = &#63;.
173            *
174            * @param recordId the record ID
175            * @return the number of matching d d l record versions
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByRecordId(long recordId)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the d d l record version where recordId = &#63; and version = &#63; or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found.
183            *
184            * @param recordId the record ID
185            * @param version the version
186            * @return the matching d d l record version
187            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V(
191                    long recordId, java.lang.String version)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
194    
195            /**
196            * Returns the d d l record version where recordId = &#63; and version = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
197            *
198            * @param recordId the record ID
199            * @param version the version
200            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
204                    long recordId, java.lang.String version)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * Returns the d d l record version where recordId = &#63; and version = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
209            *
210            * @param recordId the record ID
211            * @param version the version
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
217                    long recordId, java.lang.String version, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the d d l record version where recordId = &#63; and version = &#63; from the database.
222            *
223            * @param recordId the record ID
224            * @param version the version
225            * @return the d d l record version that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V(
229                    long recordId, java.lang.String version)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
232    
233            /**
234            * Returns the number of d d l record versions where recordId = &#63; and version = &#63;.
235            *
236            * @param recordId the record ID
237            * @param version the version
238            * @return the number of matching d d l record versions
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByR_V(long recordId, java.lang.String version)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the d d l record versions where recordId = &#63; and status = &#63;.
246            *
247            * @param recordId the record ID
248            * @param status the status
249            * @return the matching d d l record versions
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
253                    long recordId, int status)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the d d l record versions where recordId = &#63; and status = &#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.DDLRecordVersionModelImpl}. 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 recordId the record ID
264            * @param status the status
265            * @param start the lower bound of the range of d d l record versions
266            * @param end the upper bound of the range of d d l record versions (not inclusive)
267            * @return the range of matching d d l record versions
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
271                    long recordId, int status, 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 record versions where recordId = &#63; and status = &#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.DDLRecordVersionModelImpl}. 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 recordId the record ID
282            * @param status the status
283            * @param start the lower bound of the range of d d l record versions
284            * @param end the upper bound of the range of d d l record versions (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 record versions
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
290                    long recordId, int status, 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 version in the ordered set where recordId = &#63; and status = &#63;.
296            *
297            * @param recordId the record ID
298            * @param status the status
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching d d l record version
301            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First(
305                    long recordId, int status,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
309    
310            /**
311            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
312            *
313            * @param recordId the record ID
314            * @param status the status
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First(
320                    long recordId, int status,
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 version in the ordered set where recordId = &#63; and status = &#63;.
326            *
327            * @param recordId the record ID
328            * @param status the status
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching d d l record version
331            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last(
335                    long recordId, int status,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
339    
340            /**
341            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
342            *
343            * @param recordId the record ID
344            * @param status the status
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last(
350                    long recordId, int status,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63; and status = &#63;.
356            *
357            * @param recordVersionId the primary key of the current d d l record version
358            * @param recordId the record ID
359            * @param status the status
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 version
362            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext(
366                    long recordVersionId, long recordId, int status,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
370    
371            /**
372            * Removes all the d d l record versions where recordId = &#63; and status = &#63; from the database.
373            *
374            * @param recordId the record ID
375            * @param status the status
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByR_S(long recordId, int status)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of d d l record versions where recordId = &#63; and status = &#63;.
383            *
384            * @param recordId the record ID
385            * @param status the status
386            * @return the number of matching d d l record versions
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByR_S(long recordId, int status)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Caches the d d l record version in the entity cache if it is enabled.
394            *
395            * @param ddlRecordVersion the d d l record version
396            */
397            public void cacheResult(
398                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion);
399    
400            /**
401            * Caches the d d l record versions in the entity cache if it is enabled.
402            *
403            * @param ddlRecordVersions the d d l record versions
404            */
405            public void cacheResult(
406                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions);
407    
408            /**
409            * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.
410            *
411            * @param recordVersionId the primary key for the new d d l record version
412            * @return the new d d l record version
413            */
414            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create(
415                    long recordVersionId);
416    
417            /**
418            * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.
419            *
420            * @param recordVersionId the primary key of the d d l record version
421            * @return the d d l record version that was removed
422            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
423            * @throws SystemException if a system exception occurred
424            */
425            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove(
426                    long recordVersionId)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
429    
430            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl(
431                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns the d d l record version with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException} if it could not be found.
436            *
437            * @param recordVersionId the primary key of the d d l record version
438            * @return the d d l record version
439            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey(
443                    long recordVersionId)
444                    throws com.liferay.portal.kernel.exception.SystemException,
445                            com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
446    
447            /**
448            * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found.
449            *
450            * @param recordVersionId the primary key of the d d l record version
451            * @return the d d l record version, or <code>null</code> if a d d l record version with the primary key could not be found
452            * @throws SystemException if a system exception occurred
453            */
454            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey(
455                    long recordVersionId)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Returns all the d d l record versions.
460            *
461            * @return the d d l record versions
462            * @throws SystemException if a system exception occurred
463            */
464            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll()
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns a range of all the d d l record versions.
469            *
470            * <p>
471            * 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.DDLRecordVersionModelImpl}. 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.
472            * </p>
473            *
474            * @param start the lower bound of the range of d d l record versions
475            * @param end the upper bound of the range of d d l record versions (not inclusive)
476            * @return the range of d d l record versions
477            * @throws SystemException if a system exception occurred
478            */
479            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
480                    int start, int end)
481                    throws com.liferay.portal.kernel.exception.SystemException;
482    
483            /**
484            * Returns an ordered range of all the d d l record versions.
485            *
486            * <p>
487            * 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.DDLRecordVersionModelImpl}. 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.
488            * </p>
489            *
490            * @param start the lower bound of the range of d d l record versions
491            * @param end the upper bound of the range of d d l record versions (not inclusive)
492            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
493            * @return the ordered range of d d l record versions
494            * @throws SystemException if a system exception occurred
495            */
496            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
497                    int start, int end,
498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499                    throws com.liferay.portal.kernel.exception.SystemException;
500    
501            /**
502            * Removes all the d d l record versions from the database.
503            *
504            * @throws SystemException if a system exception occurred
505            */
506            public void removeAll()
507                    throws com.liferay.portal.kernel.exception.SystemException;
508    
509            /**
510            * Returns the number of d d l record versions.
511            *
512            * @return the number of d d l record versions
513            * @throws SystemException if a system exception occurred
514            */
515            public int countAll()
516                    throws com.liferay.portal.kernel.exception.SystemException;
517    }