001    /**
002     * Copyright (c) 2000-2011 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.kernel.exception.SystemException;
018    import com.liferay.portal.service.persistence.BasePersistence;
019    
020    import com.liferay.portlet.dynamicdatamapping.model.DDMTemplate;
021    
022    /**
023     * The persistence interface for the d d m template service.
024     *
025     * <p>
026     * Caching information and settings can be found in <code>portal.properties</code>
027     * </p>
028     *
029     * @author Brian Wing Shun Chan
030     * @see DDMTemplatePersistenceImpl
031     * @see DDMTemplateUtil
032     * @generated
033     */
034    public interface DDMTemplatePersistence extends BasePersistence<DDMTemplate> {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Caches the d d m template in the entity cache if it is enabled.
043            *
044            * @param ddmTemplate the d d m template
045            */
046            public void cacheResult(
047                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate);
048    
049            /**
050            * Caches the d d m templates in the entity cache if it is enabled.
051            *
052            * @param ddmTemplates the d d m templates
053            */
054            public void cacheResult(
055                    java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> ddmTemplates);
056    
057            /**
058            * Creates a new d d m template with the primary key. Does not add the d d m template to the database.
059            *
060            * @param templateId the primary key for the new d d m template
061            * @return the new d d m template
062            */
063            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate create(
064                    long templateId);
065    
066            /**
067            * Removes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.
068            *
069            * @param templateId the primary key of the d d m template
070            * @return the d d m template that was removed
071            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
072            * @throws SystemException if a system exception occurred
073            */
074            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate remove(
075                    long templateId)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
078    
079            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateImpl(
080                    com.liferay.portlet.dynamicdatamapping.model.DDMTemplate ddmTemplate,
081                    boolean merge)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            /**
085            * 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.
086            *
087            * @param templateId the primary key of the d d m template
088            * @return the d d m template
089            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
090            * @throws SystemException if a system exception occurred
091            */
092            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByPrimaryKey(
093                    long templateId)
094                    throws com.liferay.portal.kernel.exception.SystemException,
095                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
096    
097            /**
098            * Returns the d d m template with the primary key or returns <code>null</code> if it could not be found.
099            *
100            * @param templateId the primary key of the d d m template
101            * @return the d d m template, or <code>null</code> if a d d m template with the primary key could not be found
102            * @throws SystemException if a system exception occurred
103            */
104            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchByPrimaryKey(
105                    long templateId)
106                    throws com.liferay.portal.kernel.exception.SystemException;
107    
108            /**
109            * Returns all the d d m templates where uuid = &#63;.
110            *
111            * @param uuid the uuid
112            * @return the matching d d m templates
113            * @throws SystemException if a system exception occurred
114            */
115            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
116                    java.lang.String uuid)
117                    throws com.liferay.portal.kernel.exception.SystemException;
118    
119            /**
120            * Returns a range of all the d d m templates where uuid = &#63;.
121            *
122            * <p>
123            * 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.
124            * </p>
125            *
126            * @param uuid the uuid
127            * @param start the lower bound of the range of d d m templates
128            * @param end the upper bound of the range of d d m templates (not inclusive)
129            * @return the range of matching d d m templates
130            * @throws SystemException if a system exception occurred
131            */
132            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
133                    java.lang.String uuid, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            /**
137            * Returns an ordered range of all the d d m templates where uuid = &#63;.
138            *
139            * <p>
140            * 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.
141            * </p>
142            *
143            * @param uuid the uuid
144            * @param start the lower bound of the range of d d m templates
145            * @param end the upper bound of the range of d d m templates (not inclusive)
146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
147            * @return the ordered range of matching d d m templates
148            * @throws SystemException if a system exception occurred
149            */
150            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByUuid(
151                    java.lang.String uuid, int start, int end,
152                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            /**
156            * Returns the first d d m template in the ordered set where uuid = &#63;.
157            *
158            * <p>
159            * 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.
160            * </p>
161            *
162            * @param uuid the uuid
163            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
164            * @return the first matching d d m template
165            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
166            * @throws SystemException if a system exception occurred
167            */
168            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUuid_First(
169                    java.lang.String uuid,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
173    
174            /**
175            * Returns the last d d m template in the ordered set where uuid = &#63;.
176            *
177            * <p>
178            * 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.
179            * </p>
180            *
181            * @param uuid the uuid
182            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
183            * @return the last 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_Last(
188                    java.lang.String uuid,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException,
191                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
192    
193            /**
194            * Returns the d d m templates before and after the current d d m template in the ordered set where uuid = &#63;.
195            *
196            * <p>
197            * 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.
198            * </p>
199            *
200            * @param templateId the primary key of the current d d m template
201            * @param uuid the uuid
202            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
203            * @return the previous, current, and next d d m template
204            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
205            * @throws SystemException if a system exception occurred
206            */
207            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByUuid_PrevAndNext(
208                    long templateId, java.lang.String uuid,
209                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
210                    throws com.liferay.portal.kernel.exception.SystemException,
211                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
212    
213            /**
214            * 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.
215            *
216            * @param uuid the uuid
217            * @param groupId the group ID
218            * @return the matching d d m template
219            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByUUID_G(
223                    java.lang.String uuid, long groupId)
224                    throws com.liferay.portal.kernel.exception.SystemException,
225                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
226    
227            /**
228            * 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.
229            *
230            * @param uuid the uuid
231            * @param groupId the group ID
232            * @return the matching d d m template, or <code>null</code> 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 fetchByUUID_G(
236                    java.lang.String uuid, long groupId)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            /**
240            * 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.
241            *
242            * @param uuid the uuid
243            * @param groupId the group ID
244            * @param retrieveFromCache whether to use the finder cache
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, boolean retrieveFromCache)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Returns all the d d m templates where groupId = &#63;.
254            *
255            * @param groupId the group ID
256            * @return the matching d d m templates
257            * @throws SystemException if a system exception occurred
258            */
259            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
260                    long groupId)
261                    throws com.liferay.portal.kernel.exception.SystemException;
262    
263            /**
264            * Returns a range of all the d d m templates where groupId = &#63;.
265            *
266            * <p>
267            * 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.
268            * </p>
269            *
270            * @param groupId the group ID
271            * @param start the lower bound of the range of d d m templates
272            * @param end the upper bound of the range of d d m templates (not inclusive)
273            * @return the range of matching d d m templates
274            * @throws SystemException if a system exception occurred
275            */
276            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
277                    long groupId, int start, int end)
278                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            /**
281            * Returns an ordered range of all the d d m templates where groupId = &#63;.
282            *
283            * <p>
284            * 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.
285            * </p>
286            *
287            * @param groupId the group ID
288            * @param start the lower bound of the range of d d m templates
289            * @param end the upper bound of the range of d d m templates (not inclusive)
290            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
291            * @return the ordered range of matching d d m templates
292            * @throws SystemException if a system exception occurred
293            */
294            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByGroupId(
295                    long groupId, int start, int end,
296                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
297                    throws com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Returns the first d d m template in the ordered set where groupId = &#63;.
301            *
302            * <p>
303            * 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.
304            * </p>
305            *
306            * @param groupId the group ID
307            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
308            * @return the first matching d d m template
309            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
310            * @throws SystemException if a system exception occurred
311            */
312            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByGroupId_First(
313                    long groupId,
314                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
315                    throws com.liferay.portal.kernel.exception.SystemException,
316                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
317    
318            /**
319            * Returns the last d d m template in the ordered set where groupId = &#63;.
320            *
321            * <p>
322            * 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.
323            * </p>
324            *
325            * @param groupId the group 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 findByGroupId_Last(
332                    long groupId,
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 d d m templates before and after the current d d m template in the ordered set where groupId = &#63;.
339            *
340            * <p>
341            * 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.
342            * </p>
343            *
344            * @param templateId the primary key of the current d d m template
345            * @param groupId the group ID
346            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
347            * @return the previous, current, and next d d m template
348            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
349            * @throws SystemException if a system exception occurred
350            */
351            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByGroupId_PrevAndNext(
352                    long templateId, long groupId,
353                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
354                    throws com.liferay.portal.kernel.exception.SystemException,
355                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
356    
357            /**
358            * Returns all the d d m templates that the user has permission to view where groupId = &#63;.
359            *
360            * @param groupId the group ID
361            * @return the matching d d m templates that the user has permission to view
362            * @throws SystemException if a system exception occurred
363            */
364            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
365                    long groupId)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            /**
369            * Returns a range of all the d d m templates that the user has permission to view where groupId = &#63;.
370            *
371            * <p>
372            * 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.
373            * </p>
374            *
375            * @param groupId the group ID
376            * @param start the lower bound of the range of d d m templates
377            * @param end the upper bound of the range of d d m templates (not inclusive)
378            * @return the range of matching d d m templates that the user has permission to view
379            * @throws SystemException if a system exception occurred
380            */
381            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
382                    long groupId, int start, int end)
383                    throws com.liferay.portal.kernel.exception.SystemException;
384    
385            /**
386            * Returns an ordered range of all the d d m templates that the user has permissions to view where groupId = &#63;.
387            *
388            * <p>
389            * 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.
390            * </p>
391            *
392            * @param groupId the group ID
393            * @param start the lower bound of the range of d d m templates
394            * @param end the upper bound of the range of d d m templates (not inclusive)
395            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
396            * @return the ordered range of matching d d m templates that the user has permission to view
397            * @throws SystemException if a system exception occurred
398            */
399            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> filterFindByGroupId(
400                    long groupId, int start, int end,
401                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
402                    throws com.liferay.portal.kernel.exception.SystemException;
403    
404            /**
405            * 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;.
406            *
407            * @param templateId the primary key of the current d d m template
408            * @param groupId the group ID
409            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
410            * @return the previous, current, and next d d m template
411            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
412            * @throws SystemException if a system exception occurred
413            */
414            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] filterFindByGroupId_PrevAndNext(
415                    long templateId, long groupId,
416                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
417                    throws com.liferay.portal.kernel.exception.SystemException,
418                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
419    
420            /**
421            * Returns all the d d m templates where structureId = &#63;.
422            *
423            * @param structureId the structure ID
424            * @return the matching d d m templates
425            * @throws SystemException if a system exception occurred
426            */
427            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
428                    long structureId)
429                    throws com.liferay.portal.kernel.exception.SystemException;
430    
431            /**
432            * Returns a range of all the d d m templates where structureId = &#63;.
433            *
434            * <p>
435            * 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.
436            * </p>
437            *
438            * @param structureId the structure ID
439            * @param start the lower bound of the range of d d m templates
440            * @param end the upper bound of the range of d d m templates (not inclusive)
441            * @return the range of matching d d m templates
442            * @throws SystemException if a system exception occurred
443            */
444            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
445                    long structureId, int start, int end)
446                    throws com.liferay.portal.kernel.exception.SystemException;
447    
448            /**
449            * Returns an ordered range of all the d d m templates where structureId = &#63;.
450            *
451            * <p>
452            * 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.
453            * </p>
454            *
455            * @param structureId the structure ID
456            * @param start the lower bound of the range of d d m templates
457            * @param end the upper bound of the range of d d m templates (not inclusive)
458            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
459            * @return the ordered range of matching d d m templates
460            * @throws SystemException if a system exception occurred
461            */
462            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByStructureId(
463                    long structureId, int start, int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException;
466    
467            /**
468            * Returns the first d d m template in the ordered set where structureId = &#63;.
469            *
470            * <p>
471            * 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.
472            * </p>
473            *
474            * @param structureId the structure ID
475            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
476            * @return the first matching d d m template
477            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
478            * @throws SystemException if a system exception occurred
479            */
480            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_First(
481                    long structureId,
482                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
483                    throws com.liferay.portal.kernel.exception.SystemException,
484                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
485    
486            /**
487            * Returns the last d d m template in the ordered set where structureId = &#63;.
488            *
489            * <p>
490            * 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.
491            * </p>
492            *
493            * @param structureId the structure ID
494            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
495            * @return the last matching d d m template
496            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
497            * @throws SystemException if a system exception occurred
498            */
499            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByStructureId_Last(
500                    long structureId,
501                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
502                    throws com.liferay.portal.kernel.exception.SystemException,
503                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
504    
505            /**
506            * Returns the d d m templates before and after the current d d m template in the ordered set where structureId = &#63;.
507            *
508            * <p>
509            * 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.
510            * </p>
511            *
512            * @param templateId the primary key of the current d d m template
513            * @param structureId the structure ID
514            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
515            * @return the previous, current, and next d d m template
516            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
517            * @throws SystemException if a system exception occurred
518            */
519            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByStructureId_PrevAndNext(
520                    long templateId, long structureId,
521                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
522                    throws com.liferay.portal.kernel.exception.SystemException,
523                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
524    
525            /**
526            * Returns all the d d m templates where type = &#63;.
527            *
528            * @param type the type
529            * @return the matching d d m templates
530            * @throws SystemException if a system exception occurred
531            */
532            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
533                    java.lang.String type)
534                    throws com.liferay.portal.kernel.exception.SystemException;
535    
536            /**
537            * Returns a range of all the d d m templates where type = &#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.
541            * </p>
542            *
543            * @param type the type
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            * @return the range of matching d d m templates
547            * @throws SystemException if a system exception occurred
548            */
549            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
550                    java.lang.String type, int start, int end)
551                    throws com.liferay.portal.kernel.exception.SystemException;
552    
553            /**
554            * Returns an ordered range of all the d d m templates where type = &#63;.
555            *
556            * <p>
557            * 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.
558            * </p>
559            *
560            * @param type the type
561            * @param start the lower bound of the range of d d m templates
562            * @param end the upper bound of the range of d d m templates (not inclusive)
563            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
564            * @return the ordered range of matching d d m templates
565            * @throws SystemException if a system exception occurred
566            */
567            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByType(
568                    java.lang.String type, int start, int end,
569                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
570                    throws com.liferay.portal.kernel.exception.SystemException;
571    
572            /**
573            * Returns the first d d m template in the ordered set where type = &#63;.
574            *
575            * <p>
576            * 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.
577            * </p>
578            *
579            * @param type the type
580            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
581            * @return the first matching d d m template
582            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_First(
586                    java.lang.String type,
587                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
588                    throws com.liferay.portal.kernel.exception.SystemException,
589                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
590    
591            /**
592            * Returns the last d d m template in the ordered set where type = &#63;.
593            *
594            * <p>
595            * 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.
596            * </p>
597            *
598            * @param type the type
599            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
600            * @return the last matching d d m template
601            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
602            * @throws SystemException if a system exception occurred
603            */
604            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByType_Last(
605                    java.lang.String type,
606                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
607                    throws com.liferay.portal.kernel.exception.SystemException,
608                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
609    
610            /**
611            * Returns the d d m templates before and after the current d d m template in the ordered set where type = &#63;.
612            *
613            * <p>
614            * 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.
615            * </p>
616            *
617            * @param templateId the primary key of the current d d m template
618            * @param type the type
619            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
620            * @return the previous, current, and next d d m template
621            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
622            * @throws SystemException if a system exception occurred
623            */
624            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByType_PrevAndNext(
625                    long templateId, java.lang.String type,
626                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
627                    throws com.liferay.portal.kernel.exception.SystemException,
628                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
629    
630            /**
631            * Returns all the d d m templates where language = &#63;.
632            *
633            * @param language the language
634            * @return the matching d d m templates
635            * @throws SystemException if a system exception occurred
636            */
637            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
638                    java.lang.String language)
639                    throws com.liferay.portal.kernel.exception.SystemException;
640    
641            /**
642            * Returns a range of all the d d m templates where language = &#63;.
643            *
644            * <p>
645            * 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.
646            * </p>
647            *
648            * @param language the language
649            * @param start the lower bound of the range of d d m templates
650            * @param end the upper bound of the range of d d m templates (not inclusive)
651            * @return the range of matching d d m templates
652            * @throws SystemException if a system exception occurred
653            */
654            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
655                    java.lang.String language, int start, int end)
656                    throws com.liferay.portal.kernel.exception.SystemException;
657    
658            /**
659            * Returns an ordered range of all the d d m templates where language = &#63;.
660            *
661            * <p>
662            * 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.
663            * </p>
664            *
665            * @param language the language
666            * @param start the lower bound of the range of d d m templates
667            * @param end the upper bound of the range of d d m templates (not inclusive)
668            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
669            * @return the ordered range of matching d d m templates
670            * @throws SystemException if a system exception occurred
671            */
672            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByLanguage(
673                    java.lang.String language, int start, int end,
674                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
675                    throws com.liferay.portal.kernel.exception.SystemException;
676    
677            /**
678            * Returns the first d d m template in the ordered set where language = &#63;.
679            *
680            * <p>
681            * 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.
682            * </p>
683            *
684            * @param language the language
685            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
686            * @return the first matching d d m template
687            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
688            * @throws SystemException if a system exception occurred
689            */
690            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_First(
691                    java.lang.String language,
692                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
693                    throws com.liferay.portal.kernel.exception.SystemException,
694                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
695    
696            /**
697            * Returns the last d d m template in the ordered set 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 orderByComparator the comparator to order the set by (optionally <code>null</code>)
705            * @return the last matching d d m template
706            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
707            * @throws SystemException if a system exception occurred
708            */
709            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByLanguage_Last(
710                    java.lang.String language,
711                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
712                    throws com.liferay.portal.kernel.exception.SystemException,
713                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
714    
715            /**
716            * Returns the d d m templates before and after the current d d m template in the ordered set where language = &#63;.
717            *
718            * <p>
719            * 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.
720            * </p>
721            *
722            * @param templateId the primary key of the current d d m template
723            * @param language the language
724            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
725            * @return the previous, current, and next d d m template
726            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
727            * @throws SystemException if a system exception occurred
728            */
729            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByLanguage_PrevAndNext(
730                    long templateId, java.lang.String language,
731                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
732                    throws com.liferay.portal.kernel.exception.SystemException,
733                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
734    
735            /**
736            * Returns all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
737            *
738            * @param structureId the structure ID
739            * @param type the type
740            * @param mode the mode
741            * @return the matching d d m templates
742            * @throws SystemException if a system exception occurred
743            */
744            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
745                    long structureId, java.lang.String type, java.lang.String mode)
746                    throws com.liferay.portal.kernel.exception.SystemException;
747    
748            /**
749            * Returns a range of all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
750            *
751            * <p>
752            * 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.
753            * </p>
754            *
755            * @param structureId the structure ID
756            * @param type the type
757            * @param mode the mode
758            * @param start the lower bound of the range of d d m templates
759            * @param end the upper bound of the range of d d m templates (not inclusive)
760            * @return the range of matching d d m templates
761            * @throws SystemException if a system exception occurred
762            */
763            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
764                    long structureId, java.lang.String type, java.lang.String mode,
765                    int start, int end)
766                    throws com.liferay.portal.kernel.exception.SystemException;
767    
768            /**
769            * Returns an ordered range of all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
770            *
771            * <p>
772            * 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.
773            * </p>
774            *
775            * @param structureId the structure ID
776            * @param type the type
777            * @param mode the mode
778            * @param start the lower bound of the range of d d m templates
779            * @param end the upper bound of the range of d d m templates (not inclusive)
780            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
781            * @return the ordered range of matching d d m templates
782            * @throws SystemException if a system exception occurred
783            */
784            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findByS_T_M(
785                    long structureId, java.lang.String type, java.lang.String mode,
786                    int start, int end,
787                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
788                    throws com.liferay.portal.kernel.exception.SystemException;
789    
790            /**
791            * Returns the first d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
792            *
793            * <p>
794            * 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.
795            * </p>
796            *
797            * @param structureId the structure ID
798            * @param type the type
799            * @param mode the mode
800            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
801            * @return the first matching d d m template
802            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
803            * @throws SystemException if a system exception occurred
804            */
805            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_First(
806                    long structureId, java.lang.String type, java.lang.String mode,
807                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
808                    throws com.liferay.portal.kernel.exception.SystemException,
809                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
810    
811            /**
812            * Returns the last d d m template in the ordered set where structureId = &#63; and type = &#63; and mode = &#63;.
813            *
814            * <p>
815            * 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.
816            * </p>
817            *
818            * @param structureId the structure ID
819            * @param type the type
820            * @param mode the mode
821            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
822            * @return the last matching d d m template
823            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a matching d d m template could not be found
824            * @throws SystemException if a system exception occurred
825            */
826            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate findByS_T_M_Last(
827                    long structureId, java.lang.String type, java.lang.String mode,
828                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
829                    throws com.liferay.portal.kernel.exception.SystemException,
830                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
831    
832            /**
833            * 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;.
834            *
835            * <p>
836            * 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.
837            * </p>
838            *
839            * @param templateId the primary key of the current d d m template
840            * @param structureId the structure ID
841            * @param type the type
842            * @param mode the mode
843            * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
844            * @return the previous, current, and next d d m template
845            * @throws com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException if a d d m template with the primary key could not be found
846            * @throws SystemException if a system exception occurred
847            */
848            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate[] findByS_T_M_PrevAndNext(
849                    long templateId, long structureId, java.lang.String type,
850                    java.lang.String mode,
851                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
852                    throws com.liferay.portal.kernel.exception.SystemException,
853                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
854    
855            /**
856            * Returns all the d d m templates.
857            *
858            * @return the d d m templates
859            * @throws SystemException if a system exception occurred
860            */
861            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll()
862                    throws com.liferay.portal.kernel.exception.SystemException;
863    
864            /**
865            * Returns a range of all the d d m templates.
866            *
867            * <p>
868            * 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.
869            * </p>
870            *
871            * @param start the lower bound of the range of d d m templates
872            * @param end the upper bound of the range of d d m templates (not inclusive)
873            * @return the range of d d m templates
874            * @throws SystemException if a system exception occurred
875            */
876            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
877                    int start, int end)
878                    throws com.liferay.portal.kernel.exception.SystemException;
879    
880            /**
881            * Returns an ordered range of all the d d m templates.
882            *
883            * <p>
884            * 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.
885            * </p>
886            *
887            * @param start the lower bound of the range of d d m templates
888            * @param end the upper bound of the range of d d m templates (not inclusive)
889            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
890            * @return the ordered range of d d m templates
891            * @throws SystemException if a system exception occurred
892            */
893            public java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> findAll(
894                    int start, int end,
895                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
896                    throws com.liferay.portal.kernel.exception.SystemException;
897    
898            /**
899            * Removes all the d d m templates where uuid = &#63; from the database.
900            *
901            * @param uuid the uuid
902            * @throws SystemException if a system exception occurred
903            */
904            public void removeByUuid(java.lang.String uuid)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Removes the d d m template where uuid = &#63; and groupId = &#63; from the database.
909            *
910            * @param uuid the uuid
911            * @param groupId the group ID
912            * @throws SystemException if a system exception occurred
913            */
914            public void removeByUUID_G(java.lang.String uuid, long groupId)
915                    throws com.liferay.portal.kernel.exception.SystemException,
916                            com.liferay.portlet.dynamicdatamapping.NoSuchTemplateException;
917    
918            /**
919            * Removes all the d d m templates where groupId = &#63; from the database.
920            *
921            * @param groupId the group ID
922            * @throws SystemException if a system exception occurred
923            */
924            public void removeByGroupId(long groupId)
925                    throws com.liferay.portal.kernel.exception.SystemException;
926    
927            /**
928            * Removes all the d d m templates where structureId = &#63; from the database.
929            *
930            * @param structureId the structure ID
931            * @throws SystemException if a system exception occurred
932            */
933            public void removeByStructureId(long structureId)
934                    throws com.liferay.portal.kernel.exception.SystemException;
935    
936            /**
937            * Removes all the d d m templates where type = &#63; from the database.
938            *
939            * @param type the type
940            * @throws SystemException if a system exception occurred
941            */
942            public void removeByType(java.lang.String type)
943                    throws com.liferay.portal.kernel.exception.SystemException;
944    
945            /**
946            * Removes all the d d m templates where language = &#63; from the database.
947            *
948            * @param language the language
949            * @throws SystemException if a system exception occurred
950            */
951            public void removeByLanguage(java.lang.String language)
952                    throws com.liferay.portal.kernel.exception.SystemException;
953    
954            /**
955            * Removes all the d d m templates where structureId = &#63; and type = &#63; and mode = &#63; from the database.
956            *
957            * @param structureId the structure ID
958            * @param type the type
959            * @param mode the mode
960            * @throws SystemException if a system exception occurred
961            */
962            public void removeByS_T_M(long structureId, java.lang.String type,
963                    java.lang.String mode)
964                    throws com.liferay.portal.kernel.exception.SystemException;
965    
966            /**
967            * Removes all the d d m templates from the database.
968            *
969            * @throws SystemException if a system exception occurred
970            */
971            public void removeAll()
972                    throws com.liferay.portal.kernel.exception.SystemException;
973    
974            /**
975            * Returns the number of d d m templates where uuid = &#63;.
976            *
977            * @param uuid the uuid
978            * @return the number of matching d d m templates
979            * @throws SystemException if a system exception occurred
980            */
981            public int countByUuid(java.lang.String uuid)
982                    throws com.liferay.portal.kernel.exception.SystemException;
983    
984            /**
985            * Returns the number of d d m templates where uuid = &#63; and groupId = &#63;.
986            *
987            * @param uuid the uuid
988            * @param groupId the group ID
989            * @return the number of matching d d m templates
990            * @throws SystemException if a system exception occurred
991            */
992            public int countByUUID_G(java.lang.String uuid, long groupId)
993                    throws com.liferay.portal.kernel.exception.SystemException;
994    
995            /**
996            * Returns the number of d d m templates where groupId = &#63;.
997            *
998            * @param groupId the group ID
999            * @return the number of matching d d m templates
1000            * @throws SystemException if a system exception occurred
1001            */
1002            public int countByGroupId(long groupId)
1003                    throws com.liferay.portal.kernel.exception.SystemException;
1004    
1005            /**
1006            * Returns the number of d d m templates that the user has permission to view where groupId = &#63;.
1007            *
1008            * @param groupId the group ID
1009            * @return the number of matching d d m templates that the user has permission to view
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public int filterCountByGroupId(long groupId)
1013                    throws com.liferay.portal.kernel.exception.SystemException;
1014    
1015            /**
1016            * Returns the number of d d m templates where structureId = &#63;.
1017            *
1018            * @param structureId the structure ID
1019            * @return the number of matching d d m templates
1020            * @throws SystemException if a system exception occurred
1021            */
1022            public int countByStructureId(long structureId)
1023                    throws com.liferay.portal.kernel.exception.SystemException;
1024    
1025            /**
1026            * Returns the number of d d m templates where type = &#63;.
1027            *
1028            * @param type the type
1029            * @return the number of matching d d m templates
1030            * @throws SystemException if a system exception occurred
1031            */
1032            public int countByType(java.lang.String type)
1033                    throws com.liferay.portal.kernel.exception.SystemException;
1034    
1035            /**
1036            * Returns the number of d d m templates where language = &#63;.
1037            *
1038            * @param language the language
1039            * @return the number of matching d d m templates
1040            * @throws SystemException if a system exception occurred
1041            */
1042            public int countByLanguage(java.lang.String language)
1043                    throws com.liferay.portal.kernel.exception.SystemException;
1044    
1045            /**
1046            * Returns the number of d d m templates where structureId = &#63; and type = &#63; and mode = &#63;.
1047            *
1048            * @param structureId the structure ID
1049            * @param type the type
1050            * @param mode the mode
1051            * @return the number of matching d d m templates
1052            * @throws SystemException if a system exception occurred
1053            */
1054            public int countByS_T_M(long structureId, java.lang.String type,
1055                    java.lang.String mode)
1056                    throws com.liferay.portal.kernel.exception.SystemException;
1057    
1058            /**
1059            * Returns the number of d d m templates.
1060            *
1061            * @return the number of d d m templates
1062            * @throws SystemException if a system exception occurred
1063            */
1064            public int countAll()
1065                    throws com.liferay.portal.kernel.exception.SystemException;
1066    
1067            public DDMTemplate remove(DDMTemplate ddmTemplate)
1068                    throws SystemException;
1069    }