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