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            * Caches the d d m template in the entity cache if it is enabled.
042            *
043            * @param ddmTemplate the d d m template
044            */
045            public void cacheResult(
046                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
047    
048            /**
049            * Caches the d d m templates in the entity cache if it is enabled.
050            *
051            * @param ddmTemplates the d d m templates
052            */
053            public void cacheResult(
054                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
055    
056            /**
057            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
058            *
059            * @param templateId the primary key for the new d d m template
060            * @return the new d d m template
061            */
062            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
063                    long templateId);
064    
065            /**
066            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param templateId the primary key of the d d m template
069            * @return the d d m template that was removed
070            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
074                    long templateId)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
077    
078            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
079                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate,
080                    boolean merge)
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            /**
084            * 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.
085            *
086            * @param templateId the primary key of the d d m template
087            * @return the d d m template
088            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
089            * @throws SystemException if a system exception occurred
090            */
091            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
092                    long templateId)
093                    throws com.liferay.portal.kernel.exception.SystemException,
094                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
095    
096            /**
097            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
098            *
099            * @param templateId the primary key of the d d m template
100            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
101            * @throws SystemException if a system exception occurred
102            */
103            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
104                    long templateId)
105                    throws com.liferay.portal.kernel.exception.SystemException;
106    
107            /**
108            * Returns all the d d m templates where uuid = &#63;.
109            *
110            * @param uuid the uuid
111            * @return the matching d d m templates
112            * @throws SystemException if a system exception occurred
113            */
114            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
115                    java.lang.String uuid)
116                    throws com.liferay.portal.kernel.exception.SystemException;
117    
118            /**
119            * Returns a range of all the d d m templates where uuid = &#63;.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param uuid the uuid
126            * @param start the lower bound of the range of d d m templates
127            * @param end the upper bound of the range of d d m templates (not inclusive)
128            * @return the range of matching d d m templates
129            * @throws SystemException if a system exception occurred
130            */
131            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
132                    java.lang.String uuid, int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            /**
136            * Returns an ordered range of all the d d m templates where uuid = &#63;.
137            *
138            * <p>
139            * 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.
140            * </p>
141            *
142            * @param uuid the uuid
143            * @param start the lower bound of the range of d d m templates
144            * @param end the upper bound of the range of d d m templates (not inclusive)
145            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
146            * @return the ordered range of matching d d m templates
147            * @throws SystemException if a system exception occurred
148            */
149            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
150                    java.lang.String uuid, int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            /**
155            * Returns the first d d m template in the ordered set where uuid = &#63;.
156            *
157            * @param uuid the uuid
158            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
159            * @return the first matching d d m template
160            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First(
164                    java.lang.String uuid,
165                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166                    throws com.liferay.portal.kernel.exception.SystemException,
167                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
168    
169            /**
170            * Returns the first d d m template in the ordered set where uuid = &#63;.
171            *
172            * @param uuid the uuid
173            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
174            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
175            * @throws SystemException if a system exception occurred
176            */
177            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_First(
178                    java.lang.String uuid,
179                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            /**
183            * Returns the last d d m template in the ordered set where uuid = &#63;.
184            *
185            * @param uuid the uuid
186            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
187            * @return the last matching d d m template
188            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
189            * @throws SystemException if a system exception occurred
190            */
191            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_Last(
192                    java.lang.String uuid,
193                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
194                    throws com.liferay.portal.kernel.exception.SystemException,
195                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
196    
197            /**
198            * Returns the last d d m template in the ordered set where uuid = &#63;.
199            *
200            * @param uuid the uuid
201            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
202            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUuid_Last(
206                    java.lang.String uuid,
207                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = &#63;.
212            *
213            * @param templateId the primary key of the current d d m template
214            * @param uuid the uuid
215            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
216            * @return the previous, current, and next d d m template
217            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext(
221                    long templateId, java.lang.String uuid,
222                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
223                    throws com.liferay.portal.kernel.exception.SystemException,
224                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
225    
226            /**
227            * 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.
228            *
229            * @param uuid the uuid
230            * @param groupId the group ID
231            * @return the matching d d m template
232            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
233            * @throws SystemException if a system exception occurred
234            */
235            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G(
236                    java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException,
238                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
239    
240            /**
241            * 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.
242            *
243            * @param uuid the uuid
244            * @param groupId the group ID
245            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
246            * @throws SystemException if a system exception occurred
247            */
248            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
249                    java.lang.String uuid, long groupId)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * 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.
254            *
255            * @param uuid the uuid
256            * @param groupId the group ID
257            * @param retrieveFromCache whether to use the finder cache
258            * @return the matching d d m template, or <code>null</code> if a matching d d m template could not be found
259            * @throws SystemException if a system exception occurred
260            */
261            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByUUID_G(
262                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            /**
266            * Returns all the d d m templates where groupId = &#63;.
267            *
268            * @param groupId the group ID
269            * @return the matching d d m templates
270            * @throws SystemException if a system exception occurred
271            */
272            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
273                    long groupId)
274                    throws com.liferay.portal.kernel.exception.SystemException;
275    
276            /**
277            * Returns a range of all the d d m templates where groupId = &#63;.
278            *
279            * <p>
280            * 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.
281            * </p>
282            *
283            * @param groupId the group ID
284            * @param start the lower bound of the range of d d m templates
285            * @param end the upper bound of the range of d d m templates (not inclusive)
286            * @return the range of matching d d m templates
287            * @throws SystemException if a system exception occurred
288            */
289            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
290                    long groupId, int start, int end)
291                    throws com.liferay.portal.kernel.exception.SystemException;
292    
293            /**
294            * Returns an ordered range of all the d d m templates where groupId = &#63;.
295            *
296            * <p>
297            * 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.
298            * </p>
299            *
300            * @param groupId the group ID
301            * @param start the lower bound of the range of d d m templates
302            * @param end the upper bound of the range of d d m templates (not inclusive)
303            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
304            * @return the ordered range of matching d d m templates
305            * @throws SystemException if a system exception occurred
306            */
307            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
308                    long groupId, int start, int end,
309                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            /**
313            * Returns the first d d m template in the ordered set where groupId = &#63;.
314            *
315            * @param groupId the group ID
316            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
317            * @return the first matching d d m template
318            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
319            * @throws SystemException if a system exception occurred
320            */
321            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First(
322                    long groupId,
323                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
324                    throws com.liferay.portal.kernel.exception.SystemException,
325                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
326    
327            /**
328            * Returns the first d d m template in the ordered set where groupId = &#63;.
329            *
330            * @param groupId the group ID
331            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
332            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
333            * @throws SystemException if a system exception occurred
334            */
335            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_First(
336                    long groupId,
337                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            /**
341            * Returns the last d d m template in the ordered set where groupId = &#63;.
342            *
343            * @param groupId the group ID
344            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
345            * @return the last matching d d m template
346            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_Last(
350                    long groupId,
351                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
352                    throws com.liferay.portal.kernel.exception.SystemException,
353                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
354    
355            /**
356            * Returns the last d d m template in the ordered set where groupId = &#63;.
357            *
358            * @param groupId the group ID
359            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
360            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
361            * @throws SystemException if a system exception occurred
362            */
363            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByGroupId_Last(
364                    long groupId,
365                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns the d d m templates before and after the current d d m template in the ordered set where groupId = &#63;.
370            *
371            * @param templateId the primary key of the current d d m template
372            * @param groupId the group ID
373            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
374            * @return the previous, current, and next d d m template
375            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext(
379                    long templateId, long groupId,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException,
382                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
383    
384            /**
385            * Returns all the d d m templates that the user has permission to view where groupId = &#63;.
386            *
387            * @param groupId the group ID
388            * @return the matching d d m templates that the user has permission to view
389            * @throws SystemException if a system exception occurred
390            */
391            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
392                    long groupId)
393                    throws com.liferay.portal.kernel.exception.SystemException;
394    
395            /**
396            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63;.
397            *
398            * <p>
399            * 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.
400            * </p>
401            *
402            * @param groupId the group ID
403            * @param start the lower bound of the range of d d m templates
404            * @param end the upper bound of the range of d d m templates (not inclusive)
405            * @return the range of matching d d m templates that the user has permission to view
406            * @throws SystemException if a system exception occurred
407            */
408            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
409                    long groupId, int start, int end)
410                    throws com.liferay.portal.kernel.exception.SystemException;
411    
412            /**
413            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63;.
414            *
415            * <p>
416            * 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.
417            * </p>
418            *
419            * @param groupId the group ID
420            * @param start the lower bound of the range of d d m templates
421            * @param end the upper bound of the range of d d m templates (not inclusive)
422            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
423            * @return the ordered range of matching d d m templates that the user has permission to view
424            * @throws SystemException if a system exception occurred
425            */
426            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
427                    long groupId, int start, int end,
428                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * 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;.
433            *
434            * @param templateId the primary key of the current d d m template
435            * @param groupId the group ID
436            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
437            * @return the previous, current, and next d d m template
438            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
439            * @throws SystemException if a system exception occurred
440            */
441            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext(
442                    long templateId, long groupId,
443                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
444                    throws com.liferay.portal.kernel.exception.SystemException,
445                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
446    
447            /**
448            * Returns all the d d m templates where structureId = &#63;.
449            *
450            * @param structureId the structure ID
451            * @return the matching d d m templates
452            * @throws SystemException if a system exception occurred
453            */
454            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
455                    long structureId)
456                    throws com.liferay.portal.kernel.exception.SystemException;
457    
458            /**
459            * Returns a range of all the d d m templates where structureId = &#63;.
460            *
461            * <p>
462            * 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.
463            * </p>
464            *
465            * @param structureId the structure ID
466            * @param start the lower bound of the range of d d m templates
467            * @param end the upper bound of the range of d d m templates (not inclusive)
468            * @return the range of matching d d m templates
469            * @throws SystemException if a system exception occurred
470            */
471            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
472                    long structureId, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException;
474    
475            /**
476            * Returns an ordered range of all the d d m templates where structureId = &#63;.
477            *
478            * <p>
479            * 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.
480            * </p>
481            *
482            * @param structureId the structure ID
483            * @param start the lower bound of the range of d d m templates
484            * @param end the upper bound of the range of d d m templates (not inclusive)
485            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
486            * @return the ordered range of matching d d m templates
487            * @throws SystemException if a system exception occurred
488            */
489            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
490                    long structureId, int start, int end,
491                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
492                    throws com.liferay.portal.kernel.exception.SystemException;
493    
494            /**
495            * Returns the first d d m template in the ordered set where structureId = &#63;.
496            *
497            * @param structureId the structure ID
498            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
499            * @return the first matching d d m template
500            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
501            * @throws SystemException if a system exception occurred
502            */
503            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_First(
504                    long structureId,
505                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
506                    throws com.liferay.portal.kernel.exception.SystemException,
507                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
508    
509            /**
510            * Returns the first d d m template in the ordered set where structureId = &#63;.
511            *
512            * @param structureId the structure ID
513            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
514            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
515            * @throws SystemException if a system exception occurred
516            */
517            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByStructureId_First(
518                    long structureId,
519                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
520                    throws com.liferay.portal.kernel.exception.SystemException;
521    
522            /**
523            * Returns the last d d m template in the ordered set where structureId = &#63;.
524            *
525            * @param structureId the structure ID
526            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
527            * @return the last matching d d m template
528            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
529            * @throws SystemException if a system exception occurred
530            */
531            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_Last(
532                    long structureId,
533                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
534                    throws com.liferay.portal.kernel.exception.SystemException,
535                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
536    
537            /**
538            * Returns the last d d m template in the ordered set where structureId = &#63;.
539            *
540            * @param structureId the structure ID
541            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
542            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
543            * @throws SystemException if a system exception occurred
544            */
545            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByStructureId_Last(
546                    long structureId,
547                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
548                    throws com.liferay.portal.kernel.exception.SystemException;
549    
550            /**
551            * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = &#63;.
552            *
553            * @param templateId the primary key of the current d d m template
554            * @param structureId the structure ID
555            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
556            * @return the previous, current, and next d d m template
557            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
558            * @throws SystemException if a system exception occurred
559            */
560            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByStructureId_PrevAndNext(
561                    long templateId, long structureId,
562                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
563                    throws com.liferay.portal.kernel.exception.SystemException,
564                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
565    
566            /**
567            * Returns all the d d m templates where type = &#63;.
568            *
569            * @param type the type
570            * @return the matching d d m templates
571            * @throws SystemException if a system exception occurred
572            */
573            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
574                    java.lang.String type)
575                    throws com.liferay.portal.kernel.exception.SystemException;
576    
577            /**
578            * Returns a range of all the d d m templates where type = &#63;.
579            *
580            * <p>
581            * 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.
582            * </p>
583            *
584            * @param type the type
585            * @param start the lower bound of the range of d d m templates
586            * @param end the upper bound of the range of d d m templates (not inclusive)
587            * @return the range of matching d d m templates
588            * @throws SystemException if a system exception occurred
589            */
590            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
591                    java.lang.String type, int start, int end)
592                    throws com.liferay.portal.kernel.exception.SystemException;
593    
594            /**
595            * Returns an ordered range of all the d d m templates where type = &#63;.
596            *
597            * <p>
598            * 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.
599            * </p>
600            *
601            * @param type the type
602            * @param start the lower bound of the range of d d m templates
603            * @param end the upper bound of the range of d d m templates (not inclusive)
604            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
605            * @return the ordered range of matching d d m templates
606            * @throws SystemException if a system exception occurred
607            */
608            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
609                    java.lang.String type, int start, int end,
610                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
611                    throws com.liferay.portal.kernel.exception.SystemException;
612    
613            /**
614            * Returns the first d d m template in the ordered set where type = &#63;.
615            *
616            * @param type the type
617            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
618            * @return the first matching d d m template
619            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
620            * @throws SystemException if a system exception occurred
621            */
622            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First(
623                    java.lang.String type,
624                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
625                    throws com.liferay.portal.kernel.exception.SystemException,
626                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
627    
628            /**
629            * Returns the first d d m template in the ordered set where type = &#63;.
630            *
631            * @param type the type
632            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
633            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
634            * @throws SystemException if a system exception occurred
635            */
636            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_First(
637                    java.lang.String type,
638                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * Returns the last d d m template in the ordered set where type = &#63;.
643            *
644            * @param type the type
645            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
646            * @return the last matching d d m template
647            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
648            * @throws SystemException if a system exception occurred
649            */
650            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last(
651                    java.lang.String type,
652                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
653                    throws com.liferay.portal.kernel.exception.SystemException,
654                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
655    
656            /**
657            * Returns the last d d m template in the ordered set where type = &#63;.
658            *
659            * @param type the type
660            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
661            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
662            * @throws SystemException if a system exception occurred
663            */
664            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByType_Last(
665                    java.lang.String type,
666                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
667                    throws com.liferay.portal.kernel.exception.SystemException;
668    
669            /**
670            * Returns the d d m templates before and after the current d d m template in the ordered set where type = &#63;.
671            *
672            * @param templateId the primary key of the current d d m template
673            * @param type the type
674            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
675            * @return the previous, current, and next d d m template
676            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
677            * @throws SystemException if a system exception occurred
678            */
679            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext(
680                    long templateId, java.lang.String type,
681                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
682                    throws com.liferay.portal.kernel.exception.SystemException,
683                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
684    
685            /**
686            * Returns all the d d m templates where language = &#63;.
687            *
688            * @param language the language
689            * @return the matching d d m templates
690            * @throws SystemException if a system exception occurred
691            */
692            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
693                    java.lang.String language)
694                    throws com.liferay.portal.kernel.exception.SystemException;
695    
696            /**
697            * Returns a range of all the d d m templates where language = &#63;.
698            *
699            * <p>
700            * 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.
701            * </p>
702            *
703            * @param language the language
704            * @param start the lower bound of the range of d d m templates
705            * @param end the upper bound of the range of d d m templates (not inclusive)
706            * @return the range of matching d d m templates
707            * @throws SystemException if a system exception occurred
708            */
709            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
710                    java.lang.String language, int start, int end)
711                    throws com.liferay.portal.kernel.exception.SystemException;
712    
713            /**
714            * Returns an ordered range of all the d d m templates where language = &#63;.
715            *
716            * <p>
717            * 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.
718            * </p>
719            *
720            * @param language the language
721            * @param start the lower bound of the range of d d m templates
722            * @param end the upper bound of the range of d d m templates (not inclusive)
723            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
724            * @return the ordered range of matching d d m templates
725            * @throws SystemException if a system exception occurred
726            */
727            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
728                    java.lang.String language, int start, int end,
729                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
730                    throws com.liferay.portal.kernel.exception.SystemException;
731    
732            /**
733            * Returns the first d d m template in the ordered set where language = &#63;.
734            *
735            * @param language the language
736            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
737            * @return the first matching d d m template
738            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
739            * @throws SystemException if a system exception occurred
740            */
741            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First(
742                    java.lang.String language,
743                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
744                    throws com.liferay.portal.kernel.exception.SystemException,
745                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
746    
747            /**
748            * Returns the first d d m template in the ordered set where language = &#63;.
749            *
750            * @param language the language
751            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
752            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
753            * @throws SystemException if a system exception occurred
754            */
755            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_First(
756                    java.lang.String language,
757                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
758                    throws com.liferay.portal.kernel.exception.SystemException;
759    
760            /**
761            * Returns the last d d m template in the ordered set where language = &#63;.
762            *
763            * @param language the language
764            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
765            * @return the last matching d d m template
766            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
767            * @throws SystemException if a system exception occurred
768            */
769            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last(
770                    java.lang.String language,
771                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
772                    throws com.liferay.portal.kernel.exception.SystemException,
773                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
774    
775            /**
776            * Returns the last d d m template in the ordered set where language = &#63;.
777            *
778            * @param language the language
779            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
780            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
781            * @throws SystemException if a system exception occurred
782            */
783            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByLanguage_Last(
784                    java.lang.String language,
785                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Returns the d d m templates before and after the current d d m template in the ordered set where language = &#63;.
790            *
791            * @param templateId the primary key of the current d d m template
792            * @param language the language
793            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
794            * @return the previous, current, and next d d m template
795            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
796            * @throws SystemException if a system exception occurred
797            */
798            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext(
799                    long templateId, java.lang.String language,
800                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
801                    throws com.liferay.portal.kernel.exception.SystemException,
802                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
803    
804            /**
805            * Returns all the d d m templates where structureId = &#63; and type = &#63;.
806            *
807            * @param structureId the structure ID
808            * @param type the type
809            * @return the matching d d m templates
810            * @throws SystemException if a system exception occurred
811            */
812            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T(
813                    long structureId, java.lang.String type)
814                    throws com.liferay.portal.kernel.exception.SystemException;
815    
816            /**
817            * Returns a range of all the d d m templates where structureId = &#63; and type = &#63;.
818            *
819            * <p>
820            * 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.
821            * </p>
822            *
823            * @param structureId the structure ID
824            * @param type the type
825            * @param start the lower bound of the range of d d m templates
826            * @param end the upper bound of the range of d d m templates (not inclusive)
827            * @return the range of matching d d m templates
828            * @throws SystemException if a system exception occurred
829            */
830            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T(
831                    long structureId, java.lang.String type, int start, int end)
832                    throws com.liferay.portal.kernel.exception.SystemException;
833    
834            /**
835            * Returns an ordered range of all the d d m templates where structureId = &#63; and type = &#63;.
836            *
837            * <p>
838            * 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.
839            * </p>
840            *
841            * @param structureId the structure ID
842            * @param type the type
843            * @param start the lower bound of the range of d d m templates
844            * @param end the upper bound of the range of d d m templates (not inclusive)
845            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
846            * @return the ordered range of matching d d m templates
847            * @throws SystemException if a system exception occurred
848            */
849            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T(
850                    long structureId, java.lang.String type, int start, int end,
851                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
852                    throws com.liferay.portal.kernel.exception.SystemException;
853    
854            /**
855            * Returns the first d d m template in the ordered set where structureId = &#63; and type = &#63;.
856            *
857            * @param structureId the structure ID
858            * @param type the type
859            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
860            * @return the first matching d d m template
861            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
862            * @throws SystemException if a system exception occurred
863            */
864            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_First(
865                    long structureId, java.lang.String type,
866                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
867                    throws com.liferay.portal.kernel.exception.SystemException,
868                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
869    
870            /**
871            * Returns the first d d m template in the ordered set where structureId = &#63; and type = &#63;.
872            *
873            * @param structureId the structure ID
874            * @param type the type
875            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
876            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
877            * @throws SystemException if a system exception occurred
878            */
879            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_First(
880                    long structureId, java.lang.String type,
881                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
882                    throws com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * Returns the last d d m template in the ordered set where structureId = &#63; and type = &#63;.
886            *
887            * @param structureId the structure ID
888            * @param type the type
889            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
890            * @return the last matching d d m template
891            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
892            * @throws SystemException if a system exception occurred
893            */
894            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_Last(
895                    long structureId, java.lang.String type,
896                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
897                    throws com.liferay.portal.kernel.exception.SystemException,
898                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
899    
900            /**
901            * Returns the last d d m template in the ordered set where structureId = &#63; and type = &#63;.
902            *
903            * @param structureId the structure ID
904            * @param type the type
905            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
906            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
907            * @throws SystemException if a system exception occurred
908            */
909            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_Last(
910                    long structureId, java.lang.String type,
911                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
912                    throws com.liferay.portal.kernel.exception.SystemException;
913    
914            /**
915            * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = &#63; and type = &#63;.
916            *
917            * @param templateId the primary key of the current d d m template
918            * @param structureId the structure ID
919            * @param type the type
920            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
921            * @return the previous, current, and next d d m template
922            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
923            * @throws SystemException if a system exception occurred
924            */
925            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_PrevAndNext(
926                    long templateId, long structureId, java.lang.String type,
927                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
928                    throws com.liferay.portal.kernel.exception.SystemException,
929                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
930    
931            /**
932            * Returns all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
933            *
934            * @param structureId the structure ID
935            * @param type the type
936            * @param mode the mode
937            * @return the matching d d m templates
938            * @throws SystemException if a system exception occurred
939            */
940            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
941                    long structureId, java.lang.String type, java.lang.String mode)
942                    throws com.liferay.portal.kernel.exception.SystemException;
943    
944            /**
945            * Returns a range of all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
946            *
947            * <p>
948            * 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.
949            * </p>
950            *
951            * @param structureId the structure ID
952            * @param type the type
953            * @param mode the mode
954            * @param start the lower bound of the range of d d m templates
955            * @param end the upper bound of the range of d d m templates (not inclusive)
956            * @return the range of matching d d m templates
957            * @throws SystemException if a system exception occurred
958            */
959            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
960                    long structureId, java.lang.String type, java.lang.String mode,
961                    int start, int end)
962                    throws com.liferay.portal.kernel.exception.SystemException;
963    
964            /**
965            * Returns an ordered range of all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
966            *
967            * <p>
968            * 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.
969            * </p>
970            *
971            * @param structureId the structure ID
972            * @param type the type
973            * @param mode the mode
974            * @param start the lower bound of the range of d d m templates
975            * @param end the upper bound of the range of d d m templates (not inclusive)
976            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
977            * @return the ordered range of matching d d m templates
978            * @throws SystemException if a system exception occurred
979            */
980            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
981                    long structureId, java.lang.String type, java.lang.String mode,
982                    int start, int end,
983                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
984                    throws com.liferay.portal.kernel.exception.SystemException;
985    
986            /**
987            * Returns the first d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
988            *
989            * @param structureId the structure ID
990            * @param type the type
991            * @param mode the mode
992            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
993            * @return the first matching d d m template
994            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
995            * @throws SystemException if a system exception occurred
996            */
997            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_First(
998                    long structureId, java.lang.String type, java.lang.String mode,
999                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1000                    throws com.liferay.portal.kernel.exception.SystemException,
1001                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1002    
1003            /**
1004            * Returns the first d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
1005            *
1006            * @param structureId the structure ID
1007            * @param type the type
1008            * @param mode the mode
1009            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1010            * @return the first matching d d m template, or <code>null</code> if a matching d d m template could not be found
1011            * @throws SystemException if a system exception occurred
1012            */
1013            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_M_First(
1014                    long structureId, java.lang.String type, java.lang.String mode,
1015                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1016                    throws com.liferay.portal.kernel.exception.SystemException;
1017    
1018            /**
1019            * Returns the last d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
1020            *
1021            * @param structureId the structure ID
1022            * @param type the type
1023            * @param mode the mode
1024            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1025            * @return the last matching d d m template
1026            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
1027            * @throws SystemException if a system exception occurred
1028            */
1029            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_Last(
1030                    long structureId, java.lang.String type, java.lang.String mode,
1031                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1032                    throws com.liferay.portal.kernel.exception.SystemException,
1033                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1034    
1035            /**
1036            * Returns the last d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
1037            *
1038            * @param structureId the structure ID
1039            * @param type the type
1040            * @param mode the mode
1041            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1042            * @return the last matching d d m template, or <code>null</code> if a matching d d m template could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByS_T_M_Last(
1046                    long structureId, java.lang.String type, java.lang.String mode,
1047                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1048                    throws com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
1052            *
1053            * @param templateId the primary key of the current d d m template
1054            * @param structureId the structure ID
1055            * @param type the type
1056            * @param mode the mode
1057            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
1058            * @return the previous, current, and next d d m template
1059            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_M_PrevAndNext(
1063                    long templateId, long structureId, java.lang.String type,
1064                    java.lang.String mode,
1065                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1066                    throws com.liferay.portal.kernel.exception.SystemException,
1067                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1068    
1069            /**
1070            * Returns all the d d m templates.
1071            *
1072            * @return the d d m templates
1073            * @throws SystemException if a system exception occurred
1074            */
1075            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
1076                    throws com.liferay.portal.kernel.exception.SystemException;
1077    
1078            /**
1079            * Returns a range of all the d d m templates.
1080            *
1081            * <p>
1082            * 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.
1083            * </p>
1084            *
1085            * @param start the lower bound of the range of d d m templates
1086            * @param end the upper bound of the range of d d m templates (not inclusive)
1087            * @return the range of d d m templates
1088            * @throws SystemException if a system exception occurred
1089            */
1090            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
1091                    int start, int end)
1092                    throws com.liferay.portal.kernel.exception.SystemException;
1093    
1094            /**
1095            * Returns an ordered range of all the d d m templates.
1096            *
1097            * <p>
1098            * 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.
1099            * </p>
1100            *
1101            * @param start the lower bound of the range of d d m templates
1102            * @param end the upper bound of the range of d d m templates (not inclusive)
1103            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1104            * @return the ordered range of d d m templates
1105            * @throws SystemException if a system exception occurred
1106            */
1107            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
1108                    int start, int end,
1109                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
1110                    throws com.liferay.portal.kernel.exception.SystemException;
1111    
1112            /**
1113            * Removes all the d d m templates where uuid = &#63; from the database.
1114            *
1115            * @param uuid the uuid
1116            * @throws SystemException if a system exception occurred
1117            */
1118            public void removeByUuid(java.lang.String uuid)
1119                    throws com.liferay.portal.kernel.exception.SystemException;
1120    
1121            /**
1122            * Removes the d d m template where uuid = &#63; and groupId = &#63; from the database.
1123            *
1124            * @param uuid the uuid
1125            * @param groupId the group ID
1126            * @return the d d m template that was removed
1127            * @throws SystemException if a system exception occurred
1128            */
1129            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate removeByUUID_G(
1130                    java.lang.String uuid, long groupId)
1131                    throws com.liferay.portal.kernel.exception.SystemException,
1132                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
1133    
1134            /**
1135            * Removes all the d d m templates where groupId = &#63; from the database.
1136            *
1137            * @param groupId the group ID
1138            * @throws SystemException if a system exception occurred
1139            */
1140            public void removeByGroupId(long groupId)
1141                    throws com.liferay.portal.kernel.exception.SystemException;
1142    
1143            /**
1144            * Removes all the d d m templates where structureId = &#63; from the database.
1145            *
1146            * @param structureId the structure ID
1147            * @throws SystemException if a system exception occurred
1148            */
1149            public void removeByStructureId(long structureId)
1150                    throws com.liferay.portal.kernel.exception.SystemException;
1151    
1152            /**
1153            * Removes all the d d m templates where type = &#63; from the database.
1154            *
1155            * @param type the type
1156            * @throws SystemException if a system exception occurred
1157            */
1158            public void removeByType(java.lang.String type)
1159                    throws com.liferay.portal.kernel.exception.SystemException;
1160    
1161            /**
1162            * Removes all the d d m templates where language = &#63; from the database.
1163            *
1164            * @param language the language
1165            * @throws SystemException if a system exception occurred
1166            */
1167            public void removeByLanguage(java.lang.String language)
1168                    throws com.liferay.portal.kernel.exception.SystemException;
1169    
1170            /**
1171            * Removes all the d d m templates where structureId = &#63; and type = &#63; from the database.
1172            *
1173            * @param structureId the structure ID
1174            * @param type the type
1175            * @throws SystemException if a system exception occurred
1176            */
1177            public void removeByS_T(long structureId, java.lang.String type)
1178                    throws com.liferay.portal.kernel.exception.SystemException;
1179    
1180            /**
1181            * Removes all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63; from the database.
1182            *
1183            * @param structureId the structure ID
1184            * @param type the type
1185            * @param mode the mode
1186            * @throws SystemException if a system exception occurred
1187            */
1188            public void removeByS_T_M(long structureId, java.lang.String type,
1189                    java.lang.String mode)
1190                    throws com.liferay.portal.kernel.exception.SystemException;
1191    
1192            /**
1193            * Removes all the d d m templates from the database.
1194            *
1195            * @throws SystemException if a system exception occurred
1196            */
1197            public void removeAll()
1198                    throws com.liferay.portal.kernel.exception.SystemException;
1199    
1200            /**
1201            * Returns the number of d d m templates where uuid = &#63;.
1202            *
1203            * @param uuid the uuid
1204            * @return the number of matching d d m templates
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public int countByUuid(java.lang.String uuid)
1208                    throws com.liferay.portal.kernel.exception.SystemException;
1209    
1210            /**
1211            * Returns the number of d d m templates where uuid = &#63; and groupId = &#63;.
1212            *
1213            * @param uuid the uuid
1214            * @param groupId the group ID
1215            * @return the number of matching d d m templates
1216            * @throws SystemException if a system exception occurred
1217            */
1218            public int countByUUID_G(java.lang.String uuid, long groupId)
1219                    throws com.liferay.portal.kernel.exception.SystemException;
1220    
1221            /**
1222            * Returns the number of d d m templates where groupId = &#63;.
1223            *
1224            * @param groupId the group ID
1225            * @return the number of matching d d m templates
1226            * @throws SystemException if a system exception occurred
1227            */
1228            public int countByGroupId(long groupId)
1229                    throws com.liferay.portal.kernel.exception.SystemException;
1230    
1231            /**
1232            * Returns the number of d d m templates that the user has permission to view where groupId = &#63;.
1233            *
1234            * @param groupId the group ID
1235            * @return the number of matching d d m templates that the user has permission to view
1236            * @throws SystemException if a system exception occurred
1237            */
1238            public int filterCountByGroupId(long groupId)
1239                    throws com.liferay.portal.kernel.exception.SystemException;
1240    
1241            /**
1242            * Returns the number of d d m templates where structureId = &#63;.
1243            *
1244            * @param structureId the structure ID
1245            * @return the number of matching d d m templates
1246            * @throws SystemException if a system exception occurred
1247            */
1248            public int countByStructureId(long structureId)
1249                    throws com.liferay.portal.kernel.exception.SystemException;
1250    
1251            /**
1252            * Returns the number of d d m templates where type = &#63;.
1253            *
1254            * @param type the type
1255            * @return the number of matching d d m templates
1256            * @throws SystemException if a system exception occurred
1257            */
1258            public int countByType(java.lang.String type)
1259                    throws com.liferay.portal.kernel.exception.SystemException;
1260    
1261            /**
1262            * Returns the number of d d m templates where language = &#63;.
1263            *
1264            * @param language the language
1265            * @return the number of matching d d m templates
1266            * @throws SystemException if a system exception occurred
1267            */
1268            public int countByLanguage(java.lang.String language)
1269                    throws com.liferay.portal.kernel.exception.SystemException;
1270    
1271            /**
1272            * Returns the number of d d m templates where structureId = &#63; and type = &#63;.
1273            *
1274            * @param structureId the structure ID
1275            * @param type the type
1276            * @return the number of matching d d m templates
1277            * @throws SystemException if a system exception occurred
1278            */
1279            public int countByS_T(long structureId, java.lang.String type)
1280                    throws com.liferay.portal.kernel.exception.SystemException;
1281    
1282            /**
1283            * Returns the number of d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
1284            *
1285            * @param structureId the structure ID
1286            * @param type the type
1287            * @param mode the mode
1288            * @return the number of matching d d m templates
1289            * @throws SystemException if a system exception occurred
1290            */
1291            public int countByS_T_M(long structureId, java.lang.String type,
1292                    java.lang.String mode)
1293                    throws com.liferay.portal.kernel.exception.SystemException;
1294    
1295            /**
1296            * Returns the number of d d m templates.
1297            *
1298            * @return the number of d d m templates
1299            * @throws SystemException if a system exception occurred
1300            */
1301            public int countAll()
1302                    throws com.liferay.portal.kernel.exception.SystemException;
1303    }