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