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.dynamicdatamapping.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.dynamicdatamapping.model.DDMContent;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d m content service. This utility wraps {@link DDMContentPersistenceImpl} 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 DDMContentPersistence
037     * @see DDMContentPersistenceImpl
038     * @generated
039     */
040    public class DDMContentUtil {
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(DDMContent ddmContent) {
058                    getPersistence().clearCache(ddmContent);
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<DDMContent> 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<DDMContent> 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<DDMContent> 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)
099             */
100            public static DDMContent update(DDMContent ddmContent)
101                    throws SystemException {
102                    return getPersistence().update(ddmContent);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DDMContent update(DDMContent ddmContent,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddmContent, serviceContext);
111            }
112    
113            /**
114            * Caches the d d m content in the entity cache if it is enabled.
115            *
116            * @param ddmContent the d d m content
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent) {
120                    getPersistence().cacheResult(ddmContent);
121            }
122    
123            /**
124            * Caches the d d m contents in the entity cache if it is enabled.
125            *
126            * @param ddmContents the d d m contents
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> ddmContents) {
130                    getPersistence().cacheResult(ddmContents);
131            }
132    
133            /**
134            * Creates a new d d m content with the primary key. Does not add the d d m content to the database.
135            *
136            * @param contentId the primary key for the new d d m content
137            * @return the new d d m content
138            */
139            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent create(
140                    long contentId) {
141                    return getPersistence().create(contentId);
142            }
143    
144            /**
145            * Removes the d d m content with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param contentId the primary key of the d d m content
148            * @return the d d m content that was removed
149            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent remove(
153                    long contentId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
156                    return getPersistence().remove(contentId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent updateImpl(
160                    com.liferay.portlet.dynamicdatamapping.model.DDMContent ddmContent)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(ddmContent);
163            }
164    
165            /**
166            * Returns the d d m content with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchContentException} if it could not be found.
167            *
168            * @param contentId the primary key of the d d m content
169            * @return the d d m content
170            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
171            * @throws SystemException if a system exception occurred
172            */
173            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByPrimaryKey(
174                    long contentId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
177                    return getPersistence().findByPrimaryKey(contentId);
178            }
179    
180            /**
181            * Returns the d d m content with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param contentId the primary key of the d d m content
184            * @return the d d m content, or <code>null</code> if a d d m content with the primary key could not be found
185            * @throws SystemException if a system exception occurred
186            */
187            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByPrimaryKey(
188                    long contentId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(contentId);
191            }
192    
193            /**
194            * Returns all the d d m contents where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @return the matching d d m contents
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
201                    java.lang.String uuid)
202                    throws com.liferay.portal.kernel.exception.SystemException {
203                    return getPersistence().findByUuid(uuid);
204            }
205    
206            /**
207            * Returns a range of all the d d m contents where uuid = &#63;.
208            *
209            * <p>
210            * 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.
211            * </p>
212            *
213            * @param uuid the uuid
214            * @param start the lower bound of the range of d d m contents
215            * @param end the upper bound of the range of d d m contents (not inclusive)
216            * @return the range of matching d d m contents
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
220                    java.lang.String uuid, int start, int end)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return getPersistence().findByUuid(uuid, start, end);
223            }
224    
225            /**
226            * Returns an ordered range of all the d d m contents where uuid = &#63;.
227            *
228            * <p>
229            * 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.
230            * </p>
231            *
232            * @param uuid the uuid
233            * @param start the lower bound of the range of d d m contents
234            * @param end the upper bound of the range of d d m contents (not inclusive)
235            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
236            * @return the ordered range of matching d d m contents
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid(
240                    java.lang.String uuid, int start, int end,
241                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return getPersistence().findByUuid(uuid, start, end, orderByComparator);
244            }
245    
246            /**
247            * Returns the first d d m content in the ordered set where uuid = &#63;.
248            *
249            * @param uuid the uuid
250            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
251            * @return the first matching d d m content
252            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_First(
256                    java.lang.String uuid,
257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
258                    throws com.liferay.portal.kernel.exception.SystemException,
259                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
260                    return getPersistence().findByUuid_First(uuid, orderByComparator);
261            }
262    
263            /**
264            * Returns the first d d m content in the ordered set where uuid = &#63;.
265            *
266            * @param uuid the uuid
267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
268            * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUuid_First(
272                    java.lang.String uuid,
273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274                    throws com.liferay.portal.kernel.exception.SystemException {
275                    return getPersistence().fetchByUuid_First(uuid, orderByComparator);
276            }
277    
278            /**
279            * Returns the last d d m content in the ordered set where uuid = &#63;.
280            *
281            * @param uuid the uuid
282            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
283            * @return the last matching d d m content
284            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_Last(
288                    java.lang.String uuid,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException,
291                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
292                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
293            }
294    
295            /**
296            * Returns the last d d m content in the ordered set where uuid = &#63;.
297            *
298            * @param uuid the uuid
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUuid_Last(
304                    java.lang.String uuid,
305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
306                    throws com.liferay.portal.kernel.exception.SystemException {
307                    return getPersistence().fetchByUuid_Last(uuid, orderByComparator);
308            }
309    
310            /**
311            * Returns the d d m contents before and after the current d d m content in the ordered set where uuid = &#63;.
312            *
313            * @param contentId the primary key of the current d d m content
314            * @param uuid the uuid
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the previous, current, and next d d m content
317            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
318            * @throws SystemException if a system exception occurred
319            */
320            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByUuid_PrevAndNext(
321                    long contentId, java.lang.String uuid,
322                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
323                    throws com.liferay.portal.kernel.exception.SystemException,
324                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
325                    return getPersistence()
326                                       .findByUuid_PrevAndNext(contentId, uuid, orderByComparator);
327            }
328    
329            /**
330            * Returns the d d m content where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchContentException} if it could not be found.
331            *
332            * @param uuid the uuid
333            * @param groupId the group ID
334            * @return the matching d d m content
335            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUUID_G(
339                    java.lang.String uuid, long groupId)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
342                    return getPersistence().findByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns the d d m content where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
347            *
348            * @param uuid the uuid
349            * @param groupId the group ID
350            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUUID_G(
354                    java.lang.String uuid, long groupId)
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    return getPersistence().fetchByUUID_G(uuid, groupId);
357            }
358    
359            /**
360            * Returns the d d m content where uuid = &#63; and groupId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
361            *
362            * @param uuid the uuid
363            * @param groupId the group ID
364            * @param retrieveFromCache whether to use the finder cache
365            * @return the matching d d m content, or <code>null</code> if a matching d d m content could not be found
366            * @throws SystemException if a system exception occurred
367            */
368            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUUID_G(
369                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
372            }
373    
374            /**
375            * Returns all the d d m contents where uuid = &#63; and companyId = &#63;.
376            *
377            * @param uuid the uuid
378            * @param companyId the company ID
379            * @return the matching d d m contents
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid_C(
383                    java.lang.String uuid, long companyId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return getPersistence().findByUuid_C(uuid, companyId);
386            }
387    
388            /**
389            * Returns a range of all the d d m contents where uuid = &#63; and companyId = &#63;.
390            *
391            * <p>
392            * 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.
393            * </p>
394            *
395            * @param uuid the uuid
396            * @param companyId the company ID
397            * @param start the lower bound of the range of d d m contents
398            * @param end the upper bound of the range of d d m contents (not inclusive)
399            * @return the range of matching d d m contents
400            * @throws SystemException if a system exception occurred
401            */
402            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid_C(
403                    java.lang.String uuid, long companyId, int start, int end)
404                    throws com.liferay.portal.kernel.exception.SystemException {
405                    return getPersistence().findByUuid_C(uuid, companyId, start, end);
406            }
407    
408            /**
409            * Returns an ordered range of all the d d m contents where uuid = &#63; and companyId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param uuid the uuid
416            * @param companyId the company ID
417            * @param start the lower bound of the range of d d m contents
418            * @param end the upper bound of the range of d d m contents (not inclusive)
419            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
420            * @return the ordered range of matching d d m contents
421            * @throws SystemException if a system exception occurred
422            */
423            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByUuid_C(
424                    java.lang.String uuid, long companyId, int start, int end,
425                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getPersistence()
428                                       .findByUuid_C(uuid, companyId, start, end, orderByComparator);
429            }
430    
431            /**
432            * Returns the first d d m content in the ordered set where uuid = &#63; and companyId = &#63;.
433            *
434            * @param uuid the uuid
435            * @param companyId the company ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the first matching d d m content
438            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_C_First(
442                    java.lang.String uuid, long companyId,
443                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
444                    throws com.liferay.portal.kernel.exception.SystemException,
445                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
446                    return getPersistence()
447                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
448            }
449    
450            /**
451            * Returns the first d d m content in the ordered set where uuid = &#63; and companyId = &#63;.
452            *
453            * @param uuid the uuid
454            * @param companyId the company ID
455            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
456            * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found
457            * @throws SystemException if a system exception occurred
458            */
459            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUuid_C_First(
460                    java.lang.String uuid, long companyId,
461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
462                    throws com.liferay.portal.kernel.exception.SystemException {
463                    return getPersistence()
464                                       .fetchByUuid_C_First(uuid, companyId, orderByComparator);
465            }
466    
467            /**
468            * Returns the last d d m content in the ordered set where uuid = &#63; and companyId = &#63;.
469            *
470            * @param uuid the uuid
471            * @param companyId the company ID
472            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
473            * @return the last matching d d m content
474            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
475            * @throws SystemException if a system exception occurred
476            */
477            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByUuid_C_Last(
478                    java.lang.String uuid, long companyId,
479                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
480                    throws com.liferay.portal.kernel.exception.SystemException,
481                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
482                    return getPersistence()
483                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
484            }
485    
486            /**
487            * Returns the last d d m content in the ordered set where uuid = &#63; and companyId = &#63;.
488            *
489            * @param uuid the uuid
490            * @param companyId the company ID
491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
492            * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found
493            * @throws SystemException if a system exception occurred
494            */
495            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByUuid_C_Last(
496                    java.lang.String uuid, long companyId,
497                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
498                    throws com.liferay.portal.kernel.exception.SystemException {
499                    return getPersistence()
500                                       .fetchByUuid_C_Last(uuid, companyId, orderByComparator);
501            }
502    
503            /**
504            * Returns the d d m contents before and after the current d d m content in the ordered set where uuid = &#63; and companyId = &#63;.
505            *
506            * @param contentId the primary key of the current d d m content
507            * @param uuid the uuid
508            * @param companyId the company ID
509            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
510            * @return the previous, current, and next d d m content
511            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
512            * @throws SystemException if a system exception occurred
513            */
514            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByUuid_C_PrevAndNext(
515                    long contentId, java.lang.String uuid, long companyId,
516                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
517                    throws com.liferay.portal.kernel.exception.SystemException,
518                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
519                    return getPersistence()
520                                       .findByUuid_C_PrevAndNext(contentId, uuid, companyId,
521                            orderByComparator);
522            }
523    
524            /**
525            * Returns all the d d m contents where groupId = &#63;.
526            *
527            * @param groupId the group ID
528            * @return the matching d d m contents
529            * @throws SystemException if a system exception occurred
530            */
531            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
532                    long groupId)
533                    throws com.liferay.portal.kernel.exception.SystemException {
534                    return getPersistence().findByGroupId(groupId);
535            }
536    
537            /**
538            * Returns a range of all the d d m contents where groupId = &#63;.
539            *
540            * <p>
541            * 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.
542            * </p>
543            *
544            * @param groupId the group ID
545            * @param start the lower bound of the range of d d m contents
546            * @param end the upper bound of the range of d d m contents (not inclusive)
547            * @return the range of matching d d m contents
548            * @throws SystemException if a system exception occurred
549            */
550            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
551                    long groupId, int start, int end)
552                    throws com.liferay.portal.kernel.exception.SystemException {
553                    return getPersistence().findByGroupId(groupId, start, end);
554            }
555    
556            /**
557            * Returns an ordered range of all the d d m contents where groupId = &#63;.
558            *
559            * <p>
560            * 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.
561            * </p>
562            *
563            * @param groupId the group ID
564            * @param start the lower bound of the range of d d m contents
565            * @param end the upper bound of the range of d d m contents (not inclusive)
566            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
567            * @return the ordered range of matching d d m contents
568            * @throws SystemException if a system exception occurred
569            */
570            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByGroupId(
571                    long groupId, int start, int end,
572                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
573                    throws com.liferay.portal.kernel.exception.SystemException {
574                    return getPersistence()
575                                       .findByGroupId(groupId, start, end, orderByComparator);
576            }
577    
578            /**
579            * Returns the first d d m content in the ordered set where groupId = &#63;.
580            *
581            * @param groupId the group ID
582            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
583            * @return the first matching d d m content
584            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByGroupId_First(
588                    long groupId,
589                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
590                    throws com.liferay.portal.kernel.exception.SystemException,
591                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
592                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
593            }
594    
595            /**
596            * Returns the first d d m content in the ordered set where groupId = &#63;.
597            *
598            * @param groupId the group ID
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByGroupId_First(
604                    long groupId,
605                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
606                    throws com.liferay.portal.kernel.exception.SystemException {
607                    return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
608            }
609    
610            /**
611            * Returns the last d d m content in the ordered set where groupId = &#63;.
612            *
613            * @param groupId the group ID
614            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
615            * @return the last matching d d m content
616            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByGroupId_Last(
620                    long groupId,
621                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
622                    throws com.liferay.portal.kernel.exception.SystemException,
623                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
624                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last d d m content in the ordered set where groupId = &#63;.
629            *
630            * @param groupId the group ID
631            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
632            * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByGroupId_Last(
636                    long groupId,
637                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
638                    throws com.liferay.portal.kernel.exception.SystemException {
639                    return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
640            }
641    
642            /**
643            * Returns the d d m contents before and after the current d d m content in the ordered set where groupId = &#63;.
644            *
645            * @param contentId the primary key of the current d d m content
646            * @param groupId the group ID
647            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
648            * @return the previous, current, and next d d m content
649            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
650            * @throws SystemException if a system exception occurred
651            */
652            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByGroupId_PrevAndNext(
653                    long contentId, long groupId,
654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
657                    return getPersistence()
658                                       .findByGroupId_PrevAndNext(contentId, groupId,
659                            orderByComparator);
660            }
661    
662            /**
663            * Returns all the d d m contents where companyId = &#63;.
664            *
665            * @param companyId the company ID
666            * @return the matching d d m contents
667            * @throws SystemException if a system exception occurred
668            */
669            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
670                    long companyId)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getPersistence().findByCompanyId(companyId);
673            }
674    
675            /**
676            * Returns a range of all the d d m contents where companyId = &#63;.
677            *
678            * <p>
679            * 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.
680            * </p>
681            *
682            * @param companyId the company ID
683            * @param start the lower bound of the range of d d m contents
684            * @param end the upper bound of the range of d d m contents (not inclusive)
685            * @return the range of matching d d m contents
686            * @throws SystemException if a system exception occurred
687            */
688            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
689                    long companyId, int start, int end)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().findByCompanyId(companyId, start, end);
692            }
693    
694            /**
695            * Returns an ordered range of all the d d m contents where companyId = &#63;.
696            *
697            * <p>
698            * 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.
699            * </p>
700            *
701            * @param companyId the company ID
702            * @param start the lower bound of the range of d d m contents
703            * @param end the upper bound of the range of d d m contents (not inclusive)
704            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
705            * @return the ordered range of matching d d m contents
706            * @throws SystemException if a system exception occurred
707            */
708            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findByCompanyId(
709                    long companyId, int start, int end,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.kernel.exception.SystemException {
712                    return getPersistence()
713                                       .findByCompanyId(companyId, start, end, orderByComparator);
714            }
715    
716            /**
717            * Returns the first d d m content in the ordered set where companyId = &#63;.
718            *
719            * @param companyId the company ID
720            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
721            * @return the first matching d d m content
722            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
723            * @throws SystemException if a system exception occurred
724            */
725            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByCompanyId_First(
726                    long companyId,
727                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
728                    throws com.liferay.portal.kernel.exception.SystemException,
729                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
730                    return getPersistence()
731                                       .findByCompanyId_First(companyId, orderByComparator);
732            }
733    
734            /**
735            * Returns the first d d m content in the ordered set where companyId = &#63;.
736            *
737            * @param companyId the company ID
738            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
739            * @return the first matching d d m content, or <code>null</code> if a matching d d m content could not be found
740            * @throws SystemException if a system exception occurred
741            */
742            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByCompanyId_First(
743                    long companyId,
744                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence()
747                                       .fetchByCompanyId_First(companyId, orderByComparator);
748            }
749    
750            /**
751            * Returns the last d d m content in the ordered set where companyId = &#63;.
752            *
753            * @param companyId the company ID
754            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
755            * @return the last matching d d m content
756            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a matching d d m content could not be found
757            * @throws SystemException if a system exception occurred
758            */
759            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent findByCompanyId_Last(
760                    long companyId,
761                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
762                    throws com.liferay.portal.kernel.exception.SystemException,
763                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
764                    return getPersistence()
765                                       .findByCompanyId_Last(companyId, orderByComparator);
766            }
767    
768            /**
769            * Returns the last d d m content in the ordered set where companyId = &#63;.
770            *
771            * @param companyId the company ID
772            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
773            * @return the last matching d d m content, or <code>null</code> if a matching d d m content could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent fetchByCompanyId_Last(
777                    long companyId,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException {
780                    return getPersistence()
781                                       .fetchByCompanyId_Last(companyId, orderByComparator);
782            }
783    
784            /**
785            * Returns the d d m contents before and after the current d d m content in the ordered set where companyId = &#63;.
786            *
787            * @param contentId the primary key of the current d d m content
788            * @param companyId the company ID
789            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
790            * @return the previous, current, and next d d m content
791            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchContentException if a d d m content with the primary key could not be found
792            * @throws SystemException if a system exception occurred
793            */
794            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent[] findByCompanyId_PrevAndNext(
795                    long contentId, long companyId,
796                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
797                    throws com.liferay.portal.kernel.exception.SystemException,
798                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
799                    return getPersistence()
800                                       .findByCompanyId_PrevAndNext(contentId, companyId,
801                            orderByComparator);
802            }
803    
804            /**
805            * Returns all the d d m contents.
806            *
807            * @return the d d m contents
808            * @throws SystemException if a system exception occurred
809            */
810            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll()
811                    throws com.liferay.portal.kernel.exception.SystemException {
812                    return getPersistence().findAll();
813            }
814    
815            /**
816            * Returns a range of all the d d m contents.
817            *
818            * <p>
819            * 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.
820            * </p>
821            *
822            * @param start the lower bound of the range of d d m contents
823            * @param end the upper bound of the range of d d m contents (not inclusive)
824            * @return the range of d d m contents
825            * @throws SystemException if a system exception occurred
826            */
827            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll(
828                    int start, int end)
829                    throws com.liferay.portal.kernel.exception.SystemException {
830                    return getPersistence().findAll(start, end);
831            }
832    
833            /**
834            * Returns an ordered range of all the d d m contents.
835            *
836            * <p>
837            * 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.
838            * </p>
839            *
840            * @param start the lower bound of the range of d d m contents
841            * @param end the upper bound of the range of d d m contents (not inclusive)
842            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
843            * @return the ordered range of d d m contents
844            * @throws SystemException if a system exception occurred
845            */
846            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMContent> findAll(
847                    int start, int end,
848                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
849                    throws com.liferay.portal.kernel.exception.SystemException {
850                    return getPersistence().findAll(start, end, orderByComparator);
851            }
852    
853            /**
854            * Removes all the d d m contents where uuid = &#63; from the database.
855            *
856            * @param uuid the uuid
857            * @throws SystemException if a system exception occurred
858            */
859            public static void removeByUuid(java.lang.String uuid)
860                    throws com.liferay.portal.kernel.exception.SystemException {
861                    getPersistence().removeByUuid(uuid);
862            }
863    
864            /**
865            * Removes the d d m content where uuid = &#63; and groupId = &#63; from the database.
866            *
867            * @param uuid the uuid
868            * @param groupId the group ID
869            * @return the d d m content that was removed
870            * @throws SystemException if a system exception occurred
871            */
872            public static com.liferay.portlet.dynamicdatamapping.model.DDMContent removeByUUID_G(
873                    java.lang.String uuid, long groupId)
874                    throws com.liferay.portal.kernel.exception.SystemException,
875                            com.liferay.portlet.dynamicdatamapping.NoSuchContentException {
876                    return getPersistence().removeByUUID_G(uuid, groupId);
877            }
878    
879            /**
880            * Removes all the d d m contents where uuid = &#63; and companyId = &#63; from the database.
881            *
882            * @param uuid the uuid
883            * @param companyId the company ID
884            * @throws SystemException if a system exception occurred
885            */
886            public static void removeByUuid_C(java.lang.String uuid, long companyId)
887                    throws com.liferay.portal.kernel.exception.SystemException {
888                    getPersistence().removeByUuid_C(uuid, companyId);
889            }
890    
891            /**
892            * Removes all the d d m contents where groupId = &#63; from the database.
893            *
894            * @param groupId the group ID
895            * @throws SystemException if a system exception occurred
896            */
897            public static void removeByGroupId(long groupId)
898                    throws com.liferay.portal.kernel.exception.SystemException {
899                    getPersistence().removeByGroupId(groupId);
900            }
901    
902            /**
903            * Removes all the d d m contents where companyId = &#63; from the database.
904            *
905            * @param companyId the company ID
906            * @throws SystemException if a system exception occurred
907            */
908            public static void removeByCompanyId(long companyId)
909                    throws com.liferay.portal.kernel.exception.SystemException {
910                    getPersistence().removeByCompanyId(companyId);
911            }
912    
913            /**
914            * Removes all the d d m contents from the database.
915            *
916            * @throws SystemException if a system exception occurred
917            */
918            public static void removeAll()
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    getPersistence().removeAll();
921            }
922    
923            /**
924            * Returns the number of d d m contents where uuid = &#63;.
925            *
926            * @param uuid the uuid
927            * @return the number of matching d d m contents
928            * @throws SystemException if a system exception occurred
929            */
930            public static int countByUuid(java.lang.String uuid)
931                    throws com.liferay.portal.kernel.exception.SystemException {
932                    return getPersistence().countByUuid(uuid);
933            }
934    
935            /**
936            * Returns the number of d d m contents where uuid = &#63; and groupId = &#63;.
937            *
938            * @param uuid the uuid
939            * @param groupId the group ID
940            * @return the number of matching d d m contents
941            * @throws SystemException if a system exception occurred
942            */
943            public static int countByUUID_G(java.lang.String uuid, long groupId)
944                    throws com.liferay.portal.kernel.exception.SystemException {
945                    return getPersistence().countByUUID_G(uuid, groupId);
946            }
947    
948            /**
949            * Returns the number of d d m contents where uuid = &#63; and companyId = &#63;.
950            *
951            * @param uuid the uuid
952            * @param companyId the company ID
953            * @return the number of matching d d m contents
954            * @throws SystemException if a system exception occurred
955            */
956            public static int countByUuid_C(java.lang.String uuid, long companyId)
957                    throws com.liferay.portal.kernel.exception.SystemException {
958                    return getPersistence().countByUuid_C(uuid, companyId);
959            }
960    
961            /**
962            * Returns the number of d d m contents where groupId = &#63;.
963            *
964            * @param groupId the group ID
965            * @return the number of matching d d m contents
966            * @throws SystemException if a system exception occurred
967            */
968            public static int countByGroupId(long groupId)
969                    throws com.liferay.portal.kernel.exception.SystemException {
970                    return getPersistence().countByGroupId(groupId);
971            }
972    
973            /**
974            * Returns the number of d d m contents where companyId = &#63;.
975            *
976            * @param companyId the company ID
977            * @return the number of matching d d m contents
978            * @throws SystemException if a system exception occurred
979            */
980            public static int countByCompanyId(long companyId)
981                    throws com.liferay.portal.kernel.exception.SystemException {
982                    return getPersistence().countByCompanyId(companyId);
983            }
984    
985            /**
986            * Returns the number of d d m contents.
987            *
988            * @return the number of d d m contents
989            * @throws SystemException if a system exception occurred
990            */
991            public static int countAll()
992                    throws com.liferay.portal.kernel.exception.SystemException {
993                    return getPersistence().countAll();
994            }
995    
996            public static DDMContentPersistence getPersistence() {
997                    if (_persistence == null) {
998                            _persistence = (DDMContentPersistence)PortalBeanLocatorUtil.locate(DDMContentPersistence.class.getName());
999    
1000                            ReferenceRegistry.registerReference(DDMContentUtil.class,
1001                                    "_persistence");
1002                    }
1003    
1004                    return _persistence;
1005            }
1006    
1007            /**
1008             * @deprecated
1009             */
1010            public void setPersistence(DDMContentPersistence persistence) {
1011            }
1012    
1013            private static DDMContentPersistence _persistence;
1014    }