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 all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1380            *
1381            * @param groupId the group ID
1382            * @param classNameId the class name ID
1383            * @param classPK the class p k
1384            * @return the matching d d m templates
1385            * @throws SystemException if a system exception occurred
1386            */
1387            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1388                    long groupId, long classNameId, long classPK)
1389                    throws com.liferay.portal.kernel.exception.SystemException;
1390    
1391            /**
1392            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1393            *
1394            * <p>
1395            * 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.
1396            * </p>
1397            *
1398            * @param groupId the group ID
1399            * @param classNameId the class name ID
1400            * @param classPK the class p k
1401            * @param start the lower bound of the range of d d m templates
1402            * @param end the upper bound of the range of d d m templates (not inclusive)
1403            * @return the range of matching d d m templates
1404            * @throws SystemException if a system exception occurred
1405            */
1406            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1407                    long groupId, long classNameId, long classPK, int start, int end)
1408                    throws com.liferay.portal.kernel.exception.SystemException;
1409    
1410            /**
1411            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1412            *
1413            * <p>
1414            * 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.
1415            * </p>
1416            *
1417            * @param groupId the group ID
1418            * @param classNameId the class name ID
1419            * @param classPK the class p k
1420            * @param start the lower bound of the range of d d m templates
1421            * @param end the upper bound of the range of d d m templates (not inclusive)
1422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1423            * @return the ordered range of matching d d m templates
1424            * @throws SystemException if a system exception occurred
1425            */
1426            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1427                    long groupId, long classNameId, long classPK, int start, int end,
1428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1429                    throws com.liferay.portal.kernel.exception.SystemException;
1430    
1431            /**
1432            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1433            *
1434            * @param groupId the group ID
1435            * @param classNameId the class name ID
1436            * @param classPK the class p k
1437            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1438            * @return the first matching d d m template
1439            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1440            * @throws SystemException if a system exception occurred
1441            */
1442            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First(
1443                    long groupId, long classNameId, long classPK,
1444                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1445                    throws com.liferay.portal.kernel.exception.SystemException,
1446                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1447    
1448            /**
1449            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1450            *
1451            * @param groupId the group ID
1452            * @param classNameId the class name ID
1453            * @param classPK the class p k
1454            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1455            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1456            * @throws SystemException if a system exception occurred
1457            */
1458            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First(
1459                    long groupId, long classNameId, long classPK,
1460                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1461                    throws com.liferay.portal.kernel.exception.SystemException;
1462    
1463            /**
1464            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1465            *
1466            * @param groupId the group ID
1467            * @param classNameId the class name ID
1468            * @param classPK the class p k
1469            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1470            * @return the last matching d d m template
1471            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1472            * @throws SystemException if a system exception occurred
1473            */
1474            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last(
1475                    long groupId, long classNameId, long classPK,
1476                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1477                    throws com.liferay.portal.kernel.exception.SystemException,
1478                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1479    
1480            /**
1481            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1482            *
1483            * @param groupId the group ID
1484            * @param classNameId the class name ID
1485            * @param classPK the class p k
1486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1487            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1488            * @throws SystemException if a system exception occurred
1489            */
1490            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last(
1491                    long groupId, long classNameId, long classPK,
1492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1493                    throws com.liferay.portal.kernel.exception.SystemException;
1494    
1495            /**
1496            * 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;.
1497            *
1498            * @param templateId the primary key of the current d d m template
1499            * @param groupId the group ID
1500            * @param classNameId the class name ID
1501            * @param classPK the class p k
1502            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1503            * @return the previous, current, and next d d m template
1504            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1505            * @throws SystemException if a system exception occurred
1506            */
1507            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext(
1508                    long templateId, long groupId, long classNameId, long classPK,
1509                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1510                    throws com.liferay.portal.kernel.exception.SystemException,
1511                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1512    
1513            /**
1514            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1515            *
1516            * @param groupId the group ID
1517            * @param classNameId the class name ID
1518            * @param classPK the class p k
1519            * @return the matching d d m templates that the user has permission to view
1520            * @throws SystemException if a system exception occurred
1521            */
1522            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1523                    long groupId, long classNameId, long classPK)
1524                    throws com.liferay.portal.kernel.exception.SystemException;
1525    
1526            /**
1527            * 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;.
1528            *
1529            * <p>
1530            * 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.
1531            * </p>
1532            *
1533            * @param groupId the group ID
1534            * @param classNameId the class name ID
1535            * @param classPK the class p k
1536            * @param start the lower bound of the range of d d m templates
1537            * @param end the upper bound of the range of d d m templates (not inclusive)
1538            * @return the range of matching d d m templates that the user has permission to view
1539            * @throws SystemException if a system exception occurred
1540            */
1541            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1542                    long groupId, long classNameId, long classPK, int start, int end)
1543                    throws com.liferay.portal.kernel.exception.SystemException;
1544    
1545            /**
1546            * 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;.
1547            *
1548            * <p>
1549            * 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.
1550            * </p>
1551            *
1552            * @param groupId the group ID
1553            * @param classNameId the class name ID
1554            * @param classPK the class p k
1555            * @param start the lower bound of the range of d d m templates
1556            * @param end the upper bound of the range of d d m templates (not inclusive)
1557            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1558            * @return the ordered range of matching d d m templates that the user has permission to view
1559            * @throws SystemException if a system exception occurred
1560            */
1561            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1562                    long groupId, long classNameId, long classPK, int start, int end,
1563                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1564                    throws com.liferay.portal.kernel.exception.SystemException;
1565    
1566            /**
1567            * 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;.
1568            *
1569            * @param templateId the primary key of the current d d m template
1570            * @param groupId the group ID
1571            * @param classNameId the class name ID
1572            * @param classPK the class p k
1573            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1574            * @return the previous, current, and next d d m template
1575            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1576            * @throws SystemException if a system exception occurred
1577            */
1578            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext(
1579                    long templateId, long groupId, long classNameId, long classPK,
1580                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1581                    throws com.liferay.portal.kernel.exception.SystemException,
1582                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1583    
1584            /**
1585            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1586            *
1587            * @param groupId the group ID
1588            * @param classNameId the class name ID
1589            * @param classPK the class p k
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public void removeByG_C_C(long groupId, long classNameId, long classPK)
1593                    throws com.liferay.portal.kernel.exception.SystemException;
1594    
1595            /**
1596            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1597            *
1598            * @param groupId the group ID
1599            * @param classNameId the class name ID
1600            * @param classPK the class p k
1601            * @return the number of matching d d m templates
1602            * @throws SystemException if a system exception occurred
1603            */
1604            public int countByG_C_C(long groupId, long classNameId, long classPK)
1605                    throws com.liferay.portal.kernel.exception.SystemException;
1606    
1607            /**
1608            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1609            *
1610            * @param groupId the group ID
1611            * @param classNameId the class name ID
1612            * @param classPK the class p k
1613            * @return the number of matching d d m templates that the user has permission to view
1614            * @throws SystemException if a system exception occurred
1615            */
1616            public int filterCountByG_C_C(long groupId, long classNameId, long classPK)
1617                    throws com.liferay.portal.kernel.exception.SystemException;
1618    
1619            /**
1620            * Returns the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found.
1621            *
1622            * @param groupId the group ID
1623            * @param classNameId the class name ID
1624            * @param templateKey the template key
1625            * @return the matching d d m template
1626            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1627            * @throws SystemException if a system exception occurred
1628            */
1629            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_T(
1630                    long groupId, long classNameId, java.lang.String templateKey)
1631                    throws com.liferay.portal.kernel.exception.SystemException,
1632                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1633    
1634            /**
1635            * Returns the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1636            *
1637            * @param groupId the group ID
1638            * @param classNameId the class name ID
1639            * @param templateKey the template key
1640            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1641            * @throws SystemException if a system exception occurred
1642            */
1643            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
1644                    long groupId, long classNameId, java.lang.String templateKey)
1645                    throws com.liferay.portal.kernel.exception.SystemException;
1646    
1647            /**
1648            * Returns the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1649            *
1650            * @param groupId the group ID
1651            * @param classNameId the class name ID
1652            * @param templateKey the template key
1653            * @param retrieveFromCache whether to use the finder cache
1654            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1655            * @throws SystemException if a system exception occurred
1656            */
1657            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
1658                    long groupId, long classNameId, java.lang.String templateKey,
1659                    boolean retrieveFromCache)
1660                    throws com.liferay.portal.kernel.exception.SystemException;
1661    
1662            /**
1663            * Removes the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; from the database.
1664            *
1665            * @param groupId the group ID
1666            * @param classNameId the class name ID
1667            * @param templateKey the template key
1668            * @return the d d m template that was removed
1669            * @throws SystemException if a system exception occurred
1670            */
1671            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_C_T(
1672                    long groupId, long classNameId, java.lang.String templateKey)
1673                    throws com.liferay.portal.kernel.exception.SystemException,
1674                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1675    
1676            /**
1677            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and templateKey = &#63;.
1678            *
1679            * @param groupId the group ID
1680            * @param classNameId the class name ID
1681            * @param templateKey the template key
1682            * @return the number of matching d d m templates
1683            * @throws SystemException if a system exception occurred
1684            */
1685            public int countByG_C_T(long groupId, long classNameId,
1686                    java.lang.String templateKey)
1687                    throws com.liferay.portal.kernel.exception.SystemException;
1688    
1689            /**
1690            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1691            *
1692            * @param classNameId the class name ID
1693            * @param classPK the class p k
1694            * @param type the type
1695            * @return the matching d d m templates
1696            * @throws SystemException if a system exception occurred
1697            */
1698            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1699                    long classNameId, long classPK, java.lang.String type)
1700                    throws com.liferay.portal.kernel.exception.SystemException;
1701    
1702            /**
1703            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1704            *
1705            * <p>
1706            * 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.
1707            * </p>
1708            *
1709            * @param classNameId the class name ID
1710            * @param classPK the class p k
1711            * @param type the type
1712            * @param start the lower bound of the range of d d m templates
1713            * @param end the upper bound of the range of d d m templates (not inclusive)
1714            * @return the range of matching d d m templates
1715            * @throws SystemException if a system exception occurred
1716            */
1717            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1718                    long classNameId, long classPK, java.lang.String type, int start,
1719                    int end) throws com.liferay.portal.kernel.exception.SystemException;
1720    
1721            /**
1722            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1723            *
1724            * <p>
1725            * 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.
1726            * </p>
1727            *
1728            * @param classNameId the class name ID
1729            * @param classPK the class p k
1730            * @param type the type
1731            * @param start the lower bound of the range of d d m templates
1732            * @param end the upper bound of the range of d d m templates (not inclusive)
1733            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1734            * @return the ordered range of matching d d m templates
1735            * @throws SystemException if a system exception occurred
1736            */
1737            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
1738                    long classNameId, long classPK, java.lang.String type, int start,
1739                    int end,
1740                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1741                    throws com.liferay.portal.kernel.exception.SystemException;
1742    
1743            /**
1744            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1745            *
1746            * @param classNameId the class name ID
1747            * @param classPK the class p k
1748            * @param type the type
1749            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1750            * @return the first matching d d m template
1751            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1752            * @throws SystemException if a system exception occurred
1753            */
1754            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First(
1755                    long classNameId, long classPK, java.lang.String type,
1756                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1757                    throws com.liferay.portal.kernel.exception.SystemException,
1758                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1759    
1760            /**
1761            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1762            *
1763            * @param classNameId the class name ID
1764            * @param classPK the class p k
1765            * @param type the type
1766            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1767            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1768            * @throws SystemException if a system exception occurred
1769            */
1770            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First(
1771                    long classNameId, long classPK, java.lang.String type,
1772                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1773                    throws com.liferay.portal.kernel.exception.SystemException;
1774    
1775            /**
1776            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1777            *
1778            * @param classNameId the class name ID
1779            * @param classPK the class p k
1780            * @param type the type
1781            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1782            * @return the last matching d d m template
1783            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1784            * @throws SystemException if a system exception occurred
1785            */
1786            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last(
1787                    long classNameId, long classPK, java.lang.String type,
1788                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1789                    throws com.liferay.portal.kernel.exception.SystemException,
1790                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1791    
1792            /**
1793            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
1794            *
1795            * @param classNameId the class name ID
1796            * @param classPK the class p k
1797            * @param type the type
1798            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1799            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1800            * @throws SystemException if a system exception occurred
1801            */
1802            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last(
1803                    long classNameId, long classPK, java.lang.String type,
1804                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1805                    throws com.liferay.portal.kernel.exception.SystemException;
1806    
1807            /**
1808            * 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;.
1809            *
1810            * @param templateId the primary key of the current d d m template
1811            * @param classNameId the class name ID
1812            * @param classPK the class p k
1813            * @param type the type
1814            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1815            * @return the previous, current, and next d d m template
1816            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1817            * @throws SystemException if a system exception occurred
1818            */
1819            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext(
1820                    long templateId, long classNameId, long classPK, java.lang.String type,
1821                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1822                    throws com.liferay.portal.kernel.exception.SystemException,
1823                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1824    
1825            /**
1826            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
1827            *
1828            * @param classNameId the class name ID
1829            * @param classPK the class p k
1830            * @param type the type
1831            * @throws SystemException if a system exception occurred
1832            */
1833            public void removeByC_C_T(long classNameId, long classPK,
1834                    java.lang.String type)
1835                    throws com.liferay.portal.kernel.exception.SystemException;
1836    
1837            /**
1838            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
1839            *
1840            * @param classNameId the class name ID
1841            * @param classPK the class p k
1842            * @param type the type
1843            * @return the number of matching d d m templates
1844            * @throws SystemException if a system exception occurred
1845            */
1846            public int countByC_C_T(long classNameId, long classPK,
1847                    java.lang.String type)
1848                    throws com.liferay.portal.kernel.exception.SystemException;
1849    
1850            /**
1851            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1852            *
1853            * @param groupId the group ID
1854            * @param classNameId the class name ID
1855            * @param classPK the class p k
1856            * @param type the type
1857            * @return the matching d d m templates
1858            * @throws SystemException if a system exception occurred
1859            */
1860            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
1861                    long groupId, long classNameId, long classPK, java.lang.String type)
1862                    throws com.liferay.portal.kernel.exception.SystemException;
1863    
1864            /**
1865            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1866            *
1867            * <p>
1868            * 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.
1869            * </p>
1870            *
1871            * @param groupId the group ID
1872            * @param classNameId the class name ID
1873            * @param classPK the class p k
1874            * @param type the type
1875            * @param start the lower bound of the range of d d m templates
1876            * @param end the upper bound of the range of d d m templates (not inclusive)
1877            * @return the range of matching d d m templates
1878            * @throws SystemException if a system exception occurred
1879            */
1880            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
1881                    long groupId, long classNameId, long classPK, java.lang.String type,
1882                    int start, int end)
1883                    throws com.liferay.portal.kernel.exception.SystemException;
1884    
1885            /**
1886            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1887            *
1888            * <p>
1889            * 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.
1890            * </p>
1891            *
1892            * @param groupId the group ID
1893            * @param classNameId the class name ID
1894            * @param classPK the class p k
1895            * @param type the type
1896            * @param start the lower bound of the range of d d m templates
1897            * @param end the upper bound of the range of d d m templates (not inclusive)
1898            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1899            * @return the ordered range of matching d d m templates
1900            * @throws SystemException if a system exception occurred
1901            */
1902            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
1903                    long groupId, long classNameId, long classPK, java.lang.String type,
1904                    int start, int end,
1905                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1906                    throws com.liferay.portal.kernel.exception.SystemException;
1907    
1908            /**
1909            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1910            *
1911            * @param groupId the group ID
1912            * @param classNameId the class name ID
1913            * @param classPK the class p k
1914            * @param type the type
1915            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1916            * @return the first matching d d m template
1917            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1918            * @throws SystemException if a system exception occurred
1919            */
1920            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_First(
1921                    long groupId, long classNameId, long classPK, java.lang.String type,
1922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1923                    throws com.liferay.portal.kernel.exception.SystemException,
1924                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1925    
1926            /**
1927            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1928            *
1929            * @param groupId the group ID
1930            * @param classNameId the class name ID
1931            * @param classPK the class p k
1932            * @param type the type
1933            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1934            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1935            * @throws SystemException if a system exception occurred
1936            */
1937            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_First(
1938                    long groupId, long classNameId, long classPK, java.lang.String type,
1939                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1940                    throws com.liferay.portal.kernel.exception.SystemException;
1941    
1942            /**
1943            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1944            *
1945            * @param groupId the group ID
1946            * @param classNameId the class name ID
1947            * @param classPK the class p k
1948            * @param type the type
1949            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1950            * @return the last matching d d m template
1951            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1952            * @throws SystemException if a system exception occurred
1953            */
1954            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_Last(
1955                    long groupId, long classNameId, long classPK, java.lang.String type,
1956                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1957                    throws com.liferay.portal.kernel.exception.SystemException,
1958                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1959    
1960            /**
1961            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1962            *
1963            * @param groupId the group ID
1964            * @param classNameId the class name ID
1965            * @param classPK the class p k
1966            * @param type the type
1967            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1968            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1969            * @throws SystemException if a system exception occurred
1970            */
1971            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_Last(
1972                    long groupId, long classNameId, long classPK, java.lang.String type,
1973                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1974                    throws com.liferay.portal.kernel.exception.SystemException;
1975    
1976            /**
1977            * 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; and type = &#63;.
1978            *
1979            * @param templateId the primary key of the current d d m template
1980            * @param groupId the group ID
1981            * @param classNameId the class name ID
1982            * @param classPK the class p k
1983            * @param type the type
1984            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1985            * @return the previous, current, and next d d m template
1986            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1987            * @throws SystemException if a system exception occurred
1988            */
1989            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_PrevAndNext(
1990                    long templateId, long groupId, long classNameId, long classPK,
1991                    java.lang.String type,
1992                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1993                    throws com.liferay.portal.kernel.exception.SystemException,
1994                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1995    
1996            /**
1997            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
1998            *
1999            * @param groupId the group ID
2000            * @param classNameId the class name ID
2001            * @param classPK the class p k
2002            * @param type the type
2003            * @return the matching d d m templates that the user has permission to view
2004            * @throws SystemException if a system exception occurred
2005            */
2006            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2007                    long groupId, long classNameId, long classPK, java.lang.String type)
2008                    throws com.liferay.portal.kernel.exception.SystemException;
2009    
2010            /**
2011            * 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; and type = &#63;.
2012            *
2013            * <p>
2014            * 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.
2015            * </p>
2016            *
2017            * @param groupId the group ID
2018            * @param classNameId the class name ID
2019            * @param classPK the class p k
2020            * @param type the type
2021            * @param start the lower bound of the range of d d m templates
2022            * @param end the upper bound of the range of d d m templates (not inclusive)
2023            * @return the range of matching d d m templates that the user has permission to view
2024            * @throws SystemException if a system exception occurred
2025            */
2026            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2027                    long groupId, long classNameId, long classPK, java.lang.String type,
2028                    int start, int end)
2029                    throws com.liferay.portal.kernel.exception.SystemException;
2030    
2031            /**
2032            * 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; and type = &#63;.
2033            *
2034            * <p>
2035            * 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.
2036            * </p>
2037            *
2038            * @param groupId the group ID
2039            * @param classNameId the class name ID
2040            * @param classPK the class p k
2041            * @param type the type
2042            * @param start the lower bound of the range of d d m templates
2043            * @param end the upper bound of the range of d d m templates (not inclusive)
2044            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2045            * @return the ordered range of matching d d m templates that the user has permission to view
2046            * @throws SystemException if a system exception occurred
2047            */
2048            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2049                    long groupId, long classNameId, long classPK, java.lang.String type,
2050                    int start, int end,
2051                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2052                    throws com.liferay.portal.kernel.exception.SystemException;
2053    
2054            /**
2055            * 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; and type = &#63;.
2056            *
2057            * @param templateId the primary key of the current d d m template
2058            * @param groupId the group ID
2059            * @param classNameId the class name ID
2060            * @param classPK the class p k
2061            * @param type the type
2062            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2063            * @return the previous, current, and next d d m template
2064            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2065            * @throws SystemException if a system exception occurred
2066            */
2067            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(
2068                    long templateId, long groupId, long classNameId, long classPK,
2069                    java.lang.String type,
2070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2071                    throws com.liferay.portal.kernel.exception.SystemException,
2072                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2073    
2074            /**
2075            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2076            *
2077            * @param groupId the group ID
2078            * @param classNameId the class name ID
2079            * @param classPK the class p k
2080            * @param type the type
2081            * @throws SystemException if a system exception occurred
2082            */
2083            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
2084                    java.lang.String type)
2085                    throws com.liferay.portal.kernel.exception.SystemException;
2086    
2087            /**
2088            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2089            *
2090            * @param groupId the group ID
2091            * @param classNameId the class name ID
2092            * @param classPK the class p k
2093            * @param type the type
2094            * @return the number of matching d d m templates
2095            * @throws SystemException if a system exception occurred
2096            */
2097            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
2098                    java.lang.String type)
2099                    throws com.liferay.portal.kernel.exception.SystemException;
2100    
2101            /**
2102            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2103            *
2104            * @param groupId the group ID
2105            * @param classNameId the class name ID
2106            * @param classPK the class p k
2107            * @param type the type
2108            * @return the number of matching d d m templates that the user has permission to view
2109            * @throws SystemException if a system exception occurred
2110            */
2111            public int filterCountByG_C_C_T(long groupId, long classNameId,
2112                    long classPK, java.lang.String type)
2113                    throws com.liferay.portal.kernel.exception.SystemException;
2114    
2115            /**
2116            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2117            *
2118            * @param groupId the group ID
2119            * @param classNameId the class name ID
2120            * @param classPK the class p k
2121            * @param type the type
2122            * @param mode the mode
2123            * @return the matching d d m templates
2124            * @throws SystemException if a system exception occurred
2125            */
2126            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2127                    long groupId, long classNameId, long classPK, java.lang.String type,
2128                    java.lang.String mode)
2129                    throws com.liferay.portal.kernel.exception.SystemException;
2130    
2131            /**
2132            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2133            *
2134            * <p>
2135            * 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.
2136            * </p>
2137            *
2138            * @param groupId the group ID
2139            * @param classNameId the class name ID
2140            * @param classPK the class p k
2141            * @param type the type
2142            * @param mode the mode
2143            * @param start the lower bound of the range of d d m templates
2144            * @param end the upper bound of the range of d d m templates (not inclusive)
2145            * @return the range of matching d d m templates
2146            * @throws SystemException if a system exception occurred
2147            */
2148            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2149                    long groupId, long classNameId, long classPK, java.lang.String type,
2150                    java.lang.String mode, int start, int end)
2151                    throws com.liferay.portal.kernel.exception.SystemException;
2152    
2153            /**
2154            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2155            *
2156            * <p>
2157            * 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.
2158            * </p>
2159            *
2160            * @param groupId the group ID
2161            * @param classNameId the class name ID
2162            * @param classPK the class p k
2163            * @param type the type
2164            * @param mode the mode
2165            * @param start the lower bound of the range of d d m templates
2166            * @param end the upper bound of the range of d d m templates (not inclusive)
2167            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2168            * @return the ordered range of matching d d m templates
2169            * @throws SystemException if a system exception occurred
2170            */
2171            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2172                    long groupId, long classNameId, long classPK, java.lang.String type,
2173                    java.lang.String mode, int start, int end,
2174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2175                    throws com.liferay.portal.kernel.exception.SystemException;
2176    
2177            /**
2178            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2179            *
2180            * @param groupId the group ID
2181            * @param classNameId the class name ID
2182            * @param classPK the class p k
2183            * @param type the type
2184            * @param mode the mode
2185            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2186            * @return the first matching d d m template
2187            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2188            * @throws SystemException if a system exception occurred
2189            */
2190            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_First(
2191                    long groupId, long classNameId, long classPK, java.lang.String type,
2192                    java.lang.String mode,
2193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2194                    throws com.liferay.portal.kernel.exception.SystemException,
2195                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2196    
2197            /**
2198            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2199            *
2200            * @param groupId the group ID
2201            * @param classNameId the class name ID
2202            * @param classPK the class p k
2203            * @param type the type
2204            * @param mode the mode
2205            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2206            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2207            * @throws SystemException if a system exception occurred
2208            */
2209            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_First(
2210                    long groupId, long classNameId, long classPK, java.lang.String type,
2211                    java.lang.String mode,
2212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2213                    throws com.liferay.portal.kernel.exception.SystemException;
2214    
2215            /**
2216            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2217            *
2218            * @param groupId the group ID
2219            * @param classNameId the class name ID
2220            * @param classPK the class p k
2221            * @param type the type
2222            * @param mode the mode
2223            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2224            * @return the last matching d d m template
2225            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2226            * @throws SystemException if a system exception occurred
2227            */
2228            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_Last(
2229                    long groupId, long classNameId, long classPK, java.lang.String type,
2230                    java.lang.String mode,
2231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2232                    throws com.liferay.portal.kernel.exception.SystemException,
2233                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2234    
2235            /**
2236            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2237            *
2238            * @param groupId the group ID
2239            * @param classNameId the class name ID
2240            * @param classPK the class p k
2241            * @param type the type
2242            * @param mode the mode
2243            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2244            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2245            * @throws SystemException if a system exception occurred
2246            */
2247            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_Last(
2248                    long groupId, long classNameId, long classPK, java.lang.String type,
2249                    java.lang.String mode,
2250                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2251                    throws com.liferay.portal.kernel.exception.SystemException;
2252    
2253            /**
2254            * 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; and type = &#63; and mode = &#63;.
2255            *
2256            * @param templateId the primary key of the current d d m template
2257            * @param groupId the group ID
2258            * @param classNameId the class name ID
2259            * @param classPK the class p k
2260            * @param type the type
2261            * @param mode the mode
2262            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2263            * @return the previous, current, and next d d m template
2264            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2265            * @throws SystemException if a system exception occurred
2266            */
2267            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_M_PrevAndNext(
2268                    long templateId, long groupId, long classNameId, long classPK,
2269                    java.lang.String type, java.lang.String mode,
2270                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2271                    throws com.liferay.portal.kernel.exception.SystemException,
2272                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2273    
2274            /**
2275            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2276            *
2277            * @param groupId the group ID
2278            * @param classNameId the class name ID
2279            * @param classPK the class p k
2280            * @param type the type
2281            * @param mode the mode
2282            * @return the matching d d m templates that the user has permission to view
2283            * @throws SystemException if a system exception occurred
2284            */
2285            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2286                    long groupId, long classNameId, long classPK, java.lang.String type,
2287                    java.lang.String mode)
2288                    throws com.liferay.portal.kernel.exception.SystemException;
2289    
2290            /**
2291            * 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; and type = &#63; and mode = &#63;.
2292            *
2293            * <p>
2294            * 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.
2295            * </p>
2296            *
2297            * @param groupId the group ID
2298            * @param classNameId the class name ID
2299            * @param classPK the class p k
2300            * @param type the type
2301            * @param mode the mode
2302            * @param start the lower bound of the range of d d m templates
2303            * @param end the upper bound of the range of d d m templates (not inclusive)
2304            * @return the range of matching d d m templates that the user has permission to view
2305            * @throws SystemException if a system exception occurred
2306            */
2307            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2308                    long groupId, long classNameId, long classPK, java.lang.String type,
2309                    java.lang.String mode, int start, int end)
2310                    throws com.liferay.portal.kernel.exception.SystemException;
2311    
2312            /**
2313            * 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; and type = &#63; and mode = &#63;.
2314            *
2315            * <p>
2316            * 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.
2317            * </p>
2318            *
2319            * @param groupId the group ID
2320            * @param classNameId the class name ID
2321            * @param classPK the class p k
2322            * @param type the type
2323            * @param mode the mode
2324            * @param start the lower bound of the range of d d m templates
2325            * @param end the upper bound of the range of d d m templates (not inclusive)
2326            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2327            * @return the ordered range of matching d d m templates that the user has permission to view
2328            * @throws SystemException if a system exception occurred
2329            */
2330            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2331                    long groupId, long classNameId, long classPK, java.lang.String type,
2332                    java.lang.String mode, int start, int end,
2333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2334                    throws com.liferay.portal.kernel.exception.SystemException;
2335    
2336            /**
2337            * 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; and type = &#63; and mode = &#63;.
2338            *
2339            * @param templateId the primary key of the current d d m template
2340            * @param groupId the group ID
2341            * @param classNameId the class name ID
2342            * @param classPK the class p k
2343            * @param type the type
2344            * @param mode the mode
2345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2346            * @return the previous, current, and next d d m template
2347            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2348            * @throws SystemException if a system exception occurred
2349            */
2350            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(
2351                    long templateId, long groupId, long classNameId, long classPK,
2352                    java.lang.String type, java.lang.String mode,
2353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2354                    throws com.liferay.portal.kernel.exception.SystemException,
2355                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2356    
2357            /**
2358            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63; from the database.
2359            *
2360            * @param groupId the group ID
2361            * @param classNameId the class name ID
2362            * @param classPK the class p k
2363            * @param type the type
2364            * @param mode the mode
2365            * @throws SystemException if a system exception occurred
2366            */
2367            public void removeByG_C_C_T_M(long groupId, long classNameId, long classPK,
2368                    java.lang.String type, java.lang.String mode)
2369                    throws com.liferay.portal.kernel.exception.SystemException;
2370    
2371            /**
2372            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2373            *
2374            * @param groupId the group ID
2375            * @param classNameId the class name ID
2376            * @param classPK the class p k
2377            * @param type the type
2378            * @param mode the mode
2379            * @return the number of matching d d m templates
2380            * @throws SystemException if a system exception occurred
2381            */
2382            public int countByG_C_C_T_M(long groupId, long classNameId, long classPK,
2383                    java.lang.String type, java.lang.String mode)
2384                    throws com.liferay.portal.kernel.exception.SystemException;
2385    
2386            /**
2387            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2388            *
2389            * @param groupId the group ID
2390            * @param classNameId the class name ID
2391            * @param classPK the class p k
2392            * @param type the type
2393            * @param mode the mode
2394            * @return the number of matching d d m templates that the user has permission to view
2395            * @throws SystemException if a system exception occurred
2396            */
2397            public int filterCountByG_C_C_T_M(long groupId, long classNameId,
2398                    long classPK, java.lang.String type, java.lang.String mode)
2399                    throws com.liferay.portal.kernel.exception.SystemException;
2400    
2401            /**
2402            * Caches the d d m template in the entity cache if it is enabled.
2403            *
2404            * @param ddmTemplate the d d m template
2405            */
2406            public void cacheResult(
2407                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
2408    
2409            /**
2410            * Caches the d d m templates in the entity cache if it is enabled.
2411            *
2412            * @param ddmTemplates the d d m templates
2413            */
2414            public void cacheResult(
2415                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
2416    
2417            /**
2418            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
2419            *
2420            * @param templateId the primary key for the new d d m template
2421            * @return the new d d m template
2422            */
2423            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
2424                    long templateId);
2425    
2426            /**
2427            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
2428            *
2429            * @param templateId the primary key of the d d m template
2430            * @return the d d m template that was removed
2431            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2432            * @throws SystemException if a system exception occurred
2433            */
2434            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
2435                    long templateId)
2436                    throws com.liferay.portal.kernel.exception.SystemException,
2437                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2438    
2439            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
2440                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
2441                    throws com.liferay.portal.kernel.exception.SystemException;
2442    
2443            /**
2444            * 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.
2445            *
2446            * @param templateId the primary key of the d d m template
2447            * @return the d d m template
2448            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2449            * @throws SystemException if a system exception occurred
2450            */
2451            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
2452                    long templateId)
2453                    throws com.liferay.portal.kernel.exception.SystemException,
2454                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2455    
2456            /**
2457            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
2458            *
2459            * @param templateId the primary key of the d d m template
2460            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
2461            * @throws SystemException if a system exception occurred
2462            */
2463            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
2464                    long templateId)
2465                    throws com.liferay.portal.kernel.exception.SystemException;
2466    
2467            /**
2468            * Returns all the d d m templates.
2469            *
2470            * @return the d d m templates
2471            * @throws SystemException if a system exception occurred
2472            */
2473            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
2474                    throws com.liferay.portal.kernel.exception.SystemException;
2475    
2476            /**
2477            * Returns a range of all the d d m templates.
2478            *
2479            * <p>
2480            * 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.
2481            * </p>
2482            *
2483            * @param start the lower bound of the range of d d m templates
2484            * @param end the upper bound of the range of d d m templates (not inclusive)
2485            * @return the range of d d m templates
2486            * @throws SystemException if a system exception occurred
2487            */
2488            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2489                    int start, int end)
2490                    throws com.liferay.portal.kernel.exception.SystemException;
2491    
2492            /**
2493            * Returns an ordered range of all the d d m templates.
2494            *
2495            * <p>
2496            * 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.
2497            * </p>
2498            *
2499            * @param start the lower bound of the range of d d m templates
2500            * @param end the upper bound of the range of d d m templates (not inclusive)
2501            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2502            * @return the ordered range of d d m templates
2503            * @throws SystemException if a system exception occurred
2504            */
2505            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2506                    int start, int end,
2507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2508                    throws com.liferay.portal.kernel.exception.SystemException;
2509    
2510            /**
2511            * Removes all the d d m templates from the database.
2512            *
2513            * @throws SystemException if a system exception occurred
2514            */
2515            public void removeAll()
2516                    throws com.liferay.portal.kernel.exception.SystemException;
2517    
2518            /**
2519            * Returns the number of d d m templates.
2520            *
2521            * @return the number of d d m templates
2522            * @throws SystemException if a system exception occurred
2523            */
2524            public int countAll()
2525                    throws com.liferay.portal.kernel.exception.SystemException;
2526    }