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