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