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