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.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.journal.model.JournalTemplate;
020    
021    /**
022     * The persistence interface for the journal template service.
023     *
024     * <p>
025     * Never modify or reference this interface directly. Always use {@link JournalTemplateUtil} to access the journal template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
026     * </p>
027     *
028     * <p>
029     * Caching information and settings can be found in <code>portal.properties</code>
030     * </p>
031     *
032     * @author Brian Wing Shun Chan
033     * @see JournalTemplatePersistenceImpl
034     * @see JournalTemplateUtil
035     * @generated
036     */
037    public interface JournalTemplatePersistence extends BasePersistence<JournalTemplate> {
038            /**
039            * Caches the journal template in the entity cache if it is enabled.
040            *
041            * @param journalTemplate the journal template to cache
042            */
043            public void cacheResult(
044                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate);
045    
046            /**
047            * Caches the journal templates in the entity cache if it is enabled.
048            *
049            * @param journalTemplates the journal templates to cache
050            */
051            public void cacheResult(
052                    java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates);
053    
054            /**
055            * Creates a new journal template with the primary key. Does not add the journal template to the database.
056            *
057            * @param id the primary key for the new journal template
058            * @return the new journal template
059            */
060            public com.liferay.portlet.journal.model.JournalTemplate create(long id);
061    
062            /**
063            * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param id the primary key of the journal template to remove
066            * @return the journal template that was removed
067            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
068            * @throws SystemException if a system exception occurred
069            */
070            public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
071                    throws com.liferay.portal.kernel.exception.SystemException,
072                            com.liferay.portlet.journal.NoSuchTemplateException;
073    
074            public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
075                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
076                    boolean merge)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            /**
080            * Finds the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
081            *
082            * @param id the primary key of the journal template to find
083            * @return the journal template
084            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
085            * @throws SystemException if a system exception occurred
086            */
087            public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
088                    long id)
089                    throws com.liferay.portal.kernel.exception.SystemException,
090                            com.liferay.portlet.journal.NoSuchTemplateException;
091    
092            /**
093            * Finds the journal template with the primary key or returns <code>null</code> if it could not be found.
094            *
095            * @param id the primary key of the journal template to find
096            * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found
097            * @throws SystemException if a system exception occurred
098            */
099            public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
100                    long id) throws com.liferay.portal.kernel.exception.SystemException;
101    
102            /**
103            * Finds all the journal templates where uuid = &#63;.
104            *
105            * @param uuid the uuid to search with
106            * @return the matching journal templates
107            * @throws SystemException if a system exception occurred
108            */
109            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
110                    java.lang.String uuid)
111                    throws com.liferay.portal.kernel.exception.SystemException;
112    
113            /**
114            * Finds a range of all the journal templates where uuid = &#63;.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param uuid the uuid to search with
121            * @param start the lower bound of the range of journal templates to return
122            * @param end the upper bound of the range of journal templates to return (not inclusive)
123            * @return the range of matching journal templates
124            * @throws SystemException if a system exception occurred
125            */
126            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
127                    java.lang.String uuid, int start, int end)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            /**
131            * Finds an ordered range of all the journal templates where uuid = &#63;.
132            *
133            * <p>
134            * 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.
135            * </p>
136            *
137            * @param uuid the uuid to search with
138            * @param start the lower bound of the range of journal templates to return
139            * @param end the upper bound of the range of journal templates to return (not inclusive)
140            * @param orderByComparator the comparator to order the results by
141            * @return the ordered range of matching journal templates
142            * @throws SystemException if a system exception occurred
143            */
144            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
145                    java.lang.String uuid, int start, int end,
146                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            /**
150            * Finds the first journal template in the ordered set where uuid = &#63;.
151            *
152            * <p>
153            * 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.
154            * </p>
155            *
156            * @param uuid the uuid to search with
157            * @param orderByComparator the comparator to order the set by
158            * @return the first matching journal template
159            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First(
163                    java.lang.String uuid,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.journal.NoSuchTemplateException;
167    
168            /**
169            * Finds the last journal template in the ordered set where uuid = &#63;.
170            *
171            * <p>
172            * 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.
173            * </p>
174            *
175            * @param uuid the uuid to search with
176            * @param orderByComparator the comparator to order the set by
177            * @return the last matching journal template
178            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
179            * @throws SystemException if a system exception occurred
180            */
181            public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
182                    java.lang.String uuid,
183                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184                    throws com.liferay.portal.kernel.exception.SystemException,
185                            com.liferay.portlet.journal.NoSuchTemplateException;
186    
187            /**
188            * Finds the journal templates before and after the current journal template in the ordered set where uuid = &#63;.
189            *
190            * <p>
191            * 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.
192            * </p>
193            *
194            * @param id the primary key of the current journal template
195            * @param uuid the uuid to search with
196            * @param orderByComparator the comparator to order the set by
197            * @return the previous, current, and next journal template
198            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
199            * @throws SystemException if a system exception occurred
200            */
201            public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
202                    long id, java.lang.String uuid,
203                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
204                    throws com.liferay.portal.kernel.exception.SystemException,
205                            com.liferay.portlet.journal.NoSuchTemplateException;
206    
207            /**
208            * 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.
209            *
210            * @param uuid the uuid to search with
211            * @param groupId the group id to search with
212            * @return the matching journal template
213            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
214            * @throws SystemException if a system exception occurred
215            */
216            public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
217                    java.lang.String uuid, long groupId)
218                    throws com.liferay.portal.kernel.exception.SystemException,
219                            com.liferay.portlet.journal.NoSuchTemplateException;
220    
221            /**
222            * 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.
223            *
224            * @param uuid the uuid to search with
225            * @param groupId the group id to search with
226            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
227            * @throws SystemException if a system exception occurred
228            */
229            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
230                    java.lang.String uuid, long groupId)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            /**
234            * 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.
235            *
236            * @param uuid the uuid to search with
237            * @param groupId the group id to search with
238            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
239            * @throws SystemException if a system exception occurred
240            */
241            public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
242                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            /**
246            * Finds all the journal templates where groupId = &#63;.
247            *
248            * @param groupId the group id to search with
249            * @return the matching journal templates
250            * @throws SystemException if a system exception occurred
251            */
252            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
253                    long groupId)
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            /**
257            * Finds a range of all the journal templates where groupId = &#63;.
258            *
259            * <p>
260            * 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.
261            * </p>
262            *
263            * @param groupId the group id to search with
264            * @param start the lower bound of the range of journal templates to return
265            * @param end the upper bound of the range of journal templates to return (not inclusive)
266            * @return the range of matching journal templates
267            * @throws SystemException if a system exception occurred
268            */
269            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
270                    long groupId, int start, int end)
271                    throws com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Finds an ordered range of all the journal templates where groupId = &#63;.
275            *
276            * <p>
277            * 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.
278            * </p>
279            *
280            * @param groupId the group id to search with
281            * @param start the lower bound of the range of journal templates to return
282            * @param end the upper bound of the range of journal templates to return (not inclusive)
283            * @param orderByComparator the comparator to order the results by
284            * @return the ordered range of matching journal templates
285            * @throws SystemException if a system exception occurred
286            */
287            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
288                    long groupId, int start, int end,
289                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290                    throws com.liferay.portal.kernel.exception.SystemException;
291    
292            /**
293            * Finds the first journal template in the ordered set where groupId = &#63;.
294            *
295            * <p>
296            * 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.
297            * </p>
298            *
299            * @param groupId the group id to search with
300            * @param orderByComparator the comparator to order the set by
301            * @return the first matching journal template
302            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
303            * @throws SystemException if a system exception occurred
304            */
305            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
306                    long groupId,
307                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
308                    throws com.liferay.portal.kernel.exception.SystemException,
309                            com.liferay.portlet.journal.NoSuchTemplateException;
310    
311            /**
312            * Finds the last journal template in the ordered set where groupId = &#63;.
313            *
314            * <p>
315            * 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.
316            * </p>
317            *
318            * @param groupId the group id to search with
319            * @param orderByComparator the comparator to order the set by
320            * @return the last matching journal template
321            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
322            * @throws SystemException if a system exception occurred
323            */
324            public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
325                    long groupId,
326                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
327                    throws com.liferay.portal.kernel.exception.SystemException,
328                            com.liferay.portlet.journal.NoSuchTemplateException;
329    
330            /**
331            * Finds the journal templates before and after the current journal template in the ordered set where groupId = &#63;.
332            *
333            * <p>
334            * 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.
335            * </p>
336            *
337            * @param id the primary key of the current journal template
338            * @param groupId the group id to search with
339            * @param orderByComparator the comparator to order the set by
340            * @return the previous, current, and next journal template
341            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
342            * @throws SystemException if a system exception occurred
343            */
344            public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
345                    long id, long groupId,
346                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
347                    throws com.liferay.portal.kernel.exception.SystemException,
348                            com.liferay.portlet.journal.NoSuchTemplateException;
349    
350            /**
351            * Filters by the user's permissions and finds all the journal templates where groupId = &#63;.
352            *
353            * @param groupId the group id to search with
354            * @return the matching journal templates that the user has permission to view
355            * @throws SystemException if a system exception occurred
356            */
357            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
358                    long groupId)
359                    throws com.liferay.portal.kernel.exception.SystemException;
360    
361            /**
362            * Filters by the user's permissions and finds a range of all the journal templates where groupId = &#63;.
363            *
364            * <p>
365            * 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.
366            * </p>
367            *
368            * @param groupId the group id to search with
369            * @param start the lower bound of the range of journal templates to return
370            * @param end the upper bound of the range of journal templates to return (not inclusive)
371            * @return the range of matching journal templates that the user has permission to view
372            * @throws SystemException if a system exception occurred
373            */
374            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
375                    long groupId, int start, int end)
376                    throws com.liferay.portal.kernel.exception.SystemException;
377    
378            /**
379            * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = &#63;.
380            *
381            * <p>
382            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
383            * </p>
384            *
385            * @param groupId the group id to search with
386            * @param start the lower bound of the range of journal templates to return
387            * @param end the upper bound of the range of journal templates to return (not inclusive)
388            * @param orderByComparator the comparator to order the results by
389            * @return the ordered range of matching journal templates that the user has permission to view
390            * @throws SystemException if a system exception occurred
391            */
392            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId(
393                    long groupId, int start, int end,
394                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
395                    throws com.liferay.portal.kernel.exception.SystemException;
396    
397            /**
398            * Finds all the journal templates where templateId = &#63;.
399            *
400            * @param templateId the template id to search with
401            * @return the matching journal templates
402            * @throws SystemException if a system exception occurred
403            */
404            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
405                    java.lang.String templateId)
406                    throws com.liferay.portal.kernel.exception.SystemException;
407    
408            /**
409            * Finds a range of all the journal templates where templateId = &#63;.
410            *
411            * <p>
412            * 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.
413            * </p>
414            *
415            * @param templateId the template id to search with
416            * @param start the lower bound of the range of journal templates to return
417            * @param end the upper bound of the range of journal templates to return (not inclusive)
418            * @return the range of matching journal templates
419            * @throws SystemException if a system exception occurred
420            */
421            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
422                    java.lang.String templateId, int start, int end)
423                    throws com.liferay.portal.kernel.exception.SystemException;
424    
425            /**
426            * Finds an ordered range of all the journal templates where templateId = &#63;.
427            *
428            * <p>
429            * 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.
430            * </p>
431            *
432            * @param templateId the template id to search with
433            * @param start the lower bound of the range of journal templates to return
434            * @param end the upper bound of the range of journal templates to return (not inclusive)
435            * @param orderByComparator the comparator to order the results by
436            * @return the ordered range of matching journal templates
437            * @throws SystemException if a system exception occurred
438            */
439            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
440                    java.lang.String templateId, int start, int end,
441                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442                    throws com.liferay.portal.kernel.exception.SystemException;
443    
444            /**
445            * Finds the first journal template in the ordered set where templateId = &#63;.
446            *
447            * <p>
448            * 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.
449            * </p>
450            *
451            * @param templateId the template id to search with
452            * @param orderByComparator the comparator to order the set by
453            * @return the first matching journal template
454            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
455            * @throws SystemException if a system exception occurred
456            */
457            public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
458                    java.lang.String templateId,
459                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
460                    throws com.liferay.portal.kernel.exception.SystemException,
461                            com.liferay.portlet.journal.NoSuchTemplateException;
462    
463            /**
464            * Finds the last journal template in the ordered set where templateId = &#63;.
465            *
466            * <p>
467            * 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.
468            * </p>
469            *
470            * @param templateId the template id to search with
471            * @param orderByComparator the comparator to order the set by
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 com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
477                    java.lang.String templateId,
478                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
479                    throws com.liferay.portal.kernel.exception.SystemException,
480                            com.liferay.portlet.journal.NoSuchTemplateException;
481    
482            /**
483            * Finds the journal templates before and after the current journal template in the ordered set where templateId = &#63;.
484            *
485            * <p>
486            * 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.
487            * </p>
488            *
489            * @param id the primary key of the current journal template
490            * @param templateId the template id to search with
491            * @param orderByComparator the comparator to order the set by
492            * @return the previous, current, and next journal template
493            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
494            * @throws SystemException if a system exception occurred
495            */
496            public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
497                    long id, java.lang.String templateId,
498                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
499                    throws com.liferay.portal.kernel.exception.SystemException,
500                            com.liferay.portlet.journal.NoSuchTemplateException;
501    
502            /**
503            * Finds the journal template where smallImageId = &#63; or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found.
504            *
505            * @param smallImageId the small image id to search with
506            * @return the matching journal template
507            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
508            * @throws SystemException if a system exception occurred
509            */
510            public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
511                    long smallImageId)
512                    throws com.liferay.portal.kernel.exception.SystemException,
513                            com.liferay.portlet.journal.NoSuchTemplateException;
514    
515            /**
516            * Finds the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found. Uses the finder cache.
517            *
518            * @param smallImageId the small image id to search with
519            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
520            * @throws SystemException if a system exception occurred
521            */
522            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
523                    long smallImageId)
524                    throws com.liferay.portal.kernel.exception.SystemException;
525    
526            /**
527            * Finds the journal template where smallImageId = &#63; or returns <code>null</code> if it could not be found, optionally using the finder cache.
528            *
529            * @param smallImageId the small image id to search with
530            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
534                    long smallImageId, boolean retrieveFromCache)
535                    throws com.liferay.portal.kernel.exception.SystemException;
536    
537            /**
538            * 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.
539            *
540            * @param groupId the group id to search with
541            * @param templateId the template id to search with
542            * @return the matching journal template
543            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
544            * @throws SystemException if a system exception occurred
545            */
546            public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
547                    long groupId, java.lang.String templateId)
548                    throws com.liferay.portal.kernel.exception.SystemException,
549                            com.liferay.portlet.journal.NoSuchTemplateException;
550    
551            /**
552            * 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.
553            *
554            * @param groupId the group id to search with
555            * @param templateId the template id to search with
556            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
557            * @throws SystemException if a system exception occurred
558            */
559            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
560                    long groupId, java.lang.String templateId)
561                    throws com.liferay.portal.kernel.exception.SystemException;
562    
563            /**
564            * 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.
565            *
566            * @param groupId the group id to search with
567            * @param templateId the template id to search with
568            * @return the matching journal template, or <code>null</code> if a matching journal template could not be found
569            * @throws SystemException if a system exception occurred
570            */
571            public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
572                    long groupId, java.lang.String templateId, boolean retrieveFromCache)
573                    throws com.liferay.portal.kernel.exception.SystemException;
574    
575            /**
576            * Finds all the journal templates where groupId = &#63; and structureId = &#63;.
577            *
578            * @param groupId the group id to search with
579            * @param structureId the structure id to search with
580            * @return the matching journal templates
581            * @throws SystemException if a system exception occurred
582            */
583            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
584                    long groupId, java.lang.String structureId)
585                    throws com.liferay.portal.kernel.exception.SystemException;
586    
587            /**
588            * Finds a range of all the journal templates where groupId = &#63; and structureId = &#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 groupId the group id to search with
595            * @param structureId the structure id to search with
596            * @param start the lower bound of the range of journal templates to return
597            * @param end the upper bound of the range of journal templates to return (not inclusive)
598            * @return the range of matching journal templates
599            * @throws SystemException if a system exception occurred
600            */
601            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
602                    long groupId, java.lang.String structureId, int start, int end)
603                    throws com.liferay.portal.kernel.exception.SystemException;
604    
605            /**
606            * Finds an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
607            *
608            * <p>
609            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
610            * </p>
611            *
612            * @param groupId the group id to search with
613            * @param structureId the structure id to search with
614            * @param start the lower bound of the range of journal templates to return
615            * @param end the upper bound of the range of journal templates to return (not inclusive)
616            * @param orderByComparator the comparator to order the results by
617            * @return the ordered range of matching journal templates
618            * @throws SystemException if a system exception occurred
619            */
620            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
621                    long groupId, java.lang.String structureId, int start, int end,
622                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623                    throws com.liferay.portal.kernel.exception.SystemException;
624    
625            /**
626            * Finds the first journal template in the ordered set where groupId = &#63; and structureId = &#63;.
627            *
628            * <p>
629            * 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.
630            * </p>
631            *
632            * @param groupId the group id to search with
633            * @param structureId the structure id to search with
634            * @param orderByComparator the comparator to order the set by
635            * @return the first matching journal template
636            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
637            * @throws SystemException if a system exception occurred
638            */
639            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
640                    long groupId, java.lang.String structureId,
641                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
642                    throws com.liferay.portal.kernel.exception.SystemException,
643                            com.liferay.portlet.journal.NoSuchTemplateException;
644    
645            /**
646            * Finds the last journal template in the ordered set where groupId = &#63; and structureId = &#63;.
647            *
648            * <p>
649            * 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.
650            * </p>
651            *
652            * @param groupId the group id to search with
653            * @param structureId the structure id to search with
654            * @param orderByComparator the comparator to order the set by
655            * @return the last matching journal template
656            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found
657            * @throws SystemException if a system exception occurred
658            */
659            public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
660                    long groupId, java.lang.String structureId,
661                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
662                    throws com.liferay.portal.kernel.exception.SystemException,
663                            com.liferay.portlet.journal.NoSuchTemplateException;
664    
665            /**
666            * Finds the journal templates before and after the current journal template in the ordered set where groupId = &#63; and structureId = &#63;.
667            *
668            * <p>
669            * 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.
670            * </p>
671            *
672            * @param id the primary key of the current journal template
673            * @param groupId the group id to search with
674            * @param structureId the structure id to search with
675            * @param orderByComparator the comparator to order the set by
676            * @return the previous, current, and next journal template
677            * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found
678            * @throws SystemException if a system exception occurred
679            */
680            public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
681                    long id, long groupId, java.lang.String structureId,
682                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
683                    throws com.liferay.portal.kernel.exception.SystemException,
684                            com.liferay.portlet.journal.NoSuchTemplateException;
685    
686            /**
687            * Filters by the user's permissions and finds all the journal templates where groupId = &#63; and structureId = &#63;.
688            *
689            * @param groupId the group id to search with
690            * @param structureId the structure id to search with
691            * @return the matching journal templates that the user has permission to view
692            * @throws SystemException if a system exception occurred
693            */
694            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
695                    long groupId, java.lang.String structureId)
696                    throws com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Filters by the user's permissions and finds a range of all the journal templates where groupId = &#63; and structureId = &#63;.
700            *
701            * <p>
702            * 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.
703            * </p>
704            *
705            * @param groupId the group id to search with
706            * @param structureId the structure id to search with
707            * @param start the lower bound of the range of journal templates to return
708            * @param end the upper bound of the range of journal templates to return (not inclusive)
709            * @return the range of matching journal templates that the user has permission to view
710            * @throws SystemException if a system exception occurred
711            */
712            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
713                    long groupId, java.lang.String structureId, int start, int end)
714                    throws com.liferay.portal.kernel.exception.SystemException;
715    
716            /**
717            * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = &#63; and structureId = &#63;.
718            *
719            * <p>
720            * 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.
721            * </p>
722            *
723            * @param groupId the group id to search with
724            * @param structureId the structure id to search with
725            * @param start the lower bound of the range of journal templates to return
726            * @param end the upper bound of the range of journal templates to return (not inclusive)
727            * @param orderByComparator the comparator to order the results by
728            * @return the ordered range of matching journal templates that the user has permission to view
729            * @throws SystemException if a system exception occurred
730            */
731            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S(
732                    long groupId, java.lang.String structureId, int start, int end,
733                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
734                    throws com.liferay.portal.kernel.exception.SystemException;
735    
736            /**
737            * Finds all the journal templates.
738            *
739            * @return the journal templates
740            * @throws SystemException if a system exception occurred
741            */
742            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
743                    throws com.liferay.portal.kernel.exception.SystemException;
744    
745            /**
746            * Finds a range of all the journal templates.
747            *
748            * <p>
749            * 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.
750            * </p>
751            *
752            * @param start the lower bound of the range of journal templates to return
753            * @param end the upper bound of the range of journal templates to return (not inclusive)
754            * @return the range of journal templates
755            * @throws SystemException if a system exception occurred
756            */
757            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
758                    int start, int end)
759                    throws com.liferay.portal.kernel.exception.SystemException;
760    
761            /**
762            * Finds an ordered range of all the journal templates.
763            *
764            * <p>
765            * 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.
766            * </p>
767            *
768            * @param start the lower bound of the range of journal templates to return
769            * @param end the upper bound of the range of journal templates to return (not inclusive)
770            * @param orderByComparator the comparator to order the results by
771            * @return the ordered range of journal templates
772            * @throws SystemException if a system exception occurred
773            */
774            public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
775                    int start, int end,
776                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
777                    throws com.liferay.portal.kernel.exception.SystemException;
778    
779            /**
780            * Removes all the journal templates where uuid = &#63; from the database.
781            *
782            * @param uuid the uuid to search with
783            * @throws SystemException if a system exception occurred
784            */
785            public void removeByUuid(java.lang.String uuid)
786                    throws com.liferay.portal.kernel.exception.SystemException;
787    
788            /**
789            * Removes the journal template where uuid = &#63; and groupId = &#63; from the database.
790            *
791            * @param uuid the uuid to search with
792            * @param groupId the group id to search with
793            * @throws SystemException if a system exception occurred
794            */
795            public void removeByUUID_G(java.lang.String uuid, long groupId)
796                    throws com.liferay.portal.kernel.exception.SystemException,
797                            com.liferay.portlet.journal.NoSuchTemplateException;
798    
799            /**
800            * Removes all the journal templates where groupId = &#63; from the database.
801            *
802            * @param groupId the group id to search with
803            * @throws SystemException if a system exception occurred
804            */
805            public void removeByGroupId(long groupId)
806                    throws com.liferay.portal.kernel.exception.SystemException;
807    
808            /**
809            * Removes all the journal templates where templateId = &#63; from the database.
810            *
811            * @param templateId the template id to search with
812            * @throws SystemException if a system exception occurred
813            */
814            public void removeByTemplateId(java.lang.String templateId)
815                    throws com.liferay.portal.kernel.exception.SystemException;
816    
817            /**
818            * Removes the journal template where smallImageId = &#63; from the database.
819            *
820            * @param smallImageId the small image id to search with
821            * @throws SystemException if a system exception occurred
822            */
823            public void removeBySmallImageId(long smallImageId)
824                    throws com.liferay.portal.kernel.exception.SystemException,
825                            com.liferay.portlet.journal.NoSuchTemplateException;
826    
827            /**
828            * Removes the journal template where groupId = &#63; and templateId = &#63; from the database.
829            *
830            * @param groupId the group id to search with
831            * @param templateId the template id to search with
832            * @throws SystemException if a system exception occurred
833            */
834            public void removeByG_T(long groupId, java.lang.String templateId)
835                    throws com.liferay.portal.kernel.exception.SystemException,
836                            com.liferay.portlet.journal.NoSuchTemplateException;
837    
838            /**
839            * Removes all the journal templates where groupId = &#63; and structureId = &#63; from the database.
840            *
841            * @param groupId the group id to search with
842            * @param structureId the structure id to search with
843            * @throws SystemException if a system exception occurred
844            */
845            public void removeByG_S(long groupId, java.lang.String structureId)
846                    throws com.liferay.portal.kernel.exception.SystemException;
847    
848            /**
849            * Removes all the journal templates from the database.
850            *
851            * @throws SystemException if a system exception occurred
852            */
853            public void removeAll()
854                    throws com.liferay.portal.kernel.exception.SystemException;
855    
856            /**
857            * Counts all the journal templates where uuid = &#63;.
858            *
859            * @param uuid the uuid to search with
860            * @return the number of matching journal templates
861            * @throws SystemException if a system exception occurred
862            */
863            public int countByUuid(java.lang.String uuid)
864                    throws com.liferay.portal.kernel.exception.SystemException;
865    
866            /**
867            * Counts all the journal templates where uuid = &#63; and groupId = &#63;.
868            *
869            * @param uuid the uuid to search with
870            * @param groupId the group id to search with
871            * @return the number of matching journal templates
872            * @throws SystemException if a system exception occurred
873            */
874            public int countByUUID_G(java.lang.String uuid, long groupId)
875                    throws com.liferay.portal.kernel.exception.SystemException;
876    
877            /**
878            * Counts all the journal templates where groupId = &#63;.
879            *
880            * @param groupId the group id to search with
881            * @return the number of matching journal templates
882            * @throws SystemException if a system exception occurred
883            */
884            public int countByGroupId(long groupId)
885                    throws com.liferay.portal.kernel.exception.SystemException;
886    
887            /**
888            * Filters by the user's permissions and counts all the journal templates where groupId = &#63;.
889            *
890            * @param groupId the group id to search with
891            * @return the number of matching journal templates that the user has permission to view
892            * @throws SystemException if a system exception occurred
893            */
894            public int filterCountByGroupId(long groupId)
895                    throws com.liferay.portal.kernel.exception.SystemException;
896    
897            /**
898            * Counts all the journal templates where templateId = &#63;.
899            *
900            * @param templateId the template id to search with
901            * @return the number of matching journal templates
902            * @throws SystemException if a system exception occurred
903            */
904            public int countByTemplateId(java.lang.String templateId)
905                    throws com.liferay.portal.kernel.exception.SystemException;
906    
907            /**
908            * Counts all the journal templates where smallImageId = &#63;.
909            *
910            * @param smallImageId the small image id to search with
911            * @return the number of matching journal templates
912            * @throws SystemException if a system exception occurred
913            */
914            public int countBySmallImageId(long smallImageId)
915                    throws com.liferay.portal.kernel.exception.SystemException;
916    
917            /**
918            * Counts all the journal templates where groupId = &#63; and templateId = &#63;.
919            *
920            * @param groupId the group id to search with
921            * @param templateId the template id to search with
922            * @return the number of matching journal templates
923            * @throws SystemException if a system exception occurred
924            */
925            public int countByG_T(long groupId, java.lang.String templateId)
926                    throws com.liferay.portal.kernel.exception.SystemException;
927    
928            /**
929            * Filters by the user's permissions and counts all the journal templates where groupId = &#63; and templateId = &#63;.
930            *
931            * @param groupId the group id to search with
932            * @param templateId the template id to search with
933            * @return the number of matching journal templates that the user has permission to view
934            * @throws SystemException if a system exception occurred
935            */
936            public int filterCountByG_T(long groupId, java.lang.String templateId)
937                    throws com.liferay.portal.kernel.exception.SystemException;
938    
939            /**
940            * Counts all the journal templates where groupId = &#63; and structureId = &#63;.
941            *
942            * @param groupId the group id to search with
943            * @param structureId the structure id to search with
944            * @return the number of matching journal templates
945            * @throws SystemException if a system exception occurred
946            */
947            public int countByG_S(long groupId, java.lang.String structureId)
948                    throws com.liferay.portal.kernel.exception.SystemException;
949    
950            /**
951            * Filters by the user's permissions and counts all the journal templates where groupId = &#63; and structureId = &#63;.
952            *
953            * @param groupId the group id to search with
954            * @param structureId the structure id to search with
955            * @return the number of matching journal templates that the user has permission to view
956            * @throws SystemException if a system exception occurred
957            */
958            public int filterCountByG_S(long groupId, java.lang.String structureId)
959                    throws com.liferay.portal.kernel.exception.SystemException;
960    
961            /**
962            * Counts all the journal templates.
963            *
964            * @return the number of journal templates
965            * @throws SystemException if a system exception occurred
966            */
967            public int countAll()
968                    throws com.liferay.portal.kernel.exception.SystemException;
969    }