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