001    /**
002     * Copyright (c) 2000-2012 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.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.kernel.util.OrderByComparator;
021    import com.liferay.portal.kernel.util.ReferenceRegistry;
022    import com.liferay.portal.service.ServiceContext;
023    
024    import com.liferay.portlet.dynamicdatalists.model.DDLRecordSet;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d l record set service. This utility wraps {@link DDLRecordSetPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
030     *
031     * <p>
032     * Caching information and settings can be found in <code>portal.properties</code>
033     * </p>
034     *
035     * @author Brian Wing Shun Chan
036     * @see DDLRecordSetPersistence
037     * @see DDLRecordSetPersistenceImpl
038     * @generated
039     */
040    public class DDLRecordSetUtil {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
045             */
046    
047            /**
048             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
049             */
050            public static void clearCache() {
051                    getPersistence().clearCache();
052            }
053    
054            /**
055             * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
056             */
057            public static void clearCache(DDLRecordSet ddlRecordSet) {
058                    getPersistence().clearCache(ddlRecordSet);
059            }
060    
061            /**
062             * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
063             */
064            public long countWithDynamicQuery(DynamicQuery dynamicQuery)
065                    throws SystemException {
066                    return getPersistence().countWithDynamicQuery(dynamicQuery);
067            }
068    
069            /**
070             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
071             */
072            public static List<DDLRecordSet> findWithDynamicQuery(
073                    DynamicQuery dynamicQuery) throws SystemException {
074                    return getPersistence().findWithDynamicQuery(dynamicQuery);
075            }
076    
077            /**
078             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
079             */
080            public static List<DDLRecordSet> findWithDynamicQuery(
081                    DynamicQuery dynamicQuery, int start, int end)
082                    throws SystemException {
083                    return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
084            }
085    
086            /**
087             * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
088             */
089            public static List<DDLRecordSet> findWithDynamicQuery(
090                    DynamicQuery dynamicQuery, int start, int end,
091                    OrderByComparator orderByComparator) throws SystemException {
092                    return getPersistence()
093                                       .findWithDynamicQuery(dynamicQuery, start, end,
094                            orderByComparator);
095            }
096    
097            /**
098             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
099             */
100            public static DDLRecordSet update(DDLRecordSet ddlRecordSet, boolean merge)
101                    throws SystemException {
102                    return getPersistence().update(ddlRecordSet, merge);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
107             */
108            public static DDLRecordSet update(DDLRecordSet ddlRecordSet, boolean merge,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddlRecordSet, merge, serviceContext);
111            }
112    
113            /**
114            * Caches the d d l record set in the entity cache if it is enabled.
115            *
116            * @param ddlRecordSet the d d l record set
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) {
120                    getPersistence().cacheResult(ddlRecordSet);
121            }
122    
123            /**
124            * Caches the d d l record sets in the entity cache if it is enabled.
125            *
126            * @param ddlRecordSets the d d l record sets
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> ddlRecordSets) {
130                    getPersistence().cacheResult(ddlRecordSets);
131            }
132    
133            /**
134            * Creates a new d d l record set with the primary key. Does not add the d d l record set to the database.
135            *
136            * @param recordSetId the primary key for the new d d l record set
137            * @return the new d d l record set
138            */
139            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet create(
140                    long recordSetId) {
141                    return getPersistence().create(recordSetId);
142            }
143    
144            /**
145            * Removes the d d l record set with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param recordSetId the primary key of the d d l record set
148            * @return the d d l record set that was removed
149            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet remove(
153                    long recordSetId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
156                    return getPersistence().remove(recordSetId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateImpl(
160                    com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet,
161                    boolean merge)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getPersistence().updateImpl(ddlRecordSet, merge);
164            }
165    
166            /**
167            * 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.
168            *
169            * @param recordSetId the primary key of the d d l record set
170            * @return the d d l record set
171            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
172            * @throws SystemException if a system exception occurred
173            */
174            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByPrimaryKey(
175                    long recordSetId)
176                    throws com.liferay.portal.kernel.exception.SystemException,
177                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
178                    return getPersistence().findByPrimaryKey(recordSetId);
179            }
180    
181            /**
182            * Returns the d d l record set with the primary key or returns <code>null</code> if it could not be found.
183            *
184            * @param recordSetId the primary key of the d d l record set
185            * @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
186            * @throws SystemException if a system exception occurred
187            */
188            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByPrimaryKey(
189                    long recordSetId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getPersistence().fetchByPrimaryKey(recordSetId);
192            }
193    
194            /**
195            * Returns all the d d l record sets where uuid = &#63;.
196            *
197            * @param uuid the uuid
198            * @return the matching d d l record sets
199            * @throws SystemException if a system exception occurred
200            */
201            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid(
202                    java.lang.String uuid)
203                    throws com.liferay.portal.kernel.exception.SystemException {
204                    return getPersistence().findByUuid(uuid);
205            }
206    
207            /**
208            * Returns a range of all the d d l record sets where uuid = &#63;.
209            *
210            * <p>
211            * 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.
212            * </p>
213            *
214            * @param uuid the uuid
215            * @param start the lower bound of the range of d d l record sets
216            * @param end the upper bound of the range of d d l record sets (not inclusive)
217            * @return the range of matching d d l record sets
218            * @throws SystemException if a system exception occurred
219            */
220            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid(
221                    java.lang.String uuid, int start, int end)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return getPersistence().findByUuid(uuid, start, end);
224            }
225    
226            /**
227            * Returns an ordered range of all the d d l record sets where uuid = &#63;.
228            *
229            * <p>
230            * 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.
231            * </p>
232            *
233            * @param uuid the uuid
234            * @param start the lower bound of the range of d d l record sets
235            * @param end the upper bound of the range of d d l record sets (not inclusive)
236            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
237            * @return the ordered range of matching d d l record sets
238            * @throws SystemException if a system exception occurred
239            */
240            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByUuid(
241                    java.lang.String uuid, int start, int end,
242                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
245            }
246    
247            /**
248            * Returns the first d d l record set in the ordered set where uuid = &#63;.
249            *
250            * <p>
251            * 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.
252            * </p>
253            *
254            * @param uuid the uuid
255            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
256            * @return the first matching d d l record set
257            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_First(
261                    java.lang.String uuid,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
265                    return getPersistence().findByUuid_First(uuid, orderByComparator);
266            }
267    
268            /**
269            * Returns the last d d l record set in the ordered set where uuid = &#63;.
270            *
271            * <p>
272            * 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.
273            * </p>
274            *
275            * @param uuid the uuid
276            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
277            * @return the last matching d d l record set
278            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
279            * @throws SystemException if a system exception occurred
280            */
281            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUuid_Last(
282                    java.lang.String uuid,
283                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
284                    throws com.liferay.portal.kernel.exception.SystemException,
285                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
286                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
287            }
288    
289            /**
290            * Returns the d d l record sets before and after the current d d l record set in the ordered set where uuid = &#63;.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param recordSetId the primary key of the current d d l record set
297            * @param uuid the uuid
298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
299            * @return the previous, current, and next d d l record set
300            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByUuid_PrevAndNext(
304                    long recordSetId, java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException,
307                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
308                    return getPersistence()
309                                       .findByUuid_PrevAndNext(recordSetId, uuid, orderByComparator);
310            }
311    
312            /**
313            * 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.
314            *
315            * @param uuid the uuid
316            * @param groupId the group ID
317            * @return the matching d d l record set
318            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByUUID_G(
322                    java.lang.String uuid, long groupId)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
325                    return getPersistence().findByUUID_G(uuid, groupId);
326            }
327    
328            /**
329            * 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.
330            *
331            * @param uuid the uuid
332            * @param groupId the group ID
333            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
334            * @throws SystemException if a system exception occurred
335            */
336            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G(
337                    java.lang.String uuid, long groupId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getPersistence().fetchByUUID_G(uuid, groupId);
340            }
341    
342            /**
343            * 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.
344            *
345            * @param uuid the uuid
346            * @param groupId the group ID
347            * @param retrieveFromCache whether to use the finder cache
348            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByUUID_G(
352                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
355            }
356    
357            /**
358            * Returns all the d d l record sets where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching d d l record sets
362            * @throws SystemException if a system exception occurred
363            */
364            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException {
367                    return getPersistence().findByGroupId(groupId);
368            }
369    
370            /**
371            * Returns a range of all the d d l record sets where groupId = &#63;.
372            *
373            * <p>
374            * 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.
375            * </p>
376            *
377            * @param groupId the group ID
378            * @param start the lower bound of the range of d d l record sets
379            * @param end the upper bound of the range of d d l record sets (not inclusive)
380            * @return the range of matching d d l record sets
381            * @throws SystemException if a system exception occurred
382            */
383            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
384                    long groupId, int start, int end)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return getPersistence().findByGroupId(groupId, start, end);
387            }
388    
389            /**
390            * Returns an ordered range of all the d d l record sets where groupId = &#63;.
391            *
392            * <p>
393            * 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.
394            * </p>
395            *
396            * @param groupId the group ID
397            * @param start the lower bound of the range of d d l record sets
398            * @param end the upper bound of the range of d d l record sets (not inclusive)
399            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
400            * @return the ordered range of matching d d l record sets
401            * @throws SystemException if a system exception occurred
402            */
403            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findByGroupId(
404                    long groupId, int start, int end,
405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
406                    throws com.liferay.portal.kernel.exception.SystemException {
407                    return getPersistence()
408                                       .findByGroupId(groupId, start, end, orderByComparator);
409            }
410    
411            /**
412            * Returns the first d d l record set in the ordered set where groupId = &#63;.
413            *
414            * <p>
415            * 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.
416            * </p>
417            *
418            * @param groupId the group ID
419            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
420            * @return the first matching d d l record set
421            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
422            * @throws SystemException if a system exception occurred
423            */
424            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_First(
425                    long groupId,
426                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
427                    throws com.liferay.portal.kernel.exception.SystemException,
428                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
429                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
430            }
431    
432            /**
433            * Returns the last d d l record set in the ordered set where groupId = &#63;.
434            *
435            * <p>
436            * 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.
437            * </p>
438            *
439            * @param groupId the group ID
440            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
441            * @return the last matching d d l record set
442            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
443            * @throws SystemException if a system exception occurred
444            */
445            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByGroupId_Last(
446                    long groupId,
447                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
448                    throws com.liferay.portal.kernel.exception.SystemException,
449                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
450                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
451            }
452    
453            /**
454            * Returns the d d l record sets before and after the current d d l record set in the ordered set where groupId = &#63;.
455            *
456            * <p>
457            * 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.
458            * </p>
459            *
460            * @param recordSetId the primary key of the current d d l record set
461            * @param groupId the group ID
462            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
463            * @return the previous, current, and next d d l record set
464            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
465            * @throws SystemException if a system exception occurred
466            */
467            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] findByGroupId_PrevAndNext(
468                    long recordSetId, long groupId,
469                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
470                    throws com.liferay.portal.kernel.exception.SystemException,
471                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
472                    return getPersistence()
473                                       .findByGroupId_PrevAndNext(recordSetId, groupId,
474                            orderByComparator);
475            }
476    
477            /**
478            * Returns all the d d l record sets that the user has permission to view where groupId = &#63;.
479            *
480            * @param groupId the group ID
481            * @return the matching d d l record sets that the user has permission to view
482            * @throws SystemException if a system exception occurred
483            */
484            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
485                    long groupId)
486                    throws com.liferay.portal.kernel.exception.SystemException {
487                    return getPersistence().filterFindByGroupId(groupId);
488            }
489    
490            /**
491            * Returns a range of all the d d l record sets that the user has permission to view where groupId = &#63;.
492            *
493            * <p>
494            * 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.
495            * </p>
496            *
497            * @param groupId the group ID
498            * @param start the lower bound of the range of d d l record sets
499            * @param end the upper bound of the range of d d l record sets (not inclusive)
500            * @return the range of matching d d l record sets that the user has permission to view
501            * @throws SystemException if a system exception occurred
502            */
503            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
504                    long groupId, int start, int end)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    return getPersistence().filterFindByGroupId(groupId, start, end);
507            }
508    
509            /**
510            * Returns an ordered range of all the d d l record sets that the user has permissions to view where groupId = &#63;.
511            *
512            * <p>
513            * 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.
514            * </p>
515            *
516            * @param groupId the group ID
517            * @param start the lower bound of the range of d d l record sets
518            * @param end the upper bound of the range of d d l record sets (not inclusive)
519            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
520            * @return the ordered range of matching d d l record sets that the user has permission to view
521            * @throws SystemException if a system exception occurred
522            */
523            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> filterFindByGroupId(
524                    long groupId, int start, int end,
525                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
526                    throws com.liferay.portal.kernel.exception.SystemException {
527                    return getPersistence()
528                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
529            }
530    
531            /**
532            * 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;.
533            *
534            * @param recordSetId the primary key of the current d d l record set
535            * @param groupId the group ID
536            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
537            * @return the previous, current, and next d d l record set
538            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a d d l record set with the primary key could not be found
539            * @throws SystemException if a system exception occurred
540            */
541            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet[] filterFindByGroupId_PrevAndNext(
542                    long recordSetId, long groupId,
543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
544                    throws com.liferay.portal.kernel.exception.SystemException,
545                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
546                    return getPersistence()
547                                       .filterFindByGroupId_PrevAndNext(recordSetId, groupId,
548                            orderByComparator);
549            }
550    
551            /**
552            * 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.
553            *
554            * @param groupId the group ID
555            * @param recordSetKey the record set key
556            * @return the matching d d l record set
557            * @throws com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException if a matching d d l record set could not be found
558            * @throws SystemException if a system exception occurred
559            */
560            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet findByG_R(
561                    long groupId, java.lang.String recordSetKey)
562                    throws com.liferay.portal.kernel.exception.SystemException,
563                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
564                    return getPersistence().findByG_R(groupId, recordSetKey);
565            }
566    
567            /**
568            * 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.
569            *
570            * @param groupId the group ID
571            * @param recordSetKey the record set key
572            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
573            * @throws SystemException if a system exception occurred
574            */
575            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R(
576                    long groupId, java.lang.String recordSetKey)
577                    throws com.liferay.portal.kernel.exception.SystemException {
578                    return getPersistence().fetchByG_R(groupId, recordSetKey);
579            }
580    
581            /**
582            * 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.
583            *
584            * @param groupId the group ID
585            * @param recordSetKey the record set key
586            * @param retrieveFromCache whether to use the finder cache
587            * @return the matching d d l record set, or <code>null</code> if a matching d d l record set could not be found
588            * @throws SystemException if a system exception occurred
589            */
590            public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchByG_R(
591                    long groupId, java.lang.String recordSetKey, boolean retrieveFromCache)
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return getPersistence()
594                                       .fetchByG_R(groupId, recordSetKey, retrieveFromCache);
595            }
596    
597            /**
598            * Returns all the d d l record sets.
599            *
600            * @return the d d l record sets
601            * @throws SystemException if a system exception occurred
602            */
603            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll()
604                    throws com.liferay.portal.kernel.exception.SystemException {
605                    return getPersistence().findAll();
606            }
607    
608            /**
609            * Returns a range of all the d d l record sets.
610            *
611            * <p>
612            * 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.
613            * </p>
614            *
615            * @param start the lower bound of the range of d d l record sets
616            * @param end the upper bound of the range of d d l record sets (not inclusive)
617            * @return the range of d d l record sets
618            * @throws SystemException if a system exception occurred
619            */
620            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll(
621                    int start, int end)
622                    throws com.liferay.portal.kernel.exception.SystemException {
623                    return getPersistence().findAll(start, end);
624            }
625    
626            /**
627            * Returns an ordered range of all the d d l record sets.
628            *
629            * <p>
630            * 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.
631            * </p>
632            *
633            * @param start the lower bound of the range of d d l record sets
634            * @param end the upper bound of the range of d d l record sets (not inclusive)
635            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
636            * @return the ordered range of d d l record sets
637            * @throws SystemException if a system exception occurred
638            */
639            public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> findAll(
640                    int start, int end,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException {
643                    return getPersistence().findAll(start, end, orderByComparator);
644            }
645    
646            /**
647            * Removes all the d d l record sets where uuid = &#63; from the database.
648            *
649            * @param uuid the uuid
650            * @throws SystemException if a system exception occurred
651            */
652            public static void removeByUuid(java.lang.String uuid)
653                    throws com.liferay.portal.kernel.exception.SystemException {
654                    getPersistence().removeByUuid(uuid);
655            }
656    
657            /**
658            * Removes the d d l record set where uuid = &#63; and groupId = &#63; from the database.
659            *
660            * @param uuid the uuid
661            * @param groupId the group ID
662            * @throws SystemException if a system exception occurred
663            */
664            public static void removeByUUID_G(java.lang.String uuid, long groupId)
665                    throws com.liferay.portal.kernel.exception.SystemException,
666                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
667                    getPersistence().removeByUUID_G(uuid, groupId);
668            }
669    
670            /**
671            * Removes all the d d l record sets where groupId = &#63; from the database.
672            *
673            * @param groupId the group ID
674            * @throws SystemException if a system exception occurred
675            */
676            public static void removeByGroupId(long groupId)
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    getPersistence().removeByGroupId(groupId);
679            }
680    
681            /**
682            * Removes the d d l record set where groupId = &#63; and recordSetKey = &#63; from the database.
683            *
684            * @param groupId the group ID
685            * @param recordSetKey the record set key
686            * @throws SystemException if a system exception occurred
687            */
688            public static void removeByG_R(long groupId, java.lang.String recordSetKey)
689                    throws com.liferay.portal.kernel.exception.SystemException,
690                            com.liferay.portlet.dynamicdatalists.NoSuchRecordSetException {
691                    getPersistence().removeByG_R(groupId, recordSetKey);
692            }
693    
694            /**
695            * Removes all the d d l record sets from the database.
696            *
697            * @throws SystemException if a system exception occurred
698            */
699            public static void removeAll()
700                    throws com.liferay.portal.kernel.exception.SystemException {
701                    getPersistence().removeAll();
702            }
703    
704            /**
705            * Returns the number of d d l record sets where uuid = &#63;.
706            *
707            * @param uuid the uuid
708            * @return the number of matching d d l record sets
709            * @throws SystemException if a system exception occurred
710            */
711            public static int countByUuid(java.lang.String uuid)
712                    throws com.liferay.portal.kernel.exception.SystemException {
713                    return getPersistence().countByUuid(uuid);
714            }
715    
716            /**
717            * Returns the number of d d l record sets where uuid = &#63; and groupId = &#63;.
718            *
719            * @param uuid the uuid
720            * @param groupId the group ID
721            * @return the number of matching d d l record sets
722            * @throws SystemException if a system exception occurred
723            */
724            public static int countByUUID_G(java.lang.String uuid, long groupId)
725                    throws com.liferay.portal.kernel.exception.SystemException {
726                    return getPersistence().countByUUID_G(uuid, groupId);
727            }
728    
729            /**
730            * Returns the number of d d l record sets where groupId = &#63;.
731            *
732            * @param groupId the group ID
733            * @return the number of matching d d l record sets
734            * @throws SystemException if a system exception occurred
735            */
736            public static int countByGroupId(long groupId)
737                    throws com.liferay.portal.kernel.exception.SystemException {
738                    return getPersistence().countByGroupId(groupId);
739            }
740    
741            /**
742            * Returns the number of d d l record sets that the user has permission to view where groupId = &#63;.
743            *
744            * @param groupId the group ID
745            * @return the number of matching d d l record sets that the user has permission to view
746            * @throws SystemException if a system exception occurred
747            */
748            public static int filterCountByGroupId(long groupId)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    return getPersistence().filterCountByGroupId(groupId);
751            }
752    
753            /**
754            * Returns the number of d d l record sets where groupId = &#63; and recordSetKey = &#63;.
755            *
756            * @param groupId the group ID
757            * @param recordSetKey the record set key
758            * @return the number of matching d d l record sets
759            * @throws SystemException if a system exception occurred
760            */
761            public static int countByG_R(long groupId, java.lang.String recordSetKey)
762                    throws com.liferay.portal.kernel.exception.SystemException {
763                    return getPersistence().countByG_R(groupId, recordSetKey);
764            }
765    
766            /**
767            * Returns the number of d d l record sets.
768            *
769            * @return the number of d d l record sets
770            * @throws SystemException if a system exception occurred
771            */
772            public static int countAll()
773                    throws com.liferay.portal.kernel.exception.SystemException {
774                    return getPersistence().countAll();
775            }
776    
777            public static DDLRecordSetPersistence getPersistence() {
778                    if (_persistence == null) {
779                            _persistence = (DDLRecordSetPersistence)PortalBeanLocatorUtil.locate(DDLRecordSetPersistence.class.getName());
780    
781                            ReferenceRegistry.registerReference(DDLRecordSetUtil.class,
782                                    "_persistence");
783                    }
784    
785                    return _persistence;
786            }
787    
788            public void setPersistence(DDLRecordSetPersistence persistence) {
789                    _persistence = persistence;
790    
791                    ReferenceRegistry.registerReference(DDLRecordSetUtil.class,
792                            "_persistence");
793            }
794    
795            private static DDLRecordSetPersistence _persistence;
796    }