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