001    /**
002     * Copyright (c) 2000-present 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            */
049            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
050                    long recordId);
051    
052            /**
053            * Returns a range of all the d d l record versions where recordId = &#63;.
054            *
055            * <p>
056            * 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.
057            * </p>
058            *
059            * @param recordId the record ID
060            * @param start the lower bound of the range of d d l record versions
061            * @param end the upper bound of the range of d d l record versions (not inclusive)
062            * @return the range of matching d d l record versions
063            */
064            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
065                    long recordId, int start, int end);
066    
067            /**
068            * Returns an ordered range of all the d d l record versions where recordId = &#63;.
069            *
070            * <p>
071            * 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.
072            * </p>
073            *
074            * @param recordId the record ID
075            * @param start the lower bound of the range of d d l record versions
076            * @param end the upper bound of the range of d d l record versions (not inclusive)
077            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
078            * @return the ordered range of matching d d l record versions
079            */
080            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByRecordId(
081                    long recordId, int start, int end,
082                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
083    
084            /**
085            * Returns the first d d l record version in the ordered set where recordId = &#63;.
086            *
087            * @param recordId the record ID
088            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
089            * @return the first matching d d l record version
090            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
091            */
092            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_First(
093                    long recordId,
094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
095                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
096    
097            /**
098            * Returns the first d d l record version in the ordered set where recordId = &#63;.
099            *
100            * @param recordId the record ID
101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
102            * @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
103            */
104            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_First(
105                    long recordId,
106                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
107    
108            /**
109            * Returns the last d d l record version in the ordered set where recordId = &#63;.
110            *
111            * @param recordId the record ID
112            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
113            * @return the last matching d d l record version
114            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
115            */
116            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByRecordId_Last(
117                    long recordId,
118                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
119                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
120    
121            /**
122            * Returns the last d d l record version in the ordered set where recordId = &#63;.
123            *
124            * @param recordId the record ID
125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
126            * @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
127            */
128            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByRecordId_Last(
129                    long recordId,
130                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
131    
132            /**
133            * Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = &#63;.
134            *
135            * @param recordVersionId the primary key of the current d d l record version
136            * @param recordId the record ID
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the previous, current, and next d d l record version
139            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
140            */
141            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByRecordId_PrevAndNext(
142                    long recordVersionId, long recordId,
143                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
144                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
145    
146            /**
147            * Removes all the d d l record versions where recordId = &#63; from the database.
148            *
149            * @param recordId the record ID
150            */
151            public void removeByRecordId(long recordId);
152    
153            /**
154            * Returns the number of d d l record versions where recordId = &#63;.
155            *
156            * @param recordId the record ID
157            * @return the number of matching d d l record versions
158            */
159            public int countByRecordId(long recordId);
160    
161            /**
162            * 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.
163            *
164            * @param recordId the record ID
165            * @param version the version
166            * @return the matching d d l record version
167            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
168            */
169            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_V(
170                    long recordId, java.lang.String version)
171                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
172    
173            /**
174            * 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.
175            *
176            * @param recordId the record ID
177            * @param version the version
178            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
179            */
180            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
181                    long recordId, java.lang.String version);
182    
183            /**
184            * 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.
185            *
186            * @param recordId the record ID
187            * @param version the version
188            * @param retrieveFromCache whether to use the finder cache
189            * @return the matching d d l record version, or <code>null</code> if a matching d d l record version could not be found
190            */
191            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_V(
192                    long recordId, java.lang.String version, boolean retrieveFromCache);
193    
194            /**
195            * Removes the d d l record version where recordId = &#63; and version = &#63; from the database.
196            *
197            * @param recordId the record ID
198            * @param version the version
199            * @return the d d l record version that was removed
200            */
201            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion removeByR_V(
202                    long recordId, java.lang.String version)
203                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
204    
205            /**
206            * Returns the number of d d l record versions where recordId = &#63; and version = &#63;.
207            *
208            * @param recordId the record ID
209            * @param version the version
210            * @return the number of matching d d l record versions
211            */
212            public int countByR_V(long recordId, java.lang.String version);
213    
214            /**
215            * Returns all the d d l record versions where recordId = &#63; and status = &#63;.
216            *
217            * @param recordId the record ID
218            * @param status the status
219            * @return the matching d d l record versions
220            */
221            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
222                    long recordId, int status);
223    
224            /**
225            * Returns a range of all the d d l record versions where recordId = &#63; and status = &#63;.
226            *
227            * <p>
228            * 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.
229            * </p>
230            *
231            * @param recordId the record ID
232            * @param status the status
233            * @param start the lower bound of the range of d d l record versions
234            * @param end the upper bound of the range of d d l record versions (not inclusive)
235            * @return the range of matching d d l record versions
236            */
237            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
238                    long recordId, int status, int start, int end);
239    
240            /**
241            * Returns an ordered range of all the d d l record versions where recordId = &#63; and status = &#63;.
242            *
243            * <p>
244            * 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.
245            * </p>
246            *
247            * @param recordId the record ID
248            * @param status the status
249            * @param start the lower bound of the range of d d l record versions
250            * @param end the upper bound of the range of d d l record versions (not inclusive)
251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
252            * @return the ordered range of matching d d l record versions
253            */
254            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findByR_S(
255                    long recordId, int status, int start, int end,
256                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
257    
258            /**
259            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
260            *
261            * @param recordId the record ID
262            * @param status the status
263            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
264            * @return the first matching d d l record version
265            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
266            */
267            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_First(
268                    long recordId, int status,
269                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
270                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
271    
272            /**
273            * Returns the first d d l record version in the ordered set where recordId = &#63; and status = &#63;.
274            *
275            * @param recordId the record ID
276            * @param status the status
277            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
278            * @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
279            */
280            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_First(
281                    long recordId, int status,
282                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
283    
284            /**
285            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
286            *
287            * @param recordId the record ID
288            * @param status the status
289            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
290            * @return the last matching d d l record version
291            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a matching d d l record version could not be found
292            */
293            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByR_S_Last(
294                    long recordId, int status,
295                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
296                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
297    
298            /**
299            * Returns the last d d l record version in the ordered set where recordId = &#63; and status = &#63;.
300            *
301            * @param recordId the record ID
302            * @param status the status
303            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
304            * @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
305            */
306            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByR_S_Last(
307                    long recordId, int status,
308                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
309    
310            /**
311            * 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;.
312            *
313            * @param recordVersionId the primary key of the current d d l record version
314            * @param recordId the record ID
315            * @param status the status
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the previous, current, and next d d l record version
318            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
319            */
320            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion[] findByR_S_PrevAndNext(
321                    long recordVersionId, long recordId, int status,
322                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator)
323                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
324    
325            /**
326            * Removes all the d d l record versions where recordId = &#63; and status = &#63; from the database.
327            *
328            * @param recordId the record ID
329            * @param status the status
330            */
331            public void removeByR_S(long recordId, int status);
332    
333            /**
334            * Returns the number of d d l record versions where recordId = &#63; and status = &#63;.
335            *
336            * @param recordId the record ID
337            * @param status the status
338            * @return the number of matching d d l record versions
339            */
340            public int countByR_S(long recordId, int status);
341    
342            /**
343            * Caches the d d l record version in the entity cache if it is enabled.
344            *
345            * @param ddlRecordVersion the d d l record version
346            */
347            public void cacheResult(
348                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion);
349    
350            /**
351            * Caches the d d l record versions in the entity cache if it is enabled.
352            *
353            * @param ddlRecordVersions the d d l record versions
354            */
355            public void cacheResult(
356                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> ddlRecordVersions);
357    
358            /**
359            * Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.
360            *
361            * @param recordVersionId the primary key for the new d d l record version
362            * @return the new d d l record version
363            */
364            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion create(
365                    long recordVersionId);
366    
367            /**
368            * Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.
369            *
370            * @param recordVersionId the primary key of the d d l record version
371            * @return the d d l record version that was removed
372            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
373            */
374            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion remove(
375                    long recordVersionId)
376                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
377    
378            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion updateImpl(
379                    com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion ddlRecordVersion);
380    
381            /**
382            * 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.
383            *
384            * @param recordVersionId the primary key of the d d l record version
385            * @return the d d l record version
386            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException if a d d l record version with the primary key could not be found
387            */
388            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion findByPrimaryKey(
389                    long recordVersionId)
390                    throws com.liferay.portlet.dynamicdatalists.NoSuchRecordVersionException;
391    
392            /**
393            * Returns the d d l record version with the primary key or returns <code>null</code> if it could not be found.
394            *
395            * @param recordVersionId the primary key of the d d l record version
396            * @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
397            */
398            public com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion fetchByPrimaryKey(
399                    long recordVersionId);
400    
401            @Override
402            public java.util.Map<java.io.Serializable, com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> fetchByPrimaryKeys(
403                    java.util.Set<java.io.Serializable> primaryKeys);
404    
405            /**
406            * Returns all the d d l record versions.
407            *
408            * @return the d d l record versions
409            */
410            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll();
411    
412            /**
413            * Returns a range of all the d d l record versions.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param start the lower bound of the range of d d l record versions
420            * @param end the upper bound of the range of d d l record versions (not inclusive)
421            * @return the range of d d l record versions
422            */
423            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
424                    int start, int end);
425    
426            /**
427            * Returns an ordered range of all the d d l record versions.
428            *
429            * <p>
430            * 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.
431            * </p>
432            *
433            * @param start the lower bound of the range of d d l record versions
434            * @param end the upper bound of the range of d d l record versions (not inclusive)
435            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
436            * @return the ordered range of d d l record versions
437            */
438            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> findAll(
439                    int start, int end,
440                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordVersion> orderByComparator);
441    
442            /**
443            * Removes all the d d l record versions from the database.
444            */
445            public void removeAll();
446    
447            /**
448            * Returns the number of d d l record versions.
449            *
450            * @return the number of d d l record versions
451            */
452            public int countAll();
453    }