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