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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.persistence.BasePersistence;
020    
021    import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
022    
023    /**
024     * The persistence interface for the d d m template service.
025     *
026     * <p>
027     * Caching information and settings can be found in <code>portal.properties</code>
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see DDMTemplatePersistenceImpl
032     * @see DDMTemplateUtil
033     * @generated
034     */
035    @ProviderType
036    public interface DDMTemplatePersistence extends BasePersistence<DDMTemplate> {
037            /*
038             * NOTE FOR DEVELOPERS:
039             *
040             * 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.
041             */
042    
043            /**
044            * Returns all the d d m templates where uuid = &#63;.
045            *
046            * @param uuid the uuid
047            * @return the matching d d m templates
048            * @throws SystemException if a system exception occurred
049            */
050            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
051                    java.lang.String uuid)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Returns a range of all the d d m templates where uuid = &#63;.
056            *
057            * <p>
058            * 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.
059            * </p>
060            *
061            * @param uuid the uuid
062            * @param start the lower bound of the range of d d m templates
063            * @param end the upper bound of the range of d d m templates (not inclusive)
064            * @return the range of matching d d m templates
065            * @throws SystemException if a system exception occurred
066            */
067            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
068                    java.lang.String uuid, int start, int end)
069                    throws com.liferay.portal.kernel.exception.SystemException;
070    
071            /**
072            * Returns an ordered range of all the d d m templates where uuid = &#63;.
073            *
074            * <p>
075            * 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.
076            * </p>
077            *
078            * @param uuid the uuid
079            * @param start the lower bound of the range of d d m templates
080            * @param end the upper bound of the range of d d m templates (not inclusive)
081            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
082            * @return the ordered range of matching d d m templates
083            * @throws SystemException if a system exception occurred
084            */
085            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
086                    java.lang.String uuid, int start, int end,
087                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            /**
091            * Returns the first d d m template in the ordered set where uuid = &#63;.
092            *
093            * @param uuid the uuid
094            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
095            * @return the first matching d d m template
096            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First(
100                    java.lang.String uuid,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.kernel.exception.SystemException,
103                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
104    
105            /**
106            * Returns the first d d m template in the ordered set where uuid = &#63;.
107            *
108            * @param uuid the uuid
109            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
110            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
111            * @throws SystemException if a system exception occurred
112            */
113            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First(
114                    java.lang.String uuid,
115                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns the last d d m template in the ordered set where uuid = &#63;.
120            *
121            * @param uuid the uuid
122            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
123            * @return the last matching d d m template
124            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
125            * @throws SystemException if a system exception occurred
126            */
127            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last(
128                    java.lang.String uuid,
129                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130                    throws com.liferay.portal.kernel.exception.SystemException,
131                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
132    
133            /**
134            * Returns the last d d m template in the ordered set where uuid = &#63;.
135            *
136            * @param uuid the uuid
137            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
138            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
139            * @throws SystemException if a system exception occurred
140            */
141            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last(
142                    java.lang.String uuid,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            /**
147            * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = &#63;.
148            *
149            * @param templateId the primary key of the current d d m template
150            * @param uuid the uuid
151            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
152            * @return the previous, current, and next d d m template
153            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
154            * @throws SystemException if a system exception occurred
155            */
156            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext(
157                    long templateId, java.lang.String uuid,
158                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159                    throws com.liferay.portal.kernel.exception.SystemException,
160                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
161    
162            /**
163            * Removes all the d d m templates where uuid = &#63; from the database.
164            *
165            * @param uuid the uuid
166            * @throws SystemException if a system exception occurred
167            */
168            public void removeByUuid(java.lang.String uuid)
169                    throws com.liferay.portal.kernel.exception.SystemException;
170    
171            /**
172            * Returns the number of d d m templates where uuid = &#63;.
173            *
174            * @param uuid the uuid
175            * @return the number of matching d d m templates
176            * @throws SystemException if a system exception occurred
177            */
178            public int countByUuid(java.lang.String uuid)
179                    throws com.liferay.portal.kernel.exception.SystemException;
180    
181            /**
182            * 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.
183            *
184            * @param uuid the uuid
185            * @param groupId the group ID
186            * @return the matching d d m template
187            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
188            * @throws SystemException if a system exception occurred
189            */
190            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G(
191                    java.lang.String uuid, long groupId)
192                    throws com.liferay.portal.kernel.exception.SystemException,
193                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
194    
195            /**
196            * 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.
197            *
198            * @param uuid the uuid
199            * @param groupId the group ID
200            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
201            * @throws SystemException if a system exception occurred
202            */
203            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
204                    java.lang.String uuid, long groupId)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid
211            * @param groupId the group ID
212            * @param retrieveFromCache whether to use the finder cache
213            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
217                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
218                    throws com.liferay.portal.kernel.exception.SystemException;
219    
220            /**
221            * Removes the d d m template where uuid = &#63; and groupId = &#63; from the database.
222            *
223            * @param uuid the uuid
224            * @param groupId the group ID
225            * @return the d d m template that was removed
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G(
229                    java.lang.String uuid, long groupId)
230                    throws com.liferay.portal.kernel.exception.SystemException,
231                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
232    
233            /**
234            * Returns the number of d d m templates where uuid = &#63; and groupId = &#63;.
235            *
236            * @param uuid the uuid
237            * @param groupId the group ID
238            * @return the number of matching d d m templates
239            * @throws SystemException if a system exception occurred
240            */
241            public int countByUUID_G(java.lang.String uuid, long groupId)
242                    throws com.liferay.portal.kernel.exception.SystemException;
243    
244            /**
245            * Returns all the d d m templates where uuid = &#63; and companyId = &#63;.
246            *
247            * @param uuid the uuid
248            * @param companyId the company ID
249            * @return the matching d d m templates
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
253                    java.lang.String uuid, long companyId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Returns a range of all the d d m templates where uuid = &#63; and companyId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param uuid the uuid
264            * @param companyId the company ID
265            * @param start the lower bound of the range of d d m templates
266            * @param end the upper bound of the range of d d m templates (not inclusive)
267            * @return the range of matching d d m templates
268            * @throws SystemException if a system exception occurred
269            */
270            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
271                    java.lang.String uuid, long companyId, int start, int end)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            /**
275            * Returns an ordered range of all the d d m templates where uuid = &#63; and companyId = &#63;.
276            *
277            * <p>
278            * 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.
279            * </p>
280            *
281            * @param uuid the uuid
282            * @param companyId the company ID
283            * @param start the lower bound of the range of d d m templates
284            * @param end the upper bound of the range of d d m templates (not inclusive)
285            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
286            * @return the ordered range of matching d d m templates
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid_C(
290                    java.lang.String uuid, long companyId, int start, int end,
291                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292                    throws com.liferay.portal.kernel.exception.SystemException;
293    
294            /**
295            * Returns the first d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
296            *
297            * @param uuid the uuid
298            * @param companyId the company ID
299            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
300            * @return the first matching d d m template
301            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
302            * @throws SystemException if a system exception occurred
303            */
304            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_First(
305                    java.lang.String uuid, long companyId,
306                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307                    throws com.liferay.portal.kernel.exception.SystemException,
308                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
309    
310            /**
311            * Returns the first d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
312            *
313            * @param uuid the uuid
314            * @param companyId the company ID
315            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
316            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
317            * @throws SystemException if a system exception occurred
318            */
319            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_First(
320                    java.lang.String uuid, long companyId,
321                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
322                    throws com.liferay.portal.kernel.exception.SystemException;
323    
324            /**
325            * Returns the last d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
326            *
327            * @param uuid the uuid
328            * @param companyId the company ID
329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
330            * @return the last matching d d m template
331            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
332            * @throws SystemException if a system exception occurred
333            */
334            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_C_Last(
335                    java.lang.String uuid, long companyId,
336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
337                    throws com.liferay.portal.kernel.exception.SystemException,
338                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
339    
340            /**
341            * Returns the last d d m template in the ordered set where uuid = &#63; and companyId = &#63;.
342            *
343            * @param uuid the uuid
344            * @param companyId the company ID
345            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
346            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_C_Last(
350                    java.lang.String uuid, long companyId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException;
353    
354            /**
355            * 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;.
356            *
357            * @param templateId the primary key of the current d d m template
358            * @param uuid the uuid
359            * @param companyId the company ID
360            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
361            * @return the previous, current, and next d d m template
362            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
363            * @throws SystemException if a system exception occurred
364            */
365            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_C_PrevAndNext(
366                    long templateId, java.lang.String uuid, long companyId,
367                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368                    throws com.liferay.portal.kernel.exception.SystemException,
369                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
370    
371            /**
372            * Removes all the d d m templates where uuid = &#63; and companyId = &#63; from the database.
373            *
374            * @param uuid the uuid
375            * @param companyId the company ID
376            * @throws SystemException if a system exception occurred
377            */
378            public void removeByUuid_C(java.lang.String uuid, long companyId)
379                    throws com.liferay.portal.kernel.exception.SystemException;
380    
381            /**
382            * Returns the number of d d m templates where uuid = &#63; and companyId = &#63;.
383            *
384            * @param uuid the uuid
385            * @param companyId the company ID
386            * @return the number of matching d d m templates
387            * @throws SystemException if a system exception occurred
388            */
389            public int countByUuid_C(java.lang.String uuid, long companyId)
390                    throws com.liferay.portal.kernel.exception.SystemException;
391    
392            /**
393            * Returns all the d d m templates where groupId = &#63;.
394            *
395            * @param groupId the group ID
396            * @return the matching d d m templates
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
400                    long groupId)
401                    throws com.liferay.portal.kernel.exception.SystemException;
402    
403            /**
404            * Returns a range of all the d d m templates where groupId = &#63;.
405            *
406            * <p>
407            * 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.
408            * </p>
409            *
410            * @param groupId the group ID
411            * @param start the lower bound of the range of d d m templates
412            * @param end the upper bound of the range of d d m templates (not inclusive)
413            * @return the range of matching d d m templates
414            * @throws SystemException if a system exception occurred
415            */
416            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
417                    long groupId, int start, int end)
418                    throws com.liferay.portal.kernel.exception.SystemException;
419    
420            /**
421            * Returns an ordered range of all the d d m templates where groupId = &#63;.
422            *
423            * <p>
424            * 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.
425            * </p>
426            *
427            * @param groupId the group ID
428            * @param start the lower bound of the range of d d m templates
429            * @param end the upper bound of the range of d d m templates (not inclusive)
430            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
431            * @return the ordered range of matching d d m templates
432            * @throws SystemException if a system exception occurred
433            */
434            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
435                    long groupId, int start, int end,
436                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
437                    throws com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns the first d d m template in the ordered set where groupId = &#63;.
441            *
442            * @param groupId the group ID
443            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
444            * @return the first matching d d m template
445            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
446            * @throws SystemException if a system exception occurred
447            */
448            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First(
449                    long groupId,
450                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
451                    throws com.liferay.portal.kernel.exception.SystemException,
452                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
453    
454            /**
455            * Returns the first d d m template in the ordered set where groupId = &#63;.
456            *
457            * @param groupId the group ID
458            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
459            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
460            * @throws SystemException if a system exception occurred
461            */
462            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First(
463                    long groupId,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the last d d m template in the ordered set where groupId = &#63;.
469            *
470            * @param groupId the group ID
471            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
472            * @return the last matching d d m template
473            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
474            * @throws SystemException if a system exception occurred
475            */
476            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last(
477                    long groupId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
481    
482            /**
483            * Returns the last d d m template in the ordered set where groupId = &#63;.
484            *
485            * @param groupId the group ID
486            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
487            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
488            * @throws SystemException if a system exception occurred
489            */
490            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last(
491                    long groupId,
492                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
493                    throws com.liferay.portal.kernel.exception.SystemException;
494    
495            /**
496            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63;.
497            *
498            * @param templateId the primary key of the current d d m template
499            * @param groupId the group ID
500            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
501            * @return the previous, current, and next d d m template
502            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
503            * @throws SystemException if a system exception occurred
504            */
505            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext(
506                    long templateId, long groupId,
507                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
508                    throws com.liferay.portal.kernel.exception.SystemException,
509                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
510    
511            /**
512            * Returns all the d d m templates that the user has permission to view where groupId = &#63;.
513            *
514            * @param groupId the group ID
515            * @return the matching d d m templates that the user has permission to view
516            * @throws SystemException if a system exception occurred
517            */
518            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
519                    long groupId)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63;.
524            *
525            * <p>
526            * 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.
527            * </p>
528            *
529            * @param groupId the group ID
530            * @param start the lower bound of the range of d d m templates
531            * @param end the upper bound of the range of d d m templates (not inclusive)
532            * @return the range of matching d d m templates that the user has permission to view
533            * @throws SystemException if a system exception occurred
534            */
535            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
536                    long groupId, int start, int end)
537                    throws com.liferay.portal.kernel.exception.SystemException;
538    
539            /**
540            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63;.
541            *
542            * <p>
543            * 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.
544            * </p>
545            *
546            * @param groupId the group ID
547            * @param start the lower bound of the range of d d m templates
548            * @param end the upper bound of the range of d d m templates (not inclusive)
549            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
550            * @return the ordered range of matching d d m templates that the user has permission to view
551            * @throws SystemException if a system exception occurred
552            */
553            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
554                    long groupId, int start, int end,
555                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
556                    throws com.liferay.portal.kernel.exception.SystemException;
557    
558            /**
559            * 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;.
560            *
561            * @param templateId the primary key of the current d d m template
562            * @param groupId the group ID
563            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
564            * @return the previous, current, and next d d m template
565            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
566            * @throws SystemException if a system exception occurred
567            */
568            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext(
569                    long templateId, long groupId,
570                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
571                    throws com.liferay.portal.kernel.exception.SystemException,
572                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
573    
574            /**
575            * Removes all the d d m templates where groupId = &#63; from the database.
576            *
577            * @param groupId the group ID
578            * @throws SystemException if a system exception occurred
579            */
580            public void removeByGroupId(long groupId)
581                    throws com.liferay.portal.kernel.exception.SystemException;
582    
583            /**
584            * Returns the number of d d m templates where groupId = &#63;.
585            *
586            * @param groupId the group ID
587            * @return the number of matching d d m templates
588            * @throws SystemException if a system exception occurred
589            */
590            public int countByGroupId(long groupId)
591                    throws com.liferay.portal.kernel.exception.SystemException;
592    
593            /**
594            * Returns the number of d d m templates that the user has permission to view where groupId = &#63;.
595            *
596            * @param groupId the group ID
597            * @return the number of matching d d m templates that the user has permission to view
598            * @throws SystemException if a system exception occurred
599            */
600            public int filterCountByGroupId(long groupId)
601                    throws com.liferay.portal.kernel.exception.SystemException;
602    
603            /**
604            * Returns all the d d m templates where classPK = &#63;.
605            *
606            * @param classPK the class p k
607            * @return the matching d d m templates
608            * @throws SystemException if a system exception occurred
609            */
610            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
611                    long classPK)
612                    throws com.liferay.portal.kernel.exception.SystemException;
613    
614            /**
615            * Returns a range of all the d d m templates where classPK = &#63;.
616            *
617            * <p>
618            * 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.
619            * </p>
620            *
621            * @param classPK the class p k
622            * @param start the lower bound of the range of d d m templates
623            * @param end the upper bound of the range of d d m templates (not inclusive)
624            * @return the range of matching d d m templates
625            * @throws SystemException if a system exception occurred
626            */
627            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
628                    long classPK, int start, int end)
629                    throws com.liferay.portal.kernel.exception.SystemException;
630    
631            /**
632            * Returns an ordered range of all the d d m templates where classPK = &#63;.
633            *
634            * <p>
635            * 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.
636            * </p>
637            *
638            * @param classPK the class p k
639            * @param start the lower bound of the range of d d m templates
640            * @param end the upper bound of the range of d d m templates (not inclusive)
641            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
642            * @return the ordered range of matching d d m templates
643            * @throws SystemException if a system exception occurred
644            */
645            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByClassPK(
646                    long classPK, int start, int end,
647                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
648                    throws com.liferay.portal.kernel.exception.SystemException;
649    
650            /**
651            * Returns the first d d m template in the ordered set where classPK = &#63;.
652            *
653            * @param classPK the class p k
654            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
655            * @return the first matching d d m template
656            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_First(
660                    long classPK,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException,
663                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
664    
665            /**
666            * Returns the first d d m template in the ordered set where classPK = &#63;.
667            *
668            * @param classPK the class p k
669            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
670            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
671            * @throws SystemException if a system exception occurred
672            */
673            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_First(
674                    long classPK,
675                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
676                    throws com.liferay.portal.kernel.exception.SystemException;
677    
678            /**
679            * Returns the last d d m template in the ordered set where classPK = &#63;.
680            *
681            * @param classPK the class p k
682            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
683            * @return the last matching d d m template
684            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
685            * @throws SystemException if a system exception occurred
686            */
687            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByClassPK_Last(
688                    long classPK,
689                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
690                    throws com.liferay.portal.kernel.exception.SystemException,
691                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
692    
693            /**
694            * Returns the last d d m template in the ordered set where classPK = &#63;.
695            *
696            * @param classPK the class p k
697            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
698            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
699            * @throws SystemException if a system exception occurred
700            */
701            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByClassPK_Last(
702                    long classPK,
703                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
704                    throws com.liferay.portal.kernel.exception.SystemException;
705    
706            /**
707            * Returns the d d m templates before and after the current d d m template in the ordered set where classPK = &#63;.
708            *
709            * @param templateId the primary key of the current d d m template
710            * @param classPK the class p k
711            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
712            * @return the previous, current, and next d d m template
713            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
714            * @throws SystemException if a system exception occurred
715            */
716            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByClassPK_PrevAndNext(
717                    long templateId, long classPK,
718                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
719                    throws com.liferay.portal.kernel.exception.SystemException,
720                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
721    
722            /**
723            * Removes all the d d m templates where classPK = &#63; from the database.
724            *
725            * @param classPK the class p k
726            * @throws SystemException if a system exception occurred
727            */
728            public void removeByClassPK(long classPK)
729                    throws com.liferay.portal.kernel.exception.SystemException;
730    
731            /**
732            * Returns the number of d d m templates where classPK = &#63;.
733            *
734            * @param classPK the class p k
735            * @return the number of matching d d m templates
736            * @throws SystemException if a system exception occurred
737            */
738            public int countByClassPK(long classPK)
739                    throws com.liferay.portal.kernel.exception.SystemException;
740    
741            /**
742            * Returns all the d d m templates where templateKey = &#63;.
743            *
744            * @param templateKey the template key
745            * @return the matching d d m templates
746            * @throws SystemException if a system exception occurred
747            */
748            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey(
749                    java.lang.String templateKey)
750                    throws com.liferay.portal.kernel.exception.SystemException;
751    
752            /**
753            * Returns a range of all the d d m templates where templateKey = &#63;.
754            *
755            * <p>
756            * 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.
757            * </p>
758            *
759            * @param templateKey the template key
760            * @param start the lower bound of the range of d d m templates
761            * @param end the upper bound of the range of d d m templates (not inclusive)
762            * @return the range of matching d d m templates
763            * @throws SystemException if a system exception occurred
764            */
765            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey(
766                    java.lang.String templateKey, int start, int end)
767                    throws com.liferay.portal.kernel.exception.SystemException;
768    
769            /**
770            * Returns an ordered range of all the d d m templates where templateKey = &#63;.
771            *
772            * <p>
773            * 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.
774            * </p>
775            *
776            * @param templateKey the template key
777            * @param start the lower bound of the range of d d m templates
778            * @param end the upper bound of the range of d d m templates (not inclusive)
779            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
780            * @return the ordered range of matching d d m templates
781            * @throws SystemException if a system exception occurred
782            */
783            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByTemplateKey(
784                    java.lang.String templateKey, int start, int end,
785                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Returns the first d d m template in the ordered set where templateKey = &#63;.
790            *
791            * @param templateKey the template key
792            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
793            * @return the first matching d d m template
794            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
795            * @throws SystemException if a system exception occurred
796            */
797            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_First(
798                    java.lang.String templateKey,
799                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
800                    throws com.liferay.portal.kernel.exception.SystemException,
801                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
802    
803            /**
804            * Returns the first d d m template in the ordered set where templateKey = &#63;.
805            *
806            * @param templateKey the template key
807            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
808            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
809            * @throws SystemException if a system exception occurred
810            */
811            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_First(
812                    java.lang.String templateKey,
813                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Returns the last d d m template in the ordered set where templateKey = &#63;.
818            *
819            * @param templateKey the template key
820            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
821            * @return the last matching d d m template
822            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
823            * @throws SystemException if a system exception occurred
824            */
825            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByTemplateKey_Last(
826                    java.lang.String templateKey,
827                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
828                    throws com.liferay.portal.kernel.exception.SystemException,
829                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
830    
831            /**
832            * Returns the last d d m template in the ordered set where templateKey = &#63;.
833            *
834            * @param templateKey the template key
835            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
836            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
837            * @throws SystemException if a system exception occurred
838            */
839            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByTemplateKey_Last(
840                    java.lang.String templateKey,
841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
842                    throws com.liferay.portal.kernel.exception.SystemException;
843    
844            /**
845            * Returns the d d m templates before and after the current d d m template in the ordered set where templateKey = &#63;.
846            *
847            * @param templateId the primary key of the current d d m template
848            * @param templateKey the template key
849            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
850            * @return the previous, current, and next d d m template
851            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
852            * @throws SystemException if a system exception occurred
853            */
854            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByTemplateKey_PrevAndNext(
855                    long templateId, java.lang.String templateKey,
856                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
857                    throws com.liferay.portal.kernel.exception.SystemException,
858                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
859    
860            /**
861            * Removes all the d d m templates where templateKey = &#63; from the database.
862            *
863            * @param templateKey the template key
864            * @throws SystemException if a system exception occurred
865            */
866            public void removeByTemplateKey(java.lang.String templateKey)
867                    throws com.liferay.portal.kernel.exception.SystemException;
868    
869            /**
870            * Returns the number of d d m templates where templateKey = &#63;.
871            *
872            * @param templateKey the template key
873            * @return the number of matching d d m templates
874            * @throws SystemException if a system exception occurred
875            */
876            public int countByTemplateKey(java.lang.String templateKey)
877                    throws com.liferay.portal.kernel.exception.SystemException;
878    
879            /**
880            * Returns all the d d m templates where type = &#63;.
881            *
882            * @param type the type
883            * @return the matching d d m templates
884            * @throws SystemException if a system exception occurred
885            */
886            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
887                    java.lang.String type)
888                    throws com.liferay.portal.kernel.exception.SystemException;
889    
890            /**
891            * Returns a range of all the d d m templates where type = &#63;.
892            *
893            * <p>
894            * 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.
895            * </p>
896            *
897            * @param type the type
898            * @param start the lower bound of the range of d d m templates
899            * @param end the upper bound of the range of d d m templates (not inclusive)
900            * @return the range of matching d d m templates
901            * @throws SystemException if a system exception occurred
902            */
903            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
904                    java.lang.String type, int start, int end)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Returns an ordered range of all the d d m templates where type = &#63;.
909            *
910            * <p>
911            * 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.
912            * </p>
913            *
914            * @param type the type
915            * @param start the lower bound of the range of d d m templates
916            * @param end the upper bound of the range of d d m templates (not inclusive)
917            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
918            * @return the ordered range of matching d d m templates
919            * @throws SystemException if a system exception occurred
920            */
921            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
922                    java.lang.String type, int start, int end,
923                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
924                    throws com.liferay.portal.kernel.exception.SystemException;
925    
926            /**
927            * Returns the first d d m template in the ordered set where type = &#63;.
928            *
929            * @param type the type
930            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
931            * @return the first matching d d m template
932            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
933            * @throws SystemException if a system exception occurred
934            */
935            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First(
936                    java.lang.String type,
937                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
938                    throws com.liferay.portal.kernel.exception.SystemException,
939                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
940    
941            /**
942            * Returns the first d d m template in the ordered set where type = &#63;.
943            *
944            * @param type the type
945            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
946            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
947            * @throws SystemException if a system exception occurred
948            */
949            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First(
950                    java.lang.String type,
951                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
952                    throws com.liferay.portal.kernel.exception.SystemException;
953    
954            /**
955            * Returns the last d d m template in the ordered set where type = &#63;.
956            *
957            * @param type the type
958            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
959            * @return the last matching d d m template
960            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
961            * @throws SystemException if a system exception occurred
962            */
963            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last(
964                    java.lang.String type,
965                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
966                    throws com.liferay.portal.kernel.exception.SystemException,
967                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
968    
969            /**
970            * Returns the last d d m template in the ordered set where type = &#63;.
971            *
972            * @param type the type
973            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
974            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
975            * @throws SystemException if a system exception occurred
976            */
977            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last(
978                    java.lang.String type,
979                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
980                    throws com.liferay.portal.kernel.exception.SystemException;
981    
982            /**
983            * Returns the d d m templates before and after the current d d m template in the ordered set where type = &#63;.
984            *
985            * @param templateId the primary key of the current d d m template
986            * @param type the type
987            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
988            * @return the previous, current, and next d d m template
989            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
990            * @throws SystemException if a system exception occurred
991            */
992            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext(
993                    long templateId, java.lang.String type,
994                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
995                    throws com.liferay.portal.kernel.exception.SystemException,
996                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
997    
998            /**
999            * Removes all the d d m templates where type = &#63; from the database.
1000            *
1001            * @param type the type
1002            * @throws SystemException if a system exception occurred
1003            */
1004            public void removeByType(java.lang.String type)
1005                    throws com.liferay.portal.kernel.exception.SystemException;
1006    
1007            /**
1008            * Returns the number of d d m templates where type = &#63;.
1009            *
1010            * @param type the type
1011            * @return the number of matching d d m templates
1012            * @throws SystemException if a system exception occurred
1013            */
1014            public int countByType(java.lang.String type)
1015                    throws com.liferay.portal.kernel.exception.SystemException;
1016    
1017            /**
1018            * Returns all the d d m templates where language = &#63;.
1019            *
1020            * @param language the language
1021            * @return the matching d d m templates
1022            * @throws SystemException if a system exception occurred
1023            */
1024            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1025                    java.lang.String language)
1026                    throws com.liferay.portal.kernel.exception.SystemException;
1027    
1028            /**
1029            * Returns a range of all the d d m templates where language = &#63;.
1030            *
1031            * <p>
1032            * 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.
1033            * </p>
1034            *
1035            * @param language the language
1036            * @param start the lower bound of the range of d d m templates
1037            * @param end the upper bound of the range of d d m templates (not inclusive)
1038            * @return the range of matching d d m templates
1039            * @throws SystemException if a system exception occurred
1040            */
1041            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1042                    java.lang.String language, int start, int end)
1043                    throws com.liferay.portal.kernel.exception.SystemException;
1044    
1045            /**
1046            * Returns an ordered range of all the d d m templates where language = &#63;.
1047            *
1048            * <p>
1049            * 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.
1050            * </p>
1051            *
1052            * @param language the language
1053            * @param start the lower bound of the range of d d m templates
1054            * @param end the upper bound of the range of d d m templates (not inclusive)
1055            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1056            * @return the ordered range of matching d d m templates
1057            * @throws SystemException if a system exception occurred
1058            */
1059            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
1060                    java.lang.String language, int start, int end,
1061                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1062                    throws com.liferay.portal.kernel.exception.SystemException;
1063    
1064            /**
1065            * Returns the first d d m template in the ordered set where language = &#63;.
1066            *
1067            * @param language the language
1068            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1069            * @return the first matching d d m template
1070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1071            * @throws SystemException if a system exception occurred
1072            */
1073            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First(
1074                    java.lang.String language,
1075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1076                    throws com.liferay.portal.kernel.exception.SystemException,
1077                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1078    
1079            /**
1080            * Returns the first d d m template in the ordered set where language = &#63;.
1081            *
1082            * @param language the language
1083            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1084            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1085            * @throws SystemException if a system exception occurred
1086            */
1087            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First(
1088                    java.lang.String language,
1089                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1090                    throws com.liferay.portal.kernel.exception.SystemException;
1091    
1092            /**
1093            * Returns the last d d m template in the ordered set where language = &#63;.
1094            *
1095            * @param language the language
1096            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1097            * @return the last matching d d m template
1098            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1099            * @throws SystemException if a system exception occurred
1100            */
1101            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last(
1102                    java.lang.String language,
1103                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1104                    throws com.liferay.portal.kernel.exception.SystemException,
1105                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1106    
1107            /**
1108            * Returns the last d d m template in the ordered set where language = &#63;.
1109            *
1110            * @param language the language
1111            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1112            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1113            * @throws SystemException if a system exception occurred
1114            */
1115            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last(
1116                    java.lang.String language,
1117                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1118                    throws com.liferay.portal.kernel.exception.SystemException;
1119    
1120            /**
1121            * Returns the d d m templates before and after the current d d m template in the ordered set where language = &#63;.
1122            *
1123            * @param templateId the primary key of the current d d m template
1124            * @param language the language
1125            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1126            * @return the previous, current, and next d d m template
1127            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1128            * @throws SystemException if a system exception occurred
1129            */
1130            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext(
1131                    long templateId, java.lang.String language,
1132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1133                    throws com.liferay.portal.kernel.exception.SystemException,
1134                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1135    
1136            /**
1137            * Removes all the d d m templates where language = &#63; from the database.
1138            *
1139            * @param language the language
1140            * @throws SystemException if a system exception occurred
1141            */
1142            public void removeByLanguage(java.lang.String language)
1143                    throws com.liferay.portal.kernel.exception.SystemException;
1144    
1145            /**
1146            * Returns the number of d d m templates where language = &#63;.
1147            *
1148            * @param language the language
1149            * @return the number of matching d d m templates
1150            * @throws SystemException if a system exception occurred
1151            */
1152            public int countByLanguage(java.lang.String language)
1153                    throws com.liferay.portal.kernel.exception.SystemException;
1154    
1155            /**
1156            * Returns the d d m template where smallImageId = &#63; or throws a {@link com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException} if it could not be found.
1157            *
1158            * @param smallImageId the small image ID
1159            * @return the matching d d m template
1160            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1161            * @throws SystemException if a system exception occurred
1162            */
1163            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findBySmallImageId(
1164                    long smallImageId)
1165                    throws com.liferay.portal.kernel.exception.SystemException,
1166                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1167    
1168            /**
1169            * Returns the d d m template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
1170            *
1171            * @param smallImageId the small image ID
1172            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId(
1176                    long smallImageId)
1177                    throws com.liferay.portal.kernel.exception.SystemException;
1178    
1179            /**
1180            * 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.
1181            *
1182            * @param smallImageId the small image ID
1183            * @param retrieveFromCache whether to use the finder cache
1184            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
1185            * @throws SystemException if a system exception occurred
1186            */
1187            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchBySmallImageId(
1188                    long smallImageId, boolean retrieveFromCache)
1189                    throws com.liferay.portal.kernel.exception.SystemException;
1190    
1191            /**
1192            * Removes the d d m template where smallImageId = &#63; from the database.
1193            *
1194            * @param smallImageId the small image ID
1195            * @return the d d m template that was removed
1196            * @throws SystemException if a system exception occurred
1197            */
1198            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeBySmallImageId(
1199                    long smallImageId)
1200                    throws com.liferay.portal.kernel.exception.SystemException,
1201                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1202    
1203            /**
1204            * Returns the number of d d m templates where smallImageId = &#63;.
1205            *
1206            * @param smallImageId the small image ID
1207            * @return the number of matching d d m templates
1208            * @throws SystemException if a system exception occurred
1209            */
1210            public int countBySmallImageId(long smallImageId)
1211                    throws com.liferay.portal.kernel.exception.SystemException;
1212    
1213            /**
1214            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63;.
1215            *
1216            * @param groupId the group ID
1217            * @param classNameId the class name ID
1218            * @return the matching d d m templates
1219            * @throws SystemException if a system exception occurred
1220            */
1221            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1222                    long groupId, long classNameId)
1223                    throws com.liferay.portal.kernel.exception.SystemException;
1224    
1225            /**
1226            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1227            *
1228            * <p>
1229            * 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.
1230            * </p>
1231            *
1232            * @param groupId the group ID
1233            * @param classNameId the class name ID
1234            * @param start the lower bound of the range of d d m templates
1235            * @param end the upper bound of the range of d d m templates (not inclusive)
1236            * @return the range of matching d d m templates
1237            * @throws SystemException if a system exception occurred
1238            */
1239            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1240                    long groupId, long classNameId, int start, int end)
1241                    throws com.liferay.portal.kernel.exception.SystemException;
1242    
1243            /**
1244            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63;.
1245            *
1246            * <p>
1247            * 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.
1248            * </p>
1249            *
1250            * @param groupId the group ID
1251            * @param classNameId the class name ID
1252            * @param start the lower bound of the range of d d m templates
1253            * @param end the upper bound of the range of d d m templates (not inclusive)
1254            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1255            * @return the ordered range of matching d d m templates
1256            * @throws SystemException if a system exception occurred
1257            */
1258            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C(
1259                    long groupId, long classNameId, int start, int end,
1260                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1261                    throws com.liferay.portal.kernel.exception.SystemException;
1262    
1263            /**
1264            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1265            *
1266            * @param groupId the group ID
1267            * @param classNameId the class name ID
1268            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1269            * @return the first matching d d m template
1270            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1271            * @throws SystemException if a system exception occurred
1272            */
1273            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_First(
1274                    long groupId, long classNameId,
1275                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1276                    throws com.liferay.portal.kernel.exception.SystemException,
1277                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1278    
1279            /**
1280            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1281            *
1282            * @param groupId the group ID
1283            * @param classNameId the class name ID
1284            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1285            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1286            * @throws SystemException if a system exception occurred
1287            */
1288            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_First(
1289                    long groupId, long classNameId,
1290                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1291                    throws com.liferay.portal.kernel.exception.SystemException;
1292    
1293            /**
1294            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1295            *
1296            * @param groupId the group ID
1297            * @param classNameId the class name ID
1298            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1299            * @return the last matching d d m template
1300            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1301            * @throws SystemException if a system exception occurred
1302            */
1303            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_Last(
1304                    long groupId, long classNameId,
1305                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1306                    throws com.liferay.portal.kernel.exception.SystemException,
1307                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1308    
1309            /**
1310            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63;.
1311            *
1312            * @param groupId the group ID
1313            * @param classNameId the class name ID
1314            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1315            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1316            * @throws SystemException if a system exception occurred
1317            */
1318            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_Last(
1319                    long groupId, long classNameId,
1320                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1321                    throws com.liferay.portal.kernel.exception.SystemException;
1322    
1323            /**
1324            * 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;.
1325            *
1326            * @param templateId the primary key of the current d d m template
1327            * @param groupId the group ID
1328            * @param classNameId the class name ID
1329            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1330            * @return the previous, current, and next d d m template
1331            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1332            * @throws SystemException if a system exception occurred
1333            */
1334            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_PrevAndNext(
1335                    long templateId, long groupId, long classNameId,
1336                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1337                    throws com.liferay.portal.kernel.exception.SystemException,
1338                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1339    
1340            /**
1341            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1342            *
1343            * @param groupId the group ID
1344            * @param classNameId the class name ID
1345            * @return the matching d d m templates that the user has permission to view
1346            * @throws SystemException if a system exception occurred
1347            */
1348            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1349                    long groupId, long classNameId)
1350                    throws com.liferay.portal.kernel.exception.SystemException;
1351    
1352            /**
1353            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1354            *
1355            * <p>
1356            * 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.
1357            * </p>
1358            *
1359            * @param groupId the group ID
1360            * @param classNameId the class name ID
1361            * @param start the lower bound of the range of d d m templates
1362            * @param end the upper bound of the range of d d m templates (not inclusive)
1363            * @return the range of matching d d m templates that the user has permission to view
1364            * @throws SystemException if a system exception occurred
1365            */
1366            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1367                    long groupId, long classNameId, int start, int end)
1368                    throws com.liferay.portal.kernel.exception.SystemException;
1369    
1370            /**
1371            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classNameId = &#63;.
1372            *
1373            * <p>
1374            * 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.
1375            * </p>
1376            *
1377            * @param groupId the group ID
1378            * @param classNameId the class name ID
1379            * @param start the lower bound of the range of d d m templates
1380            * @param end the upper bound of the range of d d m templates (not inclusive)
1381            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1382            * @return the ordered range of matching d d m templates that the user has permission to view
1383            * @throws SystemException if a system exception occurred
1384            */
1385            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C(
1386                    long groupId, long classNameId, int start, int end,
1387                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1388                    throws com.liferay.portal.kernel.exception.SystemException;
1389    
1390            /**
1391            * 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;.
1392            *
1393            * @param templateId the primary key of the current d d m template
1394            * @param groupId the group ID
1395            * @param classNameId the class name ID
1396            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1397            * @return the previous, current, and next d d m template
1398            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1399            * @throws SystemException if a system exception occurred
1400            */
1401            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_PrevAndNext(
1402                    long templateId, long groupId, long classNameId,
1403                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1404                    throws com.liferay.portal.kernel.exception.SystemException,
1405                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1406    
1407            /**
1408            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; from the database.
1409            *
1410            * @param groupId the group ID
1411            * @param classNameId the class name ID
1412            * @throws SystemException if a system exception occurred
1413            */
1414            public void removeByG_C(long groupId, long classNameId)
1415                    throws com.liferay.portal.kernel.exception.SystemException;
1416    
1417            /**
1418            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63;.
1419            *
1420            * @param groupId the group ID
1421            * @param classNameId the class name ID
1422            * @return the number of matching d d m templates
1423            * @throws SystemException if a system exception occurred
1424            */
1425            public int countByG_C(long groupId, long classNameId)
1426                    throws com.liferay.portal.kernel.exception.SystemException;
1427    
1428            /**
1429            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63;.
1430            *
1431            * @param groupId the group ID
1432            * @param classNameId the class name ID
1433            * @return the number of matching d d m templates that the user has permission to view
1434            * @throws SystemException if a system exception occurred
1435            */
1436            public int filterCountByG_C(long groupId, long classNameId)
1437                    throws com.liferay.portal.kernel.exception.SystemException;
1438    
1439            /**
1440            * Returns all the d d m templates where groupId = &#63; and classPK = &#63;.
1441            *
1442            * @param groupId the group ID
1443            * @param classPK the class p k
1444            * @return the matching d d m templates
1445            * @throws SystemException if a system exception occurred
1446            */
1447            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1448                    long groupId, long classPK)
1449                    throws com.liferay.portal.kernel.exception.SystemException;
1450    
1451            /**
1452            * Returns a range of all the d d m templates where groupId = &#63; and classPK = &#63;.
1453            *
1454            * <p>
1455            * 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.
1456            * </p>
1457            *
1458            * @param groupId the group ID
1459            * @param classPK the class p k
1460            * @param start the lower bound of the range of d d m templates
1461            * @param end the upper bound of the range of d d m templates (not inclusive)
1462            * @return the range of matching d d m templates
1463            * @throws SystemException if a system exception occurred
1464            */
1465            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1466                    long groupId, long classPK, int start, int end)
1467                    throws com.liferay.portal.kernel.exception.SystemException;
1468    
1469            /**
1470            * Returns an ordered range of all the d d m templates where groupId = &#63; and classPK = &#63;.
1471            *
1472            * <p>
1473            * 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.
1474            * </p>
1475            *
1476            * @param groupId the group ID
1477            * @param classPK the class p k
1478            * @param start the lower bound of the range of d d m templates
1479            * @param end the upper bound of the range of d d m templates (not inclusive)
1480            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1481            * @return the ordered range of matching d d m templates
1482            * @throws SystemException if a system exception occurred
1483            */
1484            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1485                    long groupId, long classPK, int start, int end,
1486                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1487                    throws com.liferay.portal.kernel.exception.SystemException;
1488    
1489            /**
1490            * Returns the first d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1491            *
1492            * @param groupId the group ID
1493            * @param classPK the class p k
1494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1495            * @return the first matching d d m template
1496            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1497            * @throws SystemException if a system exception occurred
1498            */
1499            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_First(
1500                    long groupId, long classPK,
1501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1502                    throws com.liferay.portal.kernel.exception.SystemException,
1503                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1504    
1505            /**
1506            * Returns the first d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1507            *
1508            * @param groupId the group ID
1509            * @param classPK the class p k
1510            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1511            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1512            * @throws SystemException if a system exception occurred
1513            */
1514            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_First(
1515                    long groupId, long classPK,
1516                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1517                    throws com.liferay.portal.kernel.exception.SystemException;
1518    
1519            /**
1520            * Returns the last d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1521            *
1522            * @param groupId the group ID
1523            * @param classPK the class p k
1524            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1525            * @return the last matching d d m template
1526            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1527            * @throws SystemException if a system exception occurred
1528            */
1529            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_CPK_Last(
1530                    long groupId, long classPK,
1531                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1532                    throws com.liferay.portal.kernel.exception.SystemException,
1533                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1534    
1535            /**
1536            * Returns the last d d m template in the ordered set where groupId = &#63; and classPK = &#63;.
1537            *
1538            * @param groupId the group ID
1539            * @param classPK the class p k
1540            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1541            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1542            * @throws SystemException if a system exception occurred
1543            */
1544            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_CPK_Last(
1545                    long groupId, long classPK,
1546                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1547                    throws com.liferay.portal.kernel.exception.SystemException;
1548    
1549            /**
1550            * 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;.
1551            *
1552            * @param templateId the primary key of the current d d m template
1553            * @param groupId the group ID
1554            * @param classPK the class p k
1555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1556            * @return the previous, current, and next d d m template
1557            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1558            * @throws SystemException if a system exception occurred
1559            */
1560            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_CPK_PrevAndNext(
1561                    long templateId, long groupId, long classPK,
1562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1563                    throws com.liferay.portal.kernel.exception.SystemException,
1564                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1565    
1566            /**
1567            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1568            *
1569            * @param groupId the group ID
1570            * @param classPK the class p k
1571            * @return the matching d d m templates that the user has permission to view
1572            * @throws SystemException if a system exception occurred
1573            */
1574            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1575                    long groupId, long classPK)
1576                    throws com.liferay.portal.kernel.exception.SystemException;
1577    
1578            /**
1579            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1580            *
1581            * <p>
1582            * 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.
1583            * </p>
1584            *
1585            * @param groupId the group ID
1586            * @param classPK the class p k
1587            * @param start the lower bound of the range of d d m templates
1588            * @param end the upper bound of the range of d d m templates (not inclusive)
1589            * @return the range of matching d d m templates that the user has permission to view
1590            * @throws SystemException if a system exception occurred
1591            */
1592            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1593                    long groupId, long classPK, int start, int end)
1594                    throws com.liferay.portal.kernel.exception.SystemException;
1595    
1596            /**
1597            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63; and classPK = &#63;.
1598            *
1599            * <p>
1600            * 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.
1601            * </p>
1602            *
1603            * @param groupId the group ID
1604            * @param classPK the class p k
1605            * @param start the lower bound of the range of d d m templates
1606            * @param end the upper bound of the range of d d m templates (not inclusive)
1607            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1608            * @return the ordered range of matching d d m templates that the user has permission to view
1609            * @throws SystemException if a system exception occurred
1610            */
1611            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1612                    long groupId, long classPK, int start, int end,
1613                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1614                    throws com.liferay.portal.kernel.exception.SystemException;
1615    
1616            /**
1617            * 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;.
1618            *
1619            * @param templateId the primary key of the current d d m template
1620            * @param groupId the group ID
1621            * @param classPK the class p k
1622            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1623            * @return the previous, current, and next d d m template
1624            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1625            * @throws SystemException if a system exception occurred
1626            */
1627            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_CPK_PrevAndNext(
1628                    long templateId, long groupId, long classPK,
1629                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1630                    throws com.liferay.portal.kernel.exception.SystemException,
1631                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1632    
1633            /**
1634            * Returns all the d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1635            *
1636            * @param groupIds the group IDs
1637            * @param classPK the class p k
1638            * @return the matching d d m templates that the user has permission to view
1639            * @throws SystemException if a system exception occurred
1640            */
1641            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1642                    long[] groupIds, long classPK)
1643                    throws com.liferay.portal.kernel.exception.SystemException;
1644    
1645            /**
1646            * Returns a range of all the d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1647            *
1648            * <p>
1649            * 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.
1650            * </p>
1651            *
1652            * @param groupIds the group IDs
1653            * @param classPK the class p k
1654            * @param start the lower bound of the range of d d m templates
1655            * @param end the upper bound of the range of d d m templates (not inclusive)
1656            * @return the range of matching d d m templates that the user has permission to view
1657            * @throws SystemException if a system exception occurred
1658            */
1659            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1660                    long[] groupIds, long classPK, int start, int end)
1661                    throws com.liferay.portal.kernel.exception.SystemException;
1662    
1663            /**
1664            * 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;.
1665            *
1666            * <p>
1667            * 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.
1668            * </p>
1669            *
1670            * @param groupIds the group IDs
1671            * @param classPK the class p k
1672            * @param start the lower bound of the range of d d m templates
1673            * @param end the upper bound of the range of d d m templates (not inclusive)
1674            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1675            * @return the ordered range of matching d d m templates that the user has permission to view
1676            * @throws SystemException if a system exception occurred
1677            */
1678            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_CPK(
1679                    long[] groupIds, long classPK, int start, int end,
1680                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1681                    throws com.liferay.portal.kernel.exception.SystemException;
1682    
1683            /**
1684            * Returns all the d d m templates where groupId = any &#63; and classPK = &#63;.
1685            *
1686            * <p>
1687            * 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.
1688            * </p>
1689            *
1690            * @param groupIds the group IDs
1691            * @param classPK the class p k
1692            * @return the matching d d m templates
1693            * @throws SystemException if a system exception occurred
1694            */
1695            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1696                    long[] groupIds, long classPK)
1697                    throws com.liferay.portal.kernel.exception.SystemException;
1698    
1699            /**
1700            * Returns a range of all the d d m templates where groupId = any &#63; and classPK = &#63;.
1701            *
1702            * <p>
1703            * 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.
1704            * </p>
1705            *
1706            * @param groupIds the group IDs
1707            * @param classPK the class p k
1708            * @param start the lower bound of the range of d d m templates
1709            * @param end the upper bound of the range of d d m templates (not inclusive)
1710            * @return the range of matching d d m templates
1711            * @throws SystemException if a system exception occurred
1712            */
1713            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1714                    long[] groupIds, long classPK, int start, int end)
1715                    throws com.liferay.portal.kernel.exception.SystemException;
1716    
1717            /**
1718            * Returns an ordered range of all the d d m templates where groupId = any &#63; and classPK = &#63;.
1719            *
1720            * <p>
1721            * 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.
1722            * </p>
1723            *
1724            * @param groupIds the group IDs
1725            * @param classPK the class p k
1726            * @param start the lower bound of the range of d d m templates
1727            * @param end the upper bound of the range of d d m templates (not inclusive)
1728            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1729            * @return the ordered range of matching d d m templates
1730            * @throws SystemException if a system exception occurred
1731            */
1732            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_CPK(
1733                    long[] groupIds, long classPK, int start, int end,
1734                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1735                    throws com.liferay.portal.kernel.exception.SystemException;
1736    
1737            /**
1738            * Removes all the d d m templates where groupId = &#63; and classPK = &#63; from the database.
1739            *
1740            * @param groupId the group ID
1741            * @param classPK the class p k
1742            * @throws SystemException if a system exception occurred
1743            */
1744            public void removeByG_CPK(long groupId, long classPK)
1745                    throws com.liferay.portal.kernel.exception.SystemException;
1746    
1747            /**
1748            * Returns the number of d d m templates where groupId = &#63; and classPK = &#63;.
1749            *
1750            * @param groupId the group ID
1751            * @param classPK the class p k
1752            * @return the number of matching d d m templates
1753            * @throws SystemException if a system exception occurred
1754            */
1755            public int countByG_CPK(long groupId, long classPK)
1756                    throws com.liferay.portal.kernel.exception.SystemException;
1757    
1758            /**
1759            * Returns the number of d d m templates where groupId = any &#63; and classPK = &#63;.
1760            *
1761            * @param groupIds the group IDs
1762            * @param classPK the class p k
1763            * @return the number of matching d d m templates
1764            * @throws SystemException if a system exception occurred
1765            */
1766            public int countByG_CPK(long[] groupIds, long classPK)
1767                    throws com.liferay.portal.kernel.exception.SystemException;
1768    
1769            /**
1770            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classPK = &#63;.
1771            *
1772            * @param groupId the group ID
1773            * @param classPK the class p k
1774            * @return the number of matching d d m templates that the user has permission to view
1775            * @throws SystemException if a system exception occurred
1776            */
1777            public int filterCountByG_CPK(long groupId, long classPK)
1778                    throws com.liferay.portal.kernel.exception.SystemException;
1779    
1780            /**
1781            * Returns the number of d d m templates that the user has permission to view where groupId = any &#63; and classPK = &#63;.
1782            *
1783            * @param groupIds the group IDs
1784            * @param classPK the class p k
1785            * @return the number of matching d d m templates that the user has permission to view
1786            * @throws SystemException if a system exception occurred
1787            */
1788            public int filterCountByG_CPK(long[] groupIds, long classPK)
1789                    throws com.liferay.portal.kernel.exception.SystemException;
1790    
1791            /**
1792            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1793            *
1794            * @param groupId the group ID
1795            * @param classNameId the class name ID
1796            * @param classPK the class p k
1797            * @return the matching d d m templates
1798            * @throws SystemException if a system exception occurred
1799            */
1800            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1801                    long groupId, long classNameId, long classPK)
1802                    throws com.liferay.portal.kernel.exception.SystemException;
1803    
1804            /**
1805            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1806            *
1807            * <p>
1808            * 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.
1809            * </p>
1810            *
1811            * @param groupId the group ID
1812            * @param classNameId the class name ID
1813            * @param classPK the class p k
1814            * @param start the lower bound of the range of d d m templates
1815            * @param end the upper bound of the range of d d m templates (not inclusive)
1816            * @return the range of matching d d m templates
1817            * @throws SystemException if a system exception occurred
1818            */
1819            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1820                    long groupId, long classNameId, long classPK, int start, int end)
1821                    throws com.liferay.portal.kernel.exception.SystemException;
1822    
1823            /**
1824            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1825            *
1826            * <p>
1827            * 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.
1828            * </p>
1829            *
1830            * @param groupId the group ID
1831            * @param classNameId the class name ID
1832            * @param classPK the class p k
1833            * @param start the lower bound of the range of d d m templates
1834            * @param end the upper bound of the range of d d m templates (not inclusive)
1835            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1836            * @return the ordered range of matching d d m templates
1837            * @throws SystemException if a system exception occurred
1838            */
1839            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C(
1840                    long groupId, long classNameId, long classPK, int start, int end,
1841                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1842                    throws com.liferay.portal.kernel.exception.SystemException;
1843    
1844            /**
1845            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1846            *
1847            * @param groupId the group ID
1848            * @param classNameId the class name ID
1849            * @param classPK the class p k
1850            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1851            * @return the first matching d d m template
1852            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1853            * @throws SystemException if a system exception occurred
1854            */
1855            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_First(
1856                    long groupId, long classNameId, long classPK,
1857                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1858                    throws com.liferay.portal.kernel.exception.SystemException,
1859                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1860    
1861            /**
1862            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1863            *
1864            * @param groupId the group ID
1865            * @param classNameId the class name ID
1866            * @param classPK the class p k
1867            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1868            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1869            * @throws SystemException if a system exception occurred
1870            */
1871            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_First(
1872                    long groupId, long classNameId, long classPK,
1873                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1874                    throws com.liferay.portal.kernel.exception.SystemException;
1875    
1876            /**
1877            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1878            *
1879            * @param groupId the group ID
1880            * @param classNameId the class name ID
1881            * @param classPK the class p k
1882            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1883            * @return the last matching d d m template
1884            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1885            * @throws SystemException if a system exception occurred
1886            */
1887            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_Last(
1888                    long groupId, long classNameId, long classPK,
1889                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1890                    throws com.liferay.portal.kernel.exception.SystemException,
1891                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1892    
1893            /**
1894            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1895            *
1896            * @param groupId the group ID
1897            * @param classNameId the class name ID
1898            * @param classPK the class p k
1899            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1900            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1901            * @throws SystemException if a system exception occurred
1902            */
1903            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_Last(
1904                    long groupId, long classNameId, long classPK,
1905                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1906                    throws com.liferay.portal.kernel.exception.SystemException;
1907    
1908            /**
1909            * 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;.
1910            *
1911            * @param templateId the primary key of the current d d m template
1912            * @param groupId the group ID
1913            * @param classNameId the class name ID
1914            * @param classPK the class p k
1915            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1916            * @return the previous, current, and next d d m template
1917            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1918            * @throws SystemException if a system exception occurred
1919            */
1920            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_PrevAndNext(
1921                    long templateId, long groupId, long classNameId, long classPK,
1922                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1923                    throws com.liferay.portal.kernel.exception.SystemException,
1924                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1925    
1926            /**
1927            * Returns all the d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
1928            *
1929            * @param groupId the group ID
1930            * @param classNameId the class name ID
1931            * @param classPK the class p k
1932            * @return the matching d d m templates that the user has permission to view
1933            * @throws SystemException if a system exception occurred
1934            */
1935            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1936                    long groupId, long classNameId, long classPK)
1937                    throws com.liferay.portal.kernel.exception.SystemException;
1938    
1939            /**
1940            * 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;.
1941            *
1942            * <p>
1943            * 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.
1944            * </p>
1945            *
1946            * @param groupId the group ID
1947            * @param classNameId the class name ID
1948            * @param classPK the class p k
1949            * @param start the lower bound of the range of d d m templates
1950            * @param end the upper bound of the range of d d m templates (not inclusive)
1951            * @return the range of matching d d m templates that the user has permission to view
1952            * @throws SystemException if a system exception occurred
1953            */
1954            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1955                    long groupId, long classNameId, long classPK, int start, int end)
1956                    throws com.liferay.portal.kernel.exception.SystemException;
1957    
1958            /**
1959            * 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;.
1960            *
1961            * <p>
1962            * 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.
1963            * </p>
1964            *
1965            * @param groupId the group ID
1966            * @param classNameId the class name ID
1967            * @param classPK the class p k
1968            * @param start the lower bound of the range of d d m templates
1969            * @param end the upper bound of the range of d d m templates (not inclusive)
1970            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1971            * @return the ordered range of matching d d m templates that the user has permission to view
1972            * @throws SystemException if a system exception occurred
1973            */
1974            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C(
1975                    long groupId, long classNameId, long classPK, int start, int end,
1976                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1977                    throws com.liferay.portal.kernel.exception.SystemException;
1978    
1979            /**
1980            * 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;.
1981            *
1982            * @param templateId the primary key of the current d d m template
1983            * @param groupId the group ID
1984            * @param classNameId the class name ID
1985            * @param classPK the class p k
1986            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1987            * @return the previous, current, and next d d m template
1988            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1989            * @throws SystemException if a system exception occurred
1990            */
1991            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_PrevAndNext(
1992                    long templateId, long groupId, long classNameId, long classPK,
1993                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1994                    throws com.liferay.portal.kernel.exception.SystemException,
1995                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1996    
1997            /**
1998            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; from the database.
1999            *
2000            * @param groupId the group ID
2001            * @param classNameId the class name ID
2002            * @param classPK the class p k
2003            * @throws SystemException if a system exception occurred
2004            */
2005            public void removeByG_C_C(long groupId, long classNameId, long classPK)
2006                    throws com.liferay.portal.kernel.exception.SystemException;
2007    
2008            /**
2009            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2010            *
2011            * @param groupId the group ID
2012            * @param classNameId the class name ID
2013            * @param classPK the class p k
2014            * @return the number of matching d d m templates
2015            * @throws SystemException if a system exception occurred
2016            */
2017            public int countByG_C_C(long groupId, long classNameId, long classPK)
2018                    throws com.liferay.portal.kernel.exception.SystemException;
2019    
2020            /**
2021            * Returns the number of d d m templates that the user has permission to view where groupId = &#63; and classNameId = &#63; and classPK = &#63;.
2022            *
2023            * @param groupId the group ID
2024            * @param classNameId the class name ID
2025            * @param classPK the class p k
2026            * @return the number of matching d d m templates that the user has permission to view
2027            * @throws SystemException if a system exception occurred
2028            */
2029            public int filterCountByG_C_C(long groupId, long classNameId, long classPK)
2030                    throws com.liferay.portal.kernel.exception.SystemException;
2031    
2032            /**
2033            * 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.
2034            *
2035            * @param groupId the group ID
2036            * @param classNameId the class name ID
2037            * @param templateKey the template key
2038            * @return the matching d d m template
2039            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2040            * @throws SystemException if a system exception occurred
2041            */
2042            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_T(
2043                    long groupId, long classNameId, java.lang.String templateKey)
2044                    throws com.liferay.portal.kernel.exception.SystemException,
2045                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2046    
2047            /**
2048            * 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.
2049            *
2050            * @param groupId the group ID
2051            * @param classNameId the class name ID
2052            * @param templateKey the template key
2053            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
2054            * @throws SystemException if a system exception occurred
2055            */
2056            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
2057                    long groupId, long classNameId, java.lang.String templateKey)
2058                    throws com.liferay.portal.kernel.exception.SystemException;
2059    
2060            /**
2061            * 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.
2062            *
2063            * @param groupId the group ID
2064            * @param classNameId the class name ID
2065            * @param templateKey the template key
2066            * @param retrieveFromCache whether to use the finder cache
2067            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
2068            * @throws SystemException if a system exception occurred
2069            */
2070            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_T(
2071                    long groupId, long classNameId, java.lang.String templateKey,
2072                    boolean retrieveFromCache)
2073                    throws com.liferay.portal.kernel.exception.SystemException;
2074    
2075            /**
2076            * Removes the d d m template where groupId = &#63; and classNameId = &#63; and templateKey = &#63; from the database.
2077            *
2078            * @param groupId the group ID
2079            * @param classNameId the class name ID
2080            * @param templateKey the template key
2081            * @return the d d m template that was removed
2082            * @throws SystemException if a system exception occurred
2083            */
2084            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByG_C_T(
2085                    long groupId, long classNameId, java.lang.String templateKey)
2086                    throws com.liferay.portal.kernel.exception.SystemException,
2087                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2088    
2089            /**
2090            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and templateKey = &#63;.
2091            *
2092            * @param groupId the group ID
2093            * @param classNameId the class name ID
2094            * @param templateKey the template key
2095            * @return the number of matching d d m templates
2096            * @throws SystemException if a system exception occurred
2097            */
2098            public int countByG_C_T(long groupId, long classNameId,
2099                    java.lang.String templateKey)
2100                    throws com.liferay.portal.kernel.exception.SystemException;
2101    
2102            /**
2103            * Returns all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2104            *
2105            * @param classNameId the class name ID
2106            * @param classPK the class p k
2107            * @param type the type
2108            * @return the matching d d m templates
2109            * @throws SystemException if a system exception occurred
2110            */
2111            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2112                    long classNameId, long classPK, java.lang.String type)
2113                    throws com.liferay.portal.kernel.exception.SystemException;
2114    
2115            /**
2116            * Returns a range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2117            *
2118            * <p>
2119            * 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.
2120            * </p>
2121            *
2122            * @param classNameId the class name ID
2123            * @param classPK the class p k
2124            * @param type the type
2125            * @param start the lower bound of the range of d d m templates
2126            * @param end the upper bound of the range of d d m templates (not inclusive)
2127            * @return the range of matching d d m templates
2128            * @throws SystemException if a system exception occurred
2129            */
2130            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2131                    long classNameId, long classPK, java.lang.String type, int start,
2132                    int end) throws com.liferay.portal.kernel.exception.SystemException;
2133    
2134            /**
2135            * Returns an ordered range of all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2136            *
2137            * <p>
2138            * 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.
2139            * </p>
2140            *
2141            * @param classNameId the class name ID
2142            * @param classPK the class p k
2143            * @param type the type
2144            * @param start the lower bound of the range of d d m templates
2145            * @param end the upper bound of the range of d d m templates (not inclusive)
2146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2147            * @return the ordered range of matching d d m templates
2148            * @throws SystemException if a system exception occurred
2149            */
2150            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByC_C_T(
2151                    long classNameId, long classPK, java.lang.String type, int start,
2152                    int end,
2153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2154                    throws com.liferay.portal.kernel.exception.SystemException;
2155    
2156            /**
2157            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2158            *
2159            * @param classNameId the class name ID
2160            * @param classPK the class p k
2161            * @param type the type
2162            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2163            * @return the first matching d d m template
2164            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2165            * @throws SystemException if a system exception occurred
2166            */
2167            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_First(
2168                    long classNameId, long classPK, java.lang.String type,
2169                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2170                    throws com.liferay.portal.kernel.exception.SystemException,
2171                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2172    
2173            /**
2174            * Returns the first d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2175            *
2176            * @param classNameId the class name ID
2177            * @param classPK the class p k
2178            * @param type the type
2179            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2180            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2181            * @throws SystemException if a system exception occurred
2182            */
2183            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_First(
2184                    long classNameId, long classPK, java.lang.String type,
2185                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2186                    throws com.liferay.portal.kernel.exception.SystemException;
2187    
2188            /**
2189            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2190            *
2191            * @param classNameId the class name ID
2192            * @param classPK the class p k
2193            * @param type the type
2194            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2195            * @return the last matching d d m template
2196            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2197            * @throws SystemException if a system exception occurred
2198            */
2199            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByC_C_T_Last(
2200                    long classNameId, long classPK, java.lang.String type,
2201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2202                    throws com.liferay.portal.kernel.exception.SystemException,
2203                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2204    
2205            /**
2206            * Returns the last d d m template in the ordered set where classNameId = &#63; and classPK = &#63; and type = &#63;.
2207            *
2208            * @param classNameId the class name ID
2209            * @param classPK the class p k
2210            * @param type the type
2211            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2212            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2213            * @throws SystemException if a system exception occurred
2214            */
2215            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByC_C_T_Last(
2216                    long classNameId, long classPK, java.lang.String type,
2217                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2218                    throws com.liferay.portal.kernel.exception.SystemException;
2219    
2220            /**
2221            * 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;.
2222            *
2223            * @param templateId the primary key of the current d d m template
2224            * @param classNameId the class name ID
2225            * @param classPK the class p k
2226            * @param type the type
2227            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2228            * @return the previous, current, and next d d m template
2229            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2230            * @throws SystemException if a system exception occurred
2231            */
2232            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByC_C_T_PrevAndNext(
2233                    long templateId, long classNameId, long classPK, java.lang.String type,
2234                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2235                    throws com.liferay.portal.kernel.exception.SystemException,
2236                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2237    
2238            /**
2239            * Removes all the d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2240            *
2241            * @param classNameId the class name ID
2242            * @param classPK the class p k
2243            * @param type the type
2244            * @throws SystemException if a system exception occurred
2245            */
2246            public void removeByC_C_T(long classNameId, long classPK,
2247                    java.lang.String type)
2248                    throws com.liferay.portal.kernel.exception.SystemException;
2249    
2250            /**
2251            * Returns the number of d d m templates where classNameId = &#63; and classPK = &#63; and type = &#63;.
2252            *
2253            * @param classNameId the class name ID
2254            * @param classPK the class p k
2255            * @param type the type
2256            * @return the number of matching d d m templates
2257            * @throws SystemException if a system exception occurred
2258            */
2259            public int countByC_C_T(long classNameId, long classPK,
2260                    java.lang.String type)
2261                    throws com.liferay.portal.kernel.exception.SystemException;
2262    
2263            /**
2264            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2265            *
2266            * @param groupId the group ID
2267            * @param classNameId the class name ID
2268            * @param classPK the class p k
2269            * @param type the type
2270            * @return the matching d d m templates
2271            * @throws SystemException if a system exception occurred
2272            */
2273            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2274                    long groupId, long classNameId, long classPK, java.lang.String type)
2275                    throws com.liferay.portal.kernel.exception.SystemException;
2276    
2277            /**
2278            * Returns a range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2279            *
2280            * <p>
2281            * 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.
2282            * </p>
2283            *
2284            * @param groupId the group ID
2285            * @param classNameId the class name ID
2286            * @param classPK the class p k
2287            * @param type the type
2288            * @param start the lower bound of the range of d d m templates
2289            * @param end the upper bound of the range of d d m templates (not inclusive)
2290            * @return the range of matching d d m templates
2291            * @throws SystemException if a system exception occurred
2292            */
2293            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2294                    long groupId, long classNameId, long classPK, java.lang.String type,
2295                    int start, int end)
2296                    throws com.liferay.portal.kernel.exception.SystemException;
2297    
2298            /**
2299            * Returns an ordered range of all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2300            *
2301            * <p>
2302            * 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.
2303            * </p>
2304            *
2305            * @param groupId the group ID
2306            * @param classNameId the class name ID
2307            * @param classPK the class p k
2308            * @param type the type
2309            * @param start the lower bound of the range of d d m templates
2310            * @param end the upper bound of the range of d d m templates (not inclusive)
2311            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2312            * @return the ordered range of matching d d m templates
2313            * @throws SystemException if a system exception occurred
2314            */
2315            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T(
2316                    long groupId, long classNameId, long classPK, java.lang.String type,
2317                    int start, int end,
2318                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2319                    throws com.liferay.portal.kernel.exception.SystemException;
2320    
2321            /**
2322            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2323            *
2324            * @param groupId the group ID
2325            * @param classNameId the class name ID
2326            * @param classPK the class p k
2327            * @param type the type
2328            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2329            * @return the first matching d d m template
2330            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2331            * @throws SystemException if a system exception occurred
2332            */
2333            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_First(
2334                    long groupId, long classNameId, long classPK, java.lang.String type,
2335                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2336                    throws com.liferay.portal.kernel.exception.SystemException,
2337                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2338    
2339            /**
2340            * Returns the first d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2341            *
2342            * @param groupId the group ID
2343            * @param classNameId the class name ID
2344            * @param classPK the class p k
2345            * @param type the type
2346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2347            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2348            * @throws SystemException if a system exception occurred
2349            */
2350            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_First(
2351                    long groupId, long classNameId, long classPK, java.lang.String type,
2352                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2353                    throws com.liferay.portal.kernel.exception.SystemException;
2354    
2355            /**
2356            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2357            *
2358            * @param groupId the group ID
2359            * @param classNameId the class name ID
2360            * @param classPK the class p k
2361            * @param type the type
2362            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2363            * @return the last matching d d m template
2364            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2365            * @throws SystemException if a system exception occurred
2366            */
2367            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_Last(
2368                    long groupId, long classNameId, long classPK, java.lang.String type,
2369                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2370                    throws com.liferay.portal.kernel.exception.SystemException,
2371                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2372    
2373            /**
2374            * Returns the last d d m template in the ordered set where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2375            *
2376            * @param groupId the group ID
2377            * @param classNameId the class name ID
2378            * @param classPK the class p k
2379            * @param type the type
2380            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2381            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2382            * @throws SystemException if a system exception occurred
2383            */
2384            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_Last(
2385                    long groupId, long classNameId, long classPK, java.lang.String type,
2386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2387                    throws com.liferay.portal.kernel.exception.SystemException;
2388    
2389            /**
2390            * 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;.
2391            *
2392            * @param templateId the primary key of the current d d m template
2393            * @param groupId the group ID
2394            * @param classNameId the class name ID
2395            * @param classPK the class p k
2396            * @param type the type
2397            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2398            * @return the previous, current, and next d d m template
2399            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2400            * @throws SystemException if a system exception occurred
2401            */
2402            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_PrevAndNext(
2403                    long templateId, long groupId, long classNameId, long classPK,
2404                    java.lang.String type,
2405                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2406                    throws com.liferay.portal.kernel.exception.SystemException,
2407                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2408    
2409            /**
2410            * 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;.
2411            *
2412            * @param groupId the group ID
2413            * @param classNameId the class name ID
2414            * @param classPK the class p k
2415            * @param type the type
2416            * @return the matching d d m templates that the user has permission to view
2417            * @throws SystemException if a system exception occurred
2418            */
2419            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2420                    long groupId, long classNameId, long classPK, java.lang.String type)
2421                    throws com.liferay.portal.kernel.exception.SystemException;
2422    
2423            /**
2424            * 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;.
2425            *
2426            * <p>
2427            * 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.
2428            * </p>
2429            *
2430            * @param groupId the group ID
2431            * @param classNameId the class name ID
2432            * @param classPK the class p k
2433            * @param type the type
2434            * @param start the lower bound of the range of d d m templates
2435            * @param end the upper bound of the range of d d m templates (not inclusive)
2436            * @return the range of matching d d m templates that the user has permission to view
2437            * @throws SystemException if a system exception occurred
2438            */
2439            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2440                    long groupId, long classNameId, long classPK, java.lang.String type,
2441                    int start, int end)
2442                    throws com.liferay.portal.kernel.exception.SystemException;
2443    
2444            /**
2445            * 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;.
2446            *
2447            * <p>
2448            * 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.
2449            * </p>
2450            *
2451            * @param groupId the group ID
2452            * @param classNameId the class name ID
2453            * @param classPK the class p k
2454            * @param type the type
2455            * @param start the lower bound of the range of d d m templates
2456            * @param end the upper bound of the range of d d m templates (not inclusive)
2457            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2458            * @return the ordered range of matching d d m templates that the user has permission to view
2459            * @throws SystemException if a system exception occurred
2460            */
2461            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T(
2462                    long groupId, long classNameId, long classPK, java.lang.String type,
2463                    int start, int end,
2464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2465                    throws com.liferay.portal.kernel.exception.SystemException;
2466    
2467            /**
2468            * 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;.
2469            *
2470            * @param templateId the primary key of the current d d m template
2471            * @param groupId the group ID
2472            * @param classNameId the class name ID
2473            * @param classPK the class p k
2474            * @param type the type
2475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2476            * @return the previous, current, and next d d m template
2477            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2478            * @throws SystemException if a system exception occurred
2479            */
2480            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_PrevAndNext(
2481                    long templateId, long groupId, long classNameId, long classPK,
2482                    java.lang.String type,
2483                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2484                    throws com.liferay.portal.kernel.exception.SystemException,
2485                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2486    
2487            /**
2488            * Removes all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; from the database.
2489            *
2490            * @param groupId the group ID
2491            * @param classNameId the class name ID
2492            * @param classPK the class p k
2493            * @param type the type
2494            * @throws SystemException if a system exception occurred
2495            */
2496            public void removeByG_C_C_T(long groupId, long classNameId, long classPK,
2497                    java.lang.String type)
2498                    throws com.liferay.portal.kernel.exception.SystemException;
2499    
2500            /**
2501            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63;.
2502            *
2503            * @param groupId the group ID
2504            * @param classNameId the class name ID
2505            * @param classPK the class p k
2506            * @param type the type
2507            * @return the number of matching d d m templates
2508            * @throws SystemException if a system exception occurred
2509            */
2510            public int countByG_C_C_T(long groupId, long classNameId, long classPK,
2511                    java.lang.String type)
2512                    throws com.liferay.portal.kernel.exception.SystemException;
2513    
2514            /**
2515            * 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;.
2516            *
2517            * @param groupId the group ID
2518            * @param classNameId the class name ID
2519            * @param classPK the class p k
2520            * @param type the type
2521            * @return the number of matching d d m templates that the user has permission to view
2522            * @throws SystemException if a system exception occurred
2523            */
2524            public int filterCountByG_C_C_T(long groupId, long classNameId,
2525                    long classPK, java.lang.String type)
2526                    throws com.liferay.portal.kernel.exception.SystemException;
2527    
2528            /**
2529            * Returns all the d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2530            *
2531            * @param groupId the group ID
2532            * @param classNameId the class name ID
2533            * @param classPK the class p k
2534            * @param type the type
2535            * @param mode the mode
2536            * @return the matching d d m templates
2537            * @throws SystemException if a system exception occurred
2538            */
2539            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2540                    long groupId, long classNameId, long classPK, java.lang.String type,
2541                    java.lang.String mode)
2542                    throws com.liferay.portal.kernel.exception.SystemException;
2543    
2544            /**
2545            * 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;.
2546            *
2547            * <p>
2548            * 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.
2549            * </p>
2550            *
2551            * @param groupId the group ID
2552            * @param classNameId the class name ID
2553            * @param classPK the class p k
2554            * @param type the type
2555            * @param mode the mode
2556            * @param start the lower bound of the range of d d m templates
2557            * @param end the upper bound of the range of d d m templates (not inclusive)
2558            * @return the range of matching d d m templates
2559            * @throws SystemException if a system exception occurred
2560            */
2561            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2562                    long groupId, long classNameId, long classPK, java.lang.String type,
2563                    java.lang.String mode, int start, int end)
2564                    throws com.liferay.portal.kernel.exception.SystemException;
2565    
2566            /**
2567            * 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;.
2568            *
2569            * <p>
2570            * 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.
2571            * </p>
2572            *
2573            * @param groupId the group ID
2574            * @param classNameId the class name ID
2575            * @param classPK the class p k
2576            * @param type the type
2577            * @param mode the mode
2578            * @param start the lower bound of the range of d d m templates
2579            * @param end the upper bound of the range of d d m templates (not inclusive)
2580            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2581            * @return the ordered range of matching d d m templates
2582            * @throws SystemException if a system exception occurred
2583            */
2584            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByG_C_C_T_M(
2585                    long groupId, long classNameId, long classPK, java.lang.String type,
2586                    java.lang.String mode, int start, int end,
2587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2588                    throws com.liferay.portal.kernel.exception.SystemException;
2589    
2590            /**
2591            * 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;.
2592            *
2593            * @param groupId the group ID
2594            * @param classNameId the class name ID
2595            * @param classPK the class p k
2596            * @param type the type
2597            * @param mode the mode
2598            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2599            * @return the first matching d d m template
2600            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2601            * @throws SystemException if a system exception occurred
2602            */
2603            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_First(
2604                    long groupId, long classNameId, long classPK, java.lang.String type,
2605                    java.lang.String mode,
2606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2607                    throws com.liferay.portal.kernel.exception.SystemException,
2608                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2609    
2610            /**
2611            * 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;.
2612            *
2613            * @param groupId the group ID
2614            * @param classNameId the class name ID
2615            * @param classPK the class p k
2616            * @param type the type
2617            * @param mode the mode
2618            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2619            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
2620            * @throws SystemException if a system exception occurred
2621            */
2622            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_First(
2623                    long groupId, long classNameId, long classPK, java.lang.String type,
2624                    java.lang.String mode,
2625                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2626                    throws com.liferay.portal.kernel.exception.SystemException;
2627    
2628            /**
2629            * 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;.
2630            *
2631            * @param groupId the group ID
2632            * @param classNameId the class name ID
2633            * @param classPK the class p k
2634            * @param type the type
2635            * @param mode the mode
2636            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2637            * @return the last matching d d m template
2638            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
2639            * @throws SystemException if a system exception occurred
2640            */
2641            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByG_C_C_T_M_Last(
2642                    long groupId, long classNameId, long classPK, java.lang.String type,
2643                    java.lang.String mode,
2644                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2645                    throws com.liferay.portal.kernel.exception.SystemException,
2646                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2647    
2648            /**
2649            * 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;.
2650            *
2651            * @param groupId the group ID
2652            * @param classNameId the class name ID
2653            * @param classPK the class p k
2654            * @param type the type
2655            * @param mode the mode
2656            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2657            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
2658            * @throws SystemException if a system exception occurred
2659            */
2660            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByG_C_C_T_M_Last(
2661                    long groupId, long classNameId, long classPK, java.lang.String type,
2662                    java.lang.String mode,
2663                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2664                    throws com.liferay.portal.kernel.exception.SystemException;
2665    
2666            /**
2667            * 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;.
2668            *
2669            * @param templateId the primary key of the current d d m template
2670            * @param groupId the group ID
2671            * @param classNameId the class name ID
2672            * @param classPK the class p k
2673            * @param type the type
2674            * @param mode the mode
2675            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2676            * @return the previous, current, and next d d m template
2677            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2678            * @throws SystemException if a system exception occurred
2679            */
2680            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByG_C_C_T_M_PrevAndNext(
2681                    long templateId, long groupId, long classNameId, long classPK,
2682                    java.lang.String type, java.lang.String mode,
2683                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2684                    throws com.liferay.portal.kernel.exception.SystemException,
2685                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2686    
2687            /**
2688            * 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;.
2689            *
2690            * @param groupId the group ID
2691            * @param classNameId the class name ID
2692            * @param classPK the class p k
2693            * @param type the type
2694            * @param mode the mode
2695            * @return the matching d d m templates that the user has permission to view
2696            * @throws SystemException if a system exception occurred
2697            */
2698            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2699                    long groupId, long classNameId, long classPK, java.lang.String type,
2700                    java.lang.String mode)
2701                    throws com.liferay.portal.kernel.exception.SystemException;
2702    
2703            /**
2704            * 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;.
2705            *
2706            * <p>
2707            * 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.
2708            * </p>
2709            *
2710            * @param groupId the group ID
2711            * @param classNameId the class name ID
2712            * @param classPK the class p k
2713            * @param type the type
2714            * @param mode the mode
2715            * @param start the lower bound of the range of d d m templates
2716            * @param end the upper bound of the range of d d m templates (not inclusive)
2717            * @return the range of matching d d m templates that the user has permission to view
2718            * @throws SystemException if a system exception occurred
2719            */
2720            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2721                    long groupId, long classNameId, long classPK, java.lang.String type,
2722                    java.lang.String mode, int start, int end)
2723                    throws com.liferay.portal.kernel.exception.SystemException;
2724    
2725            /**
2726            * 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;.
2727            *
2728            * <p>
2729            * 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.
2730            * </p>
2731            *
2732            * @param groupId the group ID
2733            * @param classNameId the class name ID
2734            * @param classPK the class p k
2735            * @param type the type
2736            * @param mode the mode
2737            * @param start the lower bound of the range of d d m templates
2738            * @param end the upper bound of the range of d d m templates (not inclusive)
2739            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2740            * @return the ordered range of matching d d m templates that the user has permission to view
2741            * @throws SystemException if a system exception occurred
2742            */
2743            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByG_C_C_T_M(
2744                    long groupId, long classNameId, long classPK, java.lang.String type,
2745                    java.lang.String mode, int start, int end,
2746                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2747                    throws com.liferay.portal.kernel.exception.SystemException;
2748    
2749            /**
2750            * 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;.
2751            *
2752            * @param templateId the primary key of the current d d m template
2753            * @param groupId the group ID
2754            * @param classNameId the class name ID
2755            * @param classPK the class p k
2756            * @param type the type
2757            * @param mode the mode
2758            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
2759            * @return the previous, current, and next d d m template
2760            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2761            * @throws SystemException if a system exception occurred
2762            */
2763            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByG_C_C_T_M_PrevAndNext(
2764                    long templateId, long groupId, long classNameId, long classPK,
2765                    java.lang.String type, java.lang.String mode,
2766                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2767                    throws com.liferay.portal.kernel.exception.SystemException,
2768                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2769    
2770            /**
2771            * 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.
2772            *
2773            * @param groupId the group ID
2774            * @param classNameId the class name ID
2775            * @param classPK the class p k
2776            * @param type the type
2777            * @param mode the mode
2778            * @throws SystemException if a system exception occurred
2779            */
2780            public void removeByG_C_C_T_M(long groupId, long classNameId, long classPK,
2781                    java.lang.String type, java.lang.String mode)
2782                    throws com.liferay.portal.kernel.exception.SystemException;
2783    
2784            /**
2785            * Returns the number of d d m templates where groupId = &#63; and classNameId = &#63; and classPK = &#63; and type = &#63; and mode = &#63;.
2786            *
2787            * @param groupId the group ID
2788            * @param classNameId the class name ID
2789            * @param classPK the class p k
2790            * @param type the type
2791            * @param mode the mode
2792            * @return the number of matching d d m templates
2793            * @throws SystemException if a system exception occurred
2794            */
2795            public int countByG_C_C_T_M(long groupId, long classNameId, long classPK,
2796                    java.lang.String type, java.lang.String mode)
2797                    throws com.liferay.portal.kernel.exception.SystemException;
2798    
2799            /**
2800            * 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;.
2801            *
2802            * @param groupId the group ID
2803            * @param classNameId the class name ID
2804            * @param classPK the class p k
2805            * @param type the type
2806            * @param mode the mode
2807            * @return the number of matching d d m templates that the user has permission to view
2808            * @throws SystemException if a system exception occurred
2809            */
2810            public int filterCountByG_C_C_T_M(long groupId, long classNameId,
2811                    long classPK, java.lang.String type, java.lang.String mode)
2812                    throws com.liferay.portal.kernel.exception.SystemException;
2813    
2814            /**
2815            * Caches the d d m template in the entity cache if it is enabled.
2816            *
2817            * @param ddmTemplate the d d m template
2818            */
2819            public void cacheResult(
2820                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
2821    
2822            /**
2823            * Caches the d d m templates in the entity cache if it is enabled.
2824            *
2825            * @param ddmTemplates the d d m templates
2826            */
2827            public void cacheResult(
2828                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
2829    
2830            /**
2831            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
2832            *
2833            * @param templateId the primary key for the new d d m template
2834            * @return the new d d m template
2835            */
2836            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
2837                    long templateId);
2838    
2839            /**
2840            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
2841            *
2842            * @param templateId the primary key of the d d m template
2843            * @return the d d m template that was removed
2844            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2845            * @throws SystemException if a system exception occurred
2846            */
2847            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
2848                    long templateId)
2849                    throws com.liferay.portal.kernel.exception.SystemException,
2850                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2851    
2852            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
2853                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate)
2854                    throws com.liferay.portal.kernel.exception.SystemException;
2855    
2856            /**
2857            * 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.
2858            *
2859            * @param templateId the primary key of the d d m template
2860            * @return the d d m template
2861            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
2862            * @throws SystemException if a system exception occurred
2863            */
2864            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
2865                    long templateId)
2866                    throws com.liferay.portal.kernel.exception.SystemException,
2867                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
2868    
2869            /**
2870            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
2871            *
2872            * @param templateId the primary key of the d d m template
2873            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
2874            * @throws SystemException if a system exception occurred
2875            */
2876            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
2877                    long templateId)
2878                    throws com.liferay.portal.kernel.exception.SystemException;
2879    
2880            /**
2881            * Returns all the d d m templates.
2882            *
2883            * @return the d d m templates
2884            * @throws SystemException if a system exception occurred
2885            */
2886            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
2887                    throws com.liferay.portal.kernel.exception.SystemException;
2888    
2889            /**
2890            * Returns a range of all the d d m templates.
2891            *
2892            * <p>
2893            * 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.
2894            * </p>
2895            *
2896            * @param start the lower bound of the range of d d m templates
2897            * @param end the upper bound of the range of d d m templates (not inclusive)
2898            * @return the range of d d m templates
2899            * @throws SystemException if a system exception occurred
2900            */
2901            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2902                    int start, int end)
2903                    throws com.liferay.portal.kernel.exception.SystemException;
2904    
2905            /**
2906            * Returns an ordered range of all the d d m templates.
2907            *
2908            * <p>
2909            * 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.
2910            * </p>
2911            *
2912            * @param start the lower bound of the range of d d m templates
2913            * @param end the upper bound of the range of d d m templates (not inclusive)
2914            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
2915            * @return the ordered range of d d m templates
2916            * @throws SystemException if a system exception occurred
2917            */
2918            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
2919                    int start, int end,
2920                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
2921                    throws com.liferay.portal.kernel.exception.SystemException;
2922    
2923            /**
2924            * Removes all the d d m templates from the database.
2925            *
2926            * @throws SystemException if a system exception occurred
2927            */
2928            public void removeAll()
2929                    throws com.liferay.portal.kernel.exception.SystemException;
2930    
2931            /**
2932            * Returns the number of d d m templates.
2933            *
2934            * @return the number of d d m templates
2935            * @throws SystemException if a system exception occurred
2936            */
2937            public int countAll()
2938                    throws com.liferay.portal.kernel.exception.SystemException;
2939    }