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.DDLRecordSet;
021    
022    /**
023     * The persistence interface for the d d l record set 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 DDLRecordSetPersistenceImpl
031     * @see DDLRecordSetUtil
032     * @generated
033     */
034    public interface DDLRecordSetPersistence extends BasePersistence<DDLRecordSet> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify or reference this interface directly. Always use {@link DDLRecordSetUtil} to access the d d l record set persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
039             */
040    
041            /**
042            * Caches the d d l record set in the entity cache if it is enabled.
043            *
044            * @param ddlRecordSet the d d l record set
045            */
046            public void cacheResult(
047                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet);
048    
049            /**
050            * Caches the d d l record sets in the entity cache if it is enabled.
051            *
052            * @param ddlRecordSets the d d l record sets
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> ddlRecordSets);
056    
057            /**
058            * Creates a new d d l record set with the primary key. Does not add the d d l record set to the database.
059            *
060            * @param recordSetId the primary key for the new d d l record set
061            * @return the new d d l record set
062            */
063            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet create(
064                    long recordSetId);
065    
066            /**
067            * Removes the d d l record set with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param recordSetId the primary key of the d d l record set
070            * @return the d d l record set that was removed
071            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet remove(
075                    long recordSetId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
078    
079            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateImpl(
080                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * Returns the d d l record set with the primary key or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found.
086            *
087            * @param recordSetId the primary key of the d d l record set
088            * @return the d d l record set
089            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByPrimaryKey(
093                    long recordSetId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
096    
097            /**
098            * Returns the d d l record set with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param recordSetId the primary key of the d d l record set
101            * @return the d d l record set, or <code>null</code> if a d d l record set with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByPrimaryKey(
105                    long recordSetId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Returns all the d d l record sets where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @return the matching d d l record sets
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> 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 record sets 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 record sets
128            * @param end the upper bound of the range of d d l record sets (not inclusive)
129            * @return the range of matching d d l record sets
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> 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 record sets 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 record sets
145            * @param end the upper bound of the range of d d l record sets (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 record sets
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> 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 set 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 set
165            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet 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.NoSuchRecordSetException;
173    
174            /**
175            * Returns the last d d l record set 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 set
184            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet 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.NoSuchRecordSetException;
192    
193            /**
194            * Returns the d d l record sets before and after the current d d l record set 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 recordSetId the primary key of the current d d l record set
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 set
204            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByUuid_PrevAndNext(
208                    long recordSetId, 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.NoSuchRecordSetException;
212    
213            /**
214            * Returns the d d l record set where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} 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 set
219            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUUID_G(
223                    java.lang.String uuid, long groupId)
224                    throws com.liferay.portal.kernel.exception.SystemException,
225                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
226    
227            /**
228            * Returns the d d l record set 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 set, or <code>null</code> if a matching d d l record set could not be found
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet 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 set 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 set, or <code>null</code> if a matching d d l record set could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet 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 record sets where groupId = &#63;.
254            *
255            * @param groupId the group ID
256            * @return the matching d d l record sets
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
260                    long groupId)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns a range of all the d d l record sets where groupId = &#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 groupId the group ID
271            * @param start the lower bound of the range of d d l record sets
272            * @param end the upper bound of the range of d d l record sets (not inclusive)
273            * @return the range of matching d d l record sets
274            * @throws SystemException if a system exception occurred
275            */
276            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
277                    long groupId, 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 record sets where groupId = &#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 groupId the group ID
288            * @param start the lower bound of the range of d d l record sets
289            * @param end the upper bound of the range of d d l record sets (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 record sets
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
295                    long groupId, 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 set in the ordered set where groupId = &#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 groupId the group ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the first matching d d l record set
309            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_First(
313                    long groupId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
317    
318            /**
319            * Returns the last d d l record set in the ordered set where groupId = &#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 groupId the group ID
326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
327            * @return the last matching d d l record set
328            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
329            * @throws SystemException if a system exception occurred
330            */
331            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_Last(
332                    long groupId,
333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
334                    throws com.liferay.portal.kernel.exception.SystemException,
335                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
336    
337            /**
338            * Returns the d d l record sets before and after the current d d l record set in the ordered set where groupId = &#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 recordSetId the primary key of the current d d l record set
345            * @param groupId the group 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 set
348            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByGroupId_PrevAndNext(
352                    long recordSetId, long groupId,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException,
355                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
356    
357            /**
358            * Returns all the d d l record sets that the user has permission to view where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching d d l record sets that the user has permission to view
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns a range of all the d d l record sets that the user has permission to view where groupId = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param groupId the group ID
376            * @param start the lower bound of the range of d d l record sets
377            * @param end the upper bound of the range of d d l record sets (not inclusive)
378            * @return the range of matching d d l record sets that the user has permission to view
379            * @throws SystemException if a system exception occurred
380            */
381            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
382                    long groupId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * Returns an ordered range of all the d d l record sets that the user has permissions to view where groupId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param groupId the group ID
393            * @param start the lower bound of the range of d d l record sets
394            * @param end the upper bound of the range of d d l record sets (not inclusive)
395            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
396            * @return the ordered range of matching d d l record sets that the user has permission to view
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
400                    long groupId, int start, int end,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * Returns the d d l record sets before and after the current d d l record set in the ordered set of d d l record sets that the user has permission to view where groupId = &#63;.
406            *
407            * @param recordSetId the primary key of the current d d l record set
408            * @param groupId the group ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the previous, current, and next d d l record set
411            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] filterFindByGroupId_PrevAndNext(
415                    long recordSetId, long groupId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
419    
420            /**
421            * Returns the d d l record set where groupId = &#63; and recordSetKey = &#63; or throws a {@link com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException} if it could not be found.
422            *
423            * @param groupId the group ID
424            * @param recordSetKey the record set key
425            * @return the matching d d l record set
426            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
427            * @throws SystemException if a system exception occurred
428            */
429            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByG_R(
430                    long groupId, java.lang.String recordSetKey)
431                    throws com.liferay.portal.kernel.exception.SystemException,
432                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
433    
434            /**
435            * Returns the d d l record set where groupId = &#63; and recordSetKey = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
436            *
437            * @param groupId the group ID
438            * @param recordSetKey the record set key
439            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
440            * @throws SystemException if a system exception occurred
441            */
442            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R(
443                    long groupId, java.lang.String recordSetKey)
444                    throws com.liferay.portal.kernel.exception.SystemException;
445    
446            /**
447            * Returns the d d l record set where groupId = &#63; and recordSetKey = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
448            *
449            * @param groupId the group ID
450            * @param recordSetKey the record set key
451            * @param retrieveFromCache whether to use the finder cache
452            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
453            * @throws SystemException if a system exception occurred
454            */
455            public com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R(
456                    long groupId, java.lang.String recordSetKey, boolean retrieveFromCache)
457                    throws com.liferay.portal.kernel.exception.SystemException;
458    
459            /**
460            * Returns all the d d l record sets.
461            *
462            * @return the d d l record sets
463            * @throws SystemException if a system exception occurred
464            */
465            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll()
466                    throws com.liferay.portal.kernel.exception.SystemException;
467    
468            /**
469            * Returns a range of all the d d l record sets.
470            *
471            * <p>
472            * 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.
473            * </p>
474            *
475            * @param start the lower bound of the range of d d l record sets
476            * @param end the upper bound of the range of d d l record sets (not inclusive)
477            * @return the range of d d l record sets
478            * @throws SystemException if a system exception occurred
479            */
480            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll(
481                    int start, int end)
482                    throws com.liferay.portal.kernel.exception.SystemException;
483    
484            /**
485            * Returns an ordered range of all the d d l record sets.
486            *
487            * <p>
488            * 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.
489            * </p>
490            *
491            * @param start the lower bound of the range of d d l record sets
492            * @param end the upper bound of the range of d d l record sets (not inclusive)
493            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
494            * @return the ordered range of d d l record sets
495            * @throws SystemException if a system exception occurred
496            */
497            public java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll(
498                    int start, int end,
499                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
500                    throws com.liferay.portal.kernel.exception.SystemException;
501    
502            /**
503            * Removes all the d d l record sets where uuid = &#63; from the database.
504            *
505            * @param uuid the uuid
506            * @throws SystemException if a system exception occurred
507            */
508            public void removeByUuid(java.lang.String uuid)
509                    throws com.liferay.portal.kernel.exception.SystemException;
510    
511            /**
512            * Removes the d d l record set where uuid = &#63; and groupId = &#63; from the database.
513            *
514            * @param uuid the uuid
515            * @param groupId the group ID
516            * @throws SystemException if a system exception occurred
517            */
518            public void removeByUUID_G(java.lang.String uuid, long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException,
520                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
521    
522            /**
523            * Removes all the d d l record sets where groupId = &#63; from the database.
524            *
525            * @param groupId the group ID
526            * @throws SystemException if a system exception occurred
527            */
528            public void removeByGroupId(long groupId)
529                    throws com.liferay.portal.kernel.exception.SystemException;
530    
531            /**
532            * Removes the d d l record set where groupId = &#63; and recordSetKey = &#63; from the database.
533            *
534            * @param groupId the group ID
535            * @param recordSetKey the record set key
536            * @throws SystemException if a system exception occurred
537            */
538            public void removeByG_R(long groupId, java.lang.String recordSetKey)
539                    throws com.liferay.portal.kernel.exception.SystemException,
540                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException;
541    
542            /**
543            * Removes all the d d l record sets from the database.
544            *
545            * @throws SystemException if a system exception occurred
546            */
547            public void removeAll()
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the number of d d l record sets where uuid = &#63;.
552            *
553            * @param uuid the uuid
554            * @return the number of matching d d l record sets
555            * @throws SystemException if a system exception occurred
556            */
557            public int countByUuid(java.lang.String uuid)
558                    throws com.liferay.portal.kernel.exception.SystemException;
559    
560            /**
561            * Returns the number of d d l record sets where uuid = &#63; and groupId = &#63;.
562            *
563            * @param uuid the uuid
564            * @param groupId the group ID
565            * @return the number of matching d d l record sets
566            * @throws SystemException if a system exception occurred
567            */
568            public int countByUUID_G(java.lang.String uuid, long groupId)
569                    throws com.liferay.portal.kernel.exception.SystemException;
570    
571            /**
572            * Returns the number of d d l record sets where groupId = &#63;.
573            *
574            * @param groupId the group ID
575            * @return the number of matching d d l record sets
576            * @throws SystemException if a system exception occurred
577            */
578            public int countByGroupId(long groupId)
579                    throws com.liferay.portal.kernel.exception.SystemException;
580    
581            /**
582            * Returns the number of d d l record sets that the user has permission to view where groupId = &#63;.
583            *
584            * @param groupId the group ID
585            * @return the number of matching d d l record sets that the user has permission to view
586            * @throws SystemException if a system exception occurred
587            */
588            public int filterCountByGroupId(long groupId)
589                    throws com.liferay.portal.kernel.exception.SystemException;
590    
591            /**
592            * Returns the number of d d l record sets where groupId = &#63; and recordSetKey = &#63;.
593            *
594            * @param groupId the group ID
595            * @param recordSetKey the record set key
596            * @return the number of matching d d l record sets
597            * @throws SystemException if a system exception occurred
598            */
599            public int countByG_R(long groupId, java.lang.String recordSetKey)
600                    throws com.liferay.portal.kernel.exception.SystemException;
601    
602            /**
603            * Returns the number of d d l record sets.
604            *
605            * @return the number of d d l record sets
606            * @throws SystemException if a system exception occurred
607            */
608            public int countAll()
609                    throws com.liferay.portal.kernel.exception.SystemException;
610    
611            public DDLRecordSet remove(DDLRecordSet ddlRecordSet)
612                    throws SystemException;
613    }