001    /**
002     * Copyright (c) 2000-2013 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 the d d m template where smallImageId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found.
1154            *
1155            * @param smallImageId the small image ID
1156            * @return the matching d d m template
1157            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1158            * @throws SystemException if a system exception occurred
1159            */
1160            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findBySmallImageId(
1161                    long smallImageId)
1162                    throws com.liferay.portal.kernel.exception.SystemException,
1163                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1164    
1165            /**
1166            * Returns the d d m template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1167            *
1168            * @param smallImageId the small image ID
1169            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1170            * @throws SystemException if a system exception occurred
1171            */
1172            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId(
1173                    long smallImageId)
1174                    throws com.liferay.portal.kernel.exception.SystemException;
1175    
1176            /**
1177            * Returns the d d m template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
1178            *
1179            * @param smallImageId the small image ID
1180            * @param retrieveFromCache whether to use the finder cache
1181            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1182            * @throws SystemException if a system exception occurred
1183            */
1184            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId(
1185                    long smallImageId, boolean retrieveFromCache)
1186                    throws com.liferay.portal.kernel.exception.SystemException;
1187    
1188            /**
1189            * Removes the d d m template where smallImageId = &#63; from the database.
1190            *
1191            * @param smallImageId the small image ID
1192            * @return the d d m template that was removed
1193            * @throws SystemException if a system exception occurred
1194            */
1195            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeBySmallImageId(
1196                    long smallImageId)
1197                    throws com.liferay.portal.kernel.exception.SystemException,
1198                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1199    
1200            /**
1201            * Returns the number of d d m templates where smallImageId = &#63;.
1202            *
1203            * @param smallImageId the small image ID
1204            * @return the number of matching d d m templates
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public int countBySmallImageId(long smallImageId)
1208                    throws com.liferay.portal.kernel.exception.SystemException;
1209    
1210            /**
1211            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63;.
1212            *
1213            * @param groupId the group ID
1214            * @param classNameId the class name ID
1215            * @return the matching d d m templates
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1219                    long groupId, long classNameId)
1220                    throws com.liferay.portal.kernel.exception.SystemException;
1221    
1222            /**
1223            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1224            *
1225            * <p>
1226            * 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.
1227            * </p>
1228            *
1229            * @param groupId the group ID
1230            * @param classNameId the class name ID
1231            * @param start the lower bound of the range of d d m templates
1232            * @param end the upper bound of the range of d d m templates (not inclusive)
1233            * @return the range of matching d d m templates
1234            * @throws SystemException if a system exception occurred
1235            */
1236            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1237                    long groupId, long classNameId, int start, int end)
1238                    throws com.liferay.portal.kernel.exception.SystemException;
1239    
1240            /**
1241            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1242            *
1243            * <p>
1244            * 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.
1245            * </p>
1246            *
1247            * @param groupId the group ID
1248            * @param classNameId the class name ID
1249            * @param start the lower bound of the range of d d m templates
1250            * @param end the upper bound of the range of d d m templates (not inclusive)
1251            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1252            * @return the ordered range of matching d d m templates
1253            * @throws SystemException if a system exception occurred
1254            */
1255            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1256                    long groupId, long classNameId, int start, int end,
1257                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1258                    throws com.liferay.portal.kernel.exception.SystemException;
1259    
1260            /**
1261            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1262            *
1263            * @param groupId the group ID
1264            * @param classNameId the class name ID
1265            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1266            * @return the first matching d d m template
1267            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1268            * @throws SystemException if a system exception occurred
1269            */
1270            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First(
1271                    long groupId, long classNameId,
1272                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1273                    throws com.liferay.portal.kernel.exception.SystemException,
1274                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1275    
1276            /**
1277            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1278            *
1279            * @param groupId the group ID
1280            * @param classNameId the class name ID
1281            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1282            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1283            * @throws SystemException if a system exception occurred
1284            */
1285            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First(
1286                    long groupId, long classNameId,
1287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1288                    throws com.liferay.portal.kernel.exception.SystemException;
1289    
1290            /**
1291            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1292            *
1293            * @param groupId the group ID
1294            * @param classNameId the class name ID
1295            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1296            * @return the last matching d d m template
1297            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1298            * @throws SystemException if a system exception occurred
1299            */
1300            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last(
1301                    long groupId, long classNameId,
1302                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1303                    throws com.liferay.portal.kernel.exception.SystemException,
1304                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1305    
1306            /**
1307            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1308            *
1309            * @param groupId the group ID
1310            * @param classNameId the class name ID
1311            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1312            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1313            * @throws SystemException if a system exception occurred
1314            */
1315            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last(
1316                    long groupId, long classNameId,
1317                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1318                    throws com.liferay.portal.kernel.exception.SystemException;
1319    
1320            /**
1321            * 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;.
1322            *
1323            * @param templateId the primary key of the current d d m template
1324            * @param groupId the group ID
1325            * @param classNameId the class name ID
1326            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1327            * @return the previous, current, and next d d m template
1328            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1329            * @throws SystemException if a system exception occurred
1330            */
1331            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext(
1332                    long templateId, long groupId, long classNameId,
1333                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1334                    throws com.liferay.portal.kernel.exception.SystemException,
1335                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1336    
1337            /**
1338            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1339            *
1340            * @param groupId the group ID
1341            * @param classNameId the class name ID
1342            * @return the matching d d m templates that the user has permission to view
1343            * @throws SystemException if a system exception occurred
1344            */
1345            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1346                    long groupId, long classNameId)
1347                    throws com.liferay.portal.kernel.exception.SystemException;
1348    
1349            /**
1350            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1351            *
1352            * <p>
1353            * 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.
1354            * </p>
1355            *
1356            * @param groupId the group ID
1357            * @param classNameId the class name ID
1358            * @param start the lower bound of the range of d d m templates
1359            * @param end the upper bound of the range of d d m templates (not inclusive)
1360            * @return the range of matching d d m templates that the user has permission to view
1361            * @throws SystemException if a system exception occurred
1362            */
1363            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1364                    long groupId, long classNameId, int start, int end)
1365                    throws com.liferay.portal.kernel.exception.SystemException;
1366    
1367            /**
1368            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classNameId = &#63;.
1369            *
1370            * <p>
1371            * 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.
1372            * </p>
1373            *
1374            * @param groupId the group ID
1375            * @param classNameId the class name ID
1376            * @param start the lower bound of the range of d d m templates
1377            * @param end the upper bound of the range of d d m templates (not inclusive)
1378            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1379            * @return the ordered range of matching d d m templates that the user has permission to view
1380            * @throws SystemException if a system exception occurred
1381            */
1382            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1383                    long groupId, long classNameId, int start, int end,
1384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1385                    throws com.liferay.portal.kernel.exception.SystemException;
1386    
1387            /**
1388            * 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;.
1389            *
1390            * @param templateId the primary key of the current d d m template
1391            * @param groupId the group ID
1392            * @param classNameId the class name ID
1393            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1394            * @return the previous, current, and next d d m template
1395            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1396            * @throws SystemException if a system exception occurred
1397            */
1398            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext(
1399                    long templateId, long groupId, long classNameId,
1400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1401                    throws com.liferay.portal.kernel.exception.SystemException,
1402                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1403    
1404            /**
1405            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; from the database.
1406            *
1407            * @param groupId the group ID
1408            * @param classNameId the class name ID
1409            * @throws SystemException if a system exception occurred
1410            */
1411            public void removeByG_C(long groupId, long classNameId)
1412                    throws com.liferay.portal.kernel.exception.SystemException;
1413    
1414            /**
1415            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63;.
1416            *
1417            * @param groupId the group ID
1418            * @param classNameId the class name ID
1419            * @return the number of matching d d m templates
1420            * @throws SystemException if a system exception occurred
1421            */
1422            public int countByG_C(long groupId, long classNameId)
1423                    throws com.liferay.portal.kernel.exception.SystemException;
1424    
1425            /**
1426            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1427            *
1428            * @param groupId the group ID
1429            * @param classNameId the class name ID
1430            * @return the number of matching d d m templates that the user has permission to view
1431            * @throws SystemException if a system exception occurred
1432            */
1433            public int filterCountByG_C(long groupId, long classNameId)
1434                    throws com.liferay.portal.kernel.exception.SystemException;
1435    
1436            /**
1437            * Returns all the d d m templates where groupId = &#63; and classPK = &#63;.
1438            *
1439            * @param groupId the group ID
1440            * @param classPK the class p k
1441            * @return the matching d d m templates
1442            * @throws SystemException if a system exception occurred
1443            */
1444            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1445                    long groupId, long classPK)
1446                    throws com.liferay.portal.kernel.exception.SystemException;
1447    
1448            /**
1449            * Returns a range of all the d d m templates where groupId = &#63; and classPK = &#63;.
1450            *
1451            * <p>
1452            * 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.
1453            * </p>
1454            *
1455            * @param groupId the group ID
1456            * @param classPK the class p k
1457            * @param start the lower bound of the range of d d m templates
1458            * @param end the upper bound of the range of d d m templates (not inclusive)
1459            * @return the range of matching d d m templates
1460            * @throws SystemException if a system exception occurred
1461            */
1462            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1463                    long groupId, long classPK, int start, int end)
1464                    throws com.liferay.portal.kernel.exception.SystemException;
1465    
1466            /**
1467            * Returns an ordered range of all the d d m templates where groupId = &#63; and classPK = &#63;.
1468            *
1469            * <p>
1470            * 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.
1471            * </p>
1472            *
1473            * @param groupId the group ID
1474            * @param classPK the class p k
1475            * @param start the lower bound of the range of d d m templates
1476            * @param end the upper bound of the range of d d m templates (not inclusive)
1477            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1478            * @return the ordered range of matching d d m templates
1479            * @throws SystemException if a system exception occurred
1480            */
1481            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1482                    long groupId, long classPK, int start, int end,
1483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1484                    throws com.liferay.portal.kernel.exception.SystemException;
1485    
1486            /**
1487            * Returns the first d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1488            *
1489            * @param groupId the group ID
1490            * @param classPK the class p k
1491            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1492            * @return the first matching d d m template
1493            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1494            * @throws SystemException if a system exception occurred
1495            */
1496            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_First(
1497                    long groupId, long classPK,
1498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1499                    throws com.liferay.portal.kernel.exception.SystemException,
1500                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1501    
1502            /**
1503            * Returns the first d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1504            *
1505            * @param groupId the group ID
1506            * @param classPK the class p k
1507            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1508            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1509            * @throws SystemException if a system exception occurred
1510            */
1511            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_First(
1512                    long groupId, long classPK,
1513                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1514                    throws com.liferay.portal.kernel.exception.SystemException;
1515    
1516            /**
1517            * Returns the last d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1518            *
1519            * @param groupId the group ID
1520            * @param classPK the class p k
1521            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1522            * @return the last matching d d m template
1523            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1524            * @throws SystemException if a system exception occurred
1525            */
1526            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_Last(
1527                    long groupId, long classPK,
1528                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1529                    throws com.liferay.portal.kernel.exception.SystemException,
1530                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1531    
1532            /**
1533            * Returns the last d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1534            *
1535            * @param groupId the group ID
1536            * @param classPK the class p k
1537            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1538            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1539            * @throws SystemException if a system exception occurred
1540            */
1541            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_Last(
1542                    long groupId, long classPK,
1543                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1544                    throws com.liferay.portal.kernel.exception.SystemException;
1545    
1546            /**
1547            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1548            *
1549            * @param templateId the primary key of the current d d m template
1550            * @param groupId the group ID
1551            * @param classPK the class p k
1552            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1553            * @return the previous, current, and next d d m template
1554            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1555            * @throws SystemException if a system exception occurred
1556            */
1557            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_CPK_PrevAndNext(
1558                    long templateId, long groupId, long classPK,
1559                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1560                    throws com.liferay.portal.kernel.exception.SystemException,
1561                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1562    
1563            /**
1564            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1565            *
1566            * @param groupId the group ID
1567            * @param classPK the class p k
1568            * @return the matching d d m templates that the user has permission to view
1569            * @throws SystemException if a system exception occurred
1570            */
1571            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1572                    long groupId, long classPK)
1573                    throws com.liferay.portal.kernel.exception.SystemException;
1574    
1575            /**
1576            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1577            *
1578            * <p>
1579            * 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.
1580            * </p>
1581            *
1582            * @param groupId the group ID
1583            * @param classPK the class p k
1584            * @param start the lower bound of the range of d d m templates
1585            * @param end the upper bound of the range of d d m templates (not inclusive)
1586            * @return the range of matching d d m templates that the user has permission to view
1587            * @throws SystemException if a system exception occurred
1588            */
1589            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1590                    long groupId, long classPK, int start, int end)
1591                    throws com.liferay.portal.kernel.exception.SystemException;
1592    
1593            /**
1594            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classPK = &#63;.
1595            *
1596            * <p>
1597            * 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.
1598            * </p>
1599            *
1600            * @param groupId the group ID
1601            * @param classPK the class p k
1602            * @param start the lower bound of the range of d d m templates
1603            * @param end the upper bound of the range of d d m templates (not inclusive)
1604            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1605            * @return the ordered range of matching d d m templates that the user has permission to view
1606            * @throws SystemException if a system exception occurred
1607            */
1608            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1609                    long groupId, long classPK, int start, int end,
1610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1611                    throws com.liferay.portal.kernel.exception.SystemException;
1612    
1613            /**
1614            * 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 classPK = &#63;.
1615            *
1616            * @param templateId the primary key of the current d d m template
1617            * @param groupId the group ID
1618            * @param classPK the class p k
1619            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1620            * @return the previous, current, and next d d m template
1621            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1622            * @throws SystemException if a system exception occurred
1623            */
1624            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_CPK_PrevAndNext(
1625                    long templateId, long groupId, long classPK,
1626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1627                    throws com.liferay.portal.kernel.exception.SystemException,
1628                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1629    
1630            /**
1631            * Returns all the d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1632            *
1633            * @param groupIds the group IDs
1634            * @param classPK the class p k
1635            * @return the matching d d m templates that the user has permission to view
1636            * @throws SystemException if a system exception occurred
1637            */
1638            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1639                    long[] groupIds, long classPK)
1640                    throws com.liferay.portal.kernel.exception.SystemException;
1641    
1642            /**
1643            * Returns a range of all the d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1644            *
1645            * <p>
1646            * 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.
1647            * </p>
1648            *
1649            * @param groupIds the group IDs
1650            * @param classPK the class p k
1651            * @param start the lower bound of the range of d d m templates
1652            * @param end the upper bound of the range of d d m templates (not inclusive)
1653            * @return the range of matching d d m templates that the user has permission to view
1654            * @throws SystemException if a system exception occurred
1655            */
1656            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1657                    long[] groupIds, long classPK, int start, int end)
1658                    throws com.liferay.portal.kernel.exception.SystemException;
1659    
1660            /**
1661            * Returns an ordered range of all the d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1662            *
1663            * <p>
1664            * 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.
1665            * </p>
1666            *
1667            * @param groupIds the group IDs
1668            * @param classPK the class p k
1669            * @param start the lower bound of the range of d d m templates
1670            * @param end the upper bound of the range of d d m templates (not inclusive)
1671            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1672            * @return the ordered range of matching d d m templates that the user has permission to view
1673            * @throws SystemException if a system exception occurred
1674            */
1675            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1676                    long[] groupIds, long classPK, int start, int end,
1677                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1678                    throws com.liferay.portal.kernel.exception.SystemException;
1679    
1680            /**
1681            * Returns all the d d m templates where groupId = any &#63; and classPK = &#63;.
1682            *
1683            * <p>
1684            * 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.
1685            * </p>
1686            *
1687            * @param groupIds the group IDs
1688            * @param classPK the class p k
1689            * @return the matching d d m templates
1690            * @throws SystemException if a system exception occurred
1691            */
1692            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1693                    long[] groupIds, long classPK)
1694                    throws com.liferay.portal.kernel.exception.SystemException;
1695    
1696            /**
1697            * Returns a range of all the d d m templates where groupId = any &#63; and classPK = &#63;.
1698            *
1699            * <p>
1700            * 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.
1701            * </p>
1702            *
1703            * @param groupIds the group IDs
1704            * @param classPK the class p k
1705            * @param start the lower bound of the range of d d m templates
1706            * @param end the upper bound of the range of d d m templates (not inclusive)
1707            * @return the range of matching d d m templates
1708            * @throws SystemException if a system exception occurred
1709            */
1710            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1711                    long[] groupIds, long classPK, int start, int end)
1712                    throws com.liferay.portal.kernel.exception.SystemException;
1713    
1714            /**
1715            * Returns an ordered range of all the d d m templates where groupId = any &#63; and classPK = &#63;.
1716            *
1717            * <p>
1718            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1719            * </p>
1720            *
1721            * @param groupIds the group IDs
1722            * @param classPK the class p k
1723            * @param start the lower bound of the range of d d m templates
1724            * @param end the upper bound of the range of d d m templates (not inclusive)
1725            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1726            * @return the ordered range of matching d d m templates
1727            * @throws SystemException if a system exception occurred
1728            */
1729            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1730                    long[] groupIds, long classPK, int start, int end,
1731                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1732                    throws com.liferay.portal.kernel.exception.SystemException;
1733    
1734            /**
1735            * Removes all the d d m templates where groupId = &#63; and classPK = &#63; from the database.
1736            *
1737            * @param groupId the group ID
1738            * @param classPK the class p k
1739            * @throws SystemException if a system exception occurred
1740            */
1741            public void removeByG_CPK(long groupId, long classPK)
1742                    throws com.liferay.portal.kernel.exception.SystemException;
1743    
1744            /**
1745            * Returns the number of d d m templates where groupId = &#63; and classPK = &#63;.
1746            *
1747            * @param groupId the group ID
1748            * @param classPK the class p k
1749            * @return the number of matching d d m templates
1750            * @throws SystemException if a system exception occurred
1751            */
1752            public int countByG_CPK(long groupId, long classPK)
1753                    throws com.liferay.portal.kernel.exception.SystemException;
1754    
1755            /**
1756            * Returns the number of d d m templates where groupId = any &#63; and classPK = &#63;.
1757            *
1758            * @param groupIds the group IDs
1759            * @param classPK the class p k
1760            * @return the number of matching d d m templates
1761            * @throws SystemException if a system exception occurred
1762            */
1763            public int countByG_CPK(long[] groupIds, long classPK)
1764                    throws com.liferay.portal.kernel.exception.SystemException;
1765    
1766            /**
1767            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1768            *
1769            * @param groupId the group ID
1770            * @param classPK the class p k
1771            * @return the number of matching d d m templates that the user has permission to view
1772            * @throws SystemException if a system exception occurred
1773            */
1774            public int filterCountByG_CPK(long groupId, long classPK)
1775                    throws com.liferay.portal.kernel.exception.SystemException;
1776    
1777            /**
1778            * Returns the number of d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1779            *
1780            * @param groupIds the group IDs
1781            * @param classPK the class p k
1782            * @return the number of matching d d m templates that the user has permission to view
1783            * @throws SystemException if a system exception occurred
1784            */
1785            public int filterCountByG_CPK(long[] groupIds, long classPK)
1786                    throws com.liferay.portal.kernel.exception.SystemException;
1787    
1788            /**
1789            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1790            *
1791            * @param groupId the group ID
1792            * @param classNameId the class name ID
1793            * @param classPK the class p k
1794            * @return the matching d d m templates
1795            * @throws SystemException if a system exception occurred
1796            */
1797            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1798                    long groupId, long classNameId, long classPK)
1799                    throws com.liferay.portal.kernel.exception.SystemException;
1800    
1801            /**
1802            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1803            *
1804            * <p>
1805            * 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.
1806            * </p>
1807            *
1808            * @param groupId the group ID
1809            * @param classNameId the class name ID
1810            * @param classPK the class p k
1811            * @param start the lower bound of the range of d d m templates
1812            * @param end the upper bound of the range of d d m templates (not inclusive)
1813            * @return the range of matching d d m templates
1814            * @throws SystemException if a system exception occurred
1815            */
1816            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1817                    long groupId, long classNameId, long classPK, int start, int end)
1818                    throws com.liferay.portal.kernel.exception.SystemException;
1819    
1820            /**
1821            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1822            *
1823            * <p>
1824            * 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.
1825            * </p>
1826            *
1827            * @param groupId the group ID
1828            * @param classNameId the class name ID
1829            * @param classPK the class p k
1830            * @param start the lower bound of the range of d d m templates
1831            * @param end the upper bound of the range of d d m templates (not inclusive)
1832            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1833            * @return the ordered range of matching d d m templates
1834            * @throws SystemException if a system exception occurred
1835            */
1836            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1837                    long groupId, long classNameId, long classPK, int start, int end,
1838                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1839                    throws com.liferay.portal.kernel.exception.SystemException;
1840    
1841            /**
1842            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1843            *
1844            * @param groupId the group ID
1845            * @param classNameId the class name ID
1846            * @param classPK the class p k
1847            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1848            * @return the first matching d d m template
1849            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1850            * @throws SystemException if a system exception occurred
1851            */
1852            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First(
1853                    long groupId, long classNameId, long classPK,
1854                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1855                    throws com.liferay.portal.kernel.exception.SystemException,
1856                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1857    
1858            /**
1859            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1860            *
1861            * @param groupId the group ID
1862            * @param classNameId the class name ID
1863            * @param classPK the class p k
1864            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1865            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1866            * @throws SystemException if a system exception occurred
1867            */
1868            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First(
1869                    long groupId, long classNameId, long classPK,
1870                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1871                    throws com.liferay.portal.kernel.exception.SystemException;
1872    
1873            /**
1874            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1875            *
1876            * @param groupId the group ID
1877            * @param classNameId the class name ID
1878            * @param classPK the class p k
1879            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1880            * @return the last matching d d m template
1881            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1882            * @throws SystemException if a system exception occurred
1883            */
1884            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last(
1885                    long groupId, long classNameId, long classPK,
1886                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1887                    throws com.liferay.portal.kernel.exception.SystemException,
1888                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1889    
1890            /**
1891            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1892            *
1893            * @param groupId the group ID
1894            * @param classNameId the class name ID
1895            * @param classPK the class p k
1896            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1897            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1898            * @throws SystemException if a system exception occurred
1899            */
1900            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last(
1901                    long groupId, long classNameId, long classPK,
1902                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1903                    throws com.liferay.portal.kernel.exception.SystemException;
1904    
1905            /**
1906            * 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;.
1907            *
1908            * @param templateId the primary key of the current d d m template
1909            * @param groupId the group ID
1910            * @param classNameId the class name ID
1911            * @param classPK the class p k
1912            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1913            * @return the previous, current, and next d d m template
1914            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1915            * @throws SystemException if a system exception occurred
1916            */
1917            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext(
1918                    long templateId, long groupId, long classNameId, long classPK,
1919                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1920                    throws com.liferay.portal.kernel.exception.SystemException,
1921                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1922    
1923            /**
1924            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1925            *
1926            * @param groupId the group ID
1927            * @param classNameId the class name ID
1928            * @param classPK the class p k
1929            * @return the matching d d m templates that the user has permission to view
1930            * @throws SystemException if a system exception occurred
1931            */
1932            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1933                    long groupId, long classNameId, long classPK)
1934                    throws com.liferay.portal.kernel.exception.SystemException;
1935    
1936            /**
1937            * 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;.
1938            *
1939            * <p>
1940            * 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.
1941            * </p>
1942            *
1943            * @param groupId the group ID
1944            * @param classNameId the class name ID
1945            * @param classPK the class p k
1946            * @param start the lower bound of the range of d d m templates
1947            * @param end the upper bound of the range of d d m templates (not inclusive)
1948            * @return the range of matching d d m templates that the user has permission to view
1949            * @throws SystemException if a system exception occurred
1950            */
1951            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1952                    long groupId, long classNameId, long classPK, int start, int end)
1953                    throws com.liferay.portal.kernel.exception.SystemException;
1954    
1955            /**
1956            * 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;.
1957            *
1958            * <p>
1959            * 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.
1960            * </p>
1961            *
1962            * @param groupId the group ID
1963            * @param classNameId the class name ID
1964            * @param classPK the class p k
1965            * @param start the lower bound of the range of d d m templates
1966            * @param end the upper bound of the range of d d m templates (not inclusive)
1967            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1968            * @return the ordered range of matching d d m templates that the user has permission to view
1969            * @throws SystemException if a system exception occurred
1970            */
1971            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1972                    long groupId, long classNameId, long classPK, int start, int end,
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 of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#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 orderByComparator the comparator to order the set by (optionally <code>null</code>)
1984            * @return the previous, current, and next d d m template
1985            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1986            * @throws SystemException if a system exception occurred
1987            */
1988            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext(
1989                    long templateId, long groupId, long classNameId, long classPK,
1990                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1991                    throws com.liferay.portal.kernel.exception.SystemException,
1992                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1993    
1994            /**
1995            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1996            *
1997            * @param groupId the group ID
1998            * @param classNameId the class name ID
1999            * @param classPK the class p k
2000            * @throws SystemException if a system exception occurred
2001            */
2002            public void removeByG_C_C(long groupId, long classNameId, long classPK)
2003                    throws com.liferay.portal.kernel.exception.SystemException;
2004    
2005            /**
2006            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2007            *
2008            * @param groupId the group ID
2009            * @param classNameId the class name ID
2010            * @param classPK the class p k
2011            * @return the number of matching d d m templates
2012            * @throws SystemException if a system exception occurred
2013            */
2014            public int countByG_C_C(long groupId, long classNameId, long classPK)
2015                    throws com.liferay.portal.kernel.exception.SystemException;
2016    
2017            /**
2018            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2019            *
2020            * @param groupId the group ID
2021            * @param classNameId the class name ID
2022            * @param classPK the class p k
2023            * @return the number of matching d d m templates that the user has permission to view
2024            * @throws SystemException if a system exception occurred
2025            */
2026            public int filterCountByG_C_C(long groupId, long classNameId, long classPK)
2027                    throws com.liferay.portal.kernel.exception.SystemException;
2028    
2029            /**
2030            * 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.
2031            *
2032            * @param groupId the group ID
2033            * @param classNameId the class name ID
2034            * @param templateKey the template key
2035            * @return the matching d d m template
2036            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2037            * @throws SystemException if a system exception occurred
2038            */
2039            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_T(
2040                    long groupId, long classNameId, java.lang.String templateKey)
2041                    throws com.liferay.portal.kernel.exception.SystemException,
2042                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2043    
2044            /**
2045            * 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.
2046            *
2047            * @param groupId the group ID
2048            * @param classNameId the class name ID
2049            * @param templateKey the template key
2050            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
2051            * @throws SystemException if a system exception occurred
2052            */
2053            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
2054                    long groupId, long classNameId, java.lang.String templateKey)
2055                    throws com.liferay.portal.kernel.exception.SystemException;
2056    
2057            /**
2058            * 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.
2059            *
2060            * @param groupId the group ID
2061            * @param classNameId the class name ID
2062            * @param templateKey the template key
2063            * @param retrieveFromCache whether to use the finder cache
2064            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
2065            * @throws SystemException if a system exception occurred
2066            */
2067            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
2068                    long groupId, long classNameId, java.lang.String templateKey,
2069                    boolean retrieveFromCache)
2070                    throws com.liferay.portal.kernel.exception.SystemException;
2071    
2072            /**
2073            * Removes the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; from the database.
2074            *
2075            * @param groupId the group ID
2076            * @param classNameId the class name ID
2077            * @param templateKey the template key
2078            * @return the d d m template that was removed
2079            * @throws SystemException if a system exception occurred
2080            */
2081            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_C_T(
2082                    long groupId, long classNameId, java.lang.String templateKey)
2083                    throws com.liferay.portal.kernel.exception.SystemException,
2084                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2085    
2086            /**
2087            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and templateKey = &#63;.
2088            *
2089            * @param groupId the group ID
2090            * @param classNameId the class name ID
2091            * @param templateKey the template key
2092            * @return the number of matching d d m templates
2093            * @throws SystemException if a system exception occurred
2094            */
2095            public int countByG_C_T(long groupId, long classNameId,
2096                    java.lang.String templateKey)
2097                    throws com.liferay.portal.kernel.exception.SystemException;
2098    
2099            /**
2100            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2101            *
2102            * @param classNameId the class name ID
2103            * @param classPK the class p k
2104            * @param type the type
2105            * @return the matching d d m templates
2106            * @throws SystemException if a system exception occurred
2107            */
2108            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2109                    long classNameId, long classPK, java.lang.String type)
2110                    throws com.liferay.portal.kernel.exception.SystemException;
2111    
2112            /**
2113            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2114            *
2115            * <p>
2116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.dynamicdatamapping.model.impl.DDMTemplateModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
2117            * </p>
2118            *
2119            * @param classNameId the class name ID
2120            * @param classPK the class p k
2121            * @param type the type
2122            * @param start the lower bound of the range of d d m templates
2123            * @param end the upper bound of the range of d d m templates (not inclusive)
2124            * @return the range of matching d d m templates
2125            * @throws SystemException if a system exception occurred
2126            */
2127            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2128                    long classNameId, long classPK, java.lang.String type, int start,
2129                    int end) throws com.liferay.portal.kernel.exception.SystemException;
2130    
2131            /**
2132            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#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 classNameId the class name ID
2139            * @param classPK the class p k
2140            * @param type the type
2141            * @param start the lower bound of the range of d d m templates
2142            * @param end the upper bound of the range of d d m templates (not inclusive)
2143            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2144            * @return the ordered range of matching d d m templates
2145            * @throws SystemException if a system exception occurred
2146            */
2147            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2148                    long classNameId, long classPK, java.lang.String type, int start,
2149                    int end,
2150                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2151                    throws com.liferay.portal.kernel.exception.SystemException;
2152    
2153            /**
2154            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2155            *
2156            * @param classNameId the class name ID
2157            * @param classPK the class p k
2158            * @param type the type
2159            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2160            * @return the first matching d d m template
2161            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2162            * @throws SystemException if a system exception occurred
2163            */
2164            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First(
2165                    long classNameId, long classPK, java.lang.String type,
2166                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2167                    throws com.liferay.portal.kernel.exception.SystemException,
2168                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2169    
2170            /**
2171            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2172            *
2173            * @param classNameId the class name ID
2174            * @param classPK the class p k
2175            * @param type the type
2176            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2177            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2178            * @throws SystemException if a system exception occurred
2179            */
2180            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First(
2181                    long classNameId, long classPK, java.lang.String type,
2182                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2183                    throws com.liferay.portal.kernel.exception.SystemException;
2184    
2185            /**
2186            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2187            *
2188            * @param classNameId the class name ID
2189            * @param classPK the class p k
2190            * @param type the type
2191            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2192            * @return the last matching d d m template
2193            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2194            * @throws SystemException if a system exception occurred
2195            */
2196            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last(
2197                    long classNameId, long classPK, java.lang.String type,
2198                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2199                    throws com.liferay.portal.kernel.exception.SystemException,
2200                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2201    
2202            /**
2203            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2204            *
2205            * @param classNameId the class name ID
2206            * @param classPK the class p k
2207            * @param type the type
2208            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2209            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2210            * @throws SystemException if a system exception occurred
2211            */
2212            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last(
2213                    long classNameId, long classPK, java.lang.String type,
2214                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2215                    throws com.liferay.portal.kernel.exception.SystemException;
2216    
2217            /**
2218            * 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;.
2219            *
2220            * @param templateId the primary key of the current d d m template
2221            * @param classNameId the class name ID
2222            * @param classPK the class p k
2223            * @param type the type
2224            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2225            * @return the previous, current, and next d d m template
2226            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2227            * @throws SystemException if a system exception occurred
2228            */
2229            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext(
2230                    long templateId, long classNameId, long classPK, java.lang.String type,
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            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2237            *
2238            * @param classNameId the class name ID
2239            * @param classPK the class p k
2240            * @param type the type
2241            * @throws SystemException if a system exception occurred
2242            */
2243            public void removeByC_C_T(long classNameId, long classPK,
2244                    java.lang.String type)
2245                    throws com.liferay.portal.kernel.exception.SystemException;
2246    
2247            /**
2248            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2249            *
2250            * @param classNameId the class name ID
2251            * @param classPK the class p k
2252            * @param type the type
2253            * @return the number of matching d d m templates
2254            * @throws SystemException if a system exception occurred
2255            */
2256            public int countByC_C_T(long classNameId, long classPK,
2257                    java.lang.String type)
2258                    throws com.liferay.portal.kernel.exception.SystemException;
2259    
2260            /**
2261            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2262            *
2263            * @param groupId the group ID
2264            * @param classNameId the class name ID
2265            * @param classPK the class p k
2266            * @param type the type
2267            * @return the matching d d m templates
2268            * @throws SystemException if a system exception occurred
2269            */
2270            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2271                    long groupId, long classNameId, long classPK, java.lang.String type)
2272                    throws com.liferay.portal.kernel.exception.SystemException;
2273    
2274            /**
2275            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2276            *
2277            * <p>
2278            * 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.
2279            * </p>
2280            *
2281            * @param groupId the group ID
2282            * @param classNameId the class name ID
2283            * @param classPK the class p k
2284            * @param type the type
2285            * @param start the lower bound of the range of d d m templates
2286            * @param end the upper bound of the range of d d m templates (not inclusive)
2287            * @return the range of matching d d m templates
2288            * @throws SystemException if a system exception occurred
2289            */
2290            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2291                    long groupId, long classNameId, long classPK, java.lang.String type,
2292                    int start, int end)
2293                    throws com.liferay.portal.kernel.exception.SystemException;
2294    
2295            /**
2296            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2297            *
2298            * <p>
2299            * 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.
2300            * </p>
2301            *
2302            * @param groupId the group ID
2303            * @param classNameId the class name ID
2304            * @param classPK the class p k
2305            * @param type the type
2306            * @param start the lower bound of the range of d d m templates
2307            * @param end the upper bound of the range of d d m templates (not inclusive)
2308            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2309            * @return the ordered range of matching d d m templates
2310            * @throws SystemException if a system exception occurred
2311            */
2312            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2313                    long groupId, long classNameId, long classPK, java.lang.String type,
2314                    int start, int end,
2315                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2316                    throws com.liferay.portal.kernel.exception.SystemException;
2317    
2318            /**
2319            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2320            *
2321            * @param groupId the group ID
2322            * @param classNameId the class name ID
2323            * @param classPK the class p k
2324            * @param type the type
2325            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2326            * @return the first matching d d m template
2327            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2328            * @throws SystemException if a system exception occurred
2329            */
2330            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_First(
2331                    long groupId, long classNameId, long classPK, java.lang.String type,
2332                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2333                    throws com.liferay.portal.kernel.exception.SystemException,
2334                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2335    
2336            /**
2337            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2338            *
2339            * @param groupId the group ID
2340            * @param classNameId the class name ID
2341            * @param classPK the class p k
2342            * @param type the type
2343            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2344            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2345            * @throws SystemException if a system exception occurred
2346            */
2347            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_First(
2348                    long groupId, long classNameId, long classPK, java.lang.String type,
2349                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2350                    throws com.liferay.portal.kernel.exception.SystemException;
2351    
2352            /**
2353            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2354            *
2355            * @param groupId the group ID
2356            * @param classNameId the class name ID
2357            * @param classPK the class p k
2358            * @param type the type
2359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2360            * @return the last matching d d m template
2361            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2362            * @throws SystemException if a system exception occurred
2363            */
2364            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_Last(
2365                    long groupId, long classNameId, long classPK, java.lang.String type,
2366                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2367                    throws com.liferay.portal.kernel.exception.SystemException,
2368                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2369    
2370            /**
2371            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2372            *
2373            * @param groupId the group ID
2374            * @param classNameId the class name ID
2375            * @param classPK the class p k
2376            * @param type the type
2377            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2378            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2379            * @throws SystemException if a system exception occurred
2380            */
2381            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_Last(
2382                    long groupId, long classNameId, long classPK, java.lang.String type,
2383                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2384                    throws com.liferay.portal.kernel.exception.SystemException;
2385    
2386            /**
2387            * 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;.
2388            *
2389            * @param templateId the primary key of the current d d m template
2390            * @param groupId the group ID
2391            * @param classNameId the class name ID
2392            * @param classPK the class p k
2393            * @param type the type
2394            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2395            * @return the previous, current, and next d d m template
2396            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2397            * @throws SystemException if a system exception occurred
2398            */
2399            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_PrevAndNext(
2400                    long templateId, long groupId, long classNameId, long classPK,
2401                    java.lang.String type,
2402                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2403                    throws com.liferay.portal.kernel.exception.SystemException,
2404                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2405    
2406            /**
2407            * 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;.
2408            *
2409            * @param groupId the group ID
2410            * @param classNameId the class name ID
2411            * @param classPK the class p k
2412            * @param type the type
2413            * @return the matching d d m templates that the user has permission to view
2414            * @throws SystemException if a system exception occurred
2415            */
2416            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2417                    long groupId, long classNameId, long classPK, java.lang.String type)
2418                    throws com.liferay.portal.kernel.exception.SystemException;
2419    
2420            /**
2421            * 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;.
2422            *
2423            * <p>
2424            * 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.
2425            * </p>
2426            *
2427            * @param groupId the group ID
2428            * @param classNameId the class name ID
2429            * @param classPK the class p k
2430            * @param type the type
2431            * @param start the lower bound of the range of d d m templates
2432            * @param end the upper bound of the range of d d m templates (not inclusive)
2433            * @return the range of matching d d m templates that the user has permission to view
2434            * @throws SystemException if a system exception occurred
2435            */
2436            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2437                    long groupId, long classNameId, long classPK, java.lang.String type,
2438                    int start, int end)
2439                    throws com.liferay.portal.kernel.exception.SystemException;
2440    
2441            /**
2442            * 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;.
2443            *
2444            * <p>
2445            * 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.
2446            * </p>
2447            *
2448            * @param groupId the group ID
2449            * @param classNameId the class name ID
2450            * @param classPK the class p k
2451            * @param type the type
2452            * @param start the lower bound of the range of d d m templates
2453            * @param end the upper bound of the range of d d m templates (not inclusive)
2454            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2455            * @return the ordered range of matching d d m templates that the user has permission to view
2456            * @throws SystemException if a system exception occurred
2457            */
2458            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2459                    long groupId, long classNameId, long classPK, java.lang.String type,
2460                    int start, int end,
2461                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2462                    throws com.liferay.portal.kernel.exception.SystemException;
2463    
2464            /**
2465            * 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;.
2466            *
2467            * @param templateId the primary key of the current d d m template
2468            * @param groupId the group ID
2469            * @param classNameId the class name ID
2470            * @param classPK the class p k
2471            * @param type the type
2472            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2473            * @return the previous, current, and next d d m template
2474            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2475            * @throws SystemException if a system exception occurred
2476            */
2477            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(
2478                    long templateId, long groupId, long classNameId, long classPK,
2479                    java.lang.String type,
2480                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2481                    throws com.liferay.portal.kernel.exception.SystemException,
2482                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2483    
2484            /**
2485            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2486            *
2487            * @param groupId the group ID
2488            * @param classNameId the class name ID
2489            * @param classPK the class p k
2490            * @param type the type
2491            * @throws SystemException if a system exception occurred
2492            */
2493            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
2494                    java.lang.String type)
2495                    throws com.liferay.portal.kernel.exception.SystemException;
2496    
2497            /**
2498            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2499            *
2500            * @param groupId the group ID
2501            * @param classNameId the class name ID
2502            * @param classPK the class p k
2503            * @param type the type
2504            * @return the number of matching d d m templates
2505            * @throws SystemException if a system exception occurred
2506            */
2507            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
2508                    java.lang.String type)
2509                    throws com.liferay.portal.kernel.exception.SystemException;
2510    
2511            /**
2512            * 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;.
2513            *
2514            * @param groupId the group ID
2515            * @param classNameId the class name ID
2516            * @param classPK the class p k
2517            * @param type the type
2518            * @return the number of matching d d m templates that the user has permission to view
2519            * @throws SystemException if a system exception occurred
2520            */
2521            public int filterCountByG_C_C_T(long groupId, long classNameId,
2522                    long classPK, java.lang.String type)
2523                    throws com.liferay.portal.kernel.exception.SystemException;
2524    
2525            /**
2526            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2527            *
2528            * @param groupId the group ID
2529            * @param classNameId the class name ID
2530            * @param classPK the class p k
2531            * @param type the type
2532            * @param mode the mode
2533            * @return the matching d d m templates
2534            * @throws SystemException if a system exception occurred
2535            */
2536            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2537                    long groupId, long classNameId, long classPK, java.lang.String type,
2538                    java.lang.String mode)
2539                    throws com.liferay.portal.kernel.exception.SystemException;
2540    
2541            /**
2542            * 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;.
2543            *
2544            * <p>
2545            * 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.
2546            * </p>
2547            *
2548            * @param groupId the group ID
2549            * @param classNameId the class name ID
2550            * @param classPK the class p k
2551            * @param type the type
2552            * @param mode the mode
2553            * @param start the lower bound of the range of d d m templates
2554            * @param end the upper bound of the range of d d m templates (not inclusive)
2555            * @return the range of matching d d m templates
2556            * @throws SystemException if a system exception occurred
2557            */
2558            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2559                    long groupId, long classNameId, long classPK, java.lang.String type,
2560                    java.lang.String mode, int start, int end)
2561                    throws com.liferay.portal.kernel.exception.SystemException;
2562    
2563            /**
2564            * 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;.
2565            *
2566            * <p>
2567            * 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.
2568            * </p>
2569            *
2570            * @param groupId the group ID
2571            * @param classNameId the class name ID
2572            * @param classPK the class p k
2573            * @param type the type
2574            * @param mode the mode
2575            * @param start the lower bound of the range of d d m templates
2576            * @param end the upper bound of the range of d d m templates (not inclusive)
2577            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2578            * @return the ordered range of matching d d m templates
2579            * @throws SystemException if a system exception occurred
2580            */
2581            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2582                    long groupId, long classNameId, long classPK, java.lang.String type,
2583                    java.lang.String mode, int start, int end,
2584                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2585                    throws com.liferay.portal.kernel.exception.SystemException;
2586    
2587            /**
2588            * 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;.
2589            *
2590            * @param groupId the group ID
2591            * @param classNameId the class name ID
2592            * @param classPK the class p k
2593            * @param type the type
2594            * @param mode the mode
2595            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2596            * @return the first matching d d m template
2597            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2598            * @throws SystemException if a system exception occurred
2599            */
2600            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_First(
2601                    long groupId, long classNameId, long classPK, java.lang.String type,
2602                    java.lang.String mode,
2603                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2604                    throws com.liferay.portal.kernel.exception.SystemException,
2605                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2606    
2607            /**
2608            * 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;.
2609            *
2610            * @param groupId the group ID
2611            * @param classNameId the class name ID
2612            * @param classPK the class p k
2613            * @param type the type
2614            * @param mode the mode
2615            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2616            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2617            * @throws SystemException if a system exception occurred
2618            */
2619            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_First(
2620                    long groupId, long classNameId, long classPK, java.lang.String type,
2621                    java.lang.String mode,
2622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2623                    throws com.liferay.portal.kernel.exception.SystemException;
2624    
2625            /**
2626            * 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;.
2627            *
2628            * @param groupId the group ID
2629            * @param classNameId the class name ID
2630            * @param classPK the class p k
2631            * @param type the type
2632            * @param mode the mode
2633            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2634            * @return the last matching d d m template
2635            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2636            * @throws SystemException if a system exception occurred
2637            */
2638            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_Last(
2639                    long groupId, long classNameId, long classPK, java.lang.String type,
2640                    java.lang.String mode,
2641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2642                    throws com.liferay.portal.kernel.exception.SystemException,
2643                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2644    
2645            /**
2646            * 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;.
2647            *
2648            * @param groupId the group ID
2649            * @param classNameId the class name ID
2650            * @param classPK the class p k
2651            * @param type the type
2652            * @param mode the mode
2653            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2654            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2655            * @throws SystemException if a system exception occurred
2656            */
2657            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_Last(
2658                    long groupId, long classNameId, long classPK, java.lang.String type,
2659                    java.lang.String mode,
2660                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2661                    throws com.liferay.portal.kernel.exception.SystemException;
2662    
2663            /**
2664            * 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;.
2665            *
2666            * @param templateId the primary key of the current d d m template
2667            * @param groupId the group ID
2668            * @param classNameId the class name ID
2669            * @param classPK the class p k
2670            * @param type the type
2671            * @param mode the mode
2672            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2673            * @return the previous, current, and next d d m template
2674            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2675            * @throws SystemException if a system exception occurred
2676            */
2677            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_M_PrevAndNext(
2678                    long templateId, long groupId, long classNameId, long classPK,
2679                    java.lang.String type, java.lang.String mode,
2680                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2681                    throws com.liferay.portal.kernel.exception.SystemException,
2682                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2683    
2684            /**
2685            * 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;.
2686            *
2687            * @param groupId the group ID
2688            * @param classNameId the class name ID
2689            * @param classPK the class p k
2690            * @param type the type
2691            * @param mode the mode
2692            * @return the matching d d m templates that the user has permission to view
2693            * @throws SystemException if a system exception occurred
2694            */
2695            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2696                    long groupId, long classNameId, long classPK, java.lang.String type,
2697                    java.lang.String mode)
2698                    throws com.liferay.portal.kernel.exception.SystemException;
2699    
2700            /**
2701            * 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;.
2702            *
2703            * <p>
2704            * 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.
2705            * </p>
2706            *
2707            * @param groupId the group ID
2708            * @param classNameId the class name ID
2709            * @param classPK the class p k
2710            * @param type the type
2711            * @param mode the mode
2712            * @param start the lower bound of the range of d d m templates
2713            * @param end the upper bound of the range of d d m templates (not inclusive)
2714            * @return the range of matching d d m templates that the user has permission to view
2715            * @throws SystemException if a system exception occurred
2716            */
2717            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2718                    long groupId, long classNameId, long classPK, java.lang.String type,
2719                    java.lang.String mode, int start, int end)
2720                    throws com.liferay.portal.kernel.exception.SystemException;
2721    
2722            /**
2723            * 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;.
2724            *
2725            * <p>
2726            * 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.
2727            * </p>
2728            *
2729            * @param groupId the group ID
2730            * @param classNameId the class name ID
2731            * @param classPK the class p k
2732            * @param type the type
2733            * @param mode the mode
2734            * @param start the lower bound of the range of d d m templates
2735            * @param end the upper bound of the range of d d m templates (not inclusive)
2736            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2737            * @return the ordered range of matching d d m templates that the user has permission to view
2738            * @throws SystemException if a system exception occurred
2739            */
2740            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2741                    long groupId, long classNameId, long classPK, java.lang.String type,
2742                    java.lang.String mode, int start, int end,
2743                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2744                    throws com.liferay.portal.kernel.exception.SystemException;
2745    
2746            /**
2747            * 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;.
2748            *
2749            * @param templateId the primary key of the current d d m template
2750            * @param groupId the group ID
2751            * @param classNameId the class name ID
2752            * @param classPK the class p k
2753            * @param type the type
2754            * @param mode the mode
2755            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2756            * @return the previous, current, and next d d m template
2757            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2758            * @throws SystemException if a system exception occurred
2759            */
2760            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(
2761                    long templateId, long groupId, long classNameId, long classPK,
2762                    java.lang.String type, java.lang.String mode,
2763                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2764                    throws com.liferay.portal.kernel.exception.SystemException,
2765                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2766    
2767            /**
2768            * 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.
2769            *
2770            * @param groupId the group ID
2771            * @param classNameId the class name ID
2772            * @param classPK the class p k
2773            * @param type the type
2774            * @param mode the mode
2775            * @throws SystemException if a system exception occurred
2776            */
2777            public void removeByG_C_C_T_M(long groupId, long classNameId, long classPK,
2778                    java.lang.String type, java.lang.String mode)
2779                    throws com.liferay.portal.kernel.exception.SystemException;
2780    
2781            /**
2782            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2783            *
2784            * @param groupId the group ID
2785            * @param classNameId the class name ID
2786            * @param classPK the class p k
2787            * @param type the type
2788            * @param mode the mode
2789            * @return the number of matching d d m templates
2790            * @throws SystemException if a system exception occurred
2791            */
2792            public int countByG_C_C_T_M(long groupId, long classNameId, long classPK,
2793                    java.lang.String type, java.lang.String mode)
2794                    throws com.liferay.portal.kernel.exception.SystemException;
2795    
2796            /**
2797            * 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;.
2798            *
2799            * @param groupId the group ID
2800            * @param classNameId the class name ID
2801            * @param classPK the class p k
2802            * @param type the type
2803            * @param mode the mode
2804            * @return the number of matching d d m templates that the user has permission to view
2805            * @throws SystemException if a system exception occurred
2806            */
2807            public int filterCountByG_C_C_T_M(long groupId, long classNameId,
2808                    long classPK, java.lang.String type, java.lang.String mode)
2809                    throws com.liferay.portal.kernel.exception.SystemException;
2810    
2811            /**
2812            * Caches the d d m template in the entity cache if it is enabled.
2813            *
2814            * @param ddmTemplate the d d m template
2815            */
2816            public void cacheResult(
2817                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
2818    
2819            /**
2820            * Caches the d d m templates in the entity cache if it is enabled.
2821            *
2822            * @param ddmTemplates the d d m templates
2823            */
2824            public void cacheResult(
2825                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
2826    
2827            /**
2828            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
2829            *
2830            * @param templateId the primary key for the new d d m template
2831            * @return the new d d m template
2832            */
2833            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
2834                    long templateId);
2835    
2836            /**
2837            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
2838            *
2839            * @param templateId the primary key of the d d m template
2840            * @return the d d m template that was removed
2841            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2842            * @throws SystemException if a system exception occurred
2843            */
2844            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
2845                    long templateId)
2846                    throws com.liferay.portal.kernel.exception.SystemException,
2847                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2848    
2849            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
2850                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
2851                    throws com.liferay.portal.kernel.exception.SystemException;
2852    
2853            /**
2854            * 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.
2855            *
2856            * @param templateId the primary key of the d d m template
2857            * @return the d d m template
2858            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2859            * @throws SystemException if a system exception occurred
2860            */
2861            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
2862                    long templateId)
2863                    throws com.liferay.portal.kernel.exception.SystemException,
2864                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2865    
2866            /**
2867            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
2868            *
2869            * @param templateId the primary key of the d d m template
2870            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
2871            * @throws SystemException if a system exception occurred
2872            */
2873            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
2874                    long templateId)
2875                    throws com.liferay.portal.kernel.exception.SystemException;
2876    
2877            /**
2878            * Returns all the d d m templates.
2879            *
2880            * @return the d d m templates
2881            * @throws SystemException if a system exception occurred
2882            */
2883            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
2884                    throws com.liferay.portal.kernel.exception.SystemException;
2885    
2886            /**
2887            * Returns a range of all the d d m templates.
2888            *
2889            * <p>
2890            * 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.
2891            * </p>
2892            *
2893            * @param start the lower bound of the range of d d m templates
2894            * @param end the upper bound of the range of d d m templates (not inclusive)
2895            * @return the range of d d m templates
2896            * @throws SystemException if a system exception occurred
2897            */
2898            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2899                    int start, int end)
2900                    throws com.liferay.portal.kernel.exception.SystemException;
2901    
2902            /**
2903            * Returns an ordered range of all the d d m templates.
2904            *
2905            * <p>
2906            * 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.
2907            * </p>
2908            *
2909            * @param start the lower bound of the range of d d m templates
2910            * @param end the upper bound of the range of d d m templates (not inclusive)
2911            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2912            * @return the ordered range of d d m templates
2913            * @throws SystemException if a system exception occurred
2914            */
2915            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2916                    int start, int end,
2917                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2918                    throws com.liferay.portal.kernel.exception.SystemException;
2919    
2920            /**
2921            * Removes all the d d m templates from the database.
2922            *
2923            * @throws SystemException if a system exception occurred
2924            */
2925            public void removeAll()
2926                    throws com.liferay.portal.kernel.exception.SystemException;
2927    
2928            /**
2929            * Returns the number of d d m templates.
2930            *
2931            * @return the number of d d m templates
2932            * @throws SystemException if a system exception occurred
2933            */
2934            public int countAll()
2935                    throws com.liferay.portal.kernel.exception.SystemException;
2936    }