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            * Caches the d d l record in the entity cache if it is enabled.
042            *
043            * @param ddlRecord the d d l record
044            */
045            public void cacheResult(
046                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord);
047    
048            /**
049            * Caches the d d l records in the entity cache if it is enabled.
050            *
051            * @param ddlRecords the d d l records
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> ddlRecords);
055    
056            /**
057            * Creates a new d d l record with the primary key. Does not add the d d l record to the database.
058            *
059            * @param recordId the primary key for the new d d l record
060            * @return the new d d l record
061            */
062            public com.liferay.portlet.dynamicdatalists.model.DDLRecord create(
063                    long recordId);
064    
065            /**
066            * Removes the d d l record with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param recordId the primary key of the d d l record
069            * @return the d d l record that was removed
070            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.dynamicdatalists.model.DDLRecord remove(
074                    long recordId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
077    
078            public com.liferay.portlet.dynamicdatalists.model.DDLRecord updateImpl(
079                    com.liferay.portlet.dynamicdatalists.model.DDLRecord ddlRecord,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * 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.
085            *
086            * @param recordId the primary key of the d d l record
087            * @return the d d l record
088            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByPrimaryKey(
092                    long recordId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
095    
096            /**
097            * Returns the d d l record with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param recordId the primary key of the d d l record
100            * @return the d d l record, or <code>null</code> if a d d l record with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByPrimaryKey(
104                    long recordId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the d d l records where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching d d l records
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the d d l records where uuid = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param uuid the uuid
126            * @param start the lower bound of the range of d d l records
127            * @param end the upper bound of the range of d d l records (not inclusive)
128            * @return the range of matching d d l records
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
132                    java.lang.String uuid, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the d d l records where uuid = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param uuid the uuid
143            * @param start the lower bound of the range of d d l records
144            * @param end the upper bound of the range of d d l records (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching d d l records
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByUuid(
150                    java.lang.String uuid, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first d d l record in the ordered set where uuid = &#63;.
156            *
157            * @param uuid the uuid
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching d d l record
160            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_First(
164                    java.lang.String uuid,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
168    
169            /**
170            * Returns the first d d l record in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last d d l record in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching d d l record
188            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUuid_Last(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
196    
197            /**
198            * Returns the last d d l record in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUuid_Last(
206                    java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the d d l records before and after the current d d l record in the ordered set where uuid = &#63;.
212            *
213            * @param recordId the primary key of the current d d l record
214            * @param uuid the uuid
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next d d l record
217            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByUuid_PrevAndNext(
221                    long recordId, java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
225    
226            /**
227            * 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.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching d d l record
232            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByUUID_G(
236                    java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
239    
240            /**
241            * 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.
242            *
243            * @param uuid the uuid
244            * @param groupId the group ID
245            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
249                    java.lang.String uuid, long groupId)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * 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.
254            *
255            * @param uuid the uuid
256            * @param groupId the group ID
257            * @param retrieveFromCache whether to use the finder cache
258            * @return the matching d d l record, or <code>null</code> if a matching d d l record could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByUUID_G(
262                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            /**
266            * Returns all the d d l records where recordSetId = &#63;.
267            *
268            * @param recordSetId the record set ID
269            * @return the matching d d l records
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
273                    long recordSetId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the d d l records where recordSetId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param recordSetId the record set ID
284            * @param start the lower bound of the range of d d l records
285            * @param end the upper bound of the range of d d l records (not inclusive)
286            * @return the range of matching d d l records
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
290                    long recordSetId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns an ordered range of all the d d l records where recordSetId = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param recordSetId the record set ID
301            * @param start the lower bound of the range of d d l records
302            * @param end the upper bound of the range of d d l records (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching d d l records
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByRecordSetId(
308                    long recordSetId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
314            *
315            * @param recordSetId the record set ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the first matching d d l record
318            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_First(
322                    long recordSetId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
326    
327            /**
328            * Returns the first d d l record in the ordered set where recordSetId = &#63;.
329            *
330            * @param recordSetId the record set ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching d d l record, or <code>null</code> if a matching d d l record could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_First(
336                    long recordSetId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
342            *
343            * @param recordSetId the record set ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching d d l record
346            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByRecordSetId_Last(
350                    long recordSetId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
354    
355            /**
356            * Returns the last d d l record in the ordered set where recordSetId = &#63;.
357            *
358            * @param recordSetId the record set ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByRecordSetId_Last(
364                    long recordSetId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = &#63;.
370            *
371            * @param recordId the primary key of the current d d l record
372            * @param recordSetId the record set ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next d d l record
375            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByRecordSetId_PrevAndNext(
379                    long recordId, long recordSetId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
383    
384            /**
385            * Returns all the d d l records where recordSetId = &#63; and userId = &#63;.
386            *
387            * @param recordSetId the record set ID
388            * @param userId the user ID
389            * @return the matching d d l records
390            * @throws SystemException if a system exception occurred
391            */
392            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
393                    long recordSetId, long userId)
394                    throws com.liferay.portal.kernel.exception.SystemException;
395    
396            /**
397            * Returns a range of all the d d l records where recordSetId = &#63; and userId = &#63;.
398            *
399            * <p>
400            * 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.
401            * </p>
402            *
403            * @param recordSetId the record set ID
404            * @param userId the user ID
405            * @param start the lower bound of the range of d d l records
406            * @param end the upper bound of the range of d d l records (not inclusive)
407            * @return the range of matching d d l records
408            * @throws SystemException if a system exception occurred
409            */
410            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
411                    long recordSetId, long userId, int start, int end)
412                    throws com.liferay.portal.kernel.exception.SystemException;
413    
414            /**
415            * Returns an ordered range of all the d d l records where recordSetId = &#63; and userId = &#63;.
416            *
417            * <p>
418            * 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.
419            * </p>
420            *
421            * @param recordSetId the record set ID
422            * @param userId the user ID
423            * @param start the lower bound of the range of d d l records
424            * @param end the upper bound of the range of d d l records (not inclusive)
425            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
426            * @return the ordered range of matching d d l records
427            * @throws SystemException if a system exception occurred
428            */
429            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findByR_U(
430                    long recordSetId, long userId, int start, int end,
431                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
432                    throws com.liferay.portal.kernel.exception.SystemException;
433    
434            /**
435            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
436            *
437            * @param recordSetId the record set ID
438            * @param userId the user ID
439            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
440            * @return the first matching d d l record
441            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_First(
445                    long recordSetId, long userId,
446                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447                    throws com.liferay.portal.kernel.exception.SystemException,
448                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
449    
450            /**
451            * Returns the first d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
452            *
453            * @param recordSetId the record set ID
454            * @param userId the user 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 fetchByR_U_First(
460                    long recordSetId, long userId,
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 recordSetId = &#63; and userId = &#63;.
466            *
467            * @param recordSetId the record set ID
468            * @param userId the user ID
469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
470            * @return the last matching d d l record
471            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a matching d d l record could not be found
472            * @throws SystemException if a system exception occurred
473            */
474            public com.liferay.portlet.dynamicdatalists.model.DDLRecord findByR_U_Last(
475                    long recordSetId, long userId,
476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
477                    throws com.liferay.portal.kernel.exception.SystemException,
478                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
479    
480            /**
481            * Returns the last d d l record in the ordered set where recordSetId = &#63; and userId = &#63;.
482            *
483            * @param recordSetId the record set ID
484            * @param userId the user ID
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the last matching d d l record, or <code>null</code> if a matching d d l record could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portlet.dynamicdatalists.model.DDLRecord fetchByR_U_Last(
490                    long recordSetId, long userId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * 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;.
496            *
497            * @param recordId the primary key of the current d d l record
498            * @param recordSetId the record set ID
499            * @param userId the user ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next d d l record
502            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordException if a d d l record with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.dynamicdatalists.model.DDLRecord[] findByR_U_PrevAndNext(
506                    long recordId, long recordSetId, long userId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
510    
511            /**
512            * Returns all the d d l records.
513            *
514            * @return the d d l records
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll()
518                    throws com.liferay.portal.kernel.exception.SystemException;
519    
520            /**
521            * Returns a range of all the d d l records.
522            *
523            * <p>
524            * 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.
525            * </p>
526            *
527            * @param start the lower bound of the range of d d l records
528            * @param end the upper bound of the range of d d l records (not inclusive)
529            * @return the range of d d l records
530            * @throws SystemException if a system exception occurred
531            */
532            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
533                    int start, int end)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Returns an ordered range of all the d d l records.
538            *
539            * <p>
540            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
541            * </p>
542            *
543            * @param start the lower bound of the range of d d l records
544            * @param end the upper bound of the range of d d l records (not inclusive)
545            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
546            * @return the ordered range of d d l records
547            * @throws SystemException if a system exception occurred
548            */
549            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecord> findAll(
550                    int start, int end,
551                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
552                    throws com.liferay.portal.kernel.exception.SystemException;
553    
554            /**
555            * Removes all the d d l records where uuid = &#63; from the database.
556            *
557            * @param uuid the uuid
558            * @throws SystemException if a system exception occurred
559            */
560            public void removeByUuid(java.lang.String uuid)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * Removes the d d l record where uuid = &#63; and groupId = &#63; from the database.
565            *
566            * @param uuid the uuid
567            * @param groupId the group ID
568            * @return the d d l record that was removed
569            * @throws SystemException if a system exception occurred
570            */
571            public com.liferay.portlet.dynamicdatalists.model.DDLRecord removeByUUID_G(
572                    java.lang.String uuid, long groupId)
573                    throws com.liferay.portal.kernel.exception.SystemException,
574                            com.liferay.portlet.dynamicdatalists.NoSuchRecordException;
575    
576            /**
577            * Removes all the d d l records where recordSetId = &#63; from the database.
578            *
579            * @param recordSetId the record set ID
580            * @throws SystemException if a system exception occurred
581            */
582            public void removeByRecordSetId(long recordSetId)
583                    throws com.liferay.portal.kernel.exception.SystemException;
584    
585            /**
586            * Removes all the d d l records where recordSetId = &#63; and userId = &#63; from the database.
587            *
588            * @param recordSetId the record set ID
589            * @param userId the user ID
590            * @throws SystemException if a system exception occurred
591            */
592            public void removeByR_U(long recordSetId, long userId)
593                    throws com.liferay.portal.kernel.exception.SystemException;
594    
595            /**
596            * Removes all the d d l records from the database.
597            *
598            * @throws SystemException if a system exception occurred
599            */
600            public void removeAll()
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns the number of d d l records where uuid = &#63;.
605            *
606            * @param uuid the uuid
607            * @return the number of matching d d l records
608            * @throws SystemException if a system exception occurred
609            */
610            public int countByUuid(java.lang.String uuid)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            /**
614            * Returns the number of d d l records where uuid = &#63; and groupId = &#63;.
615            *
616            * @param uuid the uuid
617            * @param groupId the group ID
618            * @return the number of matching d d l records
619            * @throws SystemException if a system exception occurred
620            */
621            public int countByUUID_G(java.lang.String uuid, long groupId)
622                    throws com.liferay.portal.kernel.exception.SystemException;
623    
624            /**
625            * Returns the number of d d l records where recordSetId = &#63;.
626            *
627            * @param recordSetId the record set ID
628            * @return the number of matching d d l records
629            * @throws SystemException if a system exception occurred
630            */
631            public int countByRecordSetId(long recordSetId)
632                    throws com.liferay.portal.kernel.exception.SystemException;
633    
634            /**
635            * Returns the number of d d l records where recordSetId = &#63; and userId = &#63;.
636            *
637            * @param recordSetId the record set ID
638            * @param userId the user ID
639            * @return the number of matching d d l records
640            * @throws SystemException if a system exception occurred
641            */
642            public int countByR_U(long recordSetId, long userId)
643                    throws com.liferay.portal.kernel.exception.SystemException;
644    
645            /**
646            * Returns the number of d d l records.
647            *
648            * @return the number of d d l records
649            * @throws SystemException if a system exception occurred
650            */
651            public int countAll()
652                    throws com.liferay.portal.kernel.exception.SystemException;
653    }