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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
020    
021    /**
022     * The persistence interface for the d d m template service.
023     *
024     * <p>
025     * Caching information and settings can be found in <code>portal.properties</code>
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see DDMTemplatePersistenceImpl
030     * @see DDMTemplateUtil
031     * @generated
032     */
033    public interface DDMTemplatePersistence extends BasePersistence<DDMTemplate> {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * Never modify or reference this interface directly. Always use {@link DDMTemplateUtil} to access the d d m template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
038             */
039    
040            /**
041            * Caches the d d m template in the entity cache if it is enabled.
042            *
043            * @param ddmTemplate the d d m template
044            */
045            public void cacheResult(
046                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
047    
048            /**
049            * Caches the d d m templates in the entity cache if it is enabled.
050            *
051            * @param ddmTemplates the d d m templates
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
055    
056            /**
057            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
058            *
059            * @param templateId the primary key for the new d d m template
060            * @return the new d d m template
061            */
062            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
063                    long templateId);
064    
065            /**
066            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param templateId the primary key of the d d m template
069            * @return the d d m template that was removed
070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
074                    long templateId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
077    
078            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * 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.
084            *
085            * @param templateId the primary key of the d d m template
086            * @return the d d m template
087            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
088            * @throws SystemException if a system exception occurred
089            */
090            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
091                    long templateId)
092                    throws com.liferay.portal.kernel.exception.SystemException,
093                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
094    
095            /**
096            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
097            *
098            * @param templateId the primary key of the d d m template
099            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
100            * @throws SystemException if a system exception occurred
101            */
102            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
103                    long templateId)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            /**
107            * Returns all the d d m templates where uuid = &#63;.
108            *
109            * @param uuid the uuid
110            * @return the matching d d m templates
111            * @throws SystemException if a system exception occurred
112            */
113            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
114                    java.lang.String uuid)
115                    throws com.liferay.portal.kernel.exception.SystemException;
116    
117            /**
118            * Returns a range of all the d d m templates where uuid = &#63;.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param uuid the uuid
125            * @param start the lower bound of the range of d d m templates
126            * @param end the upper bound of the range of d d m templates (not inclusive)
127            * @return the range of matching d d m templates
128            * @throws SystemException if a system exception occurred
129            */
130            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
131                    java.lang.String uuid, int start, int end)
132                    throws com.liferay.portal.kernel.exception.SystemException;
133    
134            /**
135            * Returns an ordered range of all the d d m templates where uuid = &#63;.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param uuid the uuid
142            * @param start the lower bound of the range of d d m templates
143            * @param end the upper bound of the range of d d m templates (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching d d m templates
146            * @throws SystemException if a system exception occurred
147            */
148            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
149                    java.lang.String uuid, int start, int end,
150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            /**
154            * Returns the first d d m template in the ordered set where uuid = &#63;.
155            *
156            * @param uuid the uuid
157            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
158            * @return the first matching d d m template
159            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First(
163                    java.lang.String uuid,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
167    
168            /**
169            * Returns the first d d m template in the ordered set where uuid = &#63;.
170            *
171            * @param uuid the uuid
172            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
173            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First(
177                    java.lang.String uuid,
178                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * Returns the last d d m template in the ordered set where uuid = &#63;.
183            *
184            * @param uuid the uuid
185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
186            * @return the last matching d d m template
187            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last(
191                    java.lang.String uuid,
192                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
193                    throws com.liferay.portal.kernel.exception.SystemException,
194                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
195    
196            /**
197            * Returns the last d d m template in the ordered set where uuid = &#63;.
198            *
199            * @param uuid the uuid
200            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
201            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
202            * @throws SystemException if a system exception occurred
203            */
204            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last(
205                    java.lang.String uuid,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException;
208    
209            /**
210            * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = &#63;.
211            *
212            * @param templateId the primary key of the current d d m template
213            * @param uuid the uuid
214            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
215            * @return the previous, current, and next d d m template
216            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext(
220                    long templateId, java.lang.String uuid,
221                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
222                    throws com.liferay.portal.kernel.exception.SystemException,
223                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
224    
225            /**
226            * 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.
227            *
228            * @param uuid the uuid
229            * @param groupId the group ID
230            * @return the matching d d m template
231            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G(
235                    java.lang.String uuid, long groupId)
236                    throws com.liferay.portal.kernel.exception.SystemException,
237                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
238    
239            /**
240            * 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.
241            *
242            * @param uuid the uuid
243            * @param groupId the group ID
244            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
245            * @throws SystemException if a system exception occurred
246            */
247            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
248                    java.lang.String uuid, long groupId)
249                    throws com.liferay.portal.kernel.exception.SystemException;
250    
251            /**
252            * 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.
253            *
254            * @param uuid the uuid
255            * @param groupId the group ID
256            * @param retrieveFromCache whether to use the finder cache
257            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
258            * @throws SystemException if a system exception occurred
259            */
260            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
261                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            /**
265            * Returns all the d d m templates where uuid = &#63; and companyId = &#63;.
266            *
267            * @param uuid the uuid
268            * @param companyId the company ID
269            * @return the matching d d m templates
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
273                    java.lang.String uuid, long companyId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the d d m templates where uuid = &#63; and companyId = &#63;.
278            *
279            * <p>
280            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
281            * </p>
282            *
283            * @param uuid the uuid
284            * @param companyId the company ID
285            * @param start the lower bound of the range of d d m templates
286            * @param end the upper bound of the range of d d m templates (not inclusive)
287            * @return the range of matching d d m templates
288            * @throws SystemException if a system exception occurred
289            */
290            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
291                    java.lang.String uuid, long companyId, int start, int end)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns an ordered range of all the d d m templates where uuid = &#63; and companyId = &#63;.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param uuid the uuid
302            * @param companyId the company ID
303            * @param start the lower bound of the range of d d m templates
304            * @param end the upper bound of the range of d d m templates (not inclusive)
305            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
306            * @return the ordered range of matching d d m templates
307            * @throws SystemException if a system exception occurred
308            */
309            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
310                    java.lang.String uuid, long companyId, int start, int end,
311                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            /**
315            * Returns the first d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
316            *
317            * @param uuid the uuid
318            * @param companyId the company ID
319            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
320            * @return the first matching d d m template
321            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_First(
325                    java.lang.String uuid, long companyId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
329    
330            /**
331            * Returns the first d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
332            *
333            * @param uuid the uuid
334            * @param companyId the company ID
335            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
336            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
337            * @throws SystemException if a system exception occurred
338            */
339            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_First(
340                    java.lang.String uuid, long companyId,
341                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
342                    throws com.liferay.portal.kernel.exception.SystemException;
343    
344            /**
345            * Returns the last d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
346            *
347            * @param uuid the uuid
348            * @param companyId the company ID
349            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
350            * @return the last matching d d m template
351            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
352            * @throws SystemException if a system exception occurred
353            */
354            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_Last(
355                    java.lang.String uuid, long companyId,
356                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
357                    throws com.liferay.portal.kernel.exception.SystemException,
358                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
359    
360            /**
361            * Returns the last d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
362            *
363            * @param uuid the uuid
364            * @param companyId the company ID
365            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
366            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
367            * @throws SystemException if a system exception occurred
368            */
369            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_Last(
370                    java.lang.String uuid, long companyId,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            /**
375            * 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;.
376            *
377            * @param templateId the primary key of the current d d m template
378            * @param uuid the uuid
379            * @param companyId the company ID
380            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
381            * @return the previous, current, and next d d m template
382            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
383            * @throws SystemException if a system exception occurred
384            */
385            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_C_PrevAndNext(
386                    long templateId, java.lang.String uuid, long companyId,
387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388                    throws com.liferay.portal.kernel.exception.SystemException,
389                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
390    
391            /**
392            * Returns all the d d m templates where groupId = &#63;.
393            *
394            * @param groupId the group ID
395            * @return the matching d d m templates
396            * @throws SystemException if a system exception occurred
397            */
398            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
399                    long groupId)
400                    throws com.liferay.portal.kernel.exception.SystemException;
401    
402            /**
403            * Returns a range of all the d d m templates where groupId = &#63;.
404            *
405            * <p>
406            * 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.
407            * </p>
408            *
409            * @param groupId the group ID
410            * @param start the lower bound of the range of d d m templates
411            * @param end the upper bound of the range of d d m templates (not inclusive)
412            * @return the range of matching d d m templates
413            * @throws SystemException if a system exception occurred
414            */
415            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
416                    long groupId, int start, int end)
417                    throws com.liferay.portal.kernel.exception.SystemException;
418    
419            /**
420            * Returns an ordered range of all the d d m templates where groupId = &#63;.
421            *
422            * <p>
423            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
424            * </p>
425            *
426            * @param groupId the group ID
427            * @param start the lower bound of the range of d d m templates
428            * @param end the upper bound of the range of d d m templates (not inclusive)
429            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
430            * @return the ordered range of matching d d m templates
431            * @throws SystemException if a system exception occurred
432            */
433            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
434                    long groupId, int start, int end,
435                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
436                    throws com.liferay.portal.kernel.exception.SystemException;
437    
438            /**
439            * Returns the first d d m template in the ordered set where groupId = &#63;.
440            *
441            * @param groupId the group ID
442            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
443            * @return the first matching d d m template
444            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
445            * @throws SystemException if a system exception occurred
446            */
447            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First(
448                    long groupId,
449                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
450                    throws com.liferay.portal.kernel.exception.SystemException,
451                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
452    
453            /**
454            * Returns the first d d m template in the ordered set where groupId = &#63;.
455            *
456            * @param groupId the group ID
457            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
458            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
459            * @throws SystemException if a system exception occurred
460            */
461            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First(
462                    long groupId,
463                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
464                    throws com.liferay.portal.kernel.exception.SystemException;
465    
466            /**
467            * Returns the last d d m template in the ordered set where groupId = &#63;.
468            *
469            * @param groupId the group ID
470            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
471            * @return the last matching d d m template
472            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
473            * @throws SystemException if a system exception occurred
474            */
475            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last(
476                    long groupId,
477                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
478                    throws com.liferay.portal.kernel.exception.SystemException,
479                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
480    
481            /**
482            * Returns the last d d m template in the ordered set where groupId = &#63;.
483            *
484            * @param groupId the group ID
485            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
486            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
487            * @throws SystemException if a system exception occurred
488            */
489            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last(
490                    long groupId,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63;.
496            *
497            * @param templateId the primary key of the current d d m template
498            * @param groupId the group ID
499            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
500            * @return the previous, current, and next d d m template
501            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
502            * @throws SystemException if a system exception occurred
503            */
504            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext(
505                    long templateId, long groupId,
506                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507                    throws com.liferay.portal.kernel.exception.SystemException,
508                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
509    
510            /**
511            * Returns all the d d m templates that the user has permission to view where groupId = &#63;.
512            *
513            * @param groupId the group ID
514            * @return the matching d d m templates that the user has permission to view
515            * @throws SystemException if a system exception occurred
516            */
517            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
518                    long groupId)
519                    throws com.liferay.portal.kernel.exception.SystemException;
520    
521            /**
522            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63;.
523            *
524            * <p>
525            * 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.
526            * </p>
527            *
528            * @param groupId the group ID
529            * @param start the lower bound of the range of d d m templates
530            * @param end the upper bound of the range of d d m templates (not inclusive)
531            * @return the range of matching d d m templates that the user has permission to view
532            * @throws SystemException if a system exception occurred
533            */
534            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
535                    long groupId, int start, int end)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            /**
539            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63;.
540            *
541            * <p>
542            * 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.
543            * </p>
544            *
545            * @param groupId the group ID
546            * @param start the lower bound of the range of d d m templates
547            * @param end the upper bound of the range of d d m templates (not inclusive)
548            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
549            * @return the ordered range of matching d d m templates that the user has permission to view
550            * @throws SystemException if a system exception occurred
551            */
552            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
553                    long groupId, int start, int end,
554                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555                    throws com.liferay.portal.kernel.exception.SystemException;
556    
557            /**
558            * 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;.
559            *
560            * @param templateId the primary key of the current d d m template
561            * @param groupId the group ID
562            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
563            * @return the previous, current, and next d d m template
564            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
565            * @throws SystemException if a system exception occurred
566            */
567            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext(
568                    long templateId, long groupId,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException,
571                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
572    
573            /**
574            * Returns all the d d m templates where classPK = &#63;.
575            *
576            * @param classPK the class p k
577            * @return the matching d d m templates
578            * @throws SystemException if a system exception occurred
579            */
580            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
581                    long classPK)
582                    throws com.liferay.portal.kernel.exception.SystemException;
583    
584            /**
585            * Returns a range of all the d d m templates where classPK = &#63;.
586            *
587            * <p>
588            * 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.
589            * </p>
590            *
591            * @param classPK the class p k
592            * @param start the lower bound of the range of d d m templates
593            * @param end the upper bound of the range of d d m templates (not inclusive)
594            * @return the range of matching d d m templates
595            * @throws SystemException if a system exception occurred
596            */
597            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
598                    long classPK, int start, int end)
599                    throws com.liferay.portal.kernel.exception.SystemException;
600    
601            /**
602            * Returns an ordered range of all the d d m templates where classPK = &#63;.
603            *
604            * <p>
605            * 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.
606            * </p>
607            *
608            * @param classPK the class p k
609            * @param start the lower bound of the range of d d m templates
610            * @param end the upper bound of the range of d d m templates (not inclusive)
611            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
612            * @return the ordered range of matching d d m templates
613            * @throws SystemException if a system exception occurred
614            */
615            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
616                    long classPK, int start, int end,
617                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
618                    throws com.liferay.portal.kernel.exception.SystemException;
619    
620            /**
621            * Returns the first d d m template in the ordered set where classPK = &#63;.
622            *
623            * @param classPK the class p k
624            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
625            * @return the first matching d d m template
626            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
627            * @throws SystemException if a system exception occurred
628            */
629            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_First(
630                    long classPK,
631                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
632                    throws com.liferay.portal.kernel.exception.SystemException,
633                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
634    
635            /**
636            * Returns the first d d m template in the ordered set where classPK = &#63;.
637            *
638            * @param classPK the class p k
639            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
640            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
641            * @throws SystemException if a system exception occurred
642            */
643            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_First(
644                    long classPK,
645                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
646                    throws com.liferay.portal.kernel.exception.SystemException;
647    
648            /**
649            * Returns the last d d m template in the ordered set where classPK = &#63;.
650            *
651            * @param classPK the class p k
652            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
653            * @return the last matching d d m template
654            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
655            * @throws SystemException if a system exception occurred
656            */
657            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_Last(
658                    long classPK,
659                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660                    throws com.liferay.portal.kernel.exception.SystemException,
661                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
662    
663            /**
664            * Returns the last d d m template in the ordered set where classPK = &#63;.
665            *
666            * @param classPK the class p k
667            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
668            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
669            * @throws SystemException if a system exception occurred
670            */
671            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_Last(
672                    long classPK,
673                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
674                    throws com.liferay.portal.kernel.exception.SystemException;
675    
676            /**
677            * Returns the d d m templates before and after the current d d m template in the ordered set where classPK = &#63;.
678            *
679            * @param templateId the primary key of the current d d m template
680            * @param classPK the class p k
681            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
682            * @return the previous, current, and next d d m template
683            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
684            * @throws SystemException if a system exception occurred
685            */
686            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByClassPK_PrevAndNext(
687                    long templateId, long classPK,
688                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
689                    throws com.liferay.portal.kernel.exception.SystemException,
690                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
691    
692            /**
693            * Returns all the d d m templates where type = &#63;.
694            *
695            * @param type the type
696            * @return the matching d d m templates
697            * @throws SystemException if a system exception occurred
698            */
699            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
700                    java.lang.String type)
701                    throws com.liferay.portal.kernel.exception.SystemException;
702    
703            /**
704            * Returns a range of all the d d m templates where type = &#63;.
705            *
706            * <p>
707            * 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.
708            * </p>
709            *
710            * @param type the type
711            * @param start the lower bound of the range of d d m templates
712            * @param end the upper bound of the range of d d m templates (not inclusive)
713            * @return the range of matching d d m templates
714            * @throws SystemException if a system exception occurred
715            */
716            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
717                    java.lang.String type, int start, int end)
718                    throws com.liferay.portal.kernel.exception.SystemException;
719    
720            /**
721            * Returns an ordered range of all the d d m templates where type = &#63;.
722            *
723            * <p>
724            * 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.
725            * </p>
726            *
727            * @param type the type
728            * @param start the lower bound of the range of d d m templates
729            * @param end the upper bound of the range of d d m templates (not inclusive)
730            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
731            * @return the ordered range of matching d d m templates
732            * @throws SystemException if a system exception occurred
733            */
734            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
735                    java.lang.String type, int start, int end,
736                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
737                    throws com.liferay.portal.kernel.exception.SystemException;
738    
739            /**
740            * Returns the first d d m template in the ordered set where type = &#63;.
741            *
742            * @param type the type
743            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
744            * @return the first matching d d m template
745            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
746            * @throws SystemException if a system exception occurred
747            */
748            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First(
749                    java.lang.String type,
750                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
751                    throws com.liferay.portal.kernel.exception.SystemException,
752                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
753    
754            /**
755            * Returns the first d d m template in the ordered set where type = &#63;.
756            *
757            * @param type the type
758            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
759            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
760            * @throws SystemException if a system exception occurred
761            */
762            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First(
763                    java.lang.String type,
764                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
765                    throws com.liferay.portal.kernel.exception.SystemException;
766    
767            /**
768            * Returns the last d d m template in the ordered set where type = &#63;.
769            *
770            * @param type the type
771            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
772            * @return the last matching d d m template
773            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
774            * @throws SystemException if a system exception occurred
775            */
776            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last(
777                    java.lang.String type,
778                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
779                    throws com.liferay.portal.kernel.exception.SystemException,
780                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
781    
782            /**
783            * Returns the last d d m template in the ordered set where type = &#63;.
784            *
785            * @param type the type
786            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
787            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
788            * @throws SystemException if a system exception occurred
789            */
790            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last(
791                    java.lang.String type,
792                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
793                    throws com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Returns the d d m templates before and after the current d d m template in the ordered set where type = &#63;.
797            *
798            * @param templateId the primary key of the current d d m template
799            * @param type the type
800            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
801            * @return the previous, current, and next d d m template
802            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext(
806                    long templateId, java.lang.String type,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
810    
811            /**
812            * Returns all the d d m templates where language = &#63;.
813            *
814            * @param language the language
815            * @return the matching d d m templates
816            * @throws SystemException if a system exception occurred
817            */
818            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
819                    java.lang.String language)
820                    throws com.liferay.portal.kernel.exception.SystemException;
821    
822            /**
823            * Returns a range of all the d d m templates where language = &#63;.
824            *
825            * <p>
826            * 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.
827            * </p>
828            *
829            * @param language the language
830            * @param start the lower bound of the range of d d m templates
831            * @param end the upper bound of the range of d d m templates (not inclusive)
832            * @return the range of matching d d m templates
833            * @throws SystemException if a system exception occurred
834            */
835            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
836                    java.lang.String language, int start, int end)
837                    throws com.liferay.portal.kernel.exception.SystemException;
838    
839            /**
840            * Returns an ordered range of all the d d m templates where language = &#63;.
841            *
842            * <p>
843            * 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.
844            * </p>
845            *
846            * @param language the language
847            * @param start the lower bound of the range of d d m templates
848            * @param end the upper bound of the range of d d m templates (not inclusive)
849            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
850            * @return the ordered range of matching d d m templates
851            * @throws SystemException if a system exception occurred
852            */
853            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
854                    java.lang.String language, int start, int end,
855                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
856                    throws com.liferay.portal.kernel.exception.SystemException;
857    
858            /**
859            * Returns the first d d m template in the ordered set where language = &#63;.
860            *
861            * @param language the language
862            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
863            * @return the first matching d d m template
864            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
865            * @throws SystemException if a system exception occurred
866            */
867            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First(
868                    java.lang.String language,
869                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
870                    throws com.liferay.portal.kernel.exception.SystemException,
871                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
872    
873            /**
874            * Returns the first d d m template in the ordered set where language = &#63;.
875            *
876            * @param language the language
877            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
878            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
879            * @throws SystemException if a system exception occurred
880            */
881            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First(
882                    java.lang.String language,
883                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
884                    throws com.liferay.portal.kernel.exception.SystemException;
885    
886            /**
887            * Returns the last d d m template in the ordered set where language = &#63;.
888            *
889            * @param language the language
890            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
891            * @return the last matching d d m template
892            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
893            * @throws SystemException if a system exception occurred
894            */
895            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last(
896                    java.lang.String language,
897                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
898                    throws com.liferay.portal.kernel.exception.SystemException,
899                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
900    
901            /**
902            * Returns the last d d m template in the ordered set where language = &#63;.
903            *
904            * @param language the language
905            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
906            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last(
910                    java.lang.String language,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns the d d m templates before and after the current d d m template in the ordered set where language = &#63;.
916            *
917            * @param templateId the primary key of the current d d m template
918            * @param language the language
919            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
920            * @return the previous, current, and next d d m template
921            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
922            * @throws SystemException if a system exception occurred
923            */
924            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext(
925                    long templateId, java.lang.String language,
926                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
927                    throws com.liferay.portal.kernel.exception.SystemException,
928                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
929    
930            /**
931            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63;.
932            *
933            * @param groupId the group ID
934            * @param classNameId the class name ID
935            * @return the matching d d m templates
936            * @throws SystemException if a system exception occurred
937            */
938            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
939                    long groupId, long classNameId)
940                    throws com.liferay.portal.kernel.exception.SystemException;
941    
942            /**
943            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
944            *
945            * <p>
946            * 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.
947            * </p>
948            *
949            * @param groupId the group ID
950            * @param classNameId the class name ID
951            * @param start the lower bound of the range of d d m templates
952            * @param end the upper bound of the range of d d m templates (not inclusive)
953            * @return the range of matching d d m templates
954            * @throws SystemException if a system exception occurred
955            */
956            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
957                    long groupId, long classNameId, int start, int end)
958                    throws com.liferay.portal.kernel.exception.SystemException;
959    
960            /**
961            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
962            *
963            * <p>
964            * 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.
965            * </p>
966            *
967            * @param groupId the group ID
968            * @param classNameId the class name ID
969            * @param start the lower bound of the range of d d m templates
970            * @param end the upper bound of the range of d d m templates (not inclusive)
971            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
972            * @return the ordered range of matching d d m templates
973            * @throws SystemException if a system exception occurred
974            */
975            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
976                    long groupId, long classNameId, int start, int end,
977                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
978                    throws com.liferay.portal.kernel.exception.SystemException;
979    
980            /**
981            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
982            *
983            * @param groupId the group ID
984            * @param classNameId the class name ID
985            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
986            * @return the first matching d d m template
987            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
988            * @throws SystemException if a system exception occurred
989            */
990            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First(
991                    long groupId, long classNameId,
992                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
993                    throws com.liferay.portal.kernel.exception.SystemException,
994                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
995    
996            /**
997            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
998            *
999            * @param groupId the group ID
1000            * @param classNameId the class name ID
1001            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1002            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First(
1006                    long groupId, long classNameId,
1007                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1008                    throws com.liferay.portal.kernel.exception.SystemException;
1009    
1010            /**
1011            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1012            *
1013            * @param groupId the group ID
1014            * @param classNameId the class name ID
1015            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1016            * @return the last matching d d m template
1017            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1018            * @throws SystemException if a system exception occurred
1019            */
1020            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last(
1021                    long groupId, long classNameId,
1022                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1023                    throws com.liferay.portal.kernel.exception.SystemException,
1024                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1025    
1026            /**
1027            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1028            *
1029            * @param groupId the group ID
1030            * @param classNameId the class name ID
1031            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1032            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last(
1036                    long groupId, long classNameId,
1037                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1038                    throws com.liferay.portal.kernel.exception.SystemException;
1039    
1040            /**
1041            * 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;.
1042            *
1043            * @param templateId the primary key of the current d d m template
1044            * @param groupId the group ID
1045            * @param classNameId the class name ID
1046            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1047            * @return the previous, current, and next d d m template
1048            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1049            * @throws SystemException if a system exception occurred
1050            */
1051            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext(
1052                    long templateId, long groupId, long classNameId,
1053                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1054                    throws com.liferay.portal.kernel.exception.SystemException,
1055                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1056    
1057            /**
1058            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1059            *
1060            * @param groupId the group ID
1061            * @param classNameId the class name ID
1062            * @return the matching d d m templates that the user has permission to view
1063            * @throws SystemException if a system exception occurred
1064            */
1065            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1066                    long groupId, long classNameId)
1067                    throws com.liferay.portal.kernel.exception.SystemException;
1068    
1069            /**
1070            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1071            *
1072            * <p>
1073            * 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.
1074            * </p>
1075            *
1076            * @param groupId the group ID
1077            * @param classNameId the class name ID
1078            * @param start the lower bound of the range of d d m templates
1079            * @param end the upper bound of the range of d d m templates (not inclusive)
1080            * @return the range of matching d d m templates that the user has permission to view
1081            * @throws SystemException if a system exception occurred
1082            */
1083            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1084                    long groupId, long classNameId, int start, int end)
1085                    throws com.liferay.portal.kernel.exception.SystemException;
1086    
1087            /**
1088            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classNameId = &#63;.
1089            *
1090            * <p>
1091            * 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.
1092            * </p>
1093            *
1094            * @param groupId the group ID
1095            * @param classNameId the class name ID
1096            * @param start the lower bound of the range of d d m templates
1097            * @param end the upper bound of the range of d d m templates (not inclusive)
1098            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1099            * @return the ordered range of matching d d m templates that the user has permission to view
1100            * @throws SystemException if a system exception occurred
1101            */
1102            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1103                    long groupId, long classNameId, int start, int end,
1104                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1105                    throws com.liferay.portal.kernel.exception.SystemException;
1106    
1107            /**
1108            * 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;.
1109            *
1110            * @param templateId the primary key of the current d d m template
1111            * @param groupId the group ID
1112            * @param classNameId the class name ID
1113            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1114            * @return the previous, current, and next d d m template
1115            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1116            * @throws SystemException if a system exception occurred
1117            */
1118            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext(
1119                    long templateId, long groupId, long classNameId,
1120                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1121                    throws com.liferay.portal.kernel.exception.SystemException,
1122                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1123    
1124            /**
1125            * 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.
1126            *
1127            * @param groupId the group ID
1128            * @param templateKey the template key
1129            * @return the matching d d m template
1130            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1131            * @throws SystemException if a system exception occurred
1132            */
1133            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_T(
1134                    long groupId, java.lang.String templateKey)
1135                    throws com.liferay.portal.kernel.exception.SystemException,
1136                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1137    
1138            /**
1139            * 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.
1140            *
1141            * @param groupId the group ID
1142            * @param templateKey the template key
1143            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1144            * @throws SystemException if a system exception occurred
1145            */
1146            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_T(
1147                    long groupId, java.lang.String templateKey)
1148                    throws com.liferay.portal.kernel.exception.SystemException;
1149    
1150            /**
1151            * 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.
1152            *
1153            * @param groupId the group ID
1154            * @param templateKey the template key
1155            * @param retrieveFromCache whether to use the finder cache
1156            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1157            * @throws SystemException if a system exception occurred
1158            */
1159            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_T(
1160                    long groupId, java.lang.String templateKey, boolean retrieveFromCache)
1161                    throws com.liferay.portal.kernel.exception.SystemException;
1162    
1163            /**
1164            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1165            *
1166            * @param groupId the group ID
1167            * @param classNameId the class name ID
1168            * @param classPK the class p k
1169            * @return the matching d d m templates
1170            * @throws SystemException if a system exception occurred
1171            */
1172            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1173                    long groupId, long classNameId, long classPK)
1174                    throws com.liferay.portal.kernel.exception.SystemException;
1175    
1176            /**
1177            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1178            *
1179            * <p>
1180            * 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.
1181            * </p>
1182            *
1183            * @param groupId the group ID
1184            * @param classNameId the class name ID
1185            * @param classPK the class p k
1186            * @param start the lower bound of the range of d d m templates
1187            * @param end the upper bound of the range of d d m templates (not inclusive)
1188            * @return the range of matching d d m templates
1189            * @throws SystemException if a system exception occurred
1190            */
1191            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1192                    long groupId, long classNameId, long classPK, int start, int end)
1193                    throws com.liferay.portal.kernel.exception.SystemException;
1194    
1195            /**
1196            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1197            *
1198            * <p>
1199            * 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.
1200            * </p>
1201            *
1202            * @param groupId the group ID
1203            * @param classNameId the class name ID
1204            * @param classPK the class p k
1205            * @param start the lower bound of the range of d d m templates
1206            * @param end the upper bound of the range of d d m templates (not inclusive)
1207            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1208            * @return the ordered range of matching d d m templates
1209            * @throws SystemException if a system exception occurred
1210            */
1211            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1212                    long groupId, long classNameId, long classPK, int start, int end,
1213                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1214                    throws com.liferay.portal.kernel.exception.SystemException;
1215    
1216            /**
1217            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1218            *
1219            * @param groupId the group ID
1220            * @param classNameId the class name ID
1221            * @param classPK the class p k
1222            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1223            * @return the first matching d d m template
1224            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1225            * @throws SystemException if a system exception occurred
1226            */
1227            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First(
1228                    long groupId, long classNameId, long classPK,
1229                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1230                    throws com.liferay.portal.kernel.exception.SystemException,
1231                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1232    
1233            /**
1234            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1235            *
1236            * @param groupId the group ID
1237            * @param classNameId the class name ID
1238            * @param classPK the class p k
1239            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1240            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1241            * @throws SystemException if a system exception occurred
1242            */
1243            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First(
1244                    long groupId, long classNameId, long classPK,
1245                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1246                    throws com.liferay.portal.kernel.exception.SystemException;
1247    
1248            /**
1249            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1250            *
1251            * @param groupId the group ID
1252            * @param classNameId the class name ID
1253            * @param classPK the class p k
1254            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1255            * @return the last matching d d m template
1256            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1257            * @throws SystemException if a system exception occurred
1258            */
1259            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last(
1260                    long groupId, long classNameId, long classPK,
1261                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1262                    throws com.liferay.portal.kernel.exception.SystemException,
1263                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1264    
1265            /**
1266            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1267            *
1268            * @param groupId the group ID
1269            * @param classNameId the class name ID
1270            * @param classPK the class p k
1271            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1272            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1273            * @throws SystemException if a system exception occurred
1274            */
1275            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last(
1276                    long groupId, long classNameId, long classPK,
1277                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1278                    throws com.liferay.portal.kernel.exception.SystemException;
1279    
1280            /**
1281            * 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;.
1282            *
1283            * @param templateId the primary key of the current d d m template
1284            * @param groupId the group ID
1285            * @param classNameId the class name ID
1286            * @param classPK the class p k
1287            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1288            * @return the previous, current, and next d d m template
1289            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1290            * @throws SystemException if a system exception occurred
1291            */
1292            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext(
1293                    long templateId, long groupId, long classNameId, long classPK,
1294                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1295                    throws com.liferay.portal.kernel.exception.SystemException,
1296                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1297    
1298            /**
1299            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1300            *
1301            * @param groupId the group ID
1302            * @param classNameId the class name ID
1303            * @param classPK the class p k
1304            * @return the matching d d m templates that the user has permission to view
1305            * @throws SystemException if a system exception occurred
1306            */
1307            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1308                    long groupId, long classNameId, long classPK)
1309                    throws com.liferay.portal.kernel.exception.SystemException;
1310    
1311            /**
1312            * 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;.
1313            *
1314            * <p>
1315            * 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.
1316            * </p>
1317            *
1318            * @param groupId the group ID
1319            * @param classNameId the class name ID
1320            * @param classPK the class p k
1321            * @param start the lower bound of the range of d d m templates
1322            * @param end the upper bound of the range of d d m templates (not inclusive)
1323            * @return the range of matching d d m templates that the user has permission to view
1324            * @throws SystemException if a system exception occurred
1325            */
1326            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1327                    long groupId, long classNameId, long classPK, int start, int end)
1328                    throws com.liferay.portal.kernel.exception.SystemException;
1329    
1330            /**
1331            * 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;.
1332            *
1333            * <p>
1334            * 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.
1335            * </p>
1336            *
1337            * @param groupId the group ID
1338            * @param classNameId the class name ID
1339            * @param classPK the class p k
1340            * @param start the lower bound of the range of d d m templates
1341            * @param end the upper bound of the range of d d m templates (not inclusive)
1342            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1343            * @return the ordered range of matching d d m templates that the user has permission to view
1344            * @throws SystemException if a system exception occurred
1345            */
1346            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1347                    long groupId, long classNameId, long classPK, int start, int end,
1348                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1349                    throws com.liferay.portal.kernel.exception.SystemException;
1350    
1351            /**
1352            * 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;.
1353            *
1354            * @param templateId the primary key of the current d d m template
1355            * @param groupId the group ID
1356            * @param classNameId the class name ID
1357            * @param classPK the class p k
1358            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1359            * @return the previous, current, and next d d m template
1360            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1361            * @throws SystemException if a system exception occurred
1362            */
1363            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext(
1364                    long templateId, long groupId, long classNameId, long classPK,
1365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1366                    throws com.liferay.portal.kernel.exception.SystemException,
1367                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1368    
1369            /**
1370            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1371            *
1372            * @param classNameId the class name ID
1373            * @param classPK the class p k
1374            * @param type the type
1375            * @return the matching d d m templates
1376            * @throws SystemException if a system exception occurred
1377            */
1378            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1379                    long classNameId, long classPK, java.lang.String type)
1380                    throws com.liferay.portal.kernel.exception.SystemException;
1381    
1382            /**
1383            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1384            *
1385            * <p>
1386            * 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.
1387            * </p>
1388            *
1389            * @param classNameId the class name ID
1390            * @param classPK the class p k
1391            * @param type the type
1392            * @param start the lower bound of the range of d d m templates
1393            * @param end the upper bound of the range of d d m templates (not inclusive)
1394            * @return the range of matching d d m templates
1395            * @throws SystemException if a system exception occurred
1396            */
1397            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1398                    long classNameId, long classPK, java.lang.String type, int start,
1399                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1400    
1401            /**
1402            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1403            *
1404            * <p>
1405            * 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.
1406            * </p>
1407            *
1408            * @param classNameId the class name ID
1409            * @param classPK the class p k
1410            * @param type the type
1411            * @param start the lower bound of the range of d d m templates
1412            * @param end the upper bound of the range of d d m templates (not inclusive)
1413            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1414            * @return the ordered range of matching d d m templates
1415            * @throws SystemException if a system exception occurred
1416            */
1417            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1418                    long classNameId, long classPK, java.lang.String type, int start,
1419                    int end,
1420                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1421                    throws com.liferay.portal.kernel.exception.SystemException;
1422    
1423            /**
1424            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1425            *
1426            * @param classNameId the class name ID
1427            * @param classPK the class p k
1428            * @param type the type
1429            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1430            * @return the first matching d d m template
1431            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1432            * @throws SystemException if a system exception occurred
1433            */
1434            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First(
1435                    long classNameId, long classPK, java.lang.String type,
1436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1437                    throws com.liferay.portal.kernel.exception.SystemException,
1438                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1439    
1440            /**
1441            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1442            *
1443            * @param classNameId the class name ID
1444            * @param classPK the class p k
1445            * @param type the type
1446            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1447            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1448            * @throws SystemException if a system exception occurred
1449            */
1450            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First(
1451                    long classNameId, long classPK, java.lang.String type,
1452                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1453                    throws com.liferay.portal.kernel.exception.SystemException;
1454    
1455            /**
1456            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1457            *
1458            * @param classNameId the class name ID
1459            * @param classPK the class p k
1460            * @param type the type
1461            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1462            * @return the last matching d d m template
1463            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1464            * @throws SystemException if a system exception occurred
1465            */
1466            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last(
1467                    long classNameId, long classPK, java.lang.String type,
1468                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1469                    throws com.liferay.portal.kernel.exception.SystemException,
1470                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1471    
1472            /**
1473            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1474            *
1475            * @param classNameId the class name ID
1476            * @param classPK the class p k
1477            * @param type the type
1478            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1479            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1480            * @throws SystemException if a system exception occurred
1481            */
1482            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last(
1483                    long classNameId, long classPK, java.lang.String type,
1484                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1485                    throws com.liferay.portal.kernel.exception.SystemException;
1486    
1487            /**
1488            * 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;.
1489            *
1490            * @param templateId the primary key of the current d d m template
1491            * @param classNameId the class name ID
1492            * @param classPK the class p k
1493            * @param type the type
1494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1495            * @return the previous, current, and next d d m template
1496            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1497            * @throws SystemException if a system exception occurred
1498            */
1499            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext(
1500                    long templateId, long classNameId, long classPK, java.lang.String type,
1501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1502                    throws com.liferay.portal.kernel.exception.SystemException,
1503                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1504    
1505            /**
1506            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1507            *
1508            * @param classNameId the class name ID
1509            * @param classPK the class p k
1510            * @param type the type
1511            * @param mode the mode
1512            * @return the matching d d m templates
1513            * @throws SystemException if a system exception occurred
1514            */
1515            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1516                    long classNameId, long classPK, java.lang.String type,
1517                    java.lang.String mode)
1518                    throws com.liferay.portal.kernel.exception.SystemException;
1519    
1520            /**
1521            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1522            *
1523            * <p>
1524            * 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.
1525            * </p>
1526            *
1527            * @param classNameId the class name ID
1528            * @param classPK the class p k
1529            * @param type the type
1530            * @param mode the mode
1531            * @param start the lower bound of the range of d d m templates
1532            * @param end the upper bound of the range of d d m templates (not inclusive)
1533            * @return the range of matching d d m templates
1534            * @throws SystemException if a system exception occurred
1535            */
1536            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1537                    long classNameId, long classPK, java.lang.String type,
1538                    java.lang.String mode, int start, int end)
1539                    throws com.liferay.portal.kernel.exception.SystemException;
1540    
1541            /**
1542            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1543            *
1544            * <p>
1545            * 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.
1546            * </p>
1547            *
1548            * @param classNameId the class name ID
1549            * @param classPK the class p k
1550            * @param type the type
1551            * @param mode the mode
1552            * @param start the lower bound of the range of d d m templates
1553            * @param end the upper bound of the range of d d m templates (not inclusive)
1554            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1555            * @return the ordered range of matching d d m templates
1556            * @throws SystemException if a system exception occurred
1557            */
1558            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T_M(
1559                    long classNameId, long classPK, java.lang.String type,
1560                    java.lang.String mode, int start, int end,
1561                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1562                    throws com.liferay.portal.kernel.exception.SystemException;
1563    
1564            /**
1565            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1566            *
1567            * @param classNameId the class name ID
1568            * @param classPK the class p k
1569            * @param type the type
1570            * @param mode the mode
1571            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1572            * @return the first matching d d m template
1573            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1574            * @throws SystemException if a system exception occurred
1575            */
1576            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_M_First(
1577                    long classNameId, long classPK, java.lang.String type,
1578                    java.lang.String mode,
1579                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1580                    throws com.liferay.portal.kernel.exception.SystemException,
1581                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1582    
1583            /**
1584            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1585            *
1586            * @param classNameId the class name ID
1587            * @param classPK the class p k
1588            * @param type the type
1589            * @param mode the mode
1590            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1591            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1592            * @throws SystemException if a system exception occurred
1593            */
1594            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_M_First(
1595                    long classNameId, long classPK, java.lang.String type,
1596                    java.lang.String mode,
1597                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1598                    throws com.liferay.portal.kernel.exception.SystemException;
1599    
1600            /**
1601            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1602            *
1603            * @param classNameId the class name ID
1604            * @param classPK the class p k
1605            * @param type the type
1606            * @param mode the mode
1607            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1608            * @return the last matching d d m template
1609            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1610            * @throws SystemException if a system exception occurred
1611            */
1612            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_M_Last(
1613                    long classNameId, long classPK, java.lang.String type,
1614                    java.lang.String mode,
1615                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1616                    throws com.liferay.portal.kernel.exception.SystemException,
1617                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1618    
1619            /**
1620            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1621            *
1622            * @param classNameId the class name ID
1623            * @param classPK the class p k
1624            * @param type the type
1625            * @param mode the mode
1626            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1627            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1628            * @throws SystemException if a system exception occurred
1629            */
1630            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_M_Last(
1631                    long classNameId, long classPK, java.lang.String type,
1632                    java.lang.String mode,
1633                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1634                    throws com.liferay.portal.kernel.exception.SystemException;
1635    
1636            /**
1637            * 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;.
1638            *
1639            * @param templateId the primary key of the current d d m template
1640            * @param classNameId the class name ID
1641            * @param classPK the class p k
1642            * @param type the type
1643            * @param mode the mode
1644            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1645            * @return the previous, current, and next d d m template
1646            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1647            * @throws SystemException if a system exception occurred
1648            */
1649            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_M_PrevAndNext(
1650                    long templateId, long classNameId, long classPK, java.lang.String type,
1651                    java.lang.String mode,
1652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1653                    throws com.liferay.portal.kernel.exception.SystemException,
1654                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1655    
1656            /**
1657            * Returns all the d d m templates.
1658            *
1659            * @return the d d m templates
1660            * @throws SystemException if a system exception occurred
1661            */
1662            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
1663                    throws com.liferay.portal.kernel.exception.SystemException;
1664    
1665            /**
1666            * Returns a range of all the d d m templates.
1667            *
1668            * <p>
1669            * 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.
1670            * </p>
1671            *
1672            * @param start the lower bound of the range of d d m templates
1673            * @param end the upper bound of the range of d d m templates (not inclusive)
1674            * @return the range of d d m templates
1675            * @throws SystemException if a system exception occurred
1676            */
1677            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
1678                    int start, int end)
1679                    throws com.liferay.portal.kernel.exception.SystemException;
1680    
1681            /**
1682            * Returns an ordered range of all the d d m templates.
1683            *
1684            * <p>
1685            * 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.
1686            * </p>
1687            *
1688            * @param start the lower bound of the range of d d m templates
1689            * @param end the upper bound of the range of d d m templates (not inclusive)
1690            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1691            * @return the ordered range of d d m templates
1692            * @throws SystemException if a system exception occurred
1693            */
1694            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
1695                    int start, int end,
1696                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1697                    throws com.liferay.portal.kernel.exception.SystemException;
1698    
1699            /**
1700            * Removes all the d d m templates where uuid = &#63; from the database.
1701            *
1702            * @param uuid the uuid
1703            * @throws SystemException if a system exception occurred
1704            */
1705            public void removeByUuid(java.lang.String uuid)
1706                    throws com.liferay.portal.kernel.exception.SystemException;
1707    
1708            /**
1709            * Removes the d d m template where uuid = &#63; and groupId = &#63; from the database.
1710            *
1711            * @param uuid the uuid
1712            * @param groupId the group ID
1713            * @return the d d m template that was removed
1714            * @throws SystemException if a system exception occurred
1715            */
1716            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G(
1717                    java.lang.String uuid, long groupId)
1718                    throws com.liferay.portal.kernel.exception.SystemException,
1719                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1720    
1721            /**
1722            * Removes all the d d m templates where uuid = &#63; and companyId = &#63; from the database.
1723            *
1724            * @param uuid the uuid
1725            * @param companyId the company ID
1726            * @throws SystemException if a system exception occurred
1727            */
1728            public void removeByUuid_C(java.lang.String uuid, long companyId)
1729                    throws com.liferay.portal.kernel.exception.SystemException;
1730    
1731            /**
1732            * Removes all the d d m templates where groupId = &#63; from the database.
1733            *
1734            * @param groupId the group ID
1735            * @throws SystemException if a system exception occurred
1736            */
1737            public void removeByGroupId(long groupId)
1738                    throws com.liferay.portal.kernel.exception.SystemException;
1739    
1740            /**
1741            * Removes all the d d m templates where classPK = &#63; from the database.
1742            *
1743            * @param classPK the class p k
1744            * @throws SystemException if a system exception occurred
1745            */
1746            public void removeByClassPK(long classPK)
1747                    throws com.liferay.portal.kernel.exception.SystemException;
1748    
1749            /**
1750            * Removes all the d d m templates where type = &#63; from the database.
1751            *
1752            * @param type the type
1753            * @throws SystemException if a system exception occurred
1754            */
1755            public void removeByType(java.lang.String type)
1756                    throws com.liferay.portal.kernel.exception.SystemException;
1757    
1758            /**
1759            * Removes all the d d m templates where language = &#63; from the database.
1760            *
1761            * @param language the language
1762            * @throws SystemException if a system exception occurred
1763            */
1764            public void removeByLanguage(java.lang.String language)
1765                    throws com.liferay.portal.kernel.exception.SystemException;
1766    
1767            /**
1768            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; from the database.
1769            *
1770            * @param groupId the group ID
1771            * @param classNameId the class name ID
1772            * @throws SystemException if a system exception occurred
1773            */
1774            public void removeByG_C(long groupId, long classNameId)
1775                    throws com.liferay.portal.kernel.exception.SystemException;
1776    
1777            /**
1778            * Removes the d d m template where groupId = &#63; and templateKey = &#63; from the database.
1779            *
1780            * @param groupId the group ID
1781            * @param templateKey the template key
1782            * @return the d d m template that was removed
1783            * @throws SystemException if a system exception occurred
1784            */
1785            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_T(
1786                    long groupId, java.lang.String templateKey)
1787                    throws com.liferay.portal.kernel.exception.SystemException,
1788                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1789    
1790            /**
1791            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1792            *
1793            * @param groupId the group ID
1794            * @param classNameId the class name ID
1795            * @param classPK the class p k
1796            * @throws SystemException if a system exception occurred
1797            */
1798            public void removeByG_C_C(long groupId, long classNameId, long classPK)
1799                    throws com.liferay.portal.kernel.exception.SystemException;
1800    
1801            /**
1802            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
1803            *
1804            * @param classNameId the class name ID
1805            * @param classPK the class p k
1806            * @param type the type
1807            * @throws SystemException if a system exception occurred
1808            */
1809            public void removeByC_C_T(long classNameId, long classPK,
1810                    java.lang.String type)
1811                    throws com.liferay.portal.kernel.exception.SystemException;
1812    
1813            /**
1814            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63; from the database.
1815            *
1816            * @param classNameId the class name ID
1817            * @param classPK the class p k
1818            * @param type the type
1819            * @param mode the mode
1820            * @throws SystemException if a system exception occurred
1821            */
1822            public void removeByC_C_T_M(long classNameId, long classPK,
1823                    java.lang.String type, java.lang.String mode)
1824                    throws com.liferay.portal.kernel.exception.SystemException;
1825    
1826            /**
1827            * Removes all the d d m templates from the database.
1828            *
1829            * @throws SystemException if a system exception occurred
1830            */
1831            public void removeAll()
1832                    throws com.liferay.portal.kernel.exception.SystemException;
1833    
1834            /**
1835            * Returns the number of d d m templates where uuid = &#63;.
1836            *
1837            * @param uuid the uuid
1838            * @return the number of matching d d m templates
1839            * @throws SystemException if a system exception occurred
1840            */
1841            public int countByUuid(java.lang.String uuid)
1842                    throws com.liferay.portal.kernel.exception.SystemException;
1843    
1844            /**
1845            * Returns the number of d d m templates where uuid = &#63; and groupId = &#63;.
1846            *
1847            * @param uuid the uuid
1848            * @param groupId the group ID
1849            * @return the number of matching d d m templates
1850            * @throws SystemException if a system exception occurred
1851            */
1852            public int countByUUID_G(java.lang.String uuid, long groupId)
1853                    throws com.liferay.portal.kernel.exception.SystemException;
1854    
1855            /**
1856            * Returns the number of d d m templates where uuid = &#63; and companyId = &#63;.
1857            *
1858            * @param uuid the uuid
1859            * @param companyId the company ID
1860            * @return the number of matching d d m templates
1861            * @throws SystemException if a system exception occurred
1862            */
1863            public int countByUuid_C(java.lang.String uuid, long companyId)
1864                    throws com.liferay.portal.kernel.exception.SystemException;
1865    
1866            /**
1867            * Returns the number of d d m templates where groupId = &#63;.
1868            *
1869            * @param groupId the group ID
1870            * @return the number of matching d d m templates
1871            * @throws SystemException if a system exception occurred
1872            */
1873            public int countByGroupId(long groupId)
1874                    throws com.liferay.portal.kernel.exception.SystemException;
1875    
1876            /**
1877            * Returns the number of d d m templates that the user has permission to view where groupId = &#63;.
1878            *
1879            * @param groupId the group ID
1880            * @return the number of matching d d m templates that the user has permission to view
1881            * @throws SystemException if a system exception occurred
1882            */
1883            public int filterCountByGroupId(long groupId)
1884                    throws com.liferay.portal.kernel.exception.SystemException;
1885    
1886            /**
1887            * Returns the number of d d m templates where classPK = &#63;.
1888            *
1889            * @param classPK the class p k
1890            * @return the number of matching d d m templates
1891            * @throws SystemException if a system exception occurred
1892            */
1893            public int countByClassPK(long classPK)
1894                    throws com.liferay.portal.kernel.exception.SystemException;
1895    
1896            /**
1897            * Returns the number of d d m templates where type = &#63;.
1898            *
1899            * @param type the type
1900            * @return the number of matching d d m templates
1901            * @throws SystemException if a system exception occurred
1902            */
1903            public int countByType(java.lang.String type)
1904                    throws com.liferay.portal.kernel.exception.SystemException;
1905    
1906            /**
1907            * Returns the number of d d m templates where language = &#63;.
1908            *
1909            * @param language the language
1910            * @return the number of matching d d m templates
1911            * @throws SystemException if a system exception occurred
1912            */
1913            public int countByLanguage(java.lang.String language)
1914                    throws com.liferay.portal.kernel.exception.SystemException;
1915    
1916            /**
1917            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63;.
1918            *
1919            * @param groupId the group ID
1920            * @param classNameId the class name ID
1921            * @return the number of matching d d m templates
1922            * @throws SystemException if a system exception occurred
1923            */
1924            public int countByG_C(long groupId, long classNameId)
1925                    throws com.liferay.portal.kernel.exception.SystemException;
1926    
1927            /**
1928            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1929            *
1930            * @param groupId the group ID
1931            * @param classNameId the class name ID
1932            * @return the number of matching d d m templates that the user has permission to view
1933            * @throws SystemException if a system exception occurred
1934            */
1935            public int filterCountByG_C(long groupId, long classNameId)
1936                    throws com.liferay.portal.kernel.exception.SystemException;
1937    
1938            /**
1939            * Returns the number of d d m templates where groupId = &#63; and templateKey = &#63;.
1940            *
1941            * @param groupId the group ID
1942            * @param templateKey the template key
1943            * @return the number of matching d d m templates
1944            * @throws SystemException if a system exception occurred
1945            */
1946            public int countByG_T(long groupId, java.lang.String templateKey)
1947                    throws com.liferay.portal.kernel.exception.SystemException;
1948    
1949            /**
1950            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1951            *
1952            * @param groupId the group ID
1953            * @param classNameId the class name ID
1954            * @param classPK the class p k
1955            * @return the number of matching d d m templates
1956            * @throws SystemException if a system exception occurred
1957            */
1958            public int countByG_C_C(long groupId, long classNameId, long classPK)
1959                    throws com.liferay.portal.kernel.exception.SystemException;
1960    
1961            /**
1962            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1963            *
1964            * @param groupId the group ID
1965            * @param classNameId the class name ID
1966            * @param classPK the class p k
1967            * @return the number of matching d d m templates that the user has permission to view
1968            * @throws SystemException if a system exception occurred
1969            */
1970            public int filterCountByG_C_C(long groupId, long classNameId, long classPK)
1971                    throws com.liferay.portal.kernel.exception.SystemException;
1972    
1973            /**
1974            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1975            *
1976            * @param classNameId the class name ID
1977            * @param classPK the class p k
1978            * @param type the type
1979            * @return the number of matching d d m templates
1980            * @throws SystemException if a system exception occurred
1981            */
1982            public int countByC_C_T(long classNameId, long classPK,
1983                    java.lang.String type)
1984                    throws com.liferay.portal.kernel.exception.SystemException;
1985    
1986            /**
1987            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
1988            *
1989            * @param classNameId the class name ID
1990            * @param classPK the class p k
1991            * @param type the type
1992            * @param mode the mode
1993            * @return the number of matching d d m templates
1994            * @throws SystemException if a system exception occurred
1995            */
1996            public int countByC_C_T_M(long classNameId, long classPK,
1997                    java.lang.String type, java.lang.String mode)
1998                    throws com.liferay.portal.kernel.exception.SystemException;
1999    
2000            /**
2001            * Returns the number of d d m templates.
2002            *
2003            * @return the number of d d m templates
2004            * @throws SystemException if a system exception occurred
2005            */
2006            public int countAll()
2007                    throws com.liferay.portal.kernel.exception.SystemException;
2008    }