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