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.DDMTemplate;
025    
026    import java.util.List;
027    
028    /**
029     * The persistence utility for the d d m template service. This utility wraps {@link DDMTemplatePersistenceImpl} 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 DDMTemplatePersistence
037     * @see DDMTemplatePersistenceImpl
038     * @generated
039     */
040    public class DDMTemplateUtil {
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(DDMTemplate ddmTemplate) {
058                    getPersistence().clearCache(ddmTemplate);
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<DDMTemplate> 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<DDMTemplate> 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<DDMTemplate> 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 DDMTemplate update(DDMTemplate ddmTemplate)
101                    throws SystemException {
102                    return getPersistence().update(ddmTemplate);
103            }
104    
105            /**
106             * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
107             */
108            public static DDMTemplate update(DDMTemplate ddmTemplate,
109                    ServiceContext serviceContext) throws SystemException {
110                    return getPersistence().update(ddmTemplate, serviceContext);
111            }
112    
113            /**
114            * Caches the d d m template in the entity cache if it is enabled.
115            *
116            * @param ddmTemplate the d d m template
117            */
118            public static void cacheResult(
119                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate) {
120                    getPersistence().cacheResult(ddmTemplate);
121            }
122    
123            /**
124            * Caches the d d m templates in the entity cache if it is enabled.
125            *
126            * @param ddmTemplates the d d m templates
127            */
128            public static void cacheResult(
129                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates) {
130                    getPersistence().cacheResult(ddmTemplates);
131            }
132    
133            /**
134            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
135            *
136            * @param templateId the primary key for the new d d m template
137            * @return the new d d m template
138            */
139            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
140                    long templateId) {
141                    return getPersistence().create(templateId);
142            }
143    
144            /**
145            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
146            *
147            * @param templateId the primary key of the d d m template
148            * @return the d d m template that was removed
149            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate remove(
153                    long templateId)
154                    throws com.liferay.portal.kernel.exception.SystemException,
155                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
156                    return getPersistence().remove(templateId);
157            }
158    
159            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
160                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
161                    throws com.liferay.portal.kernel.exception.SystemException {
162                    return getPersistence().updateImpl(ddmTemplate);
163            }
164    
165            /**
166            * Returns the d d m template with the primary key or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found.
167            *
168            * @param templateId the primary key of the d d m template
169            * @return the d d m template
170            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate findByPrimaryKey(
174                    long templateId)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
177                    return getPersistence().findByPrimaryKey(templateId);
178            }
179    
180            /**
181            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
182            *
183            * @param templateId the primary key of the d d m template
184            * @return the d d m template, or <code>null</code> if a d d m template 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.DDMTemplate fetchByPrimaryKey(
188                    long templateId)
189                    throws com.liferay.portal.kernel.exception.SystemException {
190                    return getPersistence().fetchByPrimaryKey(templateId);
191            }
192    
193            /**
194            * Returns all the d d m templates where uuid = &#63;.
195            *
196            * @param uuid the uuid
197            * @return the matching d d m templates
198            * @throws SystemException if a system exception occurred
199            */
200            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
215            * @param end the upper bound of the range of d d m templates (not inclusive)
216            * @return the range of matching d d m templates
217            * @throws SystemException if a system exception occurred
218            */
219            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
234            * @param end the upper bound of the range of d d m templates (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 templates
237            * @throws SystemException if a system exception occurred
238            */
239            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 template 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 template
252            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
253            * @throws SystemException if a system exception occurred
254            */
255            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
260                    return getPersistence().findByUuid_First(uuid, orderByComparator);
261            }
262    
263            /**
264            * Returns the first d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
269            * @throws SystemException if a system exception occurred
270            */
271            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 template 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 template
284            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
285            * @throws SystemException if a system exception occurred
286            */
287            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
292                    return getPersistence().findByUuid_Last(uuid, orderByComparator);
293            }
294    
295            /**
296            * Returns the last d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
301            * @throws SystemException if a system exception occurred
302            */
303            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 templates before and after the current d d m template in the ordered set where uuid = &#63;.
312            *
313            * @param templateId the primary key of the current d d m template
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 template
317            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate[] findByUuid_PrevAndNext(
321                    long templateId, 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.NoSuchTemplateException {
325                    return getPersistence()
326                                       .findByUuid_PrevAndNext(templateId, uuid, orderByComparator);
327            }
328    
329            /**
330            * Returns the d d m template where uuid = &#63; and groupId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} 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 template
335            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
336            * @throws SystemException if a system exception occurred
337            */
338            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G(
339                    java.lang.String uuid, long groupId)
340                    throws com.liferay.portal.kernel.exception.SystemException,
341                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
342                    return getPersistence().findByUUID_G(uuid, groupId);
343            }
344    
345            /**
346            * Returns the d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
351            * @throws SystemException if a system exception occurred
352            */
353            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 template 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 template, or <code>null</code> if a matching d d m template could not be found
366            * @throws SystemException if a system exception occurred
367            */
368            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 templates 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 templates
380            * @throws SystemException if a system exception occurred
381            */
382            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
398            * @param end the upper bound of the range of d d m templates (not inclusive)
399            * @return the range of matching d d m templates
400            * @throws SystemException if a system exception occurred
401            */
402            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
418            * @param end the upper bound of the range of d d m templates (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 templates
421            * @throws SystemException if a system exception occurred
422            */
423            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 template 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 template
438            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
446                    return getPersistence()
447                                       .findByUuid_C_First(uuid, companyId, orderByComparator);
448            }
449    
450            /**
451            * Returns the first d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
457            * @throws SystemException if a system exception occurred
458            */
459            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 template 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 template
474            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
475            * @throws SystemException if a system exception occurred
476            */
477            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
482                    return getPersistence()
483                                       .findByUuid_C_Last(uuid, companyId, orderByComparator);
484            }
485    
486            /**
487            * Returns the last d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
493            * @throws SystemException if a system exception occurred
494            */
495            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 templates before and after the current d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
505            *
506            * @param templateId the primary key of the current d d m template
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 template
511            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate[] findByUuid_C_PrevAndNext(
515                    long templateId, 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.NoSuchTemplateException {
519                    return getPersistence()
520                                       .findByUuid_C_PrevAndNext(templateId, uuid, companyId,
521                            orderByComparator);
522            }
523    
524            /**
525            * Returns all the d d m templates where groupId = &#63;.
526            *
527            * @param groupId the group ID
528            * @return the matching d d m templates
529            * @throws SystemException if a system exception occurred
530            */
531            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
546            * @param end the upper bound of the range of d d m templates (not inclusive)
547            * @return the range of matching d d m templates
548            * @throws SystemException if a system exception occurred
549            */
550            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 templates 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 templates
565            * @param end the upper bound of the range of d d m templates (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 templates
568            * @throws SystemException if a system exception occurred
569            */
570            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> 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 template 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 template
584            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
585            * @throws SystemException if a system exception occurred
586            */
587            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
592                    return getPersistence().findByGroupId_First(groupId, orderByComparator);
593            }
594    
595            /**
596            * Returns the first d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
601            * @throws SystemException if a system exception occurred
602            */
603            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 template 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 template
616            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
617            * @throws SystemException if a system exception occurred
618            */
619            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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.NoSuchTemplateException {
624                    return getPersistence().findByGroupId_Last(groupId, orderByComparator);
625            }
626    
627            /**
628            * Returns the last d d m template 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 template, or <code>null</code> if a matching d d m template could not be found
633            * @throws SystemException if a system exception occurred
634            */
635            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate 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 templates before and after the current d d m template in the ordered set where groupId = &#63;.
644            *
645            * @param templateId the primary key of the current d d m template
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 template
649            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template 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.DDMTemplate[] findByGroupId_PrevAndNext(
653                    long templateId, long groupId,
654                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
655                    throws com.liferay.portal.kernel.exception.SystemException,
656                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
657                    return getPersistence()
658                                       .findByGroupId_PrevAndNext(templateId, groupId,
659                            orderByComparator);
660            }
661    
662            /**
663            * Returns all the d d m templates that the user has permission to view where groupId = &#63;.
664            *
665            * @param groupId the group ID
666            * @return the matching d d m templates that the user has permission to view
667            * @throws SystemException if a system exception occurred
668            */
669            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
670                    long groupId)
671                    throws com.liferay.portal.kernel.exception.SystemException {
672                    return getPersistence().filterFindByGroupId(groupId);
673            }
674    
675            /**
676            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#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 groupId the group ID
683            * @param start the lower bound of the range of d d m templates
684            * @param end the upper bound of the range of d d m templates (not inclusive)
685            * @return the range of matching d d m templates that the user has permission to view
686            * @throws SystemException if a system exception occurred
687            */
688            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
689                    long groupId, int start, int end)
690                    throws com.liferay.portal.kernel.exception.SystemException {
691                    return getPersistence().filterFindByGroupId(groupId, start, end);
692            }
693    
694            /**
695            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#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 groupId the group ID
702            * @param start the lower bound of the range of d d m templates
703            * @param end the upper bound of the range of d d m templates (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 templates that the user has permission to view
706            * @throws SystemException if a system exception occurred
707            */
708            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
709                    long groupId, int start, int end,
710                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
711                    throws com.liferay.portal.kernel.exception.SystemException {
712                    return getPersistence()
713                                       .filterFindByGroupId(groupId, start, end, orderByComparator);
714            }
715    
716            /**
717            * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = &#63;.
718            *
719            * @param templateId the primary key of the current d d m template
720            * @param groupId the group ID
721            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
722            * @return the previous, current, and next d d m template
723            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
724            * @throws SystemException if a system exception occurred
725            */
726            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext(
727                    long templateId, long groupId,
728                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
729                    throws com.liferay.portal.kernel.exception.SystemException,
730                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
731                    return getPersistence()
732                                       .filterFindByGroupId_PrevAndNext(templateId, groupId,
733                            orderByComparator);
734            }
735    
736            /**
737            * Returns all the d d m templates where classPK = &#63;.
738            *
739            * @param classPK the class p k
740            * @return the matching d d m templates
741            * @throws SystemException if a system exception occurred
742            */
743            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
744                    long classPK)
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return getPersistence().findByClassPK(classPK);
747            }
748    
749            /**
750            * Returns a range of all the d d m templates where classPK = &#63;.
751            *
752            * <p>
753            * 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.
754            * </p>
755            *
756            * @param classPK the class p k
757            * @param start the lower bound of the range of d d m templates
758            * @param end the upper bound of the range of d d m templates (not inclusive)
759            * @return the range of matching d d m templates
760            * @throws SystemException if a system exception occurred
761            */
762            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
763                    long classPK, int start, int end)
764                    throws com.liferay.portal.kernel.exception.SystemException {
765                    return getPersistence().findByClassPK(classPK, start, end);
766            }
767    
768            /**
769            * Returns an ordered range of all the d d m templates where classPK = &#63;.
770            *
771            * <p>
772            * 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.
773            * </p>
774            *
775            * @param classPK the class p k
776            * @param start the lower bound of the range of d d m templates
777            * @param end the upper bound of the range of d d m templates (not inclusive)
778            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
779            * @return the ordered range of matching d d m templates
780            * @throws SystemException if a system exception occurred
781            */
782            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
783                    long classPK, int start, int end,
784                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
785                    throws com.liferay.portal.kernel.exception.SystemException {
786                    return getPersistence()
787                                       .findByClassPK(classPK, start, end, orderByComparator);
788            }
789    
790            /**
791            * Returns the first d d m template in the ordered set where classPK = &#63;.
792            *
793            * @param classPK the class p k
794            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
795            * @return the first matching d d m template
796            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
797            * @throws SystemException if a system exception occurred
798            */
799            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_First(
800                    long classPK,
801                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
802                    throws com.liferay.portal.kernel.exception.SystemException,
803                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
804                    return getPersistence().findByClassPK_First(classPK, orderByComparator);
805            }
806    
807            /**
808            * Returns the first d d m template in the ordered set where classPK = &#63;.
809            *
810            * @param classPK the class p k
811            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
812            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
813            * @throws SystemException if a system exception occurred
814            */
815            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_First(
816                    long classPK,
817                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
818                    throws com.liferay.portal.kernel.exception.SystemException {
819                    return getPersistence().fetchByClassPK_First(classPK, orderByComparator);
820            }
821    
822            /**
823            * Returns the last d d m template in the ordered set where classPK = &#63;.
824            *
825            * @param classPK the class p k
826            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
827            * @return the last matching d d m template
828            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
829            * @throws SystemException if a system exception occurred
830            */
831            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_Last(
832                    long classPK,
833                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
834                    throws com.liferay.portal.kernel.exception.SystemException,
835                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
836                    return getPersistence().findByClassPK_Last(classPK, orderByComparator);
837            }
838    
839            /**
840            * Returns the last d d m template in the ordered set where classPK = &#63;.
841            *
842            * @param classPK the class p k
843            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
844            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
845            * @throws SystemException if a system exception occurred
846            */
847            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_Last(
848                    long classPK,
849                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
850                    throws com.liferay.portal.kernel.exception.SystemException {
851                    return getPersistence().fetchByClassPK_Last(classPK, orderByComparator);
852            }
853    
854            /**
855            * Returns the d d m templates before and after the current d d m template in the ordered set where classPK = &#63;.
856            *
857            * @param templateId the primary key of the current d d m template
858            * @param classPK the class p k
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the previous, current, and next d d m template
861            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
862            * @throws SystemException if a system exception occurred
863            */
864            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByClassPK_PrevAndNext(
865                    long templateId, long classPK,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
869                    return getPersistence()
870                                       .findByClassPK_PrevAndNext(templateId, classPK,
871                            orderByComparator);
872            }
873    
874            /**
875            * Returns all the d d m templates where type = &#63;.
876            *
877            * @param type the type
878            * @return the matching d d m templates
879            * @throws SystemException if a system exception occurred
880            */
881            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
882                    java.lang.String type)
883                    throws com.liferay.portal.kernel.exception.SystemException {
884                    return getPersistence().findByType(type);
885            }
886    
887            /**
888            * Returns a range of all the d d m templates where type = &#63;.
889            *
890            * <p>
891            * 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.
892            * </p>
893            *
894            * @param type the type
895            * @param start the lower bound of the range of d d m templates
896            * @param end the upper bound of the range of d d m templates (not inclusive)
897            * @return the range of matching d d m templates
898            * @throws SystemException if a system exception occurred
899            */
900            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
901                    java.lang.String type, int start, int end)
902                    throws com.liferay.portal.kernel.exception.SystemException {
903                    return getPersistence().findByType(type, start, end);
904            }
905    
906            /**
907            * Returns an ordered range of all the d d m templates where type = &#63;.
908            *
909            * <p>
910            * 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.
911            * </p>
912            *
913            * @param type the type
914            * @param start the lower bound of the range of d d m templates
915            * @param end the upper bound of the range of d d m templates (not inclusive)
916            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
917            * @return the ordered range of matching d d m templates
918            * @throws SystemException if a system exception occurred
919            */
920            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
921                    java.lang.String type, int start, int end,
922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
923                    throws com.liferay.portal.kernel.exception.SystemException {
924                    return getPersistence().findByType(type, start, end, orderByComparator);
925            }
926    
927            /**
928            * Returns the first d d m template in the ordered set where type = &#63;.
929            *
930            * @param type the type
931            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
932            * @return the first matching d d m template
933            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
934            * @throws SystemException if a system exception occurred
935            */
936            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First(
937                    java.lang.String type,
938                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
939                    throws com.liferay.portal.kernel.exception.SystemException,
940                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
941                    return getPersistence().findByType_First(type, orderByComparator);
942            }
943    
944            /**
945            * Returns the first d d m template in the ordered set where type = &#63;.
946            *
947            * @param type the type
948            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
949            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
950            * @throws SystemException if a system exception occurred
951            */
952            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First(
953                    java.lang.String type,
954                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
955                    throws com.liferay.portal.kernel.exception.SystemException {
956                    return getPersistence().fetchByType_First(type, orderByComparator);
957            }
958    
959            /**
960            * Returns the last d d m template in the ordered set where type = &#63;.
961            *
962            * @param type the type
963            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
964            * @return the last matching d d m template
965            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
966            * @throws SystemException if a system exception occurred
967            */
968            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last(
969                    java.lang.String type,
970                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
971                    throws com.liferay.portal.kernel.exception.SystemException,
972                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
973                    return getPersistence().findByType_Last(type, orderByComparator);
974            }
975    
976            /**
977            * Returns the last d d m template in the ordered set where type = &#63;.
978            *
979            * @param type the type
980            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
981            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
982            * @throws SystemException if a system exception occurred
983            */
984            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last(
985                    java.lang.String type,
986                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
987                    throws com.liferay.portal.kernel.exception.SystemException {
988                    return getPersistence().fetchByType_Last(type, orderByComparator);
989            }
990    
991            /**
992            * Returns the d d m templates before and after the current d d m template in the ordered set where type = &#63;.
993            *
994            * @param templateId the primary key of the current d d m template
995            * @param type the type
996            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
997            * @return the previous, current, and next d d m template
998            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
999            * @throws SystemException if a system exception occurred
1000            */
1001            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext(
1002                    long templateId, java.lang.String type,
1003                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1004                    throws com.liferay.portal.kernel.exception.SystemException,
1005                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1006                    return getPersistence()
1007                                       .findByType_PrevAndNext(templateId, type, orderByComparator);
1008            }
1009    
1010            /**
1011            * Returns all the d d m templates where language = &#63;.
1012            *
1013            * @param language the language
1014            * @return the matching d d m templates
1015            * @throws SystemException if a system exception occurred
1016            */
1017            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1018                    java.lang.String language)
1019                    throws com.liferay.portal.kernel.exception.SystemException {
1020                    return getPersistence().findByLanguage(language);
1021            }
1022    
1023            /**
1024            * Returns a range of all the d d m templates where language = &#63;.
1025            *
1026            * <p>
1027            * 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.
1028            * </p>
1029            *
1030            * @param language the language
1031            * @param start the lower bound of the range of d d m templates
1032            * @param end the upper bound of the range of d d m templates (not inclusive)
1033            * @return the range of matching d d m templates
1034            * @throws SystemException if a system exception occurred
1035            */
1036            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1037                    java.lang.String language, int start, int end)
1038                    throws com.liferay.portal.kernel.exception.SystemException {
1039                    return getPersistence().findByLanguage(language, start, end);
1040            }
1041    
1042            /**
1043            * Returns an ordered range of all the d d m templates where language = &#63;.
1044            *
1045            * <p>
1046            * 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.
1047            * </p>
1048            *
1049            * @param language the language
1050            * @param start the lower bound of the range of d d m templates
1051            * @param end the upper bound of the range of d d m templates (not inclusive)
1052            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1053            * @return the ordered range of matching d d m templates
1054            * @throws SystemException if a system exception occurred
1055            */
1056            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1057                    java.lang.String language, int start, int end,
1058                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1059                    throws com.liferay.portal.kernel.exception.SystemException {
1060                    return getPersistence()
1061                                       .findByLanguage(language, start, end, orderByComparator);
1062            }
1063    
1064            /**
1065            * Returns the first d d m template in the ordered set where language = &#63;.
1066            *
1067            * @param language the language
1068            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1069            * @return the first matching d d m template
1070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First(
1074                    java.lang.String language,
1075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1076                    throws com.liferay.portal.kernel.exception.SystemException,
1077                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1078                    return getPersistence().findByLanguage_First(language, orderByComparator);
1079            }
1080    
1081            /**
1082            * Returns the first d d m template in the ordered set where language = &#63;.
1083            *
1084            * @param language the language
1085            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1086            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1087            * @throws SystemException if a system exception occurred
1088            */
1089            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First(
1090                    java.lang.String language,
1091                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1092                    throws com.liferay.portal.kernel.exception.SystemException {
1093                    return getPersistence()
1094                                       .fetchByLanguage_First(language, orderByComparator);
1095            }
1096    
1097            /**
1098            * Returns the last d d m template in the ordered set where language = &#63;.
1099            *
1100            * @param language the language
1101            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1102            * @return the last matching d d m template
1103            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1104            * @throws SystemException if a system exception occurred
1105            */
1106            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last(
1107                    java.lang.String language,
1108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1109                    throws com.liferay.portal.kernel.exception.SystemException,
1110                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1111                    return getPersistence().findByLanguage_Last(language, orderByComparator);
1112            }
1113    
1114            /**
1115            * Returns the last d d m template in the ordered set where language = &#63;.
1116            *
1117            * @param language the language
1118            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1119            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1120            * @throws SystemException if a system exception occurred
1121            */
1122            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last(
1123                    java.lang.String language,
1124                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1125                    throws com.liferay.portal.kernel.exception.SystemException {
1126                    return getPersistence().fetchByLanguage_Last(language, orderByComparator);
1127            }
1128    
1129            /**
1130            * Returns the d d m templates before and after the current d d m template in the ordered set where language = &#63;.
1131            *
1132            * @param templateId the primary key of the current d d m template
1133            * @param language the language
1134            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1135            * @return the previous, current, and next d d m template
1136            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1137            * @throws SystemException if a system exception occurred
1138            */
1139            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext(
1140                    long templateId, java.lang.String language,
1141                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1142                    throws com.liferay.portal.kernel.exception.SystemException,
1143                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1144                    return getPersistence()
1145                                       .findByLanguage_PrevAndNext(templateId, language,
1146                            orderByComparator);
1147            }
1148    
1149            /**
1150            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63;.
1151            *
1152            * @param groupId the group ID
1153            * @param classNameId the class name ID
1154            * @return the matching d d m templates
1155            * @throws SystemException if a system exception occurred
1156            */
1157            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1158                    long groupId, long classNameId)
1159                    throws com.liferay.portal.kernel.exception.SystemException {
1160                    return getPersistence().findByG_C(groupId, classNameId);
1161            }
1162    
1163            /**
1164            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1165            *
1166            * <p>
1167            * 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.
1168            * </p>
1169            *
1170            * @param groupId the group ID
1171            * @param classNameId the class name ID
1172            * @param start the lower bound of the range of d d m templates
1173            * @param end the upper bound of the range of d d m templates (not inclusive)
1174            * @return the range of matching d d m templates
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1178                    long groupId, long classNameId, int start, int end)
1179                    throws com.liferay.portal.kernel.exception.SystemException {
1180                    return getPersistence().findByG_C(groupId, classNameId, start, end);
1181            }
1182    
1183            /**
1184            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1185            *
1186            * <p>
1187            * 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.
1188            * </p>
1189            *
1190            * @param groupId the group ID
1191            * @param classNameId the class name ID
1192            * @param start the lower bound of the range of d d m templates
1193            * @param end the upper bound of the range of d d m templates (not inclusive)
1194            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1195            * @return the ordered range of matching d d m templates
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1199                    long groupId, long classNameId, int start, int end,
1200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1201                    throws com.liferay.portal.kernel.exception.SystemException {
1202                    return getPersistence()
1203                                       .findByG_C(groupId, classNameId, start, end,
1204                            orderByComparator);
1205            }
1206    
1207            /**
1208            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1209            *
1210            * @param groupId the group ID
1211            * @param classNameId the class name ID
1212            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1213            * @return the first matching d d m template
1214            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1215            * @throws SystemException if a system exception occurred
1216            */
1217            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First(
1218                    long groupId, long classNameId,
1219                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1220                    throws com.liferay.portal.kernel.exception.SystemException,
1221                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1222                    return getPersistence()
1223                                       .findByG_C_First(groupId, classNameId, orderByComparator);
1224            }
1225    
1226            /**
1227            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1228            *
1229            * @param groupId the group ID
1230            * @param classNameId the class name ID
1231            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1232            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1233            * @throws SystemException if a system exception occurred
1234            */
1235            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First(
1236                    long groupId, long classNameId,
1237                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1238                    throws com.liferay.portal.kernel.exception.SystemException {
1239                    return getPersistence()
1240                                       .fetchByG_C_First(groupId, classNameId, orderByComparator);
1241            }
1242    
1243            /**
1244            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1245            *
1246            * @param groupId the group ID
1247            * @param classNameId the class name ID
1248            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1249            * @return the last matching d d m template
1250            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1251            * @throws SystemException if a system exception occurred
1252            */
1253            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last(
1254                    long groupId, long classNameId,
1255                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1256                    throws com.liferay.portal.kernel.exception.SystemException,
1257                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1258                    return getPersistence()
1259                                       .findByG_C_Last(groupId, classNameId, orderByComparator);
1260            }
1261    
1262            /**
1263            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1264            *
1265            * @param groupId the group ID
1266            * @param classNameId the class name ID
1267            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1268            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1269            * @throws SystemException if a system exception occurred
1270            */
1271            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last(
1272                    long groupId, long classNameId,
1273                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1274                    throws com.liferay.portal.kernel.exception.SystemException {
1275                    return getPersistence()
1276                                       .fetchByG_C_Last(groupId, classNameId, orderByComparator);
1277            }
1278    
1279            /**
1280            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1281            *
1282            * @param templateId the primary key of the current d d m template
1283            * @param groupId the group ID
1284            * @param classNameId the class name ID
1285            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1286            * @return the previous, current, and next d d m template
1287            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1288            * @throws SystemException if a system exception occurred
1289            */
1290            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext(
1291                    long templateId, long groupId, long classNameId,
1292                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1293                    throws com.liferay.portal.kernel.exception.SystemException,
1294                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1295                    return getPersistence()
1296                                       .findByG_C_PrevAndNext(templateId, groupId, classNameId,
1297                            orderByComparator);
1298            }
1299    
1300            /**
1301            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1302            *
1303            * @param groupId the group ID
1304            * @param classNameId the class name ID
1305            * @return the matching d d m templates that the user has permission to view
1306            * @throws SystemException if a system exception occurred
1307            */
1308            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1309                    long groupId, long classNameId)
1310                    throws com.liferay.portal.kernel.exception.SystemException {
1311                    return getPersistence().filterFindByG_C(groupId, classNameId);
1312            }
1313    
1314            /**
1315            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1316            *
1317            * <p>
1318            * 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.
1319            * </p>
1320            *
1321            * @param groupId the group ID
1322            * @param classNameId the class name ID
1323            * @param start the lower bound of the range of d d m templates
1324            * @param end the upper bound of the range of d d m templates (not inclusive)
1325            * @return the range of matching d d m templates that the user has permission to view
1326            * @throws SystemException if a system exception occurred
1327            */
1328            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1329                    long groupId, long classNameId, int start, int end)
1330                    throws com.liferay.portal.kernel.exception.SystemException {
1331                    return getPersistence().filterFindByG_C(groupId, classNameId, start, end);
1332            }
1333    
1334            /**
1335            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classNameId = &#63;.
1336            *
1337            * <p>
1338            * 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.
1339            * </p>
1340            *
1341            * @param groupId the group ID
1342            * @param classNameId the class name ID
1343            * @param start the lower bound of the range of d d m templates
1344            * @param end the upper bound of the range of d d m templates (not inclusive)
1345            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1346            * @return the ordered range of matching d d m templates that the user has permission to view
1347            * @throws SystemException if a system exception occurred
1348            */
1349            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1350                    long groupId, long classNameId, int start, int end,
1351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1352                    throws com.liferay.portal.kernel.exception.SystemException {
1353                    return getPersistence()
1354                                       .filterFindByG_C(groupId, classNameId, start, end,
1355                            orderByComparator);
1356            }
1357    
1358            /**
1359            * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1360            *
1361            * @param templateId the primary key of the current d d m template
1362            * @param groupId the group ID
1363            * @param classNameId the class name ID
1364            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1365            * @return the previous, current, and next d d m template
1366            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1367            * @throws SystemException if a system exception occurred
1368            */
1369            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext(
1370                    long templateId, long groupId, long classNameId,
1371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1372                    throws com.liferay.portal.kernel.exception.SystemException,
1373                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1374                    return getPersistence()
1375                                       .filterFindByG_C_PrevAndNext(templateId, groupId,
1376                            classNameId, orderByComparator);
1377            }
1378    
1379            /**
1380            * Returns the d d m template where groupId = &#63; and templateKey = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found.
1381            *
1382            * @param groupId the group ID
1383            * @param templateKey the template key
1384            * @return the matching d d m template
1385            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1386            * @throws SystemException if a system exception occurred
1387            */
1388            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_T(
1389                    long groupId, java.lang.String templateKey)
1390                    throws com.liferay.portal.kernel.exception.SystemException,
1391                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1392                    return getPersistence().findByG_T(groupId, templateKey);
1393            }
1394    
1395            /**
1396            * Returns the d d m template where groupId = &#63; and templateKey = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1397            *
1398            * @param groupId the group ID
1399            * @param templateKey the template key
1400            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1401            * @throws SystemException if a system exception occurred
1402            */
1403            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_T(
1404                    long groupId, java.lang.String templateKey)
1405                    throws com.liferay.portal.kernel.exception.SystemException {
1406                    return getPersistence().fetchByG_T(groupId, templateKey);
1407            }
1408    
1409            /**
1410            * Returns the d d m template where groupId = &#63; and templateKey = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1411            *
1412            * @param groupId the group ID
1413            * @param templateKey the template key
1414            * @param retrieveFromCache whether to use the finder cache
1415            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1416            * @throws SystemException if a system exception occurred
1417            */
1418            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_T(
1419                    long groupId, java.lang.String templateKey, boolean retrieveFromCache)
1420                    throws com.liferay.portal.kernel.exception.SystemException {
1421                    return getPersistence()
1422                                       .fetchByG_T(groupId, templateKey, retrieveFromCache);
1423            }
1424    
1425            /**
1426            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1427            *
1428            * @param groupId the group ID
1429            * @param classNameId the class name ID
1430            * @param classPK the class p k
1431            * @return the matching d d m templates
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1435                    long groupId, long classNameId, long classPK)
1436                    throws com.liferay.portal.kernel.exception.SystemException {
1437                    return getPersistence().findByG_C_C(groupId, classNameId, classPK);
1438            }
1439    
1440            /**
1441            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1442            *
1443            * <p>
1444            * 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.
1445            * </p>
1446            *
1447            * @param groupId the group ID
1448            * @param classNameId the class name ID
1449            * @param classPK the class p k
1450            * @param start the lower bound of the range of d d m templates
1451            * @param end the upper bound of the range of d d m templates (not inclusive)
1452            * @return the range of matching d d m templates
1453            * @throws SystemException if a system exception occurred
1454            */
1455            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1456                    long groupId, long classNameId, long classPK, int start, int end)
1457                    throws com.liferay.portal.kernel.exception.SystemException {
1458                    return getPersistence()
1459                                       .findByG_C_C(groupId, classNameId, classPK, start, end);
1460            }
1461    
1462            /**
1463            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1464            *
1465            * <p>
1466            * 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.
1467            * </p>
1468            *
1469            * @param groupId the group ID
1470            * @param classNameId the class name ID
1471            * @param classPK the class p k
1472            * @param start the lower bound of the range of d d m templates
1473            * @param end the upper bound of the range of d d m templates (not inclusive)
1474            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1475            * @return the ordered range of matching d d m templates
1476            * @throws SystemException if a system exception occurred
1477            */
1478            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1479                    long groupId, long classNameId, long classPK, int start, int end,
1480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1481                    throws com.liferay.portal.kernel.exception.SystemException {
1482                    return getPersistence()
1483                                       .findByG_C_C(groupId, classNameId, classPK, start, end,
1484                            orderByComparator);
1485            }
1486    
1487            /**
1488            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1489            *
1490            * @param groupId the group ID
1491            * @param classNameId the class name ID
1492            * @param classPK the class p k
1493            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1494            * @return the first matching d d m template
1495            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1496            * @throws SystemException if a system exception occurred
1497            */
1498            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First(
1499                    long groupId, long classNameId, long classPK,
1500                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1501                    throws com.liferay.portal.kernel.exception.SystemException,
1502                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1503                    return getPersistence()
1504                                       .findByG_C_C_First(groupId, classNameId, classPK,
1505                            orderByComparator);
1506            }
1507    
1508            /**
1509            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1510            *
1511            * @param groupId the group ID
1512            * @param classNameId the class name ID
1513            * @param classPK the class p k
1514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1515            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1516            * @throws SystemException if a system exception occurred
1517            */
1518            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First(
1519                    long groupId, long classNameId, long classPK,
1520                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1521                    throws com.liferay.portal.kernel.exception.SystemException {
1522                    return getPersistence()
1523                                       .fetchByG_C_C_First(groupId, classNameId, classPK,
1524                            orderByComparator);
1525            }
1526    
1527            /**
1528            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1529            *
1530            * @param groupId the group ID
1531            * @param classNameId the class name ID
1532            * @param classPK the class p k
1533            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1534            * @return the last matching d d m template
1535            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1536            * @throws SystemException if a system exception occurred
1537            */
1538            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last(
1539                    long groupId, long classNameId, long classPK,
1540                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1541                    throws com.liferay.portal.kernel.exception.SystemException,
1542                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1543                    return getPersistence()
1544                                       .findByG_C_C_Last(groupId, classNameId, classPK,
1545                            orderByComparator);
1546            }
1547    
1548            /**
1549            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1550            *
1551            * @param groupId the group ID
1552            * @param classNameId the class name ID
1553            * @param classPK the class p k
1554            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1555            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1556            * @throws SystemException if a system exception occurred
1557            */
1558            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last(
1559                    long groupId, long classNameId, long classPK,
1560                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1561                    throws com.liferay.portal.kernel.exception.SystemException {
1562                    return getPersistence()
1563                                       .fetchByG_C_C_Last(groupId, classNameId, classPK,
1564                            orderByComparator);
1565            }
1566    
1567            /**
1568            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1569            *
1570            * @param templateId the primary key of the current d d m template
1571            * @param groupId the group ID
1572            * @param classNameId the class name ID
1573            * @param classPK the class p k
1574            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1575            * @return the previous, current, and next d d m template
1576            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1577            * @throws SystemException if a system exception occurred
1578            */
1579            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext(
1580                    long templateId, long groupId, long classNameId, long classPK,
1581                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1582                    throws com.liferay.portal.kernel.exception.SystemException,
1583                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1584                    return getPersistence()
1585                                       .findByG_C_C_PrevAndNext(templateId, groupId, classNameId,
1586                            classPK, orderByComparator);
1587            }
1588    
1589            /**
1590            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1591            *
1592            * @param groupId the group ID
1593            * @param classNameId the class name ID
1594            * @param classPK the class p k
1595            * @return the matching d d m templates that the user has permission to view
1596            * @throws SystemException if a system exception occurred
1597            */
1598            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1599                    long groupId, long classNameId, long classPK)
1600                    throws com.liferay.portal.kernel.exception.SystemException {
1601                    return getPersistence().filterFindByG_C_C(groupId, classNameId, classPK);
1602            }
1603    
1604            /**
1605            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1606            *
1607            * <p>
1608            * 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.
1609            * </p>
1610            *
1611            * @param groupId the group ID
1612            * @param classNameId the class name ID
1613            * @param classPK the class p k
1614            * @param start the lower bound of the range of d d m templates
1615            * @param end the upper bound of the range of d d m templates (not inclusive)
1616            * @return the range of matching d d m templates that the user has permission to view
1617            * @throws SystemException if a system exception occurred
1618            */
1619            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1620                    long groupId, long classNameId, long classPK, int start, int end)
1621                    throws com.liferay.portal.kernel.exception.SystemException {
1622                    return getPersistence()
1623                                       .filterFindByG_C_C(groupId, classNameId, classPK, start, end);
1624            }
1625    
1626            /**
1627            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1628            *
1629            * <p>
1630            * 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.
1631            * </p>
1632            *
1633            * @param groupId the group ID
1634            * @param classNameId the class name ID
1635            * @param classPK the class p k
1636            * @param start the lower bound of the range of d d m templates
1637            * @param end the upper bound of the range of d d m templates (not inclusive)
1638            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1639            * @return the ordered range of matching d d m templates that the user has permission to view
1640            * @throws SystemException if a system exception occurred
1641            */
1642            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1643                    long groupId, long classNameId, long classPK, int start, int end,
1644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1645                    throws com.liferay.portal.kernel.exception.SystemException {
1646                    return getPersistence()
1647                                       .filterFindByG_C_C(groupId, classNameId, classPK, start,
1648                            end, orderByComparator);
1649            }
1650    
1651            /**
1652            * Returns the d d m templates before and after the current d d m template in the ordered set of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1653            *
1654            * @param templateId the primary key of the current d d m template
1655            * @param groupId the group ID
1656            * @param classNameId the class name ID
1657            * @param classPK the class p k
1658            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1659            * @return the previous, current, and next d d m template
1660            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1661            * @throws SystemException if a system exception occurred
1662            */
1663            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext(
1664                    long templateId, long groupId, long classNameId, long classPK,
1665                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1666                    throws com.liferay.portal.kernel.exception.SystemException,
1667                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1668                    return getPersistence()
1669                                       .filterFindByG_C_C_PrevAndNext(templateId, groupId,
1670                            classNameId, classPK, orderByComparator);
1671            }
1672    
1673            /**
1674            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1675            *
1676            * @param classNameId the class name ID
1677            * @param classPK the class p k
1678            * @param type the type
1679            * @return the matching d d m templates
1680            * @throws SystemException if a system exception occurred
1681            */
1682            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1683                    long classNameId, long classPK, java.lang.String type)
1684                    throws com.liferay.portal.kernel.exception.SystemException {
1685                    return getPersistence().findByC_C_T(classNameId, classPK, type);
1686            }
1687    
1688            /**
1689            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1690            *
1691            * <p>
1692            * 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.
1693            * </p>
1694            *
1695            * @param classNameId the class name ID
1696            * @param classPK the class p k
1697            * @param type the type
1698            * @param start the lower bound of the range of d d m templates
1699            * @param end the upper bound of the range of d d m templates (not inclusive)
1700            * @return the range of matching d d m templates
1701            * @throws SystemException if a system exception occurred
1702            */
1703            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1704                    long classNameId, long classPK, java.lang.String type, int start,
1705                    int end) throws com.liferay.portal.kernel.exception.SystemException {
1706                    return getPersistence()
1707                                       .findByC_C_T(classNameId, classPK, type, start, end);
1708            }
1709    
1710            /**
1711            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1712            *
1713            * <p>
1714            * 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.
1715            * </p>
1716            *
1717            * @param classNameId the class name ID
1718            * @param classPK the class p k
1719            * @param type the type
1720            * @param start the lower bound of the range of d d m templates
1721            * @param end the upper bound of the range of d d m templates (not inclusive)
1722            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1723            * @return the ordered range of matching d d m templates
1724            * @throws SystemException if a system exception occurred
1725            */
1726            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1727                    long classNameId, long classPK, java.lang.String type, int start,
1728                    int end,
1729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1730                    throws com.liferay.portal.kernel.exception.SystemException {
1731                    return getPersistence()
1732                                       .findByC_C_T(classNameId, classPK, type, start, end,
1733                            orderByComparator);
1734            }
1735    
1736            /**
1737            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1738            *
1739            * @param classNameId the class name ID
1740            * @param classPK the class p k
1741            * @param type the type
1742            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1743            * @return the first matching d d m template
1744            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1745            * @throws SystemException if a system exception occurred
1746            */
1747            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First(
1748                    long classNameId, long classPK, java.lang.String type,
1749                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1750                    throws com.liferay.portal.kernel.exception.SystemException,
1751                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1752                    return getPersistence()
1753                                       .findByC_C_T_First(classNameId, classPK, type,
1754                            orderByComparator);
1755            }
1756    
1757            /**
1758            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1759            *
1760            * @param classNameId the class name ID
1761            * @param classPK the class p k
1762            * @param type the type
1763            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1764            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1765            * @throws SystemException if a system exception occurred
1766            */
1767            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First(
1768                    long classNameId, long classPK, java.lang.String type,
1769                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1770                    throws com.liferay.portal.kernel.exception.SystemException {
1771                    return getPersistence()
1772                                       .fetchByC_C_T_First(classNameId, classPK, type,
1773                            orderByComparator);
1774            }
1775    
1776            /**
1777            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1778            *
1779            * @param classNameId the class name ID
1780            * @param classPK the class p k
1781            * @param type the type
1782            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1783            * @return the last matching d d m template
1784            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1785            * @throws SystemException if a system exception occurred
1786            */
1787            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last(
1788                    long classNameId, long classPK, java.lang.String type,
1789                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1790                    throws com.liferay.portal.kernel.exception.SystemException,
1791                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1792                    return getPersistence()
1793                                       .findByC_C_T_Last(classNameId, classPK, type,
1794                            orderByComparator);
1795            }
1796    
1797            /**
1798            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1799            *
1800            * @param classNameId the class name ID
1801            * @param classPK the class p k
1802            * @param type the type
1803            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1804            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1805            * @throws SystemException if a system exception occurred
1806            */
1807            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last(
1808                    long classNameId, long classPK, java.lang.String type,
1809                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1810                    throws com.liferay.portal.kernel.exception.SystemException {
1811                    return getPersistence()
1812                                       .fetchByC_C_T_Last(classNameId, classPK, type,
1813                            orderByComparator);
1814            }
1815    
1816            /**
1817            * Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1818            *
1819            * @param templateId the primary key of the current d d m template
1820            * @param classNameId the class name ID
1821            * @param classPK the class p k
1822            * @param type the type
1823            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1824            * @return the previous, current, and next d d m template
1825            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1826            * @throws SystemException if a system exception occurred
1827            */
1828            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext(
1829                    long templateId, long classNameId, long classPK, java.lang.String type,
1830                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1831                    throws com.liferay.portal.kernel.exception.SystemException,
1832                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1833                    return getPersistence()
1834                                       .findByC_C_T_PrevAndNext(templateId, classNameId, classPK,
1835                            type, orderByComparator);
1836            }
1837    
1838            /**
1839            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1840            *
1841            * @param classNameId the class name ID
1842            * @param classPK the class p k
1843            * @param type the type
1844            * @param mode the mode
1845            * @return the matching d d m templates
1846            * @throws SystemException if a system exception occurred
1847            */
1848            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1849                    long classNameId, long classPK, java.lang.String type,
1850                    java.lang.String mode)
1851                    throws com.liferay.portal.kernel.exception.SystemException {
1852                    return getPersistence().findByC_C_T_M(classNameId, classPK, type, mode);
1853            }
1854    
1855            /**
1856            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1857            *
1858            * <p>
1859            * 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.
1860            * </p>
1861            *
1862            * @param classNameId the class name ID
1863            * @param classPK the class p k
1864            * @param type the type
1865            * @param mode the mode
1866            * @param start the lower bound of the range of d d m templates
1867            * @param end the upper bound of the range of d d m templates (not inclusive)
1868            * @return the range of matching d d m templates
1869            * @throws SystemException if a system exception occurred
1870            */
1871            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1872                    long classNameId, long classPK, java.lang.String type,
1873                    java.lang.String mode, int start, int end)
1874                    throws com.liferay.portal.kernel.exception.SystemException {
1875                    return getPersistence()
1876                                       .findByC_C_T_M(classNameId, classPK, type, mode, start, end);
1877            }
1878    
1879            /**
1880            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1881            *
1882            * <p>
1883            * 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.
1884            * </p>
1885            *
1886            * @param classNameId the class name ID
1887            * @param classPK the class p k
1888            * @param type the type
1889            * @param mode the mode
1890            * @param start the lower bound of the range of d d m templates
1891            * @param end the upper bound of the range of d d m templates (not inclusive)
1892            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1893            * @return the ordered range of matching d d m templates
1894            * @throws SystemException if a system exception occurred
1895            */
1896            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1897                    long classNameId, long classPK, java.lang.String type,
1898                    java.lang.String mode, int start, int end,
1899                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1900                    throws com.liferay.portal.kernel.exception.SystemException {
1901                    return getPersistence()
1902                                       .findByC_C_T_M(classNameId, classPK, type, mode, start, end,
1903                            orderByComparator);
1904            }
1905    
1906            /**
1907            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1908            *
1909            * @param classNameId the class name ID
1910            * @param classPK the class p k
1911            * @param type the type
1912            * @param mode the mode
1913            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1914            * @return the first matching d d m template
1915            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1916            * @throws SystemException if a system exception occurred
1917            */
1918            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_M_First(
1919                    long classNameId, long classPK, java.lang.String type,
1920                    java.lang.String mode,
1921                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1922                    throws com.liferay.portal.kernel.exception.SystemException,
1923                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1924                    return getPersistence()
1925                                       .findByC_C_T_M_First(classNameId, classPK, type, mode,
1926                            orderByComparator);
1927            }
1928    
1929            /**
1930            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1931            *
1932            * @param classNameId the class name ID
1933            * @param classPK the class p k
1934            * @param type the type
1935            * @param mode the mode
1936            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1937            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1938            * @throws SystemException if a system exception occurred
1939            */
1940            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_M_First(
1941                    long classNameId, long classPK, java.lang.String type,
1942                    java.lang.String mode,
1943                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1944                    throws com.liferay.portal.kernel.exception.SystemException {
1945                    return getPersistence()
1946                                       .fetchByC_C_T_M_First(classNameId, classPK, type, mode,
1947                            orderByComparator);
1948            }
1949    
1950            /**
1951            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1952            *
1953            * @param classNameId the class name ID
1954            * @param classPK the class p k
1955            * @param type the type
1956            * @param mode the mode
1957            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1958            * @return the last matching d d m template
1959            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1960            * @throws SystemException if a system exception occurred
1961            */
1962            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_M_Last(
1963                    long classNameId, long classPK, java.lang.String type,
1964                    java.lang.String mode,
1965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1966                    throws com.liferay.portal.kernel.exception.SystemException,
1967                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
1968                    return getPersistence()
1969                                       .findByC_C_T_M_Last(classNameId, classPK, type, mode,
1970                            orderByComparator);
1971            }
1972    
1973            /**
1974            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1975            *
1976            * @param classNameId the class name ID
1977            * @param classPK the class p k
1978            * @param type the type
1979            * @param mode the mode
1980            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1981            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1982            * @throws SystemException if a system exception occurred
1983            */
1984            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_M_Last(
1985                    long classNameId, long classPK, java.lang.String type,
1986                    java.lang.String mode,
1987                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1988                    throws com.liferay.portal.kernel.exception.SystemException {
1989                    return getPersistence()
1990                                       .fetchByC_C_T_M_Last(classNameId, classPK, type, mode,
1991                            orderByComparator);
1992            }
1993    
1994            /**
1995            * Returns the d d m templates before and after the current d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1996            *
1997            * @param templateId the primary key of the current d d m template
1998            * @param classNameId the class name ID
1999            * @param classPK the class p k
2000            * @param type the type
2001            * @param mode the mode
2002            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2003            * @return the previous, current, and next d d m template
2004            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2005            * @throws SystemException if a system exception occurred
2006            */
2007            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_M_PrevAndNext(
2008                    long templateId, long classNameId, long classPK, java.lang.String type,
2009                    java.lang.String mode,
2010                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2011                    throws com.liferay.portal.kernel.exception.SystemException,
2012                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
2013                    return getPersistence()
2014                                       .findByC_C_T_M_PrevAndNext(templateId, classNameId, classPK,
2015                            type, mode, orderByComparator);
2016            }
2017    
2018            /**
2019            * Returns all the d d m templates.
2020            *
2021            * @return the d d m templates
2022            * @throws SystemException if a system exception occurred
2023            */
2024            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
2025                    throws com.liferay.portal.kernel.exception.SystemException {
2026                    return getPersistence().findAll();
2027            }
2028    
2029            /**
2030            * Returns a range of all the d d m templates.
2031            *
2032            * <p>
2033            * 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.
2034            * </p>
2035            *
2036            * @param start the lower bound of the range of d d m templates
2037            * @param end the upper bound of the range of d d m templates (not inclusive)
2038            * @return the range of d d m templates
2039            * @throws SystemException if a system exception occurred
2040            */
2041            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2042                    int start, int end)
2043                    throws com.liferay.portal.kernel.exception.SystemException {
2044                    return getPersistence().findAll(start, end);
2045            }
2046    
2047            /**
2048            * Returns an ordered range of all the d d m templates.
2049            *
2050            * <p>
2051            * 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.
2052            * </p>
2053            *
2054            * @param start the lower bound of the range of d d m templates
2055            * @param end the upper bound of the range of d d m templates (not inclusive)
2056            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2057            * @return the ordered range of d d m templates
2058            * @throws SystemException if a system exception occurred
2059            */
2060            public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2061                    int start, int end,
2062                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2063                    throws com.liferay.portal.kernel.exception.SystemException {
2064                    return getPersistence().findAll(start, end, orderByComparator);
2065            }
2066    
2067            /**
2068            * Removes all the d d m templates where uuid = &#63; from the database.
2069            *
2070            * @param uuid the uuid
2071            * @throws SystemException if a system exception occurred
2072            */
2073            public static void removeByUuid(java.lang.String uuid)
2074                    throws com.liferay.portal.kernel.exception.SystemException {
2075                    getPersistence().removeByUuid(uuid);
2076            }
2077    
2078            /**
2079            * Removes the d d m template where uuid = &#63; and groupId = &#63; from the database.
2080            *
2081            * @param uuid the uuid
2082            * @param groupId the group ID
2083            * @return the d d m template that was removed
2084            * @throws SystemException if a system exception occurred
2085            */
2086            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G(
2087                    java.lang.String uuid, long groupId)
2088                    throws com.liferay.portal.kernel.exception.SystemException,
2089                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
2090                    return getPersistence().removeByUUID_G(uuid, groupId);
2091            }
2092    
2093            /**
2094            * Removes all the d d m templates where uuid = &#63; and companyId = &#63; from the database.
2095            *
2096            * @param uuid the uuid
2097            * @param companyId the company ID
2098            * @throws SystemException if a system exception occurred
2099            */
2100            public static void removeByUuid_C(java.lang.String uuid, long companyId)
2101                    throws com.liferay.portal.kernel.exception.SystemException {
2102                    getPersistence().removeByUuid_C(uuid, companyId);
2103            }
2104    
2105            /**
2106            * Removes all the d d m templates where groupId = &#63; from the database.
2107            *
2108            * @param groupId the group ID
2109            * @throws SystemException if a system exception occurred
2110            */
2111            public static void removeByGroupId(long groupId)
2112                    throws com.liferay.portal.kernel.exception.SystemException {
2113                    getPersistence().removeByGroupId(groupId);
2114            }
2115    
2116            /**
2117            * Removes all the d d m templates where classPK = &#63; from the database.
2118            *
2119            * @param classPK the class p k
2120            * @throws SystemException if a system exception occurred
2121            */
2122            public static void removeByClassPK(long classPK)
2123                    throws com.liferay.portal.kernel.exception.SystemException {
2124                    getPersistence().removeByClassPK(classPK);
2125            }
2126    
2127            /**
2128            * Removes all the d d m templates where type = &#63; from the database.
2129            *
2130            * @param type the type
2131            * @throws SystemException if a system exception occurred
2132            */
2133            public static void removeByType(java.lang.String type)
2134                    throws com.liferay.portal.kernel.exception.SystemException {
2135                    getPersistence().removeByType(type);
2136            }
2137    
2138            /**
2139            * Removes all the d d m templates where language = &#63; from the database.
2140            *
2141            * @param language the language
2142            * @throws SystemException if a system exception occurred
2143            */
2144            public static void removeByLanguage(java.lang.String language)
2145                    throws com.liferay.portal.kernel.exception.SystemException {
2146                    getPersistence().removeByLanguage(language);
2147            }
2148    
2149            /**
2150            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; from the database.
2151            *
2152            * @param groupId the group ID
2153            * @param classNameId the class name ID
2154            * @throws SystemException if a system exception occurred
2155            */
2156            public static void removeByG_C(long groupId, long classNameId)
2157                    throws com.liferay.portal.kernel.exception.SystemException {
2158                    getPersistence().removeByG_C(groupId, classNameId);
2159            }
2160    
2161            /**
2162            * Removes the d d m template where groupId = &#63; and templateKey = &#63; from the database.
2163            *
2164            * @param groupId the group ID
2165            * @param templateKey the template key
2166            * @return the d d m template that was removed
2167            * @throws SystemException if a system exception occurred
2168            */
2169            public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_T(
2170                    long groupId, java.lang.String templateKey)
2171                    throws com.liferay.portal.kernel.exception.SystemException,
2172                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException {
2173                    return getPersistence().removeByG_T(groupId, templateKey);
2174            }
2175    
2176            /**
2177            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
2178            *
2179            * @param groupId the group ID
2180            * @param classNameId the class name ID
2181            * @param classPK the class p k
2182            * @throws SystemException if a system exception occurred
2183            */
2184            public static void removeByG_C_C(long groupId, long classNameId,
2185                    long classPK)
2186                    throws com.liferay.portal.kernel.exception.SystemException {
2187                    getPersistence().removeByG_C_C(groupId, classNameId, classPK);
2188            }
2189    
2190            /**
2191            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2192            *
2193            * @param classNameId the class name ID
2194            * @param classPK the class p k
2195            * @param type the type
2196            * @throws SystemException if a system exception occurred
2197            */
2198            public static void removeByC_C_T(long classNameId, long classPK,
2199                    java.lang.String type)
2200                    throws com.liferay.portal.kernel.exception.SystemException {
2201                    getPersistence().removeByC_C_T(classNameId, classPK, type);
2202            }
2203    
2204            /**
2205            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63; from the database.
2206            *
2207            * @param classNameId the class name ID
2208            * @param classPK the class p k
2209            * @param type the type
2210            * @param mode the mode
2211            * @throws SystemException if a system exception occurred
2212            */
2213            public static void removeByC_C_T_M(long classNameId, long classPK,
2214                    java.lang.String type, java.lang.String mode)
2215                    throws com.liferay.portal.kernel.exception.SystemException {
2216                    getPersistence().removeByC_C_T_M(classNameId, classPK, type, mode);
2217            }
2218    
2219            /**
2220            * Removes all the d d m templates from the database.
2221            *
2222            * @throws SystemException if a system exception occurred
2223            */
2224            public static void removeAll()
2225                    throws com.liferay.portal.kernel.exception.SystemException {
2226                    getPersistence().removeAll();
2227            }
2228    
2229            /**
2230            * Returns the number of d d m templates where uuid = &#63;.
2231            *
2232            * @param uuid the uuid
2233            * @return the number of matching d d m templates
2234            * @throws SystemException if a system exception occurred
2235            */
2236            public static int countByUuid(java.lang.String uuid)
2237                    throws com.liferay.portal.kernel.exception.SystemException {
2238                    return getPersistence().countByUuid(uuid);
2239            }
2240    
2241            /**
2242            * Returns the number of d d m templates where uuid = &#63; and groupId = &#63;.
2243            *
2244            * @param uuid the uuid
2245            * @param groupId the group ID
2246            * @return the number of matching d d m templates
2247            * @throws SystemException if a system exception occurred
2248            */
2249            public static int countByUUID_G(java.lang.String uuid, long groupId)
2250                    throws com.liferay.portal.kernel.exception.SystemException {
2251                    return getPersistence().countByUUID_G(uuid, groupId);
2252            }
2253    
2254            /**
2255            * Returns the number of d d m templates where uuid = &#63; and companyId = &#63;.
2256            *
2257            * @param uuid the uuid
2258            * @param companyId the company ID
2259            * @return the number of matching d d m templates
2260            * @throws SystemException if a system exception occurred
2261            */
2262            public static int countByUuid_C(java.lang.String uuid, long companyId)
2263                    throws com.liferay.portal.kernel.exception.SystemException {
2264                    return getPersistence().countByUuid_C(uuid, companyId);
2265            }
2266    
2267            /**
2268            * Returns the number of d d m templates where groupId = &#63;.
2269            *
2270            * @param groupId the group ID
2271            * @return the number of matching d d m templates
2272            * @throws SystemException if a system exception occurred
2273            */
2274            public static int countByGroupId(long groupId)
2275                    throws com.liferay.portal.kernel.exception.SystemException {
2276                    return getPersistence().countByGroupId(groupId);
2277            }
2278    
2279            /**
2280            * Returns the number of d d m templates that the user has permission to view where groupId = &#63;.
2281            *
2282            * @param groupId the group ID
2283            * @return the number of matching d d m templates that the user has permission to view
2284            * @throws SystemException if a system exception occurred
2285            */
2286            public static int filterCountByGroupId(long groupId)
2287                    throws com.liferay.portal.kernel.exception.SystemException {
2288                    return getPersistence().filterCountByGroupId(groupId);
2289            }
2290    
2291            /**
2292            * Returns the number of d d m templates where classPK = &#63;.
2293            *
2294            * @param classPK the class p k
2295            * @return the number of matching d d m templates
2296            * @throws SystemException if a system exception occurred
2297            */
2298            public static int countByClassPK(long classPK)
2299                    throws com.liferay.portal.kernel.exception.SystemException {
2300                    return getPersistence().countByClassPK(classPK);
2301            }
2302    
2303            /**
2304            * Returns the number of d d m templates where type = &#63;.
2305            *
2306            * @param type the type
2307            * @return the number of matching d d m templates
2308            * @throws SystemException if a system exception occurred
2309            */
2310            public static int countByType(java.lang.String type)
2311                    throws com.liferay.portal.kernel.exception.SystemException {
2312                    return getPersistence().countByType(type);
2313            }
2314    
2315            /**
2316            * Returns the number of d d m templates where language = &#63;.
2317            *
2318            * @param language the language
2319            * @return the number of matching d d m templates
2320            * @throws SystemException if a system exception occurred
2321            */
2322            public static int countByLanguage(java.lang.String language)
2323                    throws com.liferay.portal.kernel.exception.SystemException {
2324                    return getPersistence().countByLanguage(language);
2325            }
2326    
2327            /**
2328            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63;.
2329            *
2330            * @param groupId the group ID
2331            * @param classNameId the class name ID
2332            * @return the number of matching d d m templates
2333            * @throws SystemException if a system exception occurred
2334            */
2335            public static int countByG_C(long groupId, long classNameId)
2336                    throws com.liferay.portal.kernel.exception.SystemException {
2337                    return getPersistence().countByG_C(groupId, classNameId);
2338            }
2339    
2340            /**
2341            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
2342            *
2343            * @param groupId the group ID
2344            * @param classNameId the class name ID
2345            * @return the number of matching d d m templates that the user has permission to view
2346            * @throws SystemException if a system exception occurred
2347            */
2348            public static int filterCountByG_C(long groupId, long classNameId)
2349                    throws com.liferay.portal.kernel.exception.SystemException {
2350                    return getPersistence().filterCountByG_C(groupId, classNameId);
2351            }
2352    
2353            /**
2354            * Returns the number of d d m templates where groupId = &#63; and templateKey = &#63;.
2355            *
2356            * @param groupId the group ID
2357            * @param templateKey the template key
2358            * @return the number of matching d d m templates
2359            * @throws SystemException if a system exception occurred
2360            */
2361            public static int countByG_T(long groupId, java.lang.String templateKey)
2362                    throws com.liferay.portal.kernel.exception.SystemException {
2363                    return getPersistence().countByG_T(groupId, templateKey);
2364            }
2365    
2366            /**
2367            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2368            *
2369            * @param groupId the group ID
2370            * @param classNameId the class name ID
2371            * @param classPK the class p k
2372            * @return the number of matching d d m templates
2373            * @throws SystemException if a system exception occurred
2374            */
2375            public static int countByG_C_C(long groupId, long classNameId, long classPK)
2376                    throws com.liferay.portal.kernel.exception.SystemException {
2377                    return getPersistence().countByG_C_C(groupId, classNameId, classPK);
2378            }
2379    
2380            /**
2381            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2382            *
2383            * @param groupId the group ID
2384            * @param classNameId the class name ID
2385            * @param classPK the class p k
2386            * @return the number of matching d d m templates that the user has permission to view
2387            * @throws SystemException if a system exception occurred
2388            */
2389            public static int filterCountByG_C_C(long groupId, long classNameId,
2390                    long classPK)
2391                    throws com.liferay.portal.kernel.exception.SystemException {
2392                    return getPersistence().filterCountByG_C_C(groupId, classNameId, classPK);
2393            }
2394    
2395            /**
2396            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2397            *
2398            * @param classNameId the class name ID
2399            * @param classPK the class p k
2400            * @param type the type
2401            * @return the number of matching d d m templates
2402            * @throws SystemException if a system exception occurred
2403            */
2404            public static int countByC_C_T(long classNameId, long classPK,
2405                    java.lang.String type)
2406                    throws com.liferay.portal.kernel.exception.SystemException {
2407                    return getPersistence().countByC_C_T(classNameId, classPK, type);
2408            }
2409    
2410            /**
2411            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2412            *
2413            * @param classNameId the class name ID
2414            * @param classPK the class p k
2415            * @param type the type
2416            * @param mode the mode
2417            * @return the number of matching d d m templates
2418            * @throws SystemException if a system exception occurred
2419            */
2420            public static int countByC_C_T_M(long classNameId, long classPK,
2421                    java.lang.String type, java.lang.String mode)
2422                    throws com.liferay.portal.kernel.exception.SystemException {
2423                    return getPersistence().countByC_C_T_M(classNameId, classPK, type, mode);
2424            }
2425    
2426            /**
2427            * Returns the number of d d m templates.
2428            *
2429            * @return the number of d d m templates
2430            * @throws SystemException if a system exception occurred
2431            */
2432            public static int countAll()
2433                    throws com.liferay.portal.kernel.exception.SystemException {
2434                    return getPersistence().countAll();
2435            }
2436    
2437            public static DDMTemplatePersistence getPersistence() {
2438                    if (_persistence == null) {
2439                            _persistence = (DDMTemplatePersistence)PortalBeanLocatorUtil.locate(DDMTemplatePersistence.class.getName());
2440    
2441                            ReferenceRegistry.registerReference(DDMTemplateUtil.class,
2442                                    "_persistence");
2443                    }
2444    
2445                    return _persistence;
2446            }
2447    
2448            /**
2449             * @deprecated
2450             */
2451            public void setPersistence(DDMTemplatePersistence persistence) {
2452            }
2453    
2454            private static DDMTemplatePersistence _persistence;
2455    }